diff --git a/src/promql/src/aggregate.rs b/src/promql/src/aggregate.rs index 9629b781c0e..115c5ac4030 100644 --- a/src/promql/src/aggregate.rs +++ b/src/promql/src/aggregate.rs @@ -19,17 +19,20 @@ #[cfg(test)] mod tests; -use std::collections::{BTreeMap, HashMap}; +use std::cmp::Reverse; +use std::collections::hash_map::Entry; +use std::collections::{BTreeMap, BinaryHeap, HashMap}; use std::sync::Arc; use datafusion::error::{DataFusionError, Result}; use datatypes::series::MetricName; use datatypes::series::samples::{SampleRef, Series, SeriesSchema}; -use crate::grid_series::GridSeriesBuilder; -use crate::map::{drop_empty_labels, validate_float_series}; +use crate::grid_series::{GridSeriesBuilder, external}; +use crate::map::{drop_empty_labels, validate_float_series, validate_scalar}; +use crate::range_eval::quantile; -/// Basic float aggregations. +/// Float aggregations without a parameter. #[derive(Clone, Copy, Debug)] pub enum AggregateOp { Sum, @@ -38,6 +41,8 @@ pub enum AggregateOp { Min, Max, Group, + Stddev, + Stdvar, } /// Grouping by series labels. No modifier is `By(&[])`, as in Prometheus. @@ -64,43 +69,336 @@ pub fn aggregate_float( input: &[Series], op: AggregateOp, grouping: Grouping<'_>, +) -> Result> { + let mut aggregator = FloatAggregator::try_new(schema, op, grouping)?; + for series in input { + aggregator.update(series)?; + } + aggregator.finish() +} + +/// [`aggregate_float`] fed one series at a time, for a caller that does not hold all its input +/// at once. Series are folded in the order they arrive, with the same semantics. +/// +/// The grouping labels are copied in, so the aggregator borrows nothing and can live in the +/// state of a stream. +pub struct FloatAggregator { + schema: Arc, + op: AggregateOp, + /// `by` (true) or `without`, and its labels. + by: bool, + labels: Vec>, + group_index: HashMap, + groups: Vec, +} + +impl FloatAggregator { + pub fn try_new( + schema: &Arc, + op: AggregateOp, + grouping: Grouping<'_>, + ) -> Result { + validate_input(schema, &[], grouping)?; + let (by, labels) = match grouping { + Grouping::By(labels) => (true, labels), + Grouping::Without(labels) => (false, labels), + }; + Ok(Self { + schema: schema.clone(), + op, + by, + labels: labels.iter().map(|label| Arc::from(*label)).collect(), + group_index: HashMap::new(), + groups: Vec::new(), + }) + } + + /// Folds `series` into its group. A series that fails validation leaves the state unchanged. + pub fn update(&mut self, series: &Series) -> Result<()> { + validate_float_series(&self.schema, series)?; + let labels: Vec<&str> = self.labels.iter().map(|label| &**label).collect(); + let grouping = if self.by { + Grouping::By(&labels) + } else { + Grouping::Without(&labels) + }; + let metric = grouping.apply(&series.metric)?; + let index = match self.group_index.entry(label_key(&metric)) { + Entry::Occupied(entry) => *entry.get(), + Entry::Vacant(entry) => { + self.groups.push(Group { + metric, + blocks: BTreeMap::new(), + }); + *entry.insert(self.groups.len() - 1) + } + }; + self.groups[index].accumulate(series, self.op); + Ok(()) + } + + /// The result of every group, in the order the groups first appeared. + pub fn finish(self) -> Result> { + let width = self.schema.fields.len(); + let mut builder = GridSeriesBuilder::try_new(self.schema)?; + let mut output = Vec::with_capacity(self.groups.len()); + let mut row = Vec::with_capacity(width); + for group in self.groups { + // One builder serves every group, so each result series starts explicitly. + builder.begin_series(); + for (&block, states) in &group.blocks { + // The last block can extend past the grid; only points with a sample are pushed. + for (offset, point) in states.chunks_exact(width).enumerate() { + if !point.iter().any(|state| state.seen) { + continue; + } + row.clear(); + row.extend(point.iter().map(|state| state.finish(self.op))); + builder.push(block * BLOCK_POINTS + offset, &row)?; + } + } + output.extend(builder.finish(group.metric)?); + } + Ok(output) + } +} + +/// `quantile(q, v)`, with `q` read at each grid point from an unlabelled single-field scalar on +/// the same grid, as Prometheus evaluates the parameter at every step. A point where `q` has no +/// value has no result; `q` outside `[0, 1]` or NaN gives what Prometheus' `quantile` gives. +pub fn aggregate_quantile( + schema: &Arc, + input: &[Series], + q: &Series, + grouping: Grouping<'_>, ) -> Result> { validate_input(schema, input, grouping)?; + let q_axis = validate_scalar(schema, q)?; + let q: Vec<(usize, f64)> = q_axis + .positions() + .zip(q.fields.as_slice()[0].iter()) + .filter_map(|((point, _), sample)| match sample { + SampleRef::Float(value) => Some((point, value)), + _ => None, + }) + .collect(); + // Members keep input order, the order Prometheus appends to its per-step heap. let mut group_index = HashMap::new(); - let mut groups = Vec::new(); + let mut groups: Vec<(MetricName, Vec<&Series>)> = Vec::new(); for series in input { let metric = grouping.apply(&series.metric)?; let index = *group_index.entry(label_key(&metric)).or_insert_with(|| { - groups.push(Group { - metric, - blocks: BTreeMap::new(), - }); + groups.push((metric, Vec::new())); groups.len() - 1 }); - groups[index].accumulate(series, op)?; + groups[index].1.push(series); + } + let width = schema.fields.len(); + let mut builder = GridSeriesBuilder::try_new(schema.clone())?; + let mut output = Vec::with_capacity(groups.len()); + let (mut values, mut sorted, mut row) = (Vec::new(), Vec::new(), Vec::with_capacity(width)); + for (metric, members) in groups { + builder.begin_series(); + // Each member's next position waits in a min-heap, so a point costs the members present + // there and not the whole group: a group of short-lived series stays linear in its + // samples. Ties pop in member order, the input order Prometheus appends values in. + let mut positions: Vec<_> = members + .iter() + .map(|series| series.time.positions()) + .collect(); + // Indexed by field, then member. + let mut cursors: Vec> = (0..width) + .map(|field| { + members + .iter() + .map(|series| series.fields.as_slice()[field].cursor()) + .collect() + }) + .collect(); + let mut next: BinaryHeap> = positions + .iter_mut() + .enumerate() + .filter_map(|(member, positions)| { + positions + .next() + .map(|(point, row)| Reverse((point, member, row))) + }) + .collect(); + let mut present = Vec::new(); + while let Some(&Reverse((point, _, _))) = next.peek() { + present.clear(); + while let Some(&Reverse((at, member, row))) = next.peek() + && at == point + { + next.pop(); + present.push((member, row)); + if let Some((point, row)) = positions[member].next() { + next.push(Reverse((point, member, row))); + } + } + let q = q + .binary_search_by_key(&point, |&(point, _)| point) + .ok() + .map(|index| q[index].1); + row.clear(); + for field in &mut cursors { + values.clear(); + for &(member, member_row) in &present { + if let Some(SampleRef::Float(value)) = field[member].at(member_row) { + values.push(value); + } + } + row.push(match q { + Some(q) if !values.is_empty() => Some(quantile(q, &values, &mut sorted)), + _ => None, + }); + } + builder.push(point, &row)?; + } + output.extend(builder.finish(metric)?); + } + Ok(output) +} + +/// `count_values(label, v)`: at each grid point, the number of samples in each group of series +/// that share a value, with the value written to `label` in Prometheus' `FormatFloat(v, 'f', -1)` +/// form. With `by`, `label` is part of the grouping; with `without`, it is dropped if listed. +pub fn count_values( + schema: &Arc, + input: &[Series], + label: &str, + grouping: Grouping<'_>, +) -> Result> { + // `by` may list the value label, which this operator writes itself, even when an input field + // has that name; grouping by any other field name stays unsupported. + let other_labels: Vec<&str>; + let checked = match grouping { + Grouping::By(labels) => { + other_labels = labels + .iter() + .copied() + .filter(|name| *name != label) + .collect(); + Grouping::By(&other_labels) + } + without => without, + }; + validate_input(schema, input, checked)?; + if label.is_empty() { + return Err(DataFusionError::Execution(format!( + "invalid label name {label:?}" + ))); + } + let by_labels: Vec<&str>; + let grouping = match grouping { + Grouping::By(labels) => { + by_labels = labels.iter().copied().chain([label]).collect(); + Grouping::By(&by_labels) + } + without => without, + }; + let width = schema.fields.len(); + let mut group_index = HashMap::new(); + // Counts are kept per point that has one, not in blocks: a gauge with distinct values makes + // about one group per sample. + let mut groups: Vec<(MetricName, BTreeMap>)> = Vec::new(); + for series in input { + // Equal bits format to the same label value, so each distinct value of a series + // resolves its group once. + let mut group_of_value: HashMap = HashMap::new(); + for (field_index, field) in series.fields.iter().enumerate() { + for ((point, _), sample) in series.time.positions().zip(field.iter()) { + let SampleRef::Float(value) = sample else { + continue; + }; + let group = match group_of_value.entry(value.to_bits()) { + Entry::Occupied(entry) => *entry.get(), + Entry::Vacant(entry) => { + let mut metric = series.metric.clone(); + metric + .set(label, Arc::from(format_value(value))) + .map_err(external)?; + let metric = grouping.apply(&metric)?; + let index = *group_index.entry(label_key(&metric)).or_insert_with(|| { + groups.push((metric, BTreeMap::new())); + groups.len() - 1 + }); + *entry.insert(index) + } + }; + groups[group] + .1 + .entry(point) + .or_insert_with(|| vec![0.0; width])[field_index] += 1.0; + } + } } let mut builder = GridSeriesBuilder::try_new(schema.clone())?; let mut output = Vec::with_capacity(groups.len()); - let mut row = Vec::with_capacity(schema.fields.len()); - for group in groups { - // One builder serves every group, so each result series starts explicitly. + let mut row = Vec::with_capacity(width); + for (metric, counts) in groups { builder.begin_series(); - for (&block, states) in &group.blocks { - // The last block can extend past the grid; only points with a sample are pushed. - for (offset, point) in states.chunks_exact(schema.fields.len()).enumerate() { - if !point.iter().any(|state| state.seen) { - continue; - } - row.clear(); - row.extend(point.iter().map(|state| state.finish(op))); - builder.push(block * BLOCK_POINTS + offset, &row)?; - } + for (point, counts) in counts { + row.clear(); + row.extend(counts.iter().map(|&count| (count > 0.0).then_some(count))); + builder.push(point, &row)?; } - output.extend(builder.finish(group.metric)?); + output.extend(builder.finish(metric)?); } Ok(output) } +/// Go's `strconv.FormatFloat(value, 'f', -1, 64)`: the fewest significant digits that round-trip, +/// in positional notation. When two candidates of that length are equally close, Go takes the +/// even one while Rust's shortest formatting rounds up, so the digits are recomputed with Rust's +/// exact formatting, which rounds half to even. The recomputed digits only count when they still +/// parse back to `value`: just above a power of two the lower neighbour is half as far away, so +/// the even candidate can name that neighbour, and only the other one round-trips. +fn format_value(value: f64) -> String { + match value { + f64::INFINITY => return "+Inf".to_string(), + f64::NEG_INFINITY => return "-Inf".to_string(), + _ if value.is_nan() => return "NaN".to_string(), + _ => {} + } + let shortest = format!("{value:e}"); + let mantissa = shortest.split_once('e').expect("exponent format").0; + let significant = mantissa.chars().filter(char::is_ascii_digit).count(); + let exact = format!("{value:.precision$e}", precision = significant - 1); + let digits = if exact.parse::() == Ok(value) { + &exact + } else { + &shortest + }; + let (mantissa, exponent) = digits.split_once('e').expect("exponent format"); + let exponent: i64 = exponent.parse().expect("integer exponent"); + let (sign, mantissa) = match mantissa.strip_prefix('-') { + Some(unsigned) => ("-", unsigned), + None => ("", mantissa), + }; + let digits: String = mantissa.chars().filter(char::is_ascii_digit).collect(); + // The decimal point goes after `exponent + 1` digits. + let point = exponent + 1; + let mut out = String::from(sign); + if point <= 0 { + out.push_str("0."); + out.extend(std::iter::repeat_n('0', (-point) as usize)); + out.push_str(digits.trim_end_matches('0')); + } else if point as usize >= digits.len() { + out.push_str(&digits); + out.extend(std::iter::repeat_n('0', point as usize - digits.len())); + } else { + let (whole, fraction) = digits.split_at(point as usize); + out.push_str(whole); + let fraction = fraction.trim_end_matches('0'); + if !fraction.is_empty() { + out.push('.'); + out.push_str(fraction); + } + } + out +} + /// Schema validation is repeated because Series exposes its fields publicly. fn validate_input(schema: &SeriesSchema, input: &[Series], grouping: Grouping<'_>) -> Result<()> { if schema.eval_grid.is_none() { @@ -144,7 +442,9 @@ impl Grouping<'_> { } } -fn label_key(metric: &MetricName) -> Vec<(Arc, Arc)> { +type LabelKey = Vec<(Arc, Arc)>; + +fn label_key(metric: &MetricName) -> LabelKey { let mut labels = Vec::with_capacity(metric.tags().len() + 1); if let Some(name) = metric.name() { labels.push((Arc::from("__name__"), Arc::from(name))); @@ -170,7 +470,7 @@ struct Group { } impl Group { - fn accumulate(&mut self, series: &Series, op: AggregateOp) -> Result<()> { + fn accumulate(&mut self, series: &Series, op: AggregateOp) { let width = series.fields.len(); let mut pending = Vec::with_capacity(BLOCK_POINTS); for (field_index, field) in series.fields.iter().enumerate() { @@ -190,7 +490,6 @@ impl Group { } self.update_block(block, width, field_index, op, &mut pending); } - Ok(()) } /// Applies one field's samples within a block, so a block costs one lookup per field run. @@ -230,10 +529,13 @@ impl FloatState { if !self.seen { *self = Self { seen: true, - value: if matches!(op, AggregateOp::Group) { - 1.0 - } else { - sample + value: match op { + AggregateOp::Group => 1.0, + // The running sum of squared deviations; Prometheus starts it at NaN for a + // non-finite first sample. + AggregateOp::Stddev | AggregateOp::Stdvar if !sample.is_finite() => f64::NAN, + AggregateOp::Stddev | AggregateOp::Stdvar => 0.0, + _ => sample, }, mean: sample, count: 1.0, @@ -258,6 +560,13 @@ impl FloatState { } } AggregateOp::Group => {} + // Welford's update, uncompensated as in Prometheus. + AggregateOp::Stddev | AggregateOp::Stdvar => { + self.count += 1.0; + let delta = sample - self.mean; + self.mean += delta / self.count; + self.value += delta * (sample - self.mean); + } } } @@ -289,6 +598,8 @@ impl FloatState { AggregateOp::Avg => self.value / self.count + self.compensation / self.count, AggregateOp::Count => self.count, AggregateOp::Min | AggregateOp::Max | AggregateOp::Group => self.value, + AggregateOp::Stdvar => self.value / self.count, + AggregateOp::Stddev => (self.value / self.count).sqrt(), }) } } diff --git a/src/promql/src/aggregate/format_float_cases.txt b/src/promql/src/aggregate/format_float_cases.txt new file mode 100644 index 00000000000..5a032c6e7f8 --- /dev/null +++ b/src/promql/src/aggregate/format_float_cases.txt @@ -0,0 +1,2413 @@ +431608841ff3f549 1550453263105362.2 +43289b8ecd2ae43b 3463218535428637.5 +43250b02938dc5a2 2961540102152913 +431b2ce5e458007a 1912297565323294.5 +432afe9072520f40 3799122870601632 +432cf98de70eba0a 4077843605052677 +4313fe8ae945e4da 1406974282529078.5 +432442b0f9675a17 2851413700095243.5 +432ced16f89c16d1 4070991131970408.5 +43207e4a4ac6430d 2321228587278726.5 +432c0e1e2d382242 3948411059179809 +431f49a2da39a8ff 2201672018192959.8 +432188fe59beb716 2467850306411403 +431140bf175b49a3 1214066019717736.8 +432e986cece996e8 4305921449970548 +4321166b7728afb0 2404862710274008 +432033b6f28413ff 2280230236588543.5 +4312de956897832e 1327820716761291.5 +431ac0a4db53fe6f 1882540920340379.8 +432885fab5a28be8 3451355638351348 +43165a34fdc7e32f 1572908282542283.8 +432dc795f995c448 4191110638002724 +4323b3e2fb3d1f78 2772906008285116 +432007bdec74b6e0 2256055962327920 +432202ff7912fa0c 2534922925997318 +4323462ae498f5e4 2712587297651442 +4319c7d4895eedf5 1814147517365117.2 +432739517d1d3304 3268473309272450 +432ff5904a82dfda 4497862176108525 +4323eececcf1cf55 2805298263287722.5 +431e0c0d5aa9ae19 2114375199124358.2 +4321f17a7d336150 2525291496452264 +43242ad5cb069161 2838298628409520.5 +432143d280d5d93b 2429822993886365.5 +43163a7e97ab42f6 1564191218127037.5 +4312392dce2da0a5 1282354619050025.2 +431e03aa59f35c42 2112069872441104.5 +4317059c97f4f5fd 1620023646698879.2 +431c07249befca6f 1972288291074715.8 +4324f0f857e67297 2947224475744587.5 +432da63e3973cd8c 4172780253341382 +432a5a02d347228a 3708658787782981 +4326a712842cb000 3188073728202752 +431a47a62c0b245e 1849282105886999.5 +4324ac0707a2f214 2909322863540490 +43231f7d5ec6ba90 2691323939478856 +432867057c2830e0 3434336348280944 +431eb893a45d1523 2161798389646664.8 +431615601edcd961 1553988016617048.2 +431a86368942fcd2 1866479545925428.5 +43266c83fc7bd4f4 3155881810061946 +431cdb6f26cd13a6 2030642446681321.5 +43172d1c650794aa 1630881110418730.5 +4321ac64d681d57a 2487311849810621 +431aabf8cdbab32b 1876858621570250.8 +431c9e299c526e73 2013800225348508.8 +431112fd697ffbee 1201488552525563.5 +432a5250de01e058 3704428335001644 +43275f86a8b06d8a 3289478212368069 +432664ae25e8251a 3151574305346189 +432c7c7c9460ac0c 4009086927525382 +4329501ae4a43520 3562475426552464 +432be4c507df8d8c 3925679631484614 +4329f8bb82a810ca 3655179326195813 +431c616dc2ad4ee9 1997105848341434.2 +432760490f1a80c6 3289895683309667 +4321ac6a796c5e0f 2487323953868551.5 +431403ed3fefcea7 1408454262256553.8 +43272d707e3208ed 3261942820570230.5 +43239041eb86a79e 2753318678123471 +43126d60b48c05da 1296702923538806.5 +432ec4d87e3ae850 4330341705544744 +432b1c81603548fb 3815583180825725.5 +4321cf58e82f7e71 2506527681789752.5 +43188fad57b383aa 1728343526138090.5 +4321479027a68d6c 2431879535085238 +4321fb78db661c70 2530785549815352 +432ddbe34dc445ec 4202271816688374 +4319f5c4b859af7d 1826774918261727.2 +43159a8886263cd2 1520221416951604.5 +431a71dc66bd4ee9 1860885206225850.2 +4327ae1426792ce6 3332663016199795 +431fc4383c849545 2235367522641233.2 +431268f9bc90715d 1295492850130007.2 +432ee1fe77ce1962 4346366174629041 +432e9d1c41e6224e 4308496995782951 +432b550e51397a58 3846672175906092 +431c33e1029e70ef 1984585213123643.8 +431b3b840d95e431 1916315680209164.2 +4317d5ec2ec4c7a2 1677283709497832.5 +43111e184e7bf329 1204541087218890.2 +43288d294a95ee8e 3455303962785607 +432a7f613ed88f58 3729202518706092 +431a0ed95010e999 1833668977113702.2 +43154e5ed24990c7 1499285918213169.8 +432e1d6b1e1a4ab1 4238297602532696.5 +4326973aff006b28 3179364564874644 +432b188067fc4cae 3813382075328087 +431882bdad04a4b5 1724787651062061.2 +432ab59104126531 3758991918838424.5 +432f7feb65ab4226 4433186638897427 +4313a5bd6e395aa7 1382564393539241.8 +4329f4dc09f39d25 3653050157354642.5 +4320528f4cfca562 2297187526398641 +432b3cef2482ff86 3833411089301443 +432ce461604f6fc0 4066203113338848 +4327bb1e89935680 3339832147946304 +4323b61dfaf5095e 2774132219085999 +4324fe07c757fe95 2954404448436042.5 +43206e9ae6dc8398 2312605602300364 +432fb1a6f6799d7a 4460527467941565 +4322bb7a62b5cd60 2636341948638896 +4321446233d41e5e 2430131585552175 +431fa01a129aff73 2225439529943004.8 +431fea2a91280e92 2245798205719460.5 +432737716b019175 3267442365221050.5 +432ed4456c91cc08 4338821970322948 +432bf9bb12746220 3937203117502736 +432583086fea3317 3027523385760139.5 +431b8deb8e740b6d 1938966804497115.2 +432abd1994b32724 3763133480539026 +432da37b82ec2c7b 4171262598714941.5 +4323e1b9f3f2bdbd 2798106667736798.5 +432afa1f15250b0c 3796680400078214 +4323b9fb10f2a7d0 2776256264885224 +432a0189ca67d348 3660020356213156 +4329364a3b74ef5e 3548283435382703 +4325d48ea76851af 3072341835000023.5 +43122080ce46182a 1275571792348682.5 +432d99f97520eb60 4166035507803568 +432b7ea856a2fe58 3869542922157868 +431d226f15aea70d 2050158706272707.2 +4325ddcbfbbcc762 3077421341238193 +4327e6bca3d21440 3363811170519584 +43230bcd2daa23c4 2680500209914338 +432b0954a806a21c 3805041786048782 +4322eb912f4298a2 2662779188235345 +43276a5c653046fc 3295434765771646 +4319d352e03d8f51 1817306830169044.2 +432d4a4ddc87020f 4122236298690823.5 +4326cb50497ee06a 3207997589254197 +4326499d33553400 3136694503774720 +432f1eaa442c92cc 4379720457537894 +432f6542999baf60 4418530498697136 +4313b4dfa69ee5ca 1386724305910130.5 +432104e2c6481a12 2395223319907593 +431e61476916024d 2137802158735507.2 +4318247cc8fd246b 1698879451908378.8 +432cae1ba5b33d72 4036366557617849 +431996cced8793d2 1800670330086644.5 +432071919b0ac626 2314234906370835 +431f082282b041d2 2183667148132468.5 +4314af993b66383f 1455643048906255.8 +432bbe4fd262f83f 3904537206291487.5 +4325f9f42dfd49a8 3092900824917204 +432929fc9fff74fe 3541519705291391 +43109b8b4ea914c1 1168655562458416.2 +431a740f9771a745 1861489927154129.2 +4310d62d1384b4cd 1184772179176755.2 +4311880c430d7443 1233665212505360.8 +432cbcdc13a19220 4044476378040592 +432c3666c0ef99a1 3970557149695184.5 +43259e6e0c83bf6c 3042585002237878 +432bc099e6600d32 3905795799385753 +431c3b172c5ac8e5 1986567515583033.2 +4326605971b0d6a2 3149193381702481 +432c4582fccb508c 3978864118573126 +432c82ab722e1c2e 4012486107270679 +43201f0f09cff1c6 2268874538481891 +431332a44d998f7d 1350926453859295.2 +43241bcf81f1e9ec 2830038793254134 +432be9754a740683 3928257170375489.5 +432527926140791d 2977242080623758.5 +431d149495d3e486 2046350681504033.5 +43195a61f6e40f9d 1784062804558823.2 +432a968b963117bd 3741937829448670.5 +4321bfcbc5c9b400 2497978260838912 +431d7132829bed15 2071809019542341.2 +431222d09ef3a0b3 1276207249025068.8 +432feb3b43af577f 4492182024596415.5 +432eaaccca53f26f 4316022922934583.5 +432fc2c2b39be00d 4469932885405702.5 +432b1e81335b712e 3816682316216471 +43284632d0583bbc 3416291749404126 +43277c29fe13de78 3305222131281724 +43205abf68b12280 2301688884531520 +43117d25cffd035a 1230668990202070.5 +431f9a556c8f4df9 2223853990564734.2 +432d55af7a3d5c40 4128493241544224 +432f19110979266a 4376642621051701 +43268a2640493b56 3172173189782955 +43121d28a88d0385 1274652511125729.2 +432c06267008afae 3944030753019863 +432bb02a8fe05b56 3896760610074027 +432a194c4a415922 3673082424241297 +431c152bf9550dcf 1976144489694067.8 +432c11365e86db89 3950112279850436.5 +432e707831594ef0 4283955413821304 +431a9344bc05d7e5 1870068204008953.2 +431a7a7013b14ed1 1863242794947508.2 +4321c1749486c87e 2498890528154687 +4329199df214b682 3532520289884993 +432efd8e0665f473 4361517867924025.5 +43236179f26169c2 2727600471454945 +431c803fa03049a7 2005577526678121.8 +4329c9a88af73052 3629300070455337 +43259c2a6bb2bb87 3041340260179395.5 +4327f9d703c46af2 3374313170417017 +432bf373e240b5cb 3933751706933989.5 +432198e2cd50730e 2476587239356807 +4324a9bb864bf034 2908061205657626 +43299097a7b5b8cc 3597927722966118 +432072fb9441c7f4 2315012238533626 +432e6c7e5f06afe2 4281769658636273 +43230948171aa9b6 2679114893710555 +432c2ab368ed2f8c 3964124697892806 +43218afbf571197c 2468944681667774 +4321c1bf6b383f97 2499051242921931.5 +432b8b087175e405 3876346375369218.5 +4320415d5da9d350 2287734443272616 +432fbf51e5b17124 4468041372448914 +4327351d95a90194 3266162822774986 +432cba62a43ee611 4043116086522632.5 +432159e50168b00d 2441957355051014.5 +4312d44cdff93e4a 1324994055262098.5 +431e3faed23aa9f7 2128567346309757.8 +432e85da1c2a1284 4295710561601858 +431327b40eaaeb97 1347919712795365.8 +43270c715569bb6a 3243802684087733 +432c9d3d00a6437e 4027092338680255 +432caef4034d6ad7 4036831199278443.5 +43173a0e6a22c1da 1634439512240246.5 +43101368642163e1 1131234676201720.2 +432c81c76c7a9fca 4011996433174501 +431cad052cface1f 2017884272243591.8 +432f2a20ee13d84e 4386022599814183 +43109446d1930053 1166657878016020.8 +431235d50e979a63 1281434692478616.8 +431904a91e9b1c25 1760499706808073.2 +4320ba9cbeed099e 2354391004120271 +4323e053adf88820 2797337281578000 +432d458ffacffcd3 4119629507591785.5 +4324780c3a18c73e 2880746721928095 +432262c8dddfc5a6 2587582218101459 +4327e9989a928c3f 3365383050970655.5 +4317cec26304a4fa 1675314686142782.5 +432cbbaad71a8e36 4043820887787291 +431b638c52c09575 1927319676527965.2 +431f49a8b7e9b293 2201678316727460.8 +4312a52343cc299a 1312030115170918.5 +432fe7472f22434d 4490008598749606.5 +432cd6f6713ec3e7 4058826649068019.5 +4318df44901c0aa9 1750221252395690.2 +432ba2fae9489f2f 3889511455281047.5 +4321331e7594a183 2420640259395777.5 +4325626b0a20bcae 3009593190932055 +431c6bf62d059085 2000001102341153.2 +4323247a530e1508 2694066177772164 +432c4fe096b96f00 3984562683950976 +432a0c315d73f6ef 3665877777644407.5 +432d943d3e8ce728 4162882543973268 +4311f87506c30f9f 1264564028097511.8 +4322a074a1b47b24 2621486185201042 +432ecbe7370cc155 4334221611393194.5 +4315836c3801cc29 1513868832568074.2 +43124119a5e99ad6 1284531998582453.5 +4311f56f56baca4f 1263733287334547.8 +431a4794db7d3e3b 1849263514406798.8 +4317d52d3329a32f 1677078643239115.8 +43269f003763b03a 3183636382865437 +431d5134af8ba413 2063015262480644.8 +432c8ae229f9bbd5 4017001659686378.5 +4329df551a942684 3641215514448706 +43288651d216a345 3451542708113826.5 +4325ad1586be33e1 3050641238727152.5 +432f568f1f5a7154 4410448492181674 +432067088cdb83a9 2308443023983060.5 +432e9be4629bc6cb 4307827255272293.5 +43194f041589975e 1780938344392151.5 +432220dd2d7525c4 2551341951652578 +432fd5f28c98847f 4480480997818943.5 +43180c67b8a3040e 1692259764977923.5 +431c9f3792944895 2014090094776869.2 +4322760c35fe1106 2598172199159939 +432e6a6373416350 4280612334645672 +432252463f3b4008 2578505621413892 +4321a839ce8e443e 2485020418056735 +432a737ff35def2b 3722671387768725.5 +432932b297fe0ba8 3546308526671316 +4320a7b06ef36a14 2343987922449674 +4323bf0923ddf9b2 2779035267431641 +43221db634ad1ab8 2549608992902492 +431291c490c94d3a 1306705752380238.5 +431266b976baddfa 1294874081933182.5 +432da5acc16aba00 4172467861282048 +43254255aff834ec 2991955151428214 +431c410a71f54bf5 1988203116319485.2 +43217c198cdfa468 2460761891787316 +431bd69a32c881db 1958945534124150.8 +431ce9e5f1b8d4fa 2034618290025790.5 +4322c055fef7cc70 2639012581598776 +432009662bc207e2 2256967026410481 +431934a4113d1e89 1773688421566370.2 +4326116bdb6cb74c 3105802214071206 +4328c433c43df7fc 3485563027913726 +432c79a3123364fb 4007520319943293.5 +43260d5ccda74098 3103570863038540 +432318f26e8102ff 2687727036301695.5 +4326191d15d79bbe 3110031099416031 +432ec0de25070dc0 4328154818905824 +432031e3b9ab7f5c 2279226884865966 +4310ed9178e9cc77 1191202170499869.8 +432c30c4f847edf2 3967460942542585 +432acd7aceec26cd 3772138367882086.5 +43106926f92d442f 1154803934384395.8 +431f0c52c97c955a 2184818496316758.5 +43291fcd6af01642 3535920770321185 +4311f65dbb7d6637 1263989260507533.8 +43257c791713f87f 3023917015497791.5 +4314d5c0b48e286f 1466130793466395.8 +4316c4fa64aba75d 1602257299368407.2 +4322f06fdc8429ba 2665456406238429 +43156aca7c8afef7 1507098104086461.8 +4313cafc5d557e92 1392802450988964.5 +4320d9d2ef4d59a8 2371549804276948 +432af50862e6ef11 3793882881161096.5 +431358f5a088510a 1361459135255618.5 +432888248293b408 3452544915986948 +4323c96b36d32a5e 2784743437997359 +431db455970b0113 2090263505977412.8 +431ed0c7daf4d13d 2168451522966607.2 +431887f1c4fa57f2 1726217975666172.5 +432e5012e2eadbca 4266145673997797 +432caa82b9d69908 4034388894108804 +432aa39879100b1e 3749112327964047 +432fac16bb9c7a25 4457468957441298.5 +4322efa3a551bdd2 2665017856548585 +432bc5012b3c81fc 3908216591106302 +43120523a84018c7 1268050071389745.8 +431ce4027a5b6e5f 2032999660444567.8 +432193a48ef87292 2473704793323849 +432f139a30fc4e8d 4373638622881606.5 +432c456a06c4cb6e 3978810515154359 +43215c267248c98a 2443197399983301 +432d088b54ddec2a 4086084420957717 +432471c7abcaf462 2877300964424241 +432f981e9b6b6ed3 4446490750990185.5 +432d4d1e1701d99c 4123782977481934 +43244298ed72b54e 2851362060196519 +432869672dc41046 3435645655713827 +431f975d3071170b 2223037694625218.8 +431e264bd9e386f7 2121589130322365.8 +431194c8411d339b 1237165602720998.8 +432bb20fa7f429ad 3897802341618902.5 +4328f64ea028b7e4 3513108497980402 +4318442b949c7532 1707588352154956.5 +43109512a305dcb2 1166876726097708.5 +4312da4381dc2e5f 1326633264286615.8 +432604c5af74b142 3098848293181601 +431fbc80afcfbe26 2233246292373385.5 +43299709d6dcba03 3601471466528001.5 +432c5bb7eb226de8 3991072414971636 +432945b710d2753e 3556763490663071 +4323368770c9501c 2703989949114382 +4313ea26f7a3cbf1 1401369410466556.2 +432e28eb3c90e9e3 4244620049937649.5 +432030abf2719cb3 2278557346221657.5 +4323a0e01a12aba4 2762454464026066 +431327cd4df3c58b 1347946821775714.8 +43261ff15f1dded7 3113785515503467.5 +432a7588d477694a 3723789967537317 +4321e9aad8537b27 2520997293571475.5 +43266fb1c64378a5 3157629406919762.5 +432e7e969715f83c 4291717273156638 +432d4b8184d69cc3 4122896988065377.5 +431378e11f8d395f 1370233212456535.8 +431d0b9f3ffefd5f 2043888231497559.8 +432b2291ceba7eb7 3818917002559323.5 +43286e03bde72c2d 3438180895528470.5 +4321461173606d7d 2431057684084414.5 +432991c8ca0ec30c 3598582993609094 +432d6e4eefd333b2 4142029817354713 +432566144c3a1ead 3011605937590102.5 +43280869a5c0b9ba 3382324643257565 +432b4aa078655bae 3840938723159511 +432059aa19844ce2 2301093367391857 +43298396599e7a96 3590778094828875 +4328739688ab8bec 3441244908144118 +43200cc7a2f15bd7 2258825599561195.5 +432e73c6f79b076c 4285773848085430 +432a32a5a01fe974 3687018165957818 +4320295074344540 2274512575537824 +43286e7b5c80848a 3438437776507461 +4324adcbbeb18d36 2910295061743259 +43224d040085851d 2575614582375054.5 +432db500dc625b9e 4180894813334991 +4321accf47547584 2487540429503170 +43239269bc94a90c 2754503695291526 +431beabde19e64d3 1964481406540084.8 +43201f3e61a867b4 2268976207115226 +432a2ebccf530187 3684868930764995.5 +431952375e30a629 1781818043672970.2 +4324908629a26aee 2894202716370295 +432fd3689939d24c 4479085239396646 +432c5fa067555fcd 3993220940476390.5 +43222f811372696c 2559390502171830 +4324f5e38d85c8d5 2949928607474794.5 +432cc34371671d44 4047996890353314 +43269358d122b864 3177229581376562 +43126a1314458367 1295794939453657.8 +431703715e477e6d 1619427478069147.2 +432276c517a928e2 2598569229194353 +4314ac679cd6297d 1454765136775775.2 +4320b7f045b3097a 2352921108382909 +432fe291d67bd1d4 4487420137302250 +432f21d7608b39a7 4381466599726291.5 +431f3a0bde342025 2197386731259913.2 +432fe7d37a38b7c4 4490309876341730 +4326491145efbdce 3136394012122855 +432ce2b84af84ab2 4065290253772121 +4318d581523279ee 1747537711898235.5 +4319368c4af25173 1774212649620572.8 +43220c16ecd93b6c 2539921091632566 +4325c7fd6a5430f0 3065432867739768 +431de267c96a4a3e 2102927428326031.5 +432be811050c6a4f 3927492083987751.5 +431475628d020349 1439641416794322.2 +431acc87f1a37a7e 1885808410287775.5 +4326722a8c0462be 3158988275462495 +4317ee479c2a6aca 1683978948614834.5 +4329b2c5660a6c7f 3616717654013503.5 +43236a8049134b64 2732561885930930 +4323b0bab069738a 2771170213804485 +432f89be4d5c5c97 4438587356360267.5 +432e89e4040ee90f 4297930857477255.5 +431d3f7f7e4523a2 2058147784116456.5 +4326721dc1420e41 3158960804792096.5 +431dbe6157e4855b 2093024905077078.8 +4326eeb35c7b1768 3227451802880948 +432ed47bd8d8c3c2 4338938842735073 +432cd6c3af4c7272 4058717647943993 +43202c697b528488 2276215589782084 +4324ddef0fcb6abb 2936759183062365.5 +432e34e3ae443182 4251200893622465 +43296a3e490d38ba 3576845081943133 +432e88e7355a23bf 4297387957621215.5 +431f2b3e0197b602 2193317398179200.5 +432ef6167c302e93 4357412867282761.5 +431c5d88e59e7f4f 1996035474300883.8 +4321b1a516d88100 2490198607544448 +43263ca714a2afd6 3129568895522795 +432c41f93edb0596 3976919052550859 +431ac86e5ca0e47b 1884681430120734.8 +432e1f2274a10114 4239241073688714 +4324e10fc6172070 2938478699188280 +431232706eed74ae 1280502014893355.5 +43258a835315a588 3031635575100100 +4317d0727efcbcc5 1675778659921713.2 +431af54a083ad047 1897011927233553.8 +432d075568083c45 4085418861796898.5 +43281ccac98519a7 3393528365485267.5 +432e743b60533de6 4286023834640115 +431508f82f967db6 1480209138556781.5 +4314f96cde6b4c7e 1475936379392799.5 +43239da29e3ae7b1 2760673161212888.5 +4322acd6fc4e15f2 2628294468373241 +4317c86bd9521456 1673572499358997.5 +432bf35b5453e3a3 3933698976772561.5 +432202ef6e8bc407 2534888477942275.5 +432c334b8a102369 3968849439887796.5 +432a0a03295781e4 3664679044628722 +43159663c1ec313f 1519082427583567.8 +431fb073e0ef4b7b 2229934004884190.8 +432d6f97c8c910a0 4142736011987024 +431b54eecdc36ba5 1923302250568425.2 +431b47f3a431129d 1919734032123047.2 +431cdd9c311f32a1 2031240564165800.2 +431e69dd9c6a7705 2140162458557889.2 +432719ce4d175010 3251149155837960 +432e04bc134ee1d8 4224727562809580 +432d55cab8754465 4128551745528370.5 +4318e0a977e6dbc1 1750604476692208.2 +432388f9cb0b61cf 2749315496128743.5 +431aa60aaf38e832 1875228553525772.5 +43193bb96c1f7866 1775635496689177.5 +4319be0552958e91 1811451121853348.2 +432a5f72f2bb507f 3711648348874815.5 +4328d1efe05b5820 3493113816263696 +43162672c8bbdac2 1558680980879024.5 +4326fb8c8f0c3aea 3234515300785525 +43297c9ba976cdc8 3586941211338468 +431a9adba44d590a 1872154384881218.5 +432a866c90072278 3733075112726844 +4326a10a6484f0ba 3184757747906653 +43269d764c8b36c3 3182790451764065.5 +432f8a307c0a5fbe 4438832561074143 +432130fbd1705818 2419466356403212 +4310b758ba576791 1176297834666468.2 +4326073413d87fe5 3100184870141938.5 +4310294ace9a9686 1137250224481697.5 +4322cb830ced2070 2645156649406520 +43212fe6f693384b 2418871814954021.5 +4327badf467236b8 3339696293354332 +4320c809cc7f6e57 2361772019267371.5 +431663737a79549b 1575449278698790.8 +432a524b0b48b7ce 3704415829908455 +432e1262b5e11f1e 4232232234422159 +43229e31b780f5a6 2620242975029971 +43229adf7d9466d6 2618417128026987 +432c43c12d585ac9 3977898158206308.5 +432b3458bde9d033 3828690059585561.5 +4320a8c5dfdf4177 2344583722672315.5 +432019aa444f16a2 2265909354269521 +43292f733d9aaa92 3544523209528649 +432e4b5de472ced4 4263557969045354 +4320b8cf7ab770aa 2353400441976917 +43112defcef5c70f 1208895649182147.8 +431aaa882c37f3b1 1876462807153900.2 +432b4b59f9fd2aa2 3841337094739281 +431ae419cdc7cca3 1892287218053928.8 +4317638d69b0c159 1645845869768790.2 +43141dcf62603046 1415569020029969.5 +432082c86db8911d 2323698486626446.5 +43170eb22388fbb2 1622520681873132.5 +432e282ba0ef475e 4244208575030191 +43199147646b243d 1799152557803791.2 +432a17f63648a697 3672347817300811.5 +43241e0c214a463e 2831268490584863 +432417e1be01a9b0 2827878928536792 +43270eb5db0b1e7a 3245049345576765 +43131242016ded71 1342024814656348.2 +432a5e494405bf5c 3711009080663982 +43146a3d76eb4dcf 1436577938723699.8 +432ed2a9c6e9780a 4337937964907525 +432a8eac2e3fe680 3737609777967936 +4326287bf5213f70 3118481173159864 +43204b244efbaed5 2293109471696746.5 +432a7ca171b419b2 3727691116842201 +432b4c2c3c1ff182 3841788621093057 +43248b966685f4da 2891488807811693 +4321b6ae6094a212 2492967332499721 +4329442f0fdac80f 3555921668957191.5 +4315a1a6e2d77d2d 1522178163334987.2 +432d3959a8fc7148 4112915787298980 +432fe32ee1249adc 4487757381651822 +43224140a1a21b3c 2569147713129886 +432b9ef32548e5be 3887295755481823 +43267d4293bc9929 3165087193779348.5 +43246ec610941f9e 2875648247467983 +432a22c2f1411105 3678285030525058.5 +43285930666fffc3 3426731926487009.5 +43236b9e0514dd93 2733175495880393.5 +431834e9b99f7692 1703394471828900.5 +4321f407e1666ca3 2526694643807825.5 +4322f4bdcb1491cc 2667822786955494 +431ce6a5db9e512e 2033724844119115.5 +431de8f79f0e9ac9 2104731136927410.2 +431dd8e6268f94d1 2100314331407668.2 +43225a0b1bcc0558 2582776669143724 +43133c99b0bd08a2 1353663837585960.5 +432ec0e6cb7814cc 4328173394987622 +431cb2bd438e3faf 2019456324964331.8 +43184717a1a03b21 1708391565627080.2 +431d75af5dc4b7fa 2073042594377214.5 +4324d16a8c1f6d54 2929877540910762 +4324a11540a3a6a1 2903306092532560.5 +43117c82abb68c4f 1230493818135315.8 +43291c1744b72db8 3533880340223708 +4324eac8d3da7642 2943823901440801 +432f606edbbec3e6 4415876763705843 +432e18a9ca2c0427 4235683410870803.5 +4317adb95fbc2f17 1666234037767109.8 +4328342c3057dffa 3406381917663229 +431f3649338f2dc7 2196353075891057.8 +432d738236e5a422 4144888714285585 +4325ee5749511210 3086516585269512 +4319b800abcaba3d 1809796859866767.2 +431a419099bdb7d6 1847609676230133.5 +431ced70cd194cea 2035592020251450.5 +432af07f27840a66 3791389154477363 +43271079c4397025 3246019816765458.5 +432c8b005c38ac68 4017066505688628 +4322d3089021346c 2649291656043062 +43115b91dee6610f 1221439168026691.8 +432a76a2f81c92d4 3724395856939370 +432beaa8b53254c8 3928917343283812 +4324600ecb6ccaf1 2867558096463224.5 +431dfb4fcffcd8a1 2109773633762856.2 +431378649597e47d 1370099489831199.2 +4321423c550b4661 2428950748177200.5 +4324482dbc0d47ab 2854430399964117.5 +431ed8bd758e27d3 2170639383497204.8 +431e9bc687c1aa67 2153881571191449.8 +4327496cdb34519a 3277328173639885 +432da26c4a056e89 4170680153323332.5 +43241ff9d8d58472 2832328739701305 +431e9619cff56285 2152321727158433.2 +43204dc090ce02b2 2294544542925145 +432d29f29bd88011 4104448149045256.5 +43205cae1988dc25 2302751224917522.5 +423287ced4ee6600 79587890414.39844 +3c7799e550b6d0b6 0.000000000000000020470739100039622 +4185ee88fc887b50 45994271.56664145 +c1dfff47374f86f8 -2147294429.2426128 +405af1e54417eee7 107.77961828553417 +c3889daf72725257 -221720841791621860 +40e3938301995ca4 40092.093945198954 +3f635698b6b31f0c 0.0023606283844833705 +405c42e1ce33a0f5 113.04503207246655 +422d96a5433c8978 63540732318.26849 +42f8c98990a62b07 436062007222960.44 +3d85ea066dad1453 0.0000000000024913516187938105 +410dbab3e6bd636e 243542.4876659172 +411853bf4cb7a4c1 398575.8249192946 +4142585690a3dc1f 2404525.1300006057 +40a32fcc15e188da 2455.8986044387393 +43055a0848a27496 751245766971026.8 +3dc343ee0258fdbf 0.00000000003504346838185673 +41f8e5a6df6da640 6683258358.853088 +43ac7bc9be446a71 1026227937113094300 +41e1a18b9babb1a3 2366397661.365434 +3ee53045a0ca0626 0.00001010349390040677 +42e7de6a85d1d129 209952298667657.28 +c00445e595b68b7d -2.534129304536178 +421ef5893aca8400 33242107570.628906 +bef3701aafcd6f01 -0.000018537432868156147 +4336da9816c9dc76 6432796239846518 +3ecddedf45cdfbb8 0.000003560852333383637 +41a2542ae17add70 153752944.73997068 +437d18472fd92d52 131031493585851680 +428d12585bea8970 3995578629457.1797 +3ce91276e88a5769 0.0000000000000027835652558035985 +3f7330b81c923450 0.004685134111366798 +3f9aeda49da673d2 0.02629716121883858 +410fc7a1fcc25328 260340.2484175202 +3d8ea839aa553172 0.000000000003485312152361274 +409fa3e17d646b40 2024.970204896017 +bce6ee0545ecad70 -0.000000000000002545715634047105 +40c556d53ae5118b 10925.665859826628 +436f6af8e894be71 70746732516209544 +4118679bc3f615d8 399846.9413684285 +c1ff7230eb7c78a1 -8441237175.77945 +41ca6f48a6013018 887001420.0092802 +3dbc1d28f319f574 0.000000000025569448636392903 +4253d97188fc7f90 341009900529.99316 +c2bc034a9514df3f -30800461763807.246 +40c753f1e330f0ef 11943.889745824474 +420172b6e2e9a019 9367379037.203173 +40ffead93c795650 130733.57726415363 +bed82f53df668a64 -0.000005766123186398164 +4160ccedf8abf8a4 8808303.770992585 +c0181d9d0a7ac7e9 -6.028919376129104 +40552e17eaaadfb8 84.72020975767998 +c2d368e5822229d4 -85364992149671.31 +42c56e94781b88d6 47129362970385.67 +bccc631596c1753a -0.0000000000000007878988619955385 +4060c2f9aa88d634 134.09297682500767 +bd969d51a5a8d7e6 -0.000000000005141948141952607 +4206eeb947eb4f5d 12311800061.413752 +bf66ce6fa3baf5c4 -0.002783983274496223 +40019e9f2a9043ac 2.2024520230556472 +c221e67f9a905c49 -38440783176.180244 +426c6f421c841584 977005503520.6724 +4016b7f72bd8a3c1 5.679653821084629 +429a9fdc645ec7bc 7318474921905.934 +bd6b06d86bb5ce03 -0.0000000000007681461459715196 +42bc0f170e76ebaa 30851136911083.664 +4360f89a51c88e5d 38215530464965350 +421a3bfcd7b40f18 28168893933.01474 +4263660728404504 666528989698.1567 +3fd77486a2ebc7c0 0.36648717794662033 +bec5b0121e244dda -0.0000025853844231122943 +422e4bbf53913160 65059924424.596436 +3f3a6f5b10da4f92 0.00040336583411115193 +4285ac0bbe058441 2978584445104.5317 +3f39091c41fe123b 0.0003820127476432987 +41ddfbf8ab29bd1c 2012209836.6521673 +c267e612e8197e8c -821153972427.9546 +40f3f2056090dbbc 81696.33607564768 +be88c3cf35ca9285 -0.00000018451273832877844 +40f729a1dac3d5f7 94874.11590941982 +4216b327b94e39ee 24373751379.556572 +40db65912fd6ecc0 28054.26854489441 +42652161a324b376 726034880805.6082 +4252eccd4943a400 325129151758.5625 +bc778fec46ce48ba -0.00000000000000002043694991412966 +40a67e451b7da225 2879.1349753628187 +3fd03f862e4d875d 0.25387720605623604 +413619943eee191c 1448340.2458205884 +3ee11222a8944226 0.000008140011476005337 +4271d5bd6d8aee14 1225606486190.88 +3cb76c7e501daf7d 0.00000000000000032507055911936077 +4148be3239f4ef50 3243108.4527873173 +bc3f82e26671fad5 -0.0000000000000000017082292119751364 +41628db9c8f8d219 9727438.28037362 +bf51375783f2d36e -0.0010507921831905648 +3ff87ba6baf09508 1.53018830321645 +c14ae49a5907a45f -3524916.6955457176 +40fa29f6fa2a6db0 107167.43607561919 +bc7c693aa020bf6c -0.000000000000000024642658403550034 +4192cb158efa002d 78824803.7441413 +bf7188e77df61d5e -0.0042809527070696 +428faabc17cc3b2c 4352270072199.3965 +c34af0e769922d27 -15166452187552334 +401603367488b21c 5.5031374176437815 +bf611999966ab05c -0.0020874023205888336 +41a61a5f5414c609 185413546.0405734 +3d2c28b2229bb4b6 0.00000000000005002037562331934 +429023e5d4b47127 4436591455516.288 +c096d27d1cfe85ec -1460.6221809167137 +3fa20bd2a1ea3078 0.03524645067690896 +c349a0b36a78c74b -14427133727313558 +41deef0edca10114 2075933554.5156908 +3ff6cf42ee8687bc 1.425600940456646 +42473cb283c3f5a4 199605159815.91907 +4048448a8aec25fb 48.53547798662836 +407dc63ebb5ef1a8 476.390315409541 +c12b29d7025f31e3 -890091.5046325292 +42449b2d6ccc43c0 177005582744.5293 +3c6e8dddc7c52273 0.000000000000000013250756980209698 +408339044f575ba3 615.1271044564095 +429b1820ba03257d 7447610556617.372 +42bd884e146e5b06 32471262719579.023 +435cfe8276984ef3 32644542547180492 +3fc441ecdf48b950 0.15826187994521002 +434fc5e60e5892af 17886632303732062 +404e6d17b1ef1e8c 60.85228561568974 +3df24294a0c312f3 0.00000000026571914179576013 +421c910c752f7f10 30673149259.874084 +c3815dcf12779bb4 -156422993712739970 +425cc0d538beb9a0 493977133818.9004 +3e1eb8063f3522b1 0.0000000017880721320513736 +429335478672b984 5279888546990.379 +421ddce73dda737d 32065048438.61278 +429794238a910394 6481254720576.895 +42cf0cb3ef6f5a61 68278837763764.76 +3f8457ba564bdd92 0.009932952650600044 +c1a90a3f074e9769 -210050947.65349892 +431a295173dbd6a0 1840944801838504 +402755f3ed0f5342 11.66787663280559 +41a0ad61fb0ac860 139899133.52106 +c03690c479dcfbc4 -22.56549798626999 +420871444353e40a 13122439274.486347 +c3308c3607b9c48e -4657763313108110 +4315defae75127c7 1539035928742385.8 +bd6ada94c27e9bac -0.0000000000007632318213825494 +42476a4fa04f49ef 201135702174.5776 +bfb953d646b14e1b -0.09893550134557254 +42d01fd1311cf4c4 70915358749651.06 +3e65879a536523cb 0.00000004010218861373065 +402f7efc6d93f4ca 15.748019623099385 +424cf0e7cca847b4 248601614672.56018 +3f9fb59465136be4 0.030966108960324493 +425910b2056c4991 430617138609.1495 +402875dd0ccfa220 12.230202102990972 +c36fa1b41d1d9a4c -71228153861558880 +42762f0352203542 1524448436739.3286 +bc9b82e6064bf446 -0.00000000000000009544907363377954 +42d3ae030c656c96 86552385525170.34 +c324c680227e4a84 -2923876585514306 +429aa9d0bb4fbdc0 7329163432943.4375 +c0577706a5b1c53d -93.8597807155647 +3ffb20a7572d5db4 1.6954720883712584 +c1c2caaed7106b5c -630545838.1282763 +40343b1b7c7a3372 20.230888156732767 +bcb86dc9efcbad7e -0.00000000000000033901857098747705 +3f65f031349fdf10 0.002678009132974675 +3fee354db2aa1877 0.9440067758121263 +4005a9b6d550270c 2.7078682580075846 +be5641dfba7f8c49 -0.00000002072874463733467 +42d76870f40491a0 102949356311110.5 +bd4e5658b7801e23 -0.00000000000021555941892555968 +42818a924f69ecb9 2410857229629.5903 +3ea03305beb2d182 0.0000004827769521016544 +42517ce1ad70b557 300438435266.83344 +435f990de3bd8e63 35576036850022796 +426420519ef7d8dc 691532527550.7769 +bf7f6bc5cad3cc16 -0.0076711393605704194 +422081c7fbf9ae24 35448421884.84012 +3df40efbc8be834b 0.0000000002918900197450548 +42c227e2902de686 39925028248525.05 +be12b7a26d7f85dd -0.0000000010894915438504916 +42dd9483444c2570 130094778626197.75 +bf97d638b4228ba3 -0.023278127665104297 +3f797275cae91050 0.006212673308770247 +415d0750f5af67de 7609667.838830916 +423c2575dc106fd9 120887565328.4369 +3dabc8336e653a3a 0.000000000012633806717677528 +41fc8062049c5da7 7650811977.772864 +bd9a4423bb2f3aa0 -0.000000000005972235661529821 +4272996a0b72a64e 1278132401962.394 +bdc076e7e8fa4806 -0.000000000029948707682386505 +422f619490b23c68 67390556249.11798 +c195ea3c765f9ad8 -91918109.59336412 +4235e457d3e49771 94025274340.59157 +be7b0e51be493145 -0.00000010079121144055582 +4023357cbe4380f2 9.604467340221593 +c157c64ab18a5888 -6232362.774068959 +4321e0c365657664 2516102214236978 +3feeed4eab108a34 0.9664681759935037 +4167e252f720acb0 12522135.722738594 +3cbb744eef43ef4e 0.00000000000000038100535846955324 +4163d25cfcad47ee 10392295.896152463 +41e603b32068393c 2954729731.2569866 +42de5c7436816d1d 133529742214580.45 +bfc5e84bc94d334e -0.17115161256006178 +4002389cdad2ac6a 2.2776429267446945 +408dc8f07b760320 953.1174229831413 +41a534f39a94ddbc 177895885.2907542 +3fb1c44a89ceb079 0.06940141548574442 +3ffd649686822b00 1.8370576147305542 +c08eafd0de6f8650 -981.9769867623199 +42699a513f020b3a 879705585680.3508 +bd0e2802fd39a707 -0.00000000000001339208548988347 +4071ea848ea63642 286.6573626034407 +41611e94399cd6de 8975521.800395425 +4173dddbb64be1b0 20831675.39352578 +c19169070272c43d -73023936.61207671 +413256efe293162e 1201903.885056864 +3d4b4f08d025c454 0.00000000000019404018464450634 +409406a94370678e 1281.6652963221745 +3cb92a5603aa9859 0.0000000000000003492397339987113 +41488ccf79513ef4 3217822.9477919284 +40b4fa7fd3b14659 5370.499323920893 +4287853cc22fa908 3232627181045.129 +3e242c68c0a71c86 0.000000002348501397886192 +40429e48f9269a8d 37.23660196671435 +bdedcd9e610e8d64 -0.0000000002168468048600381 +3fd6e0ffe4ad70eb 0.3574828847101929 +41884b36317e2124 50947782.18658665 +3fc255d1aa7826ae 0.14324398826311352 +bd4a0b693a18977e -0.0000000000001850578313568482 +40233635f4f9c4bc 9.605880408753698 +c347512c3282a0dd -13126349464355258 +41e21d02a89e7f60 2431128900.9530487 +3e074cff6f7f4818 0.0000000006781417363370294 +405758d99f18c540 93.38828256052966 +bcac5299044b1521 -0.00000000000000019652784504377752 +42d6146d2ba9b62e 97107946940120.72 +429c8339259e63bd 7837481265048.935 +4271fb584fd7d08c 1235701005693.0342 +3d6249c1644441bc 0.0000000000005197792680930266 +4307ab9c1d17720e 832826431958593.8 +3ff704cf32b49471 1.4386741619757937 +3faed88402ea5229 0.060245633464692645 +bf508ac173452071 -0.001009644428522829 +41c520c439e01914 708937843.7507653 +3c5d6d2e63d63362 0.000000000000000006380852683258737 +43205a98e6667faa 2301606187188181 +bff5df0fd221d3e0 -1.3669584472929657 +403d0e05120c3ff4 29.05476486968105 +4075a6ed9838c23b 346.4330064980638 +42edc223faee432f 261757316067865.47 +3fb69e02935d08a6 0.0883485421918829 +411a01ea32909ac4 426106.5493797476 +3c445dc5d696407f 0.0000000000000000022081186729151585 +42709d3337c6b2bb 1141709700203.1707 +c3b116c88dd822d4 -1231392059674514400 +40f6a9e0d9284a24 92830.0530169388 +c0d14a90d4b5b2d4 -17706.262982773434 +404dbb1211bcc2b5 59.461488930862664 +41ae12ee85a97298 252278594.8309524 +4162bcd538de79e4 9823913.777157731 +3ff70711d39c38e4 1.4392259851479645 +4060e681ae7ee654 135.20333027634717 +414db6f2f2598c66 3894757.8933578013 +3feee58062d525e7 0.9655153208088308 +c1030198bd1ae816 -155699.0923364765 +42140112e87fa378 21479340575.909637 +415cece492eccb96 7582610.295702836 +40527f3293ef9d02 73.98746202850091 +3eff6054a4fffe76 0.000029922763417288054 +3fa0deb04d5090a2 0.03294897979529422 +41e451395e5ec8c1 2726939378.962006 +42496b5d174a12a4 218350890644.14563 +3d6352dc2b7e0a05 0.0000000000005492117914496717 +42bc0e514436d550 30847818544853.312 +421d25631bed1a97 31295325947.275967 +409ba3a7c7d48f52 1768.9138482296444 +c118a90726892e2d -404033.7876326766 +41c070854f0ae31e 551619230.0850561 +c0fb45d60ce53f6b -111709.37814831517 +41421fdbe2b52cdc 2375607.7711540293 +bd9f31f185581e5d -0.000000000007092942625171993 +402d446dd01060e4 14.633650304793669 +be47ba022e1b3b4c -0.000000011048557127701185 +406f399c87c25460 249.80035770373343 +3ded396653204cf0 0.00000000021263416857393492 +3fa6c354edb31306 0.04445901300053916 +414f86771fcecd6e 4132078.24849861 +40e2bb9b31fab617 38364.84985099377 +be3693dfd4696c06 -0.000000005256765084502076 +409e12481864f960 1924.570405557366 +c39094caf793d4d6 -298700741461489000 +41aa58ab0480f148 221009282.25184083 +3ed190fc09479153 0.000004188143198001075 +42bc4882408bcc1c 31097748491212.11 +bcdd8520201ffc3b -0.000000000000001638690374841422 +415df99ace41647f 7857771.222741245 +41f4865ea3046c08 5509605936.276375 +421295586d01ccdc 19953752896.450058 +412791971d37f694 772299.5570675903 +42163dee1fa086a1 23882074088.131474 +be3cd18f22ad9b97 -0.000000006709850934291042 +40b96e264d35114c 6510.149615589831 +be373ad997495090 -0.000000005408628535130488 +407831501af6cce8 387.0820569649354 +bfa137575230f36e -0.03362534406958316 +41a0afdc2ec1f968 139980311.37885594 +bf1e24560bc3d64a -0.00011498236830561576 +415c00be5cfa8af8 7340793.452791922 +3e308420fdfa2626 0.000000003845460810574583 +40598004622616aa 102.00026754111846 +4364aa141197bbd8 46532021643501250 +40a55243133d5fe4 2729.131006162601 +c3ab4c5a8684a332 -983523335525734700 +42edec661e2d15a3 263209301928109.1 +3f20443d0d4a1b13 0.00012410397780034856 +429d61f5019a89b0 8076639889058.422 +420f711072a3c9bd 16880111188.473505 +3fa05e7e05a9efc6 0.031970918837913184 +3eda894c0e065450 0.0000063267509350556 +400b7b625cd11188 3.435246205454124 +3d1aafda05c077dd 0.000000000000023702746884214452 +4164e444bda776a0 10953253.926692307 +40a24302322a1f7e 2337.5042889750903 +4297ee4510082368 6578032083464.852 +bc47f1c2f1a1cacb -0.0000000000000000025960549744486794 +4229dd0dd2c2eeee 55541426529.46666 +430086fd98d13032 581502922008070.2 +41c90cac66750552 840521932.9142249 +3e9ca91091b8a8b4 0.0000004270733755274529 +422acf6065358fc2 57574175386.78078 +c1c8469761ef26d2 -814558915.8683722 +42bcc80828656d0e 31645455902061.055 +c1388ab69e94fa4c -1608374.6194607196 +42d6ac10c617783a 99713086414304.9 +bdb6b7d56d009a06 -0.000000000020661991920057223 +40573008f0cce3e3 92.75054569252784 +bf4b4bc5e739a4d0 -0.0008330074619610443 +419c32bd7741f69c 118271837.8144173 +3d4910b26908419e 0.00000000000017809911643143401 +3feef6f1cc80b8ce 0.9676445955463124 +c239b462421414ff -110400520724.08202 +421b1131c3fce48c 29063147775.22319 +c27e9d0bdfcae429 -2103741119662.26 +426eeaf99549291c 1062329952841.2847 +bdd5140fbd02b330 -0.00000000007668264569562755 +3fd96e46c08502a8 0.39735573578586036 +4040626edbe47d9a 32.7690081468274 +41ff90fdbe4f6706 8473533412.962652 +c1f8298ce2726e79 -6486019623.151971 +426f165d4fff2356 1068153602041.1042 +bd382524661437f0 -0.00000000000008578057962007614 +4333a514a941f58d 5529532715103629 +42949075046e3a1c 5652667767694.527 +40dded0d21819f1f 30644.205170064346 +c3454e082f81833e -11993543149291132 +3f9cc9b26e88aa2e 0.0281131629909998 +c0b4558412a8d55b -5205.515909721459 +41d72952dc7ff37c 1554336625.999236 +c01596d920bb80a1 -5.397312652057878 +427fa5f5fb73f08e 2174853560127.0347 +3c6c220d15e8b089 0.000000000000000012200749165367569 +3f749675a30804e4 0.005026301878843873 +be21fa93186d2693 -0.0000000020930086027268885 +426313f1915d21e8 655511816937.0596 +c1eb774ad5b17558 -3686422189.545574 +431efa2a6f0b6822 2179827364977160.5 +be06c1063ad26bba -0.0000000006622285963035009 +42cc11fe2446864a 61727207623948.58 +bfd1e350c0794dc4 -0.279499233210313 +406b659df3bdb686 219.1755312638599 +40f1b6154f1c468e 72545.33181407509 +418de803b93f59ad 62718071.15593276 +3f469d2b606a6bfc 0.0006901227760239821 +418a4c04681ccb66 55148685.01405983 +bc59ba9c50788070 -0.0000000000000000055790761913786024 +40995a9b3eb45f71 1622.651606386495 +c065ddce9dbc7735 -174.93147169885347 +3f951eabcebb52e4 0.020624813549903545 +bcec0dd5a6fa8796 -0.000000000000003114624261254786 +41aa062359364b64 218304940.60604393 +3e22bdbbcd3976ac 0.0000000021817566449621395 +41ff152b32faa182 8343696175.664431 +401e340637bdf195 7.550804968803637 +423c44fb35fe90e0 121416398334.56592 +bd96e4803aa5f57f -0.000000000005205170423484954 +421da9e04da77dbc 31851025257.872787 +42d88e94eec9fe8f 108002652399610.23 +40c3873c3baf8e82 9998.470571465095 +3d1e5aa118144fa5 0.00000000000002695978604830137 +40d5aa4f62ae0856 22185.24039793791 +c175eed75d8d058f -22998389.84692913 +408e46a9c96d7d3f 968.8329037240836 +427d3dddc97f0404 2009471948784.251 +413f2ce1c1ed200c 2043105.7575244932 +3c4a8e037f40d64c 0.0000000000000000028790707731560246 +3f9a3499643ebaa7 0.0255912749705042 +c36d70d0731a8e38 -66294519289901500 +40fd69852e4fb968 120472.32380649971 +3c7c10ed17396174 0.00000000000000002434347664184244 +4026f6d45e39c480 11.48208898978396 +beb6c174a0bc4526 -0.0000013563445717161575 +42f152a5a99ee48b 304746629557832.7 +3f9869169aa7ee35 0.023838380040599644 +4065558f8913daf8 170.67377141836164 +bc75fd8771a93045 -0.000000000000000019073586426631373 +40aa4c0a9ad5fa2d 3366.020712553777 +3c7bd48f1bb5e824 0.000000000000000024138944886803133 +433b0c9d1e1784b4 7613693325444276 +be549101407fbd18 -0.000000019153976210605167 +4254a1e0a72067f0 354460802177.624 +bcfec3785b9543ac -0.0000000000000068308814745651176 +41c665e869762e87 751554770.9232949 +bf3170a5d38c6047 -0.00026611374373564474 +432c05764561050a 3943652438082181 +4040c09f8bc1e34c 33.5048689552992 +42fa32bed37f5a44 460884035499428.25 +3c9385e8af08deb4 0.00000000000000006773429637292788 +41980905b8885f80 100811118.1331768 +bfd48c31e0050fb1 -0.3210568130200456 +4213eb8e93cbf508 21389092082.98929 +c1cbfb4854942d59 -938905769.1576339 +409adba40f09b350 1718.9102136150068 +c09ec4c5bd3d9f91 -1969.193104708542 +41a3e21cf65539da 166792827.166457 +43a1a8e5495aaceb 636259498974410100 +41dfab897aa620e6 2125342186.595758 +c1c8774b1d981958 -820942395.1882734 +3fa57893bc1aa338 0.04193555518333486 +c21e92fbb987130d -32828747361.768604 +42a410d7d1caa9ba 11031286441300.863 +3fea11628a29ce46 0.8146221827032114 +42cf3253b0804990 68602025803923.125 +40ee2138f4a30d3e 61705.77986290537 +3fb0229b4c2b6ea0 0.0630280552826954 +bd9f44b1021052aa -0.00000000000710959419135948 +41bd33f2c0b74d00 489943744.7160187 +c21f940e850793da -33906991425.894386 +41ee8e6b4fffb9f2 4101200511.9914484 +3c84227378c53cff 0.000000000000000034927918993216596 +41fe1ac3b265e80a 8081128230.36915 +c328ae245e805e2a -3473435334291221 +409ea6ee56a4751c 1961.732752389572 +c30e3d4ae28c1d1b -1063955142378403.4 +40f67052bebe1b50 91909.17156801862 +42e29574f27d2ca7 163464971807077.22 +41d06a0c7b9c2520 1101541870.439766 +c329bc93ad56a129 -3622108436058260.5 +42f03295868475ca 284951088482140.6 +43bca99dfedf308c 2065355622117837800 +42bd0e234a28f898 31946558810360.594 +bf3e9a30aa031d88 -0.0004669541176664728 +402ae35accdf5564 13.444052126181028 +c281298acdb43635 -2358765008518.776 +40620913883140b8 144.28363427753152 +3cc25f6a7477db91 0.0000000000000005099453671466014 +405161b74cf85439 69.52681278468016 +befbcf24efc17dd9 -0.00002652087913223946 +3f8a1adbe00d1e0a 0.012746541762353143 +3efd5175293bfa2a 0.00002796000860793617 +42a51b29c51c743a 11603204542010.113 +bfd5ea76e06a900c -0.3424355689587635 +401bcb924c3d726e 6.948800269365718 +c1354e522a02b047 -1396306.1641035245 +410a231757f771e6 214114.91795243247 +41fdb07bc4431bb4 7969684548.194263 +4292dd7a26d18794 5185611609185.895 +bc3d0d8acab9ba8a -0.0000000000000000015749608131485177 +406b8dd2171a705f 220.43189578212602 +bd30e420d2e4dddc -0.00000000000006000933386300946 +42f3747245c9c97d 342253668965527.8 +3e654b8961137784 0.00000003966514950671156 +41a1359e96303447 144363339.09414884 +c0522448089d8cd5 -72.56689658532862 +42f7651be0392170 411568429044247 +41a53d80570688ee 178176043.51276344 +4205fb8f2f9262b3 11801847282.298193 +3e38faaba437fc2a 0.000000005815918916167332 +404d0b047a142900 58.08607412323363 +bedeee9124fea9e7 -0.000007374740178459831 +410b9bd78bb71a58 226170.94322033483 +4384d64f78fde290 187684363356099070 +420437010a0863d9 10852770113.048754 +40712dcd8fb771c0 274.86268588693565 +4243d244cd42f9d0 170264205957.95166 +bcf77ad7b0b418a6 -0.0000000000000052135748322963086 +42df5419bf25b898 137784278685410.38 +c22012127f78b687 -34511339452.3565 +427dac659f98ef91 2039142283662.973 +3fece11852908419 0.9024774181926914 +40bf0a101f75dfe6 7946.062980048335 +be38082dc1126375 -0.00000000559537395683249 +41ac7076e40f5614 238566258.0299536 +c00adc9759032018 -3.357710547836188 +4024d9c2f07bcee7 10.425315394509608 +bdebda40509900f2 -0.00000000020265392861980603 +4040b09239911182 33.37946242888849 +42357e5e88a01750 92314437792.09106 +425579857bc292da 368932417290.29456 +bf91fcba4013c4de -0.017565641556704807 +40d23f7bee2ade20 18685.936411587638 +c1b45e3deae19a3c -341720554.8812597 +41b7892d9addd540 394866074.8665352 +3fb9ded85e964d27 0.1010565977979253 +414ef35a062e3ba4 4056756.0482859183 +c0d59a967f1b7cdd -22122.351508018433 +40502f156a2ebc90 64.73568205417746 +405e025792d26aa4 120.036595063672 +401e7eacc1896f30 7.623705886853529 +bc570d6e4690a708 -0.000000000000000004998706293249028 +3fd93f4e80270bfb 0.3944889308442609 +bc48e593a49116f9 -0.0000000000000000026993147410136583 +41f2f0f1bc0fc511 5084486592.985612 +404f3576515210e7 62.417673268386174 +40911ea11fb43c0d 1095.6573475038197 +3e503ed63212375a 0.00000001512975978230397 +4055b04e26fa5e14 86.7547700352664 +c24eb537c79cc96e -263778701113.57367 +4080b05770566930 534.0426947356082 +3d44b94ad8091b1a 0.00000000000014725144323161047 +40c5a829b57869cd 11088.325850536023 +4249d1c07e89e8ac 221786471699.81775 +3f3dda4f76519bc0 0.0004555171966046899 +c2f287a9858969f3 -325981983774367.2 +3fd94e4cf7290060 0.3954040921853501 +3dcb58e4d04f8c72 0.00000000004974434235954271 +41eefd9bdc38cb58 4159495905.774822 +bf2f02dcbfcb7f95 -0.00023659653370255705 +3fb3c553cd7fd8ca 0.07722972647738682 +403c96f349db4ccd 28.589649787941017 +41bbf79595e71600 469210517.90267944 +4171ccd1f9c50baa 18664735.610606827 +40113d68284039e9 4.30996764080053 +c205d90a8355b8a6 -11729457258.71516 +42195aacdfbbdac6 27223865326.963646 +bc86c7659e0a7daf -0.000000000000000039515082712312733 +41efd8988b8d1760 4274308188.4091034 +c1a0d28500d17832 -141116032.40912014 +3ed18be83a474000 0.000004183414521866102 +3e915969cd2c16d9 0.00000025852427858217164 +406ead357a2bc34a 245.41277798221046 +c12746fa449a0039 -762749.1339874334 +3f794a248dd6df0c 0.006174223698898872 +41e848a1718da1ca 3259304844.4259996 +3fe5978673969e80 0.6747467286667899 +4195e26a0126c3c6 91789952.28785619 +4230f2fd73514168 72796173137.2555 +3d78ce4906f65878 0.0000000000014100465822699693 +409c450498e5df58 1809.2544895093506 +bde904d2296e23ad -0.00000000018203595984332335 +409412ee5aabc540 1284.732767757334 +c10bde84bebc6575 -228304.59313277496 +42e5c129da8781a3 191355000470541.1 +c11ce05400d788a0 -473109.0008221958 +41fed38ab3418d24 8274881332.096958 +4381227d1ffe9419 154335853027689250 +3fa0066dbc7e651a 0.03129904676388602 +3f5422c2e230352d 0.0012289908561372118 +42e8a572e2823a87 216791008940500.22 +3e730c4ad06a1d63 0.0000000709593913438302 +42a0486eab24bcbf 8951640199774.373 +3e6c32de06eefaaf 0.000000052524172448444054 +41771a9495df7f8e 24226121.367065005 +42ebc1f5b6c9a4ba 244158920281381.8 +3fa134fa79754c88 0.03360731823581725 +c3a330b207d24e75 -691400416132807300 +401dfc4448a1f5e0 7.496354231725007 +4276f1a52d9d2c3e 1576694634962.7651 +3f9685ed27e10e12 0.021995263632801416 +3cf1d25c92bb608b 0.0000000000000039572178988087676 +41d0718d068f9c1a 1103508506.2439027 +43a2ae4793a456e9 673046019036640400 +4127b3c64a249104 776675.14481023 +bf16ccba686c7684 -0.00008697402709542153 +3ff8d980e6d8db1b 1.553101445909937 +3d928ef940e84231 0.000000000004219712265524035 +431e3af0a92647a5 2127263651434985.2 +bf68d251f90849ba -0.003029975989428749 +41ccbf5b2a549f3e 964605524.6611097 +bed88b263deec301 -0.000005851638859619797 +40f98cc5f3c0435c 104652.37200952828 +42df872a9760c2a3 138661582439178.55 +428693d7985f1d48 3103029136355.66 +4246708a1a69a13c 192754758867.25964 +42bcf6f2e5f854e9 31846962690132.91 +bd20d90af91e043a -0.00000000000002992774683441002 +41e1b1abe5bdee29 2374852397.9353223 +4396651f0d07f76e 403432545577720700 +403cc8d3015ce750 28.78446968572763 +43b6759e55c57b3e 1618373732332158500 +4094d18d9763cbe8 1332.388272818871 +3d1480aa7363f07d 0.000000000000018209967642185392 +4202f3da1ba4ceb8 10175071092.600937 +c0ff9ce3bc723f3f -129486.23350739198 +407ebbfb521a1644 491.7488575953505 +c0ca62f41a086a09 -13509.907044460082 +40f55537a858829e 87379.47860003493 +c21831ba88ee040e -25978380859.50396 +40e2ebb376a5eb4f 38749.6082334133 +bf1eadca59c7b935 -0.00011703059721643735 +40104e9c61a5428a 4.076768422805467 +42f64790889334ab 391945973740362.7 +432d0b0c5699dd7f 4087460972523199.5 +bebe3fed92b92ac6 -0.0000018030237453221393 +431e65e92a8f218c 2139075354282083 +3f997cc2c90d5794 0.024889987488982593 +410b780999ec191a 225025.20015735255 +beea9798f79be419 -0.000012680138513842088 +41e9a42ac2d0b332 3441514006.5218744 +418ece9fa3e50f10 64607220.486845136 +4326fe99f87fd099 3236193370105932.5 +4153644af96cf57b 5083435.897275324 +427f610e7a9ccb58 2156357200332.709 +c1fa6bef622f7689 -7092500002.966439 +41ef17558680a05e 4172983348.019576 +c24e6561974cfc56 -261099826841.97137 +415cc7f64b74cf8e 7544793.179004563 +40eeb60fea2e0294 62896.49733639244 +41db7942a1624fd0 1843726981.5361214 +3c3af56443b3882e 0.0000000000000000014614265290664247 +40aaf75bc2d90fd0 3451.679220946484 +433a21f46bbe0514 7355683057829140 +4224dff0afb47c88 44828219354.243225 +3c6c41b4174ba7da 0.000000000000000012254370357238121 +414cebd9dc798213 3790771.722458133 +3f4cd70721b81ba4 0.0008801255057172453 +40660bf57387dc80 176.37371231589714 +416a53bf1db1e588 13803000.927965894 +41dd8d83b83ab6ae 1983254240.9174 +3ca7100b57eb8623 0.00000000000000016002944169202907 +411c9ccd4ca20310 468787.3248367766 +bc687965baa90f05 -0.0000000000000000106139960160892 +410e7cd01ca55676 249754.0139872317 +3c580d1ed435aec6 0.000000000000000005215283860664297 +4108dfa2080abd9a 203764.25392673613 +c1c11c664b9355de -574147735.151058 +4009db9accb9e8c0 3.232228850768564 +bcf0fcf22d18bf84 -0.000000000000003772109361516009 +40896139d23bfec0 812.1532330214613 +bd964984146ebc41 -0.000000000005067516128299697 +409d0df9de822d08 1859.494012865065 +bf79b446d05820dd -0.006275440804081903 +41458a3e7368d56e 2823292.901636771 +bd7eda3bc75e536a -0.0000000000017537601395270566 +4186491fb559774c 46736374.66868457 +3f35adb292266ad9 0.00033078775063592535 +42be50e044280540 33332708780037.25 +be14706ba53a785e -0.0000000011897146782610639 +3fe0a0f25096cbe4 0.5196467947010857 +bc3bb0995dd28bf5 -0.0000000000000000015010692443250208 +416456eec355b3a0 10663798.104211628 +3c58c2a3ac5f91e1 0.00000000000000000536903636933008 +4105595a73094330 174891.30617001047 +be1abd5edd4ed5fa -0.0000000015564570649965766 +3fad95d6c5d7c580 0.05778380551408713 +bc52b427308c22a0 -0.00000000000000000405572341908963 +42daff83075ee5da 118738869123991.4 +3c5055136b2088d7 0.0000000000000000035415090027819444 +3fb2d5c21d477378 0.07357419218847194 +3c4f2db892da98f7 0.0000000000000000033803903275047684 +41a82d25e0b7c6c4 202806000.35893834 +3de1acfa4db450c1 0.00000000012860760273765652 +42375223da9f81e0 100162329247.50732 +be9a1cb27a908c94 -0.0000003891005869191178 +423f9d8f395306d0 135787395411.02661 +bda2b13620d2b9dd -0.000000000008500243066474234 +40c9ccba5ad48446 13209.455896915995 +3e96df1eac0a67b5 0.0000003408128286614031 +3f95f19e0009c769 0.021429508926707728 +41f4f362f1879b92 5623918360.475481 +433212c3d94d3e99 5087181954432665 +bf220bd0bf101bbe -0.00013768122838106288 +41c190c813298fa9 589402150.3246967 +3fe584d966647b08 0.6724669456342278 +4098d92f072e14aa 1590.295925827037 +c3b16c5e5520d68d -1255482115845688600 +425a4203101fa86b 451106586750.63153 +c1577ab1fa38db22 -6154951.909720214 +3fe341d692da8318 0.6017868870004319 +bf748b99216401e6 -0.005015943685294099 +416c89477acb6c6d 14961211.837331975 +3e0712342eaa6ab2 0.0000000006714576371748454 +42ea281c2e6ddff6 230076590550783.7 +3f9ab3e4e5cedfc1 0.026076866651891132 +4231c8d005200859 76383520032.03261 +41f869e70be66b42 6553497790.401186 +3f90fccce68233be 0.01658935696518759 +41eb7733d9f19911 3686375119.549935 +3f71a40edfb2daf0 0.004306848622198642 +bfc1ed77b29a9eab -0.14005943509004246 +40069a1cebb3adcc 2.825250474377503 +3ef47a926ffbf66d 0.000019530102689727125 +413d9b4481c663a4 1940292.5069334293 +bd57b3e4606f8294 -0.0000000000003368356758232254 +401e47d16cb5d4f5 7.570134829137932 +bf69fe74f8f43797 -0.0031730923288994617 +430c282dfd5f1ab0 990684667175766 +bdbca6cb2e3ddb56 -0.00000000002605842181801154 +3fa943d7a68c5a54 0.04934572132167561 +c2ce5f204ef1d82f -66787825542064.37 +3fec6b77da6966aa 0.8881186738828621 +3dc3ccaaf619d8d0 0.000000000036015050978496576 +406ead6e9ce2a960 245.41975254316185 +bccc00cf8c230915 -0.0000000000000007772440169846334 +4244459deff4d980 174134648809.69922 +3e009adbf54fe2bd 0.0000000004832667414024034 +42f35553cdb1f8b0 340115186196363 +3fc195d2e3bb89a8 0.137384759137672 +42196995ff2439a6 27286405065.056297 +bc4c10dc6eb68248 -0.0000000000000000030429070214724817 +40b8c5868c2d4d80 6341.525576430722 +bfad4b3d60d2117d -0.057214658802908304 +42e9b682b2ab0459 226173339916322.78 +bfd5d70004e37936 -0.341247563146584 +3fa3026ba405bec0 0.03712784173228334 +3e8435fc21c09884 0.00000015058277902483361 +430381a614d973b8 686321858981495 +41ca74d730267e54 887729760.3007302 +42048b84fe32f53e 11030011846.369747 +3eba5f0b997a8c38 0.0000015718502250148776 +40290357f6b48370 12.506530484710055 +c39a35f5a55e55d4 -472171427338220800 +3f845f8b453b0d4c 0.00994786076569789 +c15dcbda7d2c336c -7810921.955822807 +420e37507488ca82 16222129809.09888 +c1488f2bc2774ae7 -3219031.519265521 +42d82803ab5375c0 106240557272535 +418fda28d2060917 66798874.252947025 +4304d5234f0596b2 732980895068886.2 +c3b111b491b4436f -1229962711136431900 +41534ea62cfe13d0 5061272.703007653 +c112dfb7bbb08f59 -309229.93329071027 +40462a348b1f496f 44.32972849872282 +c0da40996a4cdbd3 -26882.3971130511 +42ec86419b6fbee0 250903615208951 +3c30203eb48e6015 0.0000000000000000008741898701728136 +427ff31c0b7537ec 2195563001683.495 +42f7fd267f9cf857 422016640995205.44 +4217027b84251d20 24706474249.278442 +3d2dcaba2689f686 0.00000000000005292105053176523 +4008961af96a222d 3.073293636847913 +c0df5ccd879b9656 -32115.211401840985 +3fd99558e93b2fba 0.3997404363296898 +3c387479d1536045 0.0000000000000000013257073276748747 +4271744ab73c6274 1199447962566.1533 +42e451af359ce383 178728515462940.1 +417a14c4dffe7b69 27348045.99962941 +403fe66a196ac009 31.900056446611448 +403b9666316ac6d8 27.587496841972865 +404ce2cc12d7d6c6 57.77185283221256 +42bb5524ac0b14a8 30052501424916.656 +c051a6cfe74f62e7 -70.60643942596981 +40eb2954fddaafcc 55626.65598806701 +c28c76896b734df2 -3911929654889.743 +3fb636b608bd31a1 0.08677232468944009 +c1943e7792308ec9 -84909540.54741968 +401ccfafdd2cfe4c 7.202819305297066 +c0f269fa179df92e -75423.63076588951 +4080ea07bbca51fd 541.2537761503478 +bfecdc8ee8020358 -0.9019236117747864 +417aaa2d58e1cf8c 27960021.555129573 +40a93b1cfd3a148d 3229.5566194677435 +4056b105bd819d78 90.76597535760618 +3dc73e17902f8b78 0.00000000004227794678861241 +4232ca3f2792b6d3 80702547858.71416 +3d8dfe99d307e786 0.0000000000034099837959214476 +406c30abd177d443 225.52097390560274 +3f1cafe7f7e986b8 0.00010943272898480516 +3ff7c8fe926ede40 1.4865709037820949 +42c420411b3f7ca3 44257527627513.27 +40dc574a16b72290 29021.157636436226 +422ca8f495099502 61546842756.79103 +42d9c2184388b771 113285685715677.77 +c2990713903f7768 -6879545921501.852 +42414c2e6b789ebf 148585109233.2402 +c0f66f5f841f5266 -91893.96975643336 +3fe69542f7b03310 0.7057204091703131 +c2c79bcb20f4542b -51915790608552.336 +406002cda88227d8 128.08760476513885 +4134a137d624245c 1351991.8364889836 +42f712921f22d546 405896453827924.4 +bdff28c153825ea6 -0.0000000004534260358752893 +43100733cd8b9590 1127879675143524 +40ea99d83ebb3fd6 54478.75765764683 +41d8d4186fe85da4 1666212287.6307154 +40bf40f3c64311f7 8000.952243987928 +41d09154dde5aedc 1111839607.5887976 +bdf5960f4006bbef -0.00000000031412011882786627 +428e98329210a80c 4204879036949.006 +be47e47bbdd69424 -0.000000011125818428719901 +3f93d286ba94eff0 0.019357781541870567 +c244c7ea60641451 -178506744008.15872 +4147cba798f2406e 3118927.1948929345 +bc8b4975c2f13bac -0.000000000000000047335318213346826 +408fdffcf978c314 1019.9985227045568 +bd3dace3a84ef339 -0.00000000000010542801752350609 +432f9087ba18b84e 4442318447598631 +416eaf65ab750902 16087853.358036522 +4259af9569de4210 441279948665.0322 +c1e090d80377fe5f -2223423515.749801 +43095d1a74fc91f6 892405328876094.8 +c315a42c5872fa55 -1522871220092565.2 +3fb1e7673cdb5472 0.06993718372116733 +bd6cf383ae57fbe3 -0.0000000000008228433910932362 +421e7091b195be30 32684403813.43573 +3e69aa2303152f64 0.00000004780403662726966 +40b04783e1a51016 4167.515161816051 +bdae01bfe2300cc5 -0.000000000013645528342998724 +40c1ba2dc5727a6a 9076.357588109753 +c1d61e28c8e5ab91 -1484301091.5885966 +41a10375eee31030 142719735.44348288 +c1c5a5e0378eddfa -726384751.1161492 +41d5e4c376419aa6 1469255129.025064 +3da1c5e5187f9759 0.000000000008082236933166282 +430b469b3d448efc 959682116620767.5 +40ed7ee16e5e9b66 60407.04472284652 +4069ada8cd65e6fc 205.42685575392522 +401021b1b44648e4 4.03290445021614 +409e47c49bd71095 1937.942000732791 +40fe42ef396f95c8 123950.95152243145 +41ebbfbbb4b95420 3724402085.791519 +3dbbaf6a0e7ebd88 0.000000000025179553672946614 +41d1305f23ac55dc 1153531022.6927404 +c270002b37b9b5ac -1099556944795.3545 +41d5402ca785c8e4 1426109086.0903864 +3cd790d39343d42f 0.0000000000000013081607120972506 +41b37e68ad577f5c 327051437.3417871 +3fb15edc03b59f5b 0.0678536900574022 +3f7a56ead61deeec 0.006430547074952147 +bc4a99c83ef3bc19 -0.000000000000000002884054947990626 +425df97b05855a09 514958562837.4068 +43b7216a96c2e032 1666730532850905600 +406d673cc453a545 235.22616783463505 +3e91a52a22d035b2 0.00000026293358496093984 +4162d7d7bc475beb 9879229.883710822 +c0de8c6d3ed952d4 -31281.70696099366 +41c46d2372bf630c 685393637.4952102 +c19849aba02e33e3 -101870312.0451198 +433936a0d17ccc06 7096938755050502 +c0fc453ec810b232 -115795.92384404762 +428decb6801c84f4 4112813917072.619 +42501eb97481d695 276939788807.35284 +4139481d4887d840 1656861.283322826 +bdc7582767892eb2 -0.00000000004246312758185398 +40421c41095a5678 36.22073475752853 +3f4cac815562d9d4 0.0008750564109252742 +416dae91025cac9a 15561864.073812772 +428c586d2cd0646a 3895764294156.552 +42ef5a055f97c014 275771981348352.62 +bc7635772d1013fe -0.00000000000000001926310650214151 +3fc506a5d471d058 0.16426537392874496 +bd4107628634f00b -0.00000000000012099723612860228 +4086212ba58a9b88 708.1463118389811 +43749b5e0e0c43bf 92805244786064370 +42016bb0aee39b8d 9352648156.450953 +bfab973b4f12ba3e -0.05388818111656633 +3fd261ae38c42132 0.28721194785659343 +4291c4e83ef85580 4884351925781.375 +41c8f79de80392d8 837762000.0279188 +3f57cb04bf105aed 0.0014522119856842889 +40029a020b3621fd 2.325199210729123 +3e0c2cde411aaa57 0.0000000008200081743905992 +42fc869fcec015cc 501832517157212.75 +3c9904f9eb07552e 0.0000000000000000868036144604906 +40ed8f7534c41705 60539.66269115921 +bc5400b6c016eb43 -0.000000000000000004337413360126907 +41fd06e53767f3a3 7791858550.496982 +c171fbffac25f533 -18857978.759267043 +3ffb20ab72ad2eec 1.695476005511348 +42f6b4cf8706624d 399453306512932.8 +4329f9854d123a2e 3655612668386583 +4285f3f8edceadc2 3017199696341.7197 +3f9488cef22c6130 0.020053132563675635 +3d996a04d438a49f 0.000000000005778505552491238 +411ab8833d5b7708 437792.80991922366 +42f4d407a4b25154 366414301701397.25 +3fac3a3b9814cfbc 0.05513178092442625 +3c66ca69c5ff00cb 0.0000000000000000098838803783571 +3feaead2c76b9439 0.8411649603773476 +4010729f171b9c6a 4.111935006199113 +42780a71aaffac50 1652070985722.7695 +3e3cc1589414dcdb 0.000000006695105193597825 +3fcb4779eb246435 0.2131187818675088 +c3714b03a1825278 -77880857131820930 +422edb5c77cde712 66264644582.95131 +bd84fc7daea207c4 -0.0000000000023858652591078033 +42c61bd1eab0db14 48617483493814.16 +c2b524ae00a2bf5d -23247282283199.363 +3f9b93d1465320fa 0.026931066434173957 +4344bd69313b6118 11675518058807856 +3f518b159365e200 0.0010707579327499106 +40afe5c2625a72b0 4082.8796566262245 +408beb006124ffcc 893.375185288483 +3d18ac1bd51b05bd 0.000000000000021913404148486456 +424b752537dea7e4 235858980797.31165 +bf3c5a60ca9ee9c1 -0.00043263304780407843 +3f66640a1696f148 0.0027332493816329163 +3d839347c82efa75 0.0000000000022254555524216802 +3f7a189d9662c8e0 0.006371131492573151 +4010af7e61790e0d 4.171380541814426 +409ffc9d82bd62a0 2047.1538190452047 +be78bff0bd38617d -0.00000009220006740756349 +431060bdc448f4cc 1152491946392883 +be5fbd72756f45d1 -0.00000002956020436399082 +3ff145f30d9c5ed9 1.0795774966881508 +3e6d34b803daaf7f 0.000000054400289146077125 +3f9559aa3f10b482 0.02084985742492452 +3eacc8d4b9195a82 0.0000008578448264611845 +4164266671d748cc 10564403.55752983 +42982435595bc164 6635948234480.348 +40be41609feb461c 7745.377440170876 +3faa04a09b20a102 0.05081655400891984 +40d9ec189300183d 26544.383972190542 +430206661e7f401a 634198156109827.2 +421a8b527238e81c 28501646478.22667 +bd3c05fd7e707242 -0.0000000000000995591138774863 +41bb557b247d3ef6 458586916.48924196 +3df107a397ec6cd1 0.00000000024781678785752663 +414850edd6bed282 3187163.6776984343 +c028ff8754aca3d5 -12.499079366754737 +4166b13b6eec6bd0 11897307.466360003 +c18839f760bfa6a7 -50806508.09357958 +42f18b61fcb5bae8 308645473246126.5 +c17ec9d410aaf2d4 -32283969.041735485 +431fb07b73129e7c 2229942134024095 +bcc87a840b6dbd62 -0.000000000000000679417004361086 +411f76f34d04dbd0 515516.82521384675 +3ffa6a72beae6156 1.6509883354647932 +4218bccc757e799f 26561682783.61877 +3d79fac4dbe9cbb4 0.0000000000014767673707472262 +421586bb86cd0420 23113687475.25403 +3d2568dc67ceb9c6 0.000000000000038031112696409214 +40ea5326c3fa8000 53913.211423158646 +c3b8b2ff1395a958 -1779765262345132000 +403be77dc77d1ec1 27.904262989088924 +c1317bbe267c0345 -1145790.1503297847 +41904dcefed6b098 68383679.70965803 +40a7c5f66a0aeecf 3042.9812777916445 +40cc54bfa11ce240 14505.497104273294 +bc5da7d9d5f738ed -0.000000000000000006430547860821106 +40b3f9b4462a1989 5113.704195624575 +3eda042238d8b7fe 0.000006202732846056698 +3f8abd939443e018 0.013056900942032754 +435d007d8746bcca 32653253860324136 +411895e158eff864 402808.33685291396 +43aadf53cd0184b1 968179252375738500 +42436dcf96528700 166893399205.0547 +c093d4cff953a2c0 -1269.2030995433888 +41e4c02deff34648 2785111935.6023293 +c0ff212c0e402f9e -127506.7534791813 +42912cb5b4a3ae82 4720931186923.627 +c14bee2080cfc89c -3660865.006341053 +401f818c56863f38 7.876511909431251 +bebe21fcf5802e90 -0.0000017960528193608755 +406363ca93eec0cc 155.11847874289958 +3d6a6e4771ba022d 0.0000000000007512078824634266 +3fa88dbfef3bac4e 0.047956464722880385 +428e499ce458be8b 4162689207063.818 +40d3f62e2510c620 20440.721012299997 +3c559610cc9545a0 0.000000000000000004680759650260978 +3fc6aff892a14d8e 0.1772452083556399 +3f65f991d6822733 0.0026824806591933203 +418054a4bb9d5d8e 34247831.4518386 +c15a0e492e0ad6c9 -6830372.71941156 +40c5773cfe394bf8 10990.476508295149 +3ccb49c098a24795 0.0000000000000007573967851556749 +426c48595d63ce8d 971783203614.4547 +3dfbf380e7c0c4ad 0.0000000004067432846721975 +415dab29a9dc99b4 7777446.65408938 +40f6fe2724e67f62 94178.44650888213 +419ebd55dc40e8ff 128931191.06338881 +3f29c5888f7ed572 0.00019662181852956765 +40e8a276ea4782b2 50451.716098552 +3c579aa2189a8c07 0.000000000000000005118309398342775 +40e3e85e10a81f50 40770.93953329197 +c27d82a138066919 -2027930484838.5686 +41d76919bdfe72c4 1571055351.9757547 +bdf39d76eb76a527 -0.00000000028543721159549195 +3fc25322c1737233 0.1431621021828434 +3faa45813a7083b7 0.051311529525498605 +3ffb80cef946e3b8 1.7189473855380424 +bf958ec3f0e2e8ab -0.02105241925958327 +405f159d4d05e1c4 124.33772588323978 +407b78368a9277dd 439.5133157464423 +4058c09272252732 99.00893834713204 +c17a9a0283b3dec9 -27893800.231413636 +4214bca8cb0d4300 22266131139.31543 +bd6b208688400289 -0.0000000000007709972123526976 +3fff7dc120c5cde0 1.968201759355786 +bc54a0759ab05c94 -0.000000000000000004472723081336717 +42fb2b3b3339e891 477959852105353.06 +3fc9140aca11e9c1 0.19592413775155929 +42c98bbf125f09fa 56175993601555.95 +3cc76bf612c6118b 0.0000000000000006500834185160621 +4241727f6e48d7a8 149870795921.6848 +41fae4194cfb7a07 7218500815.717292 +404859d2a37dd056 48.70174068110707 +be123655affbd3c6 -0.0000000010600921806481345 +423fc8e8e508c584 136514692360.77155 +c367643fdfac26bd -52673199701308904 +3feb51c7e39d0d32 0.8537330098701317 +bfac67c11ed0ac1c -0.05547908307229241 +4293a9c2796831ae 5404958284300.42 +42db5fd7e8510e03 120393832678456.05 +42218582a8406a19 37627188256.20722 +3c33e5f9e657d4b3 0.0000000000000000010786914123427265 +42a4221e1534f806 11068383074940.012 +4151cfede021376a 4669367.502027372 +412acf40fa57669a 878496.4889480651 +41a4f0ecd4d04197 175666794.4067504 +4041495727641ec0 34.57297222508123 +4010bf6ac7f3c437 4.1869307749303095 +42c97e7163e24698 56061717890189.19 +c1507b9a65190962 -4320873.579653116 +42e9c8bce2066960 226799624663883 +c39cf53c1485a0f3 -521660015298755800 +40b97b5c641faca7 6523.360902766849 +bd2f00a9f4cf2c9e -0.000000000000055071668695776683 +42dfd482bb86c66d 139990347422489.7 +407190f9c5522ff2 281.06097919563683 +4204709bd477a708 10973575822.956558 +41dadc436a276b37 1802571176.6159189 +3ffa430c258c0b20 1.6413690058404384 +bfca430d14b5de33 -0.2051712370991808 +405f1a9e6248eb6d 124.41591698761995 +bfa007089eeda356 -0.031303662681983965 +4284661316f439f5 2803579936391.2446 +3d86ec82b6991585 0.000000000002606142234784117 +412dafd29c6fd7d8 972777.3055407954 +3fad16610a992b32 0.0568113637387654 +418ad1db03a3308f 56245088.45468246 +3e5dcd7998e76cd1 0.000000027755868320600516 +3fe1b4a1a29936cc 0.5532997298957638 +3d158fdc49c31347 0.00000000000001915086318873478 +42a11065c3df3907 9381062242204.514 +bc9a4b1b63445c28 -0.00000000000000009122351018353854 +42907b829a67a3c1 4530664544744.938 +c1cd3620225413cc -980172868.6568542 +42bde7634a7d8c6a 32879640477068.414 +40f158d571275911 71053.34012541572 +42eb1fbd4e31d680 238585071636148 +c2555eb6abcf9798 -367133372222.36865 +3feaf61595071496 0.8425395880409663 +bd6757c118770d1e -0.0000000000006634419990666434 +3f8aa2ec44a04a68 0.013006063312819907 +415b4a0925a3208b 7153700.588081489 +40306668f3739a6c 16.40003892490715 +c15588c233e35af6 -5645064.810751667 +3f932ecb4208b7a0 0.018733192353628803 +bf8bdc3dd5236e77 -0.013603671137779145 +4293d649f4801278 5452771172356.617 +423a2ff4d3d611a6 112473723862.06894 +3fe7e326f76b9ecc 0.7464785416059043 +3c48962e11be6a45 0.0000000000000000026656889002923164 +40bff2aa1d6680b4 8178.664511114523 +40d8e5dae53f18f5 25495.420242094395 +4040d362d4840f7e 33.651453556521105 +4126e44f56792c92 750119.668893235 +40314a4cc4727979 17.290233877132298 +bd4916cdc3393d2e -0.00000000000017826861542851115 +40ccae51936d11c4 14684.63731158607 +3c9df309043174e3 0.00000000000000010390770302874369 +432403c791b768c5 2816827606152290.5 +c013ce62d8da1be5 -4.951548946678462 +4194dd8612312ca0 87515524.5480218 +404b9491bc6f95c0 55.16069751213536 +41ee1de8490f2cf6 4042211912.4742384 +3f3f25119aae66b7 0.0004752319315969133 +42c24de40f439f30 40251495974718.375 +3fcbce23b30221a4 0.21722837677613172 +43224c1e7bc8bad1 2575121695137128.5 +3ea7edad8238b0f8 0.000000713122748801443 +433cbe23e4607089 8090360712556681 +c37c54d244397716 -127592982598087000 +408b91592b377279 882.1685394603547 +4156ba524caec654 5957961.198167402 +3f87b33f4df6c27f 0.011572355810899325 +3f293c68d62e004b 0.00019253520721562926 +410b82008a0a4680 225344.06740241125 +3cde102aa0b2bcdf 0.0000000000000016688400909791968 +40f483f74fa3e754 84031.45694342005 +4193aac063a2a05f 82489368.90881489 +42f9c0981af77d6c 453039621109718.75 +c355d0757c2b6b8d -24560710095580724 +42238a376ce72b94 41961633395.58511 +3e87361f033e444d 0.00000017293848630616435 +4181a6fd3f9f816a 37019559.95288356 +c3645210aef2c566 -45757849138506540 +42f39715888a15be 344633956147547.9 +bd9545dc931362bf -0.0000000000048368967668443755 +4166f5ed4b5128e8 12037994.353657201 +40539f50c1d92e27 78.48930402955067 +414868f23884d6d4 3199460.44155393 +3ddbbec666f1b994 0.0000000001009365037177817 +4192aea6a79e731e 78358953.90473601 +bf3bace392875fbf -0.00042229228941214817 +3f67024cc8402bc8 0.0028087138798631207 +423504421f9863cd 90265755544.38985 +427139c76ea05208 1183741045253.127 +3e1fab82351a67d9 0.0000000018434340342513951 +42c0a40c9a2945aa 36593544221323.33 +bc355f2cf6f367df -0.000000000000000001158566507495104 +41e7e92acd36b529 3209254505.7096143 +bc32e372343784b3 -0.0000000000000000010239455423052687 +4090937b068d585c 1060.8701421818905 +c19d866bc3da626c -123837168.96326607 +40ad6e9ebdb87ed6 3767.3100412039594 +40b2de0492218719 4830.017854781611 +42decde729ce7be2 135478781622767.53 +3d6ba685374cbdea 0.0000000000007858736300667212 +3f89382ec57bf8f0 0.01231419124769359 +43bcc7ef52b42154 2073889291915842600 +41640595b5fd3984 10497197.687161215 +c11b02ff637a2453 -442559.84714562184 +3fcfa6de2b60d51a 0.2472799026306028 +3cfb42a8c4e847a8 0.0000000000000060530220198706256 +42074cde72c93480 12509236825.150635 +bfdcbbc2b6ef57dd -0.44895999779452983 +3fc4c5153d552326 0.16226449484590794 +3e39b6b501347577 0.000000005986937184966864 +4234a07273b94e2b 88591201209.30534 +436ef00c2cd4f17b 69665475069971416 +3f75890b77fc1688 0.005257649230548396 +4322e0c599a92897 2656844435985483.5 +42434e3a5811ca2b 165833650211.57944 +408bf01f44a95e8d 894.0152676803569 +4104a2eb992f252e 169053.44979695365 +bdae0242183f377c -0.000000000013646431864485018 +418e3b033d761062 63397991.682648435 +bdfd832fbf70945e -0.00000000042946263163736237 +400180cb9be91b0b 2.1878883533967204 +40e8405605c5bfca 49666.68820464572 +42a0bf2e11264b03 9206648836901.506 +3da18098ba318cd1 0.000000000007959138399172935 +426efd7769474f58 1064811842106.4795 +4256058da6c852de 378329799457.2948 +42c94bf16874d14e 55627926792610.61 +bff6eb075c0ac13c -1.4323800654784256 +410e22c0c0d0a282 246872.0941479393 +be6b028dfd8bddea -0.000000050310006554793995 +3f90abf9e44e7b2d 0.01628103691075038 +be9b0ed738bceabe -0.00000040319519522032444 +41a151e2f8ad3528 145289596.33829618 +3eb5f63776c9ef44 0.0000013090243228532726 +411ea3739d13b1e8 501980.90339544276 +41427f5d98463001 2424507.189641953 +40cc3184de2d6850 14435.038030315336 +41a5d950ec3863d6 183281782.1101367 +4066125fa1c22ccc 176.57417381214907 +3ee10106bc6d43d2 0.000008108143345760257 +42c22bbc09124c45 39958095209624.54 +3dd04d10c2db0673 0.00000000005930282715752351 +4133841cfb30d1c4 1279004.9812136749 +411beff83c1b18ee 457726.0586971183 +3feb9478e316b2d3 0.8618740496945868 +3dfff876c78b7495 0.0000000004652329142977131 +41615321f4a35d95 9083151.644942084 +42550639bdc5a00e 361195042582.50085 +42559a1dae4589dc 371119798550.15405 +43509b12f82d7527 18696421611263132 +40de86adfcd489b5 31258.718556532363 +c199eab69ab69f6e -108703142.67834255 +40bf57e7aef7ae00 8023.905013542157 +3e6427448532c875 0.00000003753861279580342 +40d23fd5b913725f 18687.339421140376 +bfa7b94a9803503b -0.04633553605677362 +40fc267905a00900 115303.56387332454 +3c8db752eb2022df 0.00000000000000005154923187144525 +430237856f9911d4 640949477909050.5 +3cded7003eedc2be 0.0000000000000017119554385683886 +42351f1d5fb597f8 90716331957.59363 +3d9ffb768d81f184 0.000000000007271928034610732 +412a4cbfc4f7b000 861791.8847022057 +c20760dc0539c219 -12551159975.219774 +405b4c9946c5f5cc 109.19685525257154 +bc7be431c1563bff -0.000000000000000024191919478464088 +40982eb139fde480 1547.6730727835384 +c351b1cd1365eba1 -19922275823758980 +42d153274fc1583a 76195357984096.9 +4068a2e4d6493292 197.0904342107429 +4194c1c5145a1560 87060805.08797216 +431c9cb59285d9fa 2013400752289406.5 +4241221e0dfccd3c 147173678073.6034 +3e0e44949bc2ab3d 0.0000000008809116140714054 +41812cf52d9534c0 36019877.69785452 +3d20ef2493642ee2 0.00000000000003008109646105825 +402ebb161c6af9ed 15.365403068598392 +c32ffc6ec323fd75 -4501638464274106.5 +42ac8e391cefeef4 15698584565751.477 +41a7ed8e3d38d02b 200722206.6109632 +42148b00216e6184 22057846875.59523 +c19c6d099ff683f8 -119226983.9907378 +423501e74ba557db 90226248613.34319 +c105f75c741abff5 -179947.55669164626 +42761904fe8402ae 1518544611392.1675 +3d4078e203ba2936 0.0000000000001170420113431166 +419dbda44194d554 124741904.39534503 +3d197dbf80290d82 0.000000000000022640736678937233 +0 0 +8000000000000000 -0 +444b1ae4d6e2ef50 1000000000000000000000 +441ac4da03bc47e4 123450000000000000000 +3e7ad7f29abcaf48 0.0000001 +1 0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005 +7fefffffffffffff 179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +ffefffffffffffff -179769313486231570000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 +4340000000000000 9007199254740992 +4340000000000000 9007199254740992 +39afffffffffffff 0.0000000000000000000000000000007888609052210117 +39b0000000000000 0.0000000000000000000000000000007888609052210118 +39b0000000000001 0.000000000000000000000000000000788860905221012 +39bfffffffffffff 0.0000000000000000000000000000015777218104420234 +39c0000000000000 0.0000000000000000000000000000015777218104420236 +39c0000000000001 0.000000000000000000000000000001577721810442024 +39cfffffffffffff 0.000000000000000000000000000003155443620884047 +39d0000000000000 0.0000000000000000000000000000031554436208840472 +39d0000000000001 0.000000000000000000000000000003155443620884048 +39dfffffffffffff 0.000000000000000000000000000006310887241768094 +39e0000000000000 0.000000000000000000000000000006310887241768095 +39e0000000000001 0.000000000000000000000000000006310887241768096 +39efffffffffffff 0.000000000000000000000000000012621774483536187 +39f0000000000000 0.00000000000000000000000000001262177448353619 +39f0000000000001 0.000000000000000000000000000012621774483536192 +39ffffffffffffff 0.000000000000000000000000000025243548967072375 +3a00000000000000 0.00000000000000000000000000002524354896707238 +3a00000000000001 0.000000000000000000000000000025243548967072383 +3a0fffffffffffff 0.00000000000000000000000000005048709793414475 +3a10000000000000 0.00000000000000000000000000005048709793414476 +3a10000000000001 0.00000000000000000000000000005048709793414477 +3a1fffffffffffff 0.0000000000000000000000000001009741958682895 +3a20000000000000 0.00000000000000000000000000010097419586828951 +3a20000000000001 0.00000000000000000000000000010097419586828953 +3a2fffffffffffff 0.000000000000000000000000000201948391736579 +3a30000000000000 0.00000000000000000000000000020194839173657902 +3a30000000000001 0.00000000000000000000000000020194839173657907 +3a3fffffffffffff 0.000000000000000000000000000403896783473158 +3a40000000000000 0.00000000000000000000000000040389678347315804 +3a40000000000001 0.0000000000000000000000000004038967834731581 +3a4fffffffffffff 0.000000000000000000000000000807793566946316 +3a50000000000000 0.0000000000000000000000000008077935669463161 +3a50000000000001 0.0000000000000000000000000008077935669463163 +3a5fffffffffffff 0.000000000000000000000000001615587133892632 +3a60000000000000 0.0000000000000000000000000016155871338926322 +3a60000000000001 0.0000000000000000000000000016155871338926325 +3a6fffffffffffff 0.000000000000000000000000003231174267785264 +3a70000000000000 0.0000000000000000000000000032311742677852644 +3a70000000000001 0.000000000000000000000000003231174267785265 +3a7fffffffffffff 0.000000000000000000000000006462348535570528 +3a80000000000000 0.000000000000000000000000006462348535570529 +3a80000000000001 0.00000000000000000000000000646234853557053 +3a8fffffffffffff 0.000000000000000000000000012924697071141056 +3a90000000000000 0.000000000000000000000000012924697071141057 +3a90000000000001 0.00000000000000000000000001292469707114106 +3a9fffffffffffff 0.000000000000000000000000025849394142282112 +3aa0000000000000 0.000000000000000000000000025849394142282115 +3aa0000000000001 0.00000000000000000000000002584939414228212 +3aafffffffffffff 0.000000000000000000000000051698788284564224 +3ab0000000000000 0.00000000000000000000000005169878828456423 +3ab0000000000001 0.00000000000000000000000005169878828456424 +3abfffffffffffff 0.00000000000000000000000010339757656912845 +3ac0000000000000 0.00000000000000000000000010339757656912846 +3ac0000000000001 0.00000000000000000000000010339757656912848 +3acfffffffffffff 0.0000000000000000000000002067951531382569 +3ad0000000000000 0.00000000000000000000000020679515313825692 +3ad0000000000001 0.00000000000000000000000020679515313825696 +3adfffffffffffff 0.0000000000000000000000004135903062765138 +3ae0000000000000 0.00000000000000000000000041359030627651384 +3ae0000000000001 0.0000000000000000000000004135903062765139 +3aefffffffffffff 0.0000000000000000000000008271806125530276 +3af0000000000000 0.0000000000000000000000008271806125530277 +3af0000000000001 0.0000000000000000000000008271806125530279 +3affffffffffffff 0.0000000000000000000000016543612251060552 +3b00000000000000 0.0000000000000000000000016543612251060553 +3b00000000000001 0.0000000000000000000000016543612251060557 +3b0fffffffffffff 0.0000000000000000000000033087224502121103 +3b10000000000000 0.000000000000000000000003308722450212111 +3b10000000000001 0.0000000000000000000000033087224502121114 +3b1fffffffffffff 0.000000000000000000000006617444900424221 +3b20000000000000 0.000000000000000000000006617444900424222 +3b20000000000001 0.000000000000000000000006617444900424223 +3b2fffffffffffff 0.000000000000000000000013234889800848441 +3b30000000000000 0.000000000000000000000013234889800848443 +3b30000000000001 0.000000000000000000000013234889800848446 +3b3fffffffffffff 0.000000000000000000000026469779601696883 +3b40000000000000 0.000000000000000000000026469779601696886 +3b40000000000001 0.00000000000000000000002646977960169689 +3b4fffffffffffff 0.000000000000000000000052939559203393765 +3b50000000000000 0.00000000000000000000005293955920339377 +3b50000000000001 0.00000000000000000000005293955920339378 +3b5fffffffffffff 0.00000000000000000000010587911840678753 +3b60000000000000 0.00000000000000000000010587911840678754 +3b60000000000001 0.00000000000000000000010587911840678757 +3b6fffffffffffff 0.00000000000000000000021175823681357506 +3b70000000000000 0.0000000000000000000002117582368135751 +3b70000000000001 0.00000000000000000000021175823681357513 +3b7fffffffffffff 0.0000000000000000000004235164736271501 +3b80000000000000 0.0000000000000000000004235164736271502 +3b80000000000001 0.0000000000000000000004235164736271503 +3b8fffffffffffff 0.0000000000000000000008470329472543002 +3b90000000000000 0.0000000000000000000008470329472543003 +3b90000000000001 0.0000000000000000000008470329472543005 +3b9fffffffffffff 0.0000000000000000000016940658945086005 +3ba0000000000000 0.0000000000000000000016940658945086007 +3ba0000000000001 0.000000000000000000001694065894508601 +3bafffffffffffff 0.000000000000000000003388131789017201 +3bb0000000000000 0.0000000000000000000033881317890172014 +3bb0000000000001 0.000000000000000000003388131789017202 +3bbfffffffffffff 0.000000000000000000006776263578034402 +3bc0000000000000 0.000000000000000000006776263578034403 +3bc0000000000001 0.000000000000000000006776263578034404 +3bcfffffffffffff 0.000000000000000000013552527156068804 +3bd0000000000000 0.000000000000000000013552527156068805 +3bd0000000000001 0.000000000000000000013552527156068808 +3bdfffffffffffff 0.000000000000000000027105054312137608 +3be0000000000000 0.00000000000000000002710505431213761 +3be0000000000001 0.000000000000000000027105054312137617 +3befffffffffffff 0.000000000000000000054210108624275216 +3bf0000000000000 0.00000000000000000005421010862427522 +3bf0000000000001 0.00000000000000000005421010862427523 +3bffffffffffffff 0.00000000000000000010842021724855043 +3c00000000000000 0.00000000000000000010842021724855044 +3c00000000000001 0.00000000000000000010842021724855047 +3c0fffffffffffff 0.00000000000000000021684043449710086 +3c10000000000000 0.0000000000000000002168404344971009 +3c10000000000001 0.00000000000000000021684043449710093 +3c1fffffffffffff 0.00000000000000000043368086899420173 +3c20000000000000 0.0000000000000000004336808689942018 +3c20000000000001 0.0000000000000000004336808689942019 +3c2fffffffffffff 0.00000000000000000086736173798840345 +3c30000000000000 0.0000000000000000008673617379884035 +3c30000000000001 0.0000000000000000008673617379884037 +3c3fffffffffffff 0.0000000000000000017347234759768069 +3c40000000000000 0.000000000000000001734723475976807 +3c40000000000001 0.0000000000000000017347234759768075 +3c4fffffffffffff 0.0000000000000000034694469519536138 +3c50000000000000 0.000000000000000003469446951953614 +3c50000000000001 0.000000000000000003469446951953615 +3c5fffffffffffff 0.0000000000000000069388939039072276 +3c60000000000000 0.000000000000000006938893903907228 +3c60000000000001 0.00000000000000000693889390390723 +3c6fffffffffffff 0.000000000000000013877787807814455 +3c70000000000000 0.000000000000000013877787807814457 +3c70000000000001 0.00000000000000001387778780781446 +3c7fffffffffffff 0.00000000000000002775557561562891 +3c80000000000000 0.000000000000000027755575615628914 +3c80000000000001 0.00000000000000002775557561562892 +3c8fffffffffffff 0.00000000000000005551115123125782 +3c90000000000000 0.00000000000000005551115123125783 +3c90000000000001 0.00000000000000005551115123125784 +3c9fffffffffffff 0.00000000000000011102230246251564 +3ca0000000000000 0.00000000000000011102230246251565 +3ca0000000000001 0.00000000000000011102230246251568 +3cafffffffffffff 0.00000000000000022204460492503128 +3cb0000000000000 0.0000000000000002220446049250313 +3cb0000000000001 0.00000000000000022204460492503136 +3cbfffffffffffff 0.00000000000000044408920985006257 +3cc0000000000000 0.0000000000000004440892098500626 +3cc0000000000001 0.0000000000000004440892098500627 +3ccfffffffffffff 0.0000000000000008881784197001251 +3cd0000000000000 0.0000000000000008881784197001252 +3cd0000000000001 0.0000000000000008881784197001254 +3cdfffffffffffff 0.0000000000000017763568394002503 +3ce0000000000000 0.0000000000000017763568394002505 +3ce0000000000001 0.000000000000001776356839400251 +3cefffffffffffff 0.0000000000000035527136788005005 +3cf0000000000000 0.000000000000003552713678800501 +3cf0000000000001 0.000000000000003552713678800502 +3cffffffffffffff 0.000000000000007105427357601001 +3d00000000000000 0.000000000000007105427357601002 +3d00000000000001 0.000000000000007105427357601003 +3d0fffffffffffff 0.000000000000014210854715202002 +3d10000000000000 0.000000000000014210854715202004 +3d10000000000001 0.000000000000014210854715202007 +3d1fffffffffffff 0.000000000000028421709430404004 +3d20000000000000 0.00000000000002842170943040401 +3d20000000000001 0.000000000000028421709430404014 +3d2fffffffffffff 0.00000000000005684341886080801 +3d30000000000000 0.00000000000005684341886080802 +3d30000000000001 0.00000000000005684341886080803 +3d3fffffffffffff 0.00000000000011368683772161602 +3d40000000000000 0.00000000000011368683772161603 +3d40000000000001 0.00000000000011368683772161605 +3d4fffffffffffff 0.00000000000022737367544323203 +3d50000000000000 0.00000000000022737367544323206 +3d50000000000001 0.0000000000002273736754432321 +3d5fffffffffffff 0.00000000000045474735088646407 +3d60000000000000 0.0000000000004547473508864641 +3d60000000000001 0.0000000000004547473508864642 +3d6fffffffffffff 0.0000000000009094947017729281 +3d70000000000000 0.0000000000009094947017729282 +3d70000000000001 0.0000000000009094947017729284 +3d7fffffffffffff 0.0000000000018189894035458563 +3d80000000000000 0.0000000000018189894035458565 +3d80000000000001 0.000000000001818989403545857 +3d8fffffffffffff 0.0000000000036379788070917125 +3d90000000000000 0.000000000003637978807091713 +3d90000000000001 0.000000000003637978807091714 +3d9fffffffffffff 0.000000000007275957614183425 +3da0000000000000 0.000000000007275957614183426 +3da0000000000001 0.000000000007275957614183428 +3dafffffffffffff 0.00000000001455191522836685 +3db0000000000000 0.000000000014551915228366852 +3db0000000000001 0.000000000014551915228366855 +3dbfffffffffffff 0.0000000000291038304567337 +3dc0000000000000 0.000000000029103830456733704 +3dc0000000000001 0.00000000002910383045673371 +3dcfffffffffffff 0.0000000000582076609134674 +3dd0000000000000 0.00000000005820766091346741 +3dd0000000000001 0.00000000005820766091346742 +3ddfffffffffffff 0.0000000001164153218269348 +3de0000000000000 0.00000000011641532182693481 +3de0000000000001 0.00000000011641532182693484 +3defffffffffffff 0.0000000002328306436538696 +3df0000000000000 0.00000000023283064365386963 +3df0000000000001 0.0000000002328306436538697 +3dffffffffffffff 0.0000000004656612873077392 +3e00000000000000 0.0000000004656612873077393 +3e00000000000001 0.0000000004656612873077394 +3e0fffffffffffff 0.0000000009313225746154784 +3e10000000000000 0.0000000009313225746154785 +3e10000000000001 0.0000000009313225746154787 +3e1fffffffffffff 0.0000000018626451492309568 +3e20000000000000 0.000000001862645149230957 +3e20000000000001 0.0000000018626451492309574 +3e2fffffffffffff 0.0000000037252902984619136 +3e30000000000000 0.000000003725290298461914 +3e30000000000001 0.000000003725290298461915 +3e3fffffffffffff 0.000000007450580596923827 +3e40000000000000 0.000000007450580596923828 +3e40000000000001 0.00000000745058059692383 +3e4fffffffffffff 0.000000014901161193847655 +3e50000000000000 0.000000014901161193847656 +3e50000000000001 0.00000001490116119384766 +3e5fffffffffffff 0.00000002980232238769531 +3e60000000000000 0.000000029802322387695312 +3e60000000000001 0.00000002980232238769532 +3e6fffffffffffff 0.00000005960464477539062 +3e70000000000000 0.00000005960464477539063 +3e70000000000001 0.00000005960464477539064 +3e7fffffffffffff 0.00000011920928955078124 +3e80000000000000 0.00000011920928955078125 +3e80000000000001 0.00000011920928955078128 +3e8fffffffffffff 0.00000023841857910156247 +3e90000000000000 0.0000002384185791015625 +3e90000000000001 0.00000023841857910156255 +3e9fffffffffffff 0.00000047683715820312495 +3ea0000000000000 0.000000476837158203125 +3ea0000000000001 0.0000004768371582031251 +3eafffffffffffff 0.0000009536743164062499 +3eb0000000000000 0.00000095367431640625 +3eb0000000000001 0.0000009536743164062502 +3ebfffffffffffff 0.0000019073486328124998 +3ec0000000000000 0.0000019073486328125 +3ec0000000000001 0.0000019073486328125004 +3ecfffffffffffff 0.0000038146972656249996 +3ed0000000000000 0.000003814697265625 +3ed0000000000001 0.000003814697265625001 +3edfffffffffffff 0.000007629394531249999 +3ee0000000000000 0.00000762939453125 +3ee0000000000001 0.000007629394531250002 +3eefffffffffffff 0.000015258789062499998 +3ef0000000000000 0.0000152587890625 +3ef0000000000001 0.000015258789062500003 +3effffffffffffff 0.000030517578124999997 +3f00000000000000 0.000030517578125 +3f00000000000001 0.00003051757812500001 +3f0fffffffffffff 0.00006103515624999999 +3f10000000000000 0.00006103515625 +3f10000000000001 0.00006103515625000001 +3f1fffffffffffff 0.00012207031249999999 +3f20000000000000 0.0001220703125 +3f20000000000001 0.00012207031250000003 +3f2fffffffffffff 0.00024414062499999997 +3f30000000000000 0.000244140625 +3f30000000000001 0.00024414062500000005 +3f3fffffffffffff 0.00048828124999999995 +3f40000000000000 0.00048828125 +3f40000000000001 0.0004882812500000001 +3f4fffffffffffff 0.0009765624999999999 +3f50000000000000 0.0009765625 +3f50000000000001 0.0009765625000000002 +3f5fffffffffffff 0.0019531249999999998 +3f60000000000000 0.001953125 +3f60000000000001 0.0019531250000000004 +3f6fffffffffffff 0.0039062499999999996 +3f70000000000000 0.00390625 +3f70000000000001 0.003906250000000001 +3f7fffffffffffff 0.007812499999999999 +3f80000000000000 0.0078125 +3f80000000000001 0.007812500000000002 +3f8fffffffffffff 0.015624999999999998 +3f90000000000000 0.015625 +3f90000000000001 0.015625000000000003 +3f9fffffffffffff 0.031249999999999997 +3fa0000000000000 0.03125 +3fa0000000000001 0.03125000000000001 +3fafffffffffffff 0.06249999999999999 +3fb0000000000000 0.0625 +3fb0000000000001 0.06250000000000001 +3fbfffffffffffff 0.12499999999999999 +3fc0000000000000 0.125 +3fc0000000000001 0.12500000000000003 +3fcfffffffffffff 0.24999999999999997 +3fd0000000000000 0.25 +3fd0000000000001 0.25000000000000006 +3fdfffffffffffff 0.49999999999999994 +3fe0000000000000 0.5 +3fe0000000000001 0.5000000000000001 +3fefffffffffffff 0.9999999999999999 +3ff0000000000000 1 +3ff0000000000001 1.0000000000000002 +3fffffffffffffff 1.9999999999999998 +4000000000000000 2 +4000000000000001 2.0000000000000004 +400fffffffffffff 3.9999999999999996 +4010000000000000 4 +4010000000000001 4.000000000000001 +401fffffffffffff 7.999999999999999 +4020000000000000 8 +4020000000000001 8.000000000000002 +402fffffffffffff 15.999999999999998 +4030000000000000 16 +4030000000000001 16.000000000000004 +403fffffffffffff 31.999999999999996 +4040000000000000 32 +4040000000000001 32.00000000000001 +404fffffffffffff 63.99999999999999 +4050000000000000 64 +4050000000000001 64.00000000000001 +405fffffffffffff 127.99999999999999 +4060000000000000 128 +4060000000000001 128.00000000000003 +406fffffffffffff 255.99999999999997 +4070000000000000 256 +4070000000000001 256.00000000000006 +407fffffffffffff 511.99999999999994 +4080000000000000 512 +4080000000000001 512.0000000000001 +408fffffffffffff 1023.9999999999999 +4090000000000000 1024 +4090000000000001 1024.0000000000002 +409fffffffffffff 2047.9999999999998 +40a0000000000000 2048 +40a0000000000001 2048.0000000000005 +40afffffffffffff 4095.9999999999995 +40b0000000000000 4096 +40b0000000000001 4096.000000000001 +40bfffffffffffff 8191.999999999999 +40c0000000000000 8192 +40c0000000000001 8192.000000000002 +40cfffffffffffff 16383.999999999998 +40d0000000000000 16384 +40d0000000000001 16384.000000000004 +40dfffffffffffff 32767.999999999996 +40e0000000000000 32768 +40e0000000000001 32768.00000000001 +40efffffffffffff 65535.99999999999 +40f0000000000000 65536 +40f0000000000001 65536.00000000001 +40ffffffffffffff 131071.99999999999 +4100000000000000 131072 +4100000000000001 131072.00000000003 +410fffffffffffff 262143.99999999997 +4110000000000000 262144 +4110000000000001 262144.00000000006 +411fffffffffffff 524287.99999999994 +4120000000000000 524288 +4120000000000001 524288.0000000001 +412fffffffffffff 1048575.9999999999 +4130000000000000 1048576 +4130000000000001 1048576.0000000002 +413fffffffffffff 2097151.9999999998 +4140000000000000 2097152 +4140000000000001 2097152.0000000005 +414fffffffffffff 4194303.9999999995 +4150000000000000 4194304 +4150000000000001 4194304.000000001 +415fffffffffffff 8388607.999999999 +4160000000000000 8388608 +4160000000000001 8388608.000000002 +416fffffffffffff 16777215.999999998 +4170000000000000 16777216 +4170000000000001 16777216.000000004 +417fffffffffffff 33554431.999999996 +4180000000000000 33554432 +4180000000000001 33554432.00000001 +418fffffffffffff 67108863.99999999 +4190000000000000 67108864 +4190000000000001 67108864.00000001 +419fffffffffffff 134217727.99999999 +41a0000000000000 134217728 +41a0000000000001 134217728.00000003 +41afffffffffffff 268435455.99999997 +41b0000000000000 268435456 +41b0000000000001 268435456.00000006 +41bfffffffffffff 536870911.99999994 +41c0000000000000 536870912 +41c0000000000001 536870912.0000001 +41cfffffffffffff 1073741823.9999999 +41d0000000000000 1073741824 +41d0000000000001 1073741824.0000002 +41dfffffffffffff 2147483647.9999998 +41e0000000000000 2147483648 +41e0000000000001 2147483648.0000005 +41efffffffffffff 4294967295.9999995 +41f0000000000000 4294967296 +41f0000000000001 4294967296.000001 +41ffffffffffffff 8589934591.999999 +4200000000000000 8589934592 +4200000000000001 8589934592.000002 +420fffffffffffff 17179869183.999998 +4210000000000000 17179869184 +4210000000000001 17179869184.000004 +421fffffffffffff 34359738367.999996 +4220000000000000 34359738368 +4220000000000001 34359738368.00001 +422fffffffffffff 68719476735.99999 +4230000000000000 68719476736 +4230000000000001 68719476736.00002 +423fffffffffffff 137438953471.99998 +4240000000000000 137438953472 +4240000000000001 137438953472.00003 +424fffffffffffff 274877906943.99997 +4250000000000000 274877906944 +4250000000000001 274877906944.00006 +425fffffffffffff 549755813887.99994 +4260000000000000 549755813888 +4260000000000001 549755813888.0001 +426fffffffffffff 1099511627775.9999 +4270000000000000 1099511627776 +4270000000000001 1099511627776.0002 +427fffffffffffff 2199023255551.9998 +4280000000000000 2199023255552 +4280000000000001 2199023255552.0005 +428fffffffffffff 4398046511103.9995 +4290000000000000 4398046511104 +4290000000000001 4398046511104.001 +429fffffffffffff 8796093022207.999 +42a0000000000000 8796093022208 +42a0000000000001 8796093022208.002 +42afffffffffffff 17592186044415.998 +42b0000000000000 17592186044416 +42b0000000000001 17592186044416.004 +42bfffffffffffff 35184372088831.996 +42c0000000000000 35184372088832 +42c0000000000001 35184372088832.01 +42cfffffffffffff 70368744177663.99 +42d0000000000000 70368744177664 +42d0000000000001 70368744177664.02 +42dfffffffffffff 140737488355327.98 +42e0000000000000 140737488355328 +42e0000000000001 140737488355328.03 +42efffffffffffff 281474976710655.97 +42f0000000000000 281474976710656 +42f0000000000001 281474976710656.06 +42ffffffffffffff 562949953421311.94 +4300000000000000 562949953421312 +4300000000000001 562949953421312.1 +430fffffffffffff 1125899906842623.9 +4310000000000000 1125899906842624 +4310000000000001 1125899906842624.2 +431fffffffffffff 2251799813685247.8 +4320000000000000 2251799813685248 +4320000000000001 2251799813685248.5 +432fffffffffffff 4503599627370495.5 +4330000000000000 4503599627370496 +4330000000000001 4503599627370497 +433fffffffffffff 9007199254740991 +4340000000000000 9007199254740992 +4340000000000001 9007199254740994 +434fffffffffffff 18014398509481982 +4350000000000000 18014398509481984 +4350000000000001 18014398509481988 +435fffffffffffff 36028797018963964 +4360000000000000 36028797018963970 +4360000000000001 36028797018963976 +436fffffffffffff 72057594037927930 +4370000000000000 72057594037927940 +4370000000000001 72057594037927950 +437fffffffffffff 144115188075855860 +4380000000000000 144115188075855870 +4380000000000001 144115188075855900 +438fffffffffffff 288230376151711700 +4390000000000000 288230376151711740 +4390000000000001 288230376151711800 +439fffffffffffff 576460752303423400 +43a0000000000000 576460752303423500 +43a0000000000001 576460752303423600 +43afffffffffffff 1152921504606846800 +43b0000000000000 1152921504606847000 +43b0000000000001 1152921504606847200 +43bfffffffffffff 2305843009213693700 +43c0000000000000 2305843009213694000 +43c0000000000001 2305843009213694500 +43cfffffffffffff 4611686018427387400 +43d0000000000000 4611686018427388000 +43d0000000000001 4611686018427389000 +43dfffffffffffff 9223372036854775000 +43e0000000000000 9223372036854776000 +43e0000000000001 9223372036854778000 +43efffffffffffff 18446744073709550000 +43f0000000000000 18446744073709552000 +43f0000000000001 18446744073709556000 +43ffffffffffffff 36893488147419100000 +4400000000000000 36893488147419103000 +4400000000000001 36893488147419110000 +440fffffffffffff 73786976294838200000 +4410000000000000 73786976294838210000 +4410000000000001 73786976294838220000 +441fffffffffffff 147573952589676400000 +4420000000000000 147573952589676410000 +4420000000000001 147573952589676450000 +442fffffffffffff 295147905179352800000 +4430000000000000 295147905179352830000 +4430000000000001 295147905179352900000 +443fffffffffffff 590295810358705600000 +4440000000000000 590295810358705700000 +4440000000000001 590295810358705800000 +444fffffffffffff 1180591620717411200000 +4450000000000000 1180591620717411300000 +4450000000000001 1180591620717411600000 +445fffffffffffff 2361183241434822300000 +4460000000000000 2361183241434822600000 +4460000000000001 2361183241434823000000 +446fffffffffffff 4722366482869644700000 +4470000000000000 4722366482869645000000 +4470000000000001 4722366482869646000000 +447fffffffffffff 9444732965739289000000 +4480000000000000 9444732965739290000000 +4480000000000001 9444732965739293000000 +448fffffffffffff 18889465931478579000000 +4490000000000000 18889465931478580000000 +4490000000000001 18889465931478585000000 +449fffffffffffff 37778931862957158000000 +44a0000000000000 37778931862957160000000 +44a0000000000001 37778931862957170000000 +44afffffffffffff 75557863725914315000000 +44b0000000000000 75557863725914320000000 +44b0000000000001 75557863725914340000000 +44bfffffffffffff 151115727451828630000000 +44c0000000000000 151115727451828650000000 +44c0000000000001 151115727451828680000000 +44cfffffffffffff 302231454903657260000000 +44d0000000000000 302231454903657300000000 +44d0000000000001 302231454903657360000000 +44dfffffffffffff 604462909807314500000000 +44e0000000000000 604462909807314600000000 +44e0000000000001 604462909807314700000000 +44efffffffffffff 1208925819614629000000000 +44f0000000000000 1208925819614629200000000 +44f0000000000001 1208925819614629400000000 +44ffffffffffffff 2417851639229258000000000 +4500000000000000 2417851639229258300000000 +4500000000000001 2417851639229259000000000 +450fffffffffffff 4835703278458516000000000 +4510000000000000 4835703278458517000000000 +4510000000000001 4835703278458518000000000 +451fffffffffffff 9671406556917032000000000 +4520000000000000 9671406556917033000000000 +4520000000000001 9671406556917036000000000 +452fffffffffffff 19342813113834065000000000 +4530000000000000 19342813113834067000000000 +4530000000000001 19342813113834070000000000 +453fffffffffffff 38685626227668130000000000 +4540000000000000 38685626227668134000000000 +4540000000000001 38685626227668140000000000 +454fffffffffffff 77371252455336260000000000 +4550000000000000 77371252455336270000000000 +4550000000000001 77371252455336280000000000 +455fffffffffffff 154742504910672520000000000 +4560000000000000 154742504910672530000000000 +4560000000000001 154742504910672570000000000 +456fffffffffffff 309485009821345030000000000 +4570000000000000 309485009821345100000000000 +4570000000000001 309485009821345140000000000 +457fffffffffffff 618970019642690100000000000 +4580000000000000 618970019642690200000000000 +4580000000000001 618970019642690300000000000 +458fffffffffffff 1237940039285380100000000000 +4590000000000000 1237940039285380300000000000 +4590000000000001 1237940039285380500000000000 +459fffffffffffff 2475880078570760300000000000 +45a0000000000000 2475880078570760500000000000 +45a0000000000001 2475880078570761000000000000 +45afffffffffffff 4951760157141520500000000000 +45b0000000000000 4951760157141521000000000000 +45b0000000000001 4951760157141522000000000000 +45bfffffffffffff 9903520314283041000000000000 +45c0000000000000 9903520314283042000000000000 +45c0000000000001 9903520314283044000000000000 +45cfffffffffffff 19807040628566082000000000000 +45d0000000000000 19807040628566084000000000000 +45d0000000000001 19807040628566090000000000000 +45dfffffffffffff 39614081257132164000000000000 +45e0000000000000 39614081257132170000000000000 +45e0000000000001 39614081257132180000000000000 +45efffffffffffff 79228162514264330000000000000 +45f0000000000000 79228162514264340000000000000 +45f0000000000001 79228162514264360000000000000 +45ffffffffffffff 158456325028528660000000000000 +4600000000000000 158456325028528680000000000000 +4600000000000001 158456325028528700000000000000 +460fffffffffffff 316912650057057300000000000000 +4610000000000000 316912650057057350000000000000 +4610000000000001 316912650057057400000000000000 +461fffffffffffff 633825300114114600000000000000 +4620000000000000 633825300114114700000000000000 +4620000000000001 633825300114114800000000000000 +462fffffffffffff 1267650600228229300000000000000 +4630000000000000 1267650600228229400000000000000 +4630000000000001 1267650600228229700000000000000 diff --git a/src/promql/src/aggregate/stat_cases.txt b/src/promql/src/aggregate/stat_cases.txt new file mode 100644 index 00000000000..3ed51ba6bbc --- /dev/null +++ b/src/promql/src/aggregate/stat_cases.txt @@ -0,0 +1,1964 @@ +# Generated by promql-compat cmd/narthex-golden-aggstat built for amd64 (Prometheus v3.15.0 +# engine, seed 1, 12 cases per operation and grouping). The header is `agg +# `: param is count_values' label, `-` otherwise; quantile's q at each +# point is the `scalar` line. Points are `grid index:hex value bits`. +case agg stddev none - - +expr stddev (a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:7ff0000000000000 +series __name__=a,i=1,job=x ; 1:c0c170a000000000 +series __name__=a,i=2,job=x ; 0:ffe1ccf385ebc8a0 1:8000000000000000 +result - ; 0:fff8000000000000 1:40b170a000000000 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:c0c1e8a600000000 +result - ; 0:0 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:40cd01a600000000 1:c0cae8be00000000 3:7ff0000000000000 4:ffe1ccf385ebc8a0 5:c0ba99f800000000 6:40c739fc00000000 7:c0c891c600000000 +series __name__=a,i=1,job=y ; 0:4008000000000000 2:3ff0000000000000 3:c0a17db000000000 4:8000000000000000 5:c06aca0000000000 6:8000000000000000 7:fff0000000000000 +series __name__=a,i=2,job=x ; 0:c0c68b1400000000 1:4008000000000000 2:c0c94c3e00000000 3:0 4:c0c316c800000000 5:7ff8000000000001 6:7ff0000000000000 +result - ; 0:40c5199624b0fa68 1:40baea3e00000000 2:40b94cbe00000000 3:fff8000000000000 4:7ff0000000000000 5:7ff8000000000001 6:fff8000000000000 7:fff8000000000000 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; +series __name__=a,i=1,job=x ; 0:c0ce66c000000000 1:fff0000000000000 2:1 3:c0ccea1c00000000 +series __name__=a,i=2,job=x ; 1:40a69d0000000000 2:7ff8000000000001 +result - ; 0:0 1:fff8000000000000 2:7ff8000000000001 3:0 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:0 1:7ff8000000000001 2:0 3:40a5d27000000000 4:40a5a00800000000 6:0 +series __name__=a,i=1,job=y ; 0:4000000000000000 1:40b2cdcc00000000 2:4000000000000000 3:0 4:4000000000000000 +result - ; 0:3ff0000000000000 1:7ff8000000000001 2:3ff0000000000000 3:4095d27000000000 4:40959c0800000000 6:0 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; +series __name__=a,i=1,job=y ; +series __name__=a,i=2,job=x ; 0:c0b297f400000000 +result - ; 0:0 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; +series __name__=a,i=1,job=y ; +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 1:c0c8e52a00000000 2:7ff0000000000000 4:4008000000000000 +result - ; 1:0 2:7ff8000000000001 4:0 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:c0c97bc200000000 +series __name__=a,i=1,job=y ; 0:7ff8000000000001 +series __name__=a,i=2,job=y ; 0:40b1b47800000000 +series __name__=a,i=3,job=x ; 0:40c02cc000000000 +series __name__=a,i=4,job=x ; 0:c0ca187e00000000 +result - ; 0:7ff8000000000001 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:40c4740000000000 2:40b01d1c00000000 3:fff0000000000000 4:fff0000000000000 +series __name__=a,i=1,job=y ; 0:7ff8000000000001 1:0 2:fff0000000000000 3:4000000000000000 4:7ff0000000000000 +series __name__=a,i=2,job=x ; 0:4008000000000000 1:c0cbe5da00000000 2:0 3:4000000000000000 4:4008000000000000 +series __name__=a,i=3,job=x ; 0:40b17b2000000000 1:4008000000000000 2:40c3a8b400000000 3:1a56e1fc2f8f359 4:7ff8000000000001 +series __name__=a,i=4,job=y ; 0:4008000000000000 1:40cc9c2800000000 2:1 3:1 4:7ff8000000000001 +series __name__=a,i=5,job=y ; 0:1a56e1fc2f8f359 1:40b9b9c000000000 2:40c9028600000000 3:7ff8000000000001 4:c09726f000000000 +result - ; 0:7ff8000000000001 1:40c23354ee2808b9 2:fff8000000000000 3:7ff8000000000001 4:7ff8000000000001 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:40a32d7000000000 2:40cb80fc00000000 +series __name__=a,i=1,job=x ; 1:40c9f7f000000000 2:0 +series __name__=a,i=2,job=x ; 0:4008000000000000 1:40cddab000000000 +result - ; 0:7ff8000000000001 1:40b6064e81e436f8 2:40bb80fc00000000 +end +case agg stddev none - - +expr stddev (a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:4008000000000000 1:40beab4400000000 2:4008000000000000 3:40c8602e00000000 4:4000000000000000 6:7ff8000000000001 7:40a7d1e000000000 +series __name__=a,i=1,job=x ; 0:c0c0856000000000 1:fff0000000000000 2:3ff0000000000000 3:c0cb988e00000000 4:7fe1ccf385ebc8a0 6:40c996da00000000 7:40c035d200000000 +series __name__=a,i=2,job=y ; 1:8000000000000000 2:4008000000000000 3:fff0000000000000 4:40920e9000000000 5:ffe1ccf385ebc8a0 6:3ff0000000000000 7:40bdcb4400000000 +series __name__=a,i=3,job=x ; 0:7ff8000000000001 1:4000000000000000 2:0 5:1 6:fff0000000000000 7:c0c682a800000000 +result - ; 0:7ff8000000000001 1:fff8000000000000 2:3ff4c8dc2e423980 3:fff8000000000000 4:7ff0000000000000 5:7ff0000000000000 6:7ff8000000000001 7:40bf3537fa76fc81 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:0 1:40a014a800000000 2:0 3:40c2f1b000000000 4:4000000000000000 7:7ff0000000000000 +series __name__=a,i=1,job=y ; 0:c0cd2ab400000000 1:409f2c9000000000 2:c0bbd39800000000 3:c09acac000000000 4:c0b08d8000000000 6:8000000000000000 7:3ff0000000000000 +result job=y ; 0:40bd2ab400000000 1:403f980000000000 2:40abd39800000000 3:40b64b0800000000 4:40a08f8000000000 6:0 7:fff8000000000000 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:c0ce3e5a00000000 +series __name__=a,i=1,job=x ; 1:40c155d200000000 2:0 +series __name__=a,i=2,job=y ; 1:40ca33d000000000 2:c0b6a21000000000 +result job=x ; 0:0 1:0 2:0 +result job=y ; 1:0 2:0 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:0 1:c0b27be000000000 2:3ff0000000000000 3:c0bce9a000000000 4:40bf3b6800000000 5:40af58c800000000 +series __name__=a,i=1,job=y ; 1:c0b2b38400000000 2:40c760f400000000 3:7ff8000000000001 4:c0c87bec00000000 +series __name__=a,i=2,job=x ; 0:4008000000000000 1:fff0000000000000 2:c0c8a0ce00000000 3:c0babb7400000000 4:c0c1fa2600000000 5:8000000000000000 +result job=x ; 0:0 1:7ff8000000000001 2:0 3:0 4:0 5:0 +result job=y ; 0:0 1:403bd20000000000 2:40b7607400000000 3:7ff8000000000001 4:40c40cd000000000 5:0 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 0:4000000000000000 1:0 2:1a56e1fc2f8f359 3:c0c4624e00000000 4:3ff0000000000000 5:40cc1a3200000000 6:40ac2cb800000000 +series __name__=a,i=1,job=x ; 0:40bb5c0c00000000 1:0 2:4008000000000000 3:c094716000000000 5:c0a6dab000000000 6:1a56e1fc2f8f359 +series __name__=a,i=2,job=x ; 1:4000000000000000 2:7ff8000000000001 3:c0cb4c1200000000 4:40c0b50400000000 6:4000000000000000 +series __name__=a,i=3,job=y ; 0:7ff8000000000001 1:c0c6158600000000 2:c0cb26da00000000 3:4093f15000000000 4:7ff8000000000001 6:8000000000000000 +result job=x ; 0:40ab5a0c00000000 1:3fee2b7dddfefa66 2:7ff8000000000001 3:40b4d8bbf80dcc6b 4:40b0b48400000000 5:40c0e86f00000000 6:409a8e54e4f00aec +result job=y ; 0:7ff8000000000001 1:0 2:0 3:0 4:7ff8000000000001 6:0 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 +series __name__=a,i=1,job=x ; 0:3ff0000000000000 +series __name__=a,i=2,job=y ; +result job=x ; 0:7ff8000000000001 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:40c38b6800000000 2:0 3:c0ca1b6600000000 4:c090d08000000000 5:40c45f9200000000 +series __name__=a,i=1,job=y ; 0:8000000000000000 1:c084d72000000000 2:8000000000000000 3:0 4:c0c857aa00000000 5:7ff8000000000001 +series __name__=a,i=2,job=y ; 2:3ff0000000000000 3:4008000000000000 4:c0a27c0000000000 5:40b0e9d800000000 +series __name__=a,i=3,job=x ; 0:8000000000000000 1:4000000000000000 2:c0cd4df400000000 3:4008000000000000 4:0 5:3ff0000000000000 +result job=x ; 0:0 1:0 2:0 3:0 4:0 5:0 +result job=y ; 0:40b38b6800000000 1:0 2:3fde2b7dddfefa66 3:40b89de02df393a0 4:40b3e34225bc9ec9 5:7ff8000000000001 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:0 1:c09183d000000000 +series __name__=a,i=1,job=x ; 1:40aafb8000000000 +result job=x ; 1:0 +result job=y ; 0:0 1:0 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:3ff0000000000000 1:c0be6fa800000000 2:40c2462e00000000 3:7fe1ccf385ebc8a0 +result job=y ; 0:0 1:0 2:0 3:0 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 1:40afa33800000000 2:40bb9a9400000000 3:c08fa50000000000 4:4000000000000000 5:40bcc4a400000000 6:7ff8000000000001 7:0 +series __name__=a,i=1,job=y ; 0:ffe1ccf385ebc8a0 1:3ff0000000000000 3:1a56e1fc2f8f359 4:ffe1ccf385ebc8a0 6:0 7:4008000000000000 +series __name__=a,i=2,job=y ; 0:1 1:408144a000000000 2:0 3:7ff0000000000000 4:3ff0000000000000 5:8000000000000000 6:ffe1ccf385ebc8a0 7:40c9820a00000000 +result job=y ; 0:7ff0000000000000 1:409c02e46aee11a4 2:40ab9a9400000000 3:fff8000000000000 4:7ff0000000000000 5:40acc4a400000000 6:7ff8000000000001 7:40b80bdf75653dad +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 1:40c8fc1400000000 2:ffe1ccf385ebc8a0 +result job=y ; 1:0 2:0 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:ffe1ccf385ebc8a0 +series __name__=a,i=1,job=y ; 0:40a838a800000000 1:40b976d400000000 +series __name__=a,i=2,job=x ; 0:c0a3c06000000000 1:7ff8000000000001 +result job=x ; 0:7ff0000000000000 1:7ff8000000000001 +result job=y ; 0:0 1:0 +end +case agg stddev by job - +expr stddev by (job) (a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:7ff8000000000001 1:7ff0000000000000 2:7ff0000000000000 +result job=y ; 0:7ff8000000000001 1:7ff8000000000001 2:7ff8000000000001 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:3ff0000000000000 1:4008000000000000 +series __name__=a,i=1,job=y ; 0:c0bf3b9c00000000 1:7ff8000000000001 2:8000000000000000 +series __name__=a,i=2,job=y ; 0:4000000000000000 1:7ff0000000000000 2:7ff8000000000001 +series __name__=a,i=3,job=y ; 1:7fe1ccf385ebc8a0 2:c0c70d5000000000 +result job=x ; 0:0 1:0 +result job=y ; 0:40af3d9c00000000 1:7ff8000000000001 2:7ff8000000000001 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 1:7ff0000000000000 2:7fe1ccf385ebc8a0 3:40b1289c00000000 4:3ff0000000000000 5:7ff0000000000000 +series __name__=a,i=1,job=y ; 0:4000000000000000 1:0 2:0 3:7ff0000000000000 4:0 5:4000000000000000 +series __name__=a,i=2,job=x ; 0:0 1:3ff0000000000000 2:8000000000000000 3:7ff8000000000001 4:4000000000000000 5:c0c26d5600000000 +series __name__=a,i=3,job=x ; 0:40cb117400000000 1:40966f7000000000 2:4000000000000000 3:fff0000000000000 4:3ff0000000000000 +result job=x ; 0:40bb117400000000 1:fff8000000000000 2:7ff0000000000000 3:7ff8000000000001 4:3fde2b7dddfefa66 5:fff8000000000000 +result job=y ; 0:0 1:0 2:0 3:7ff8000000000001 4:0 5:0 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 1:c0c6329a00000000 +series __name__=a,i=1,job=y ; 0:3ff0000000000000 3:3ff0000000000000 +result job=x ; 1:0 +result job=y ; 0:0 3:0 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:c0b6159800000000 1:0 2:c0b6c66800000000 3:40cce46a00000000 +series __name__=a,i=1,job=x ; 0:fff0000000000000 1:0 2:8000000000000000 3:4008000000000000 +result job=x ; 0:fff8000000000000 1:0 2:40a6c66800000000 3:40bce2ea00000000 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:c0cad61e00000000 1:7ff8000000000001 2:40c7d67800000000 3:4000000000000000 4:40c8f9f200000000 5:7ff8000000000001 6:ffe1ccf385ebc8a0 7:40b78ff800000000 +series __name__=a,i=1,job=x ; 0:fff0000000000000 1:c0a8f2d800000000 2:7ff0000000000000 3:c0c6732400000000 4:7fe1ccf385ebc8a0 5:40c406a600000000 6:40cc816200000000 7:c0a3848800000000 +series __name__=a,i=2,job=y ; 0:4008000000000000 1:c0aac50000000000 3:40be97ac00000000 4:3ff0000000000000 5:4008000000000000 7:0 +series __name__=a,i=3,job=x ; 0:1 1:0 2:c090056000000000 3:3ff0000000000000 4:c0c2729800000000 5:4008000000000000 6:7ff0000000000000 7:0 +series __name__=a,i=4,job=y ; 0:3ff0000000000000 1:7ff0000000000000 3:1 4:c0adc97800000000 6:c0cbce1400000000 +result job=x ; 0:fff8000000000000 1:4098f2d800000000 2:fff8000000000000 3:40b673a400000000 4:7ff0000000000000 5:40b4052600000000 6:fff8000000000000 7:4093848800000000 +result job=y ; 0:40b94e26c62ffa47 1:7ff8000000000001 2:0 3:40acd6d413ba231a 4:40bbbb8797967443 5:7ff8000000000001 6:7ff0000000000000 7:40a78ff800000000 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:c0c342ce00000000 1:40ca54de00000000 2:7ff8000000000001 4:8000000000000000 5:4000000000000000 +series __name__=a,i=1,job=x ; 0:40c04cbc00000000 1:40a9823000000000 2:40c7efec00000000 3:c0beae6400000000 4:40c6b71600000000 5:3ff0000000000000 +series __name__=a,i=2,job=y ; 0:c0825cc000000000 2:407941c000000000 3:0 4:7ff8000000000001 5:7ff8000000000001 +series __name__=a,i=3,job=x ; 0:4000000000000000 1:40b8fed400000000 2:c0b0f25400000000 3:4000000000000000 4:3ff0000000000000 5:fff0000000000000 +result job=x ; 0:40b04bbc00000000 1:40987b7800000000 2:40c0348b00000000 3:40aeb06400000000 4:40b6b69600000000 5:fff8000000000000 +result job=y ; 0:40b21d0200000000 1:0 2:7ff8000000000001 3:0 4:7ff8000000000001 5:7ff8000000000001 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:4095360000000000 1:c0b2781400000000 3:7ff8000000000001 +result job=x ; 0:0 1:0 3:7ff8000000000001 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:0 2:c0836b6000000000 +series __name__=a,i=1,job=y ; 0:7ff8000000000001 1:c0b2b40400000000 2:40a6e5a000000000 +result job=y ; 0:7ff8000000000001 1:0 2:409bc07800000000 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:ffe1ccf385ebc8a0 +series __name__=a,i=1,job=y ; 0:c0c5866e00000000 +series __name__=a,i=2,job=x ; 0:4094d7b000000000 +result job=x ; 0:0 +result job=y ; 0:7ff0000000000000 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:c0a8457000000000 1:4008000000000000 2:c093704000000000 3:4000000000000000 5:8000000000000000 6:1a56e1fc2f8f359 7:7ff8000000000001 +series __name__=a,i=1,job=x ; 0:3ff0000000000000 1:40cbd8a800000000 2:7ff8000000000001 3:8000000000000000 4:fff0000000000000 5:0 6:3ff0000000000000 +series __name__=a,i=2,job=x ; 0:8000000000000000 1:c0b3768c00000000 3:4000000000000000 5:4008000000000000 6:40b5bb7800000000 7:40c085ce00000000 +series __name__=a,i=3,job=x ; 0:4098802000000000 1:40b185c400000000 2:1 3:8000000000000000 4:ffe1ccf385ebc8a0 5:8000000000000000 7:40c5d1ca00000000 +result job=x ; 0:409a84051ade78b1 1:40bbae41b8678e89 2:7ff8000000000001 3:3ff0000000000000 4:fff8000000000000 5:3ff4c8dc2e423980 6:40a47cd13a836ca8 7:7ff8000000000001 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; 2:7ff0000000000000 3:fff0000000000000 +series __name__=a,i=1,job=y ; 0:4008000000000000 1:7fe1ccf385ebc8a0 2:7ff8000000000001 3:4068df0000000000 +result job=y ; 0:0 1:0 2:7ff8000000000001 3:fff8000000000000 +end +case agg stddev without i - +expr stddev without (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:3ff0000000000000 2:0 3:40ca511e00000000 +result job=x ; 0:0 2:0 3:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:40a3db1800000000 1:40c5a27c00000000 2:40c7207000000000 3:c0c87c3e00000000 5:3ff0000000000000 +series __name__=a,i=1,job=y ; 0:4000000000000000 1:4000000000000000 2:7ff8000000000001 3:1 4:7ff8000000000001 +result i=0 ; 0:0 1:0 2:0 3:0 5:0 +result i=1 ; 0:0 1:0 2:7ff8000000000001 3:0 4:7ff8000000000001 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:c0cbecf800000000 3:7ff0000000000000 4:c09fc25000000000 +series __name__=a,i=1,job=y ; 0:0 1:4000000000000000 2:3ff0000000000000 4:3ff0000000000000 +series __name__=a,i=2,job=y ; 0:40b665fc00000000 1:40cb661e00000000 2:1a56e1fc2f8f359 3:0 4:4008000000000000 +result i=0 ; 0:0 3:7ff8000000000001 4:0 +result i=1 ; 0:0 1:0 2:0 4:0 +result i=2 ; 0:0 1:0 2:0 3:0 4:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 1:fff0000000000000 3:4008000000000000 4:c0cca2d200000000 5:40bc2d2c00000000 +series __name__=a,i=1,job=x ; 2:0 4:1a56e1fc2f8f359 5:c0c4a9e800000000 6:0 +result i=0 ; 1:7ff8000000000001 3:0 4:0 5:0 +result i=1 ; 2:0 4:0 5:0 6:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:c0c3733000000000 1:fff0000000000000 2:7ff8000000000001 +series __name__=a,i=1,job=x ; 2:40bc9da400000000 +result i=0 ; 0:0 1:7ff8000000000001 2:7ff8000000000001 +result i=1 ; 2:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 0:40b6b7dc00000000 1:4008000000000000 2:c0c639b200000000 3:8000000000000000 5:7ff8000000000001 6:0 +result i=0 ; 0:0 1:0 2:0 3:0 5:7ff8000000000001 6:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:0 +series __name__=a,i=1,job=y ; 0:c0c7fc8c00000000 1:40c4708a00000000 +series __name__=a,i=2,job=x ; 0:c0bc47c400000000 1:40b4517000000000 +series __name__=a,i=3,job=y ; 1:40bfa4b800000000 +series __name__=a,i=4,job=x ; 0:4000000000000000 1:fff0000000000000 +result i=0 ; 0:7ff8000000000001 1:0 +result i=1 ; 0:0 1:0 +result i=2 ; 0:0 1:0 +result i=3 ; 1:0 +result i=4 ; 0:0 1:7ff8000000000001 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:0 +result i=0 ; 0:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:fff0000000000000 1:3ff0000000000000 3:40c3f8ca00000000 5:8000000000000000 7:c0c8f18c00000000 +result i=0 ; 0:7ff8000000000001 1:0 3:0 5:0 7:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:0 1:3ff0000000000000 2:3ff0000000000000 3:4000000000000000 +series __name__=a,i=1,job=y ; 1:c09fd37000000000 2:40c2c21200000000 3:7ff8000000000001 4:8000000000000000 +series __name__=a,i=2,job=y ; 0:3ff0000000000000 1:7ff8000000000001 2:0 3:0 4:0 +series __name__=a,i=3,job=y ; 2:40b92f4000000000 3:fff0000000000000 +result i=0 ; 0:0 1:0 2:0 3:0 +result i=1 ; 1:0 2:0 3:7ff8000000000001 4:0 +result i=2 ; 0:0 1:7ff8000000000001 2:0 3:0 4:0 +result i=3 ; 2:0 3:7ff8000000000001 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:c0b953c000000000 2:c0b61a2c00000000 3:40c50fba00000000 +series __name__=a,i=1,job=y ; 0:1 1:40b0f04c00000000 4:7ff0000000000000 +series __name__=a,i=2,job=y ; 0:40a0735800000000 1:0 2:0 3:c0a34ce000000000 +series __name__=a,i=3,job=y ; 0:40c555ae00000000 3:40a87c1000000000 4:40cdf68400000000 +result i=0 ; 0:0 2:0 3:0 +result i=1 ; 0:0 1:0 4:7ff8000000000001 +result i=2 ; 0:0 1:0 2:0 3:0 +result i=3 ; 0:0 3:0 4:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 1:7ff8000000000001 2:4008000000000000 4:7ff0000000000000 5:408ea96000000000 6:40acccd800000000 7:c09c3fe000000000 +series __name__=a,i=1,job=x ; 0:7ff0000000000000 2:3ff0000000000000 3:7ff8000000000001 4:c0b908b400000000 5:7ff0000000000000 6:8000000000000000 7:1 +result i=0 ; 1:7ff8000000000001 2:0 4:7ff8000000000001 5:0 6:0 7:0 +result i=1 ; 0:7ff8000000000001 2:0 3:7ff8000000000001 4:0 5:7ff8000000000001 6:0 7:0 +end +case agg stddev by i - +expr stddev by (i) (a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; +series __name__=a,i=1,job=x ; +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:3ff0000000000000 2:7ff8000000000001 3:4000000000000000 4:3ff0000000000000 +series __name__=a,i=1,job=x ; 0:c08361c000000000 1:7ff0000000000000 3:4000000000000000 4:0 +series __name__=a,i=2,job=x ; 0:c0b1072c00000000 1:4008000000000000 2:40bb3d1000000000 3:3ff0000000000000 4:7ff0000000000000 +result - ; 0:414c4b39aa771c71 1:fff8000000000000 2:7ff8000000000001 3:3fcc71c71c71c71d 4:fff8000000000000 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:4000000000000000 1:3ff0000000000000 2:40c8d7a800000000 3:c0be516400000000 +series __name__=a,i=1,job=x ; 0:c0c4f63000000000 1:40b1a40800000000 3:c0c02e6e00000000 4:7ff0000000000000 +series __name__=a,i=2,job=y ; 0:7ff8000000000001 1:0 3:1a56e1fc2f8f359 4:40c7e40e00000000 +series __name__=a,i=3,job=x ; 1:4000000000000000 2:c0cd40da00000000 3:0 4:7fe1ccf385ebc8a0 +series __name__=a,i=4,job=x ; 0:4000000000000000 1:7ff8000000000001 2:7ff8000000000001 3:4008000000000000 4:ffe1ccf385ebc8a0 +result - ; 0:7ff8000000000001 1:7ff8000000000001 2:7ff8000000000001 3:416d86aedac87ae2 4:fff8000000000000 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 1:40ce7b8e00000000 2:7ff0000000000000 3:7ff8000000000001 4:40cd245400000000 5:7ff0000000000000 6:7ff8000000000001 7:c0ca73ae00000000 +series __name__=a,i=1,job=y ; 0:0 2:40c3dbc000000000 4:40c1c07600000000 5:7ff8000000000001 6:c09155e000000000 7:3ff0000000000000 +series __name__=a,i=2,job=y ; 1:c0c0a56000000000 2:409cb53000000000 3:7ff8000000000001 4:c0bc839c00000000 5:c0a54f2800000000 6:7ff8000000000001 7:7ff8000000000001 +series __name__=a,i=3,job=y ; 0:3ff0000000000000 1:c0b60e1000000000 2:7fe1ccf385ebc8a0 3:4008000000000000 4:40c30af200000000 6:c0c4a8c000000000 7:7ff8000000000001 +result - ; 0:3fd0000000000000 1:419b9c068330b8e4 2:fff8000000000000 3:7ff8000000000001 4:41909a4e8c78ac00 5:7ff8000000000001 6:7ff8000000000001 7:7ff8000000000001 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:c0c4537200000000 1:ffe1ccf385ebc8a0 3:fff0000000000000 4:fff0000000000000 6:c0a1a1f000000000 7:c0cb6fa000000000 +series __name__=a,i=1,job=y ; 0:40a9923800000000 1:c07d5d0000000000 2:40c007f200000000 3:409d26a000000000 4:7ff8000000000001 5:c0b6a41400000000 7:c0c3241200000000 +series __name__=a,i=2,job=y ; 0:fff0000000000000 2:8000000000000000 3:7ff0000000000000 4:1a56e1fc2f8f359 5:0 +result - ; 0:fff8000000000000 1:7ff0000000000000 2:41700fe7f20c4000 3:fff8000000000000 4:7ff8000000000001 5:416004e4cd0c8000 6:0 7:415133cb20b10000 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 1:3ff0000000000000 2:8000000000000000 +series __name__=a,i=1,job=x ; 0:0 2:c0cb1a7800000000 +result - ; 0:0 1:0 2:4186f4c064c20000 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; +series __name__=a,i=1,job=x ; 0:8000000000000000 +result - ; 0:0 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 1:c0c9cf6000000000 2:4000000000000000 3:7ff8000000000001 +series __name__=a,i=1,job=x ; 0:0 2:0 3:c0a05d8800000000 4:c0cd679800000000 5:40bdede400000000 +series __name__=a,i=2,job=x ; 0:c0bfa24000000000 1:7ff0000000000000 2:ffe1ccf385ebc8a0 4:7ff8000000000001 +result - ; 0:416f4592a8800000 1:fff8000000000000 2:7ff0000000000000 3:7ff8000000000001 4:7ff8000000000001 5:0 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:4000000000000000 1:4008000000000000 2:c092f42000000000 3:c0b9356800000000 4:0 5:40c18d1800000000 7:4000000000000000 +result - ; 0:0 1:0 2:0 3:0 4:0 5:0 7:0 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:7ff0000000000000 1:7ff8000000000001 +series __name__=a,i=1,job=x ; 0:3ff0000000000000 +result - ; 0:fff8000000000000 1:7ff8000000000001 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; 0:fff0000000000000 +series __name__=a,i=1,job=y ; 0:c0c62a3e00000000 +series __name__=a,i=2,job=y ; 0:3ff0000000000000 +series __name__=a,i=3,job=y ; 0:c0b4274800000000 +result - ; 0:fff8000000000000 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 1:8000000000000000 2:c0b8777800000000 3:c0ca7d8c00000000 4:4008000000000000 5:c0b09d7c00000000 6:4000000000000000 +series __name__=a,i=1,job=x ; 0:0 1:0 2:40cbd95e00000000 3:40bdb68400000000 4:c09ca93000000000 5:4000000000000000 +result - ; 0:0 1:0 2:41991a67751a9000 3:419ab64329171000 4:4129c115e7480000 5:4151452db4410000 6:0 +end +case agg stdvar none - - +expr stdvar (a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:3ff0000000000000 1:7ff0000000000000 2:7ff8000000000001 4:40c597f400000000 5:c0beb08800000000 +series __name__=a,i=1,job=y ; 0:40a1b4d800000000 1:c0ad465800000000 2:0 3:0 4:3ff0000000000000 5:40be5ee000000000 +result - ; 0:413393da11640000 1:fff8000000000000 2:7ff8000000000001 3:0 4:417d232a20c90000 5:418d20b0fab48000 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 0:0 1:c0c0936400000000 2:40bd3f9400000000 3:40ccdc4e00000000 5:c0c1830000000000 +series __name__=a,i=1,job=y ; 0:40b3de0c00000000 1:40cb7a1e00000000 2:0 3:40c171be00000000 4:0 5:7ff0000000000000 +result job=x ; 0:0 1:0 2:0 3:0 5:0 +result job=y ; 0:0 1:0 2:0 3:0 4:0 5:7ff8000000000001 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:0 2:7ff0000000000000 3:fff0000000000000 4:40c7c53a00000000 5:c0c5016000000000 6:7ff0000000000000 +series __name__=a,i=1,job=x ; 0:40b53a8000000000 3:0 5:0 6:4000000000000000 +result job=x ; 0:7ff8000000000001 1:0 2:7ff8000000000001 3:fff8000000000000 4:0 5:417b939c1e400000 6:fff8000000000000 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 1:7ff8000000000001 2:4008000000000000 4:4000000000000000 5:40c2af0c00000000 +series __name__=a,i=1,job=y ; 0:c0ca374e00000000 1:7ff8000000000001 2:40cd4f8800000000 3:7ff0000000000000 4:8000000000000000 +result job=x ; 1:7ff8000000000001 2:0 4:0 5:0 +result job=y ; 0:0 1:7ff8000000000001 2:0 3:7ff8000000000001 4:0 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:4083f08000000000 1:40c7a3e000000000 2:4091633000000000 3:c09d114000000000 4:8000000000000000 5:1 6:3ff0000000000000 +series __name__=a,i=1,job=y ; 0:c0c7206600000000 1:c0859d4000000000 2:7fe1ccf385ebc8a0 3:c0b391a800000000 4:c08a78e000000000 5:0 6:40b6367000000000 +series __name__=a,i=2,job=y ; 0:c0c4d7c200000000 1:0 2:8000000000000000 3:0 4:c0af50b000000000 5:7fe1ccf385ebc8a0 6:7ff8000000000001 +series __name__=a,i=3,job=y ; 0:1a56e1fc2f8f359 1:8000000000000000 2:8000000000000000 3:4000000000000000 4:4008000000000000 5:3ff0000000000000 6:0 +series __name__=a,i=4,job=x ; 0:40b83acc00000000 1:408c79a000000000 2:1 3:c0914e6000000000 4:3ff0000000000000 6:4000000000000000 +result job=x ; 0:0 1:0 2:0 3:0 4:0 6:0 +result job=y ; 0:418013f891b74000 1:417b47a755f6c000 2:7ff0000000000000 3:414ffa1eb4e5ffff 4:4144c936f2858000 5:7ff0000000000000 6:7ff8000000000001 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:1a56e1fc2f8f359 2:4008000000000000 +series __name__=a,i=1,job=y ; 0:c0c0357a00000000 1:7fe1ccf385ebc8a0 2:1a56e1fc2f8f359 +series __name__=a,i=2,job=y ; 0:40c73daa00000000 1:0 2:7ff8000000000001 +result job=x ; 0:7ff8000000000001 1:0 2:0 +result job=y ; 0:4198512305744000 1:7ff0000000000000 2:7ff8000000000001 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 1:8000000000000000 2:c0c1bbfe00000000 3:1a56e1fc2f8f359 4:c0b70dc000000000 5:fff0000000000000 +series __name__=a,i=1,job=y ; 0:8000000000000000 2:4000000000000000 3:0 4:40cba47200000000 5:7fe1ccf385ebc8a0 +series __name__=a,i=2,job=y ; 0:1 1:c0a2c23800000000 3:0 4:4008000000000000 5:4008000000000000 +result job=x ; 1:0 2:0 3:0 4:0 5:7ff8000000000001 +result job=y ; 0:0 1:0 2:0 3:0 4:4187de3619662000 5:7ff0000000000000 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:4000000000000000 2:40c6031800000000 +series __name__=a,i=1,job=y ; 0:40ab5fc000000000 1:40b8286000000000 2:40c4f1fa00000000 +series __name__=a,i=2,job=y ; 0:40cae4d000000000 1:7ff8000000000001 +series __name__=a,i=3,job=x ; 0:1a56e1fc2f8f359 1:0 2:1a56e1fc2f8f359 +result job=x ; 0:3ff0000000000000 1:0 2:417e488299240000 +result job=y ; 0:4179203a5c400000 1:7ff8000000000001 2:0 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:c0aef92800000000 1:40c7952e00000000 2:3ff0000000000000 3:c0c550b400000000 +series __name__=a,i=1,job=y ; 1:7ff0000000000000 2:40c4bc7800000000 3:7ff8000000000001 +result job=x ; 0:0 1:0 2:0 3:0 +result job=y ; 1:7ff8000000000001 2:0 3:7ff8000000000001 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 1:4000000000000000 2:1 +result job=x ; 1:0 2:0 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:7ff0000000000000 1:7ff8000000000001 2:40bc4c8000000000 3:40a017b000000000 4:40adb98800000000 5:3ff0000000000000 7:40ce024200000000 +series __name__=a,i=1,job=x ; 0:c0bb328000000000 1:40ce6af000000000 2:1a56e1fc2f8f359 4:4000000000000000 5:0 6:7fe1ccf385ebc8a0 7:c0ab11a000000000 +series __name__=a,i=2,job=x ; 0:1a56e1fc2f8f359 1:c0b4571c00000000 2:7ff0000000000000 3:7ff8000000000001 4:c0afa89800000000 5:40cdd29e00000000 6:0 7:8000000000000000 +result job=x ; 0:41671d87b2000000 1:4199bd7f5f981000 2:fff8000000000000 3:7ff8000000000001 4:414f5a0964d20000 5:418bcb289ccc2000 6:7ff0000000000000 7:4146e5c7b5200000 +result job=y ; 0:7ff8000000000001 1:7ff8000000000001 2:0 3:0 4:0 5:0 7:0 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; +series __name__=a,i=1,job=x ; 0:40c8a13000000000 +result job=x ; 0:0 +end +case agg stdvar by job - +expr stdvar by (job) (a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:4095b68000000000 +series __name__=a,i=1,job=x ; 0:c0cbdcd400000000 1:fff0000000000000 +series __name__=a,i=2,job=y ; 0:0 1:c097573000000000 +series __name__=a,i=3,job=y ; 0:3ff0000000000000 1:c0a4802000000000 2:7ff8000000000001 +result job=x ; 0:0 1:7ff8000000000001 +result job=y ; 0:411a2c3d58e38e38 1:41137e3c62100000 2:7ff8000000000001 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 1:4008000000000000 +series __name__=a,i=1,job=x ; 1:40c831f600000000 2:7ff0000000000000 +series __name__=a,i=2,job=x ; 0:405f250000000000 1:0 +series __name__=a,i=3,job=x ; 0:c0ad84a800000000 1:fff0000000000000 2:0 +series __name__=a,i=4,job=y ; 2:1 +result job=x ; 0:414d0dd4a6480000 1:fff8000000000000 2:fff8000000000000 +result job=y ; 2:0 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:3ff0000000000000 2:7ff0000000000000 3:4000000000000000 7:7ff0000000000000 +series __name__=a,i=1,job=x ; 0:40b3c2b400000000 2:c0c7b66000000000 3:c075878000000000 4:40af1bd800000000 5:40ca3f9a00000000 6:7ff8000000000001 7:4008000000000000 +series __name__=a,i=2,job=x ; 0:3ff0000000000000 1:4008000000000000 2:40c14fa000000000 3:3ff0000000000000 5:8000000000000000 6:4008000000000000 7:0 +series __name__=a,i=3,job=y ; 1:1a56e1fc2f8f359 2:c0c50a0600000000 3:40a5e5a800000000 4:3ff0000000000000 5:40c3151e00000000 6:0 7:0 +series __name__=a,i=4,job=y ; 0:ffe1ccf385ebc8a0 1:7ff8000000000001 2:7ff8000000000001 3:4000000000000000 4:7ff0000000000000 5:7ff0000000000000 6:7ff8000000000001 +result job=x ; 0:415865348e690000 1:0 2:419a4bb090000000 3:40dd234a84000000 4:0 5:418587d8a9452000 6:7ff8000000000001 7:4002000000000000 +result job=y ; 0:7ff0000000000000 1:7ff8000000000001 2:7ff8000000000001 3:413a9994ee200000 4:fff8000000000000 5:fff8000000000000 6:7ff8000000000001 7:fff8000000000000 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:7ff0000000000000 1:c0bd6da800000000 2:40c7655600000000 4:7ff8000000000001 5:8000000000000000 6:0 +result job=y ; 0:7ff8000000000001 1:0 2:0 4:7ff8000000000001 5:0 6:0 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:c07dc68000000000 1:c0c72b8600000000 3:7ff8000000000001 4:40ca8a0c00000000 +series __name__=a,i=1,job=x ; 0:c0cb758000000000 1:0 +series __name__=a,i=2,job=y ; 0:7ff0000000000000 1:1a56e1fc2f8f359 2:c088346000000000 4:c0cb549200000000 +series __name__=a,i=3,job=x ; 0:7ff8000000000001 1:7ff8000000000001 3:fff0000000000000 4:40c4a6fa00000000 +series __name__=a,i=4,job=y ; 0:7ff0000000000000 1:4000000000000000 2:3ff0000000000000 3:4084a00000000000 4:0 +result job=x ; 0:7ff8000000000001 1:7ff8000000000001 3:7ff8000000000001 4:0 +result job=y ; 0:fff8000000000000 1:417dd47b0b9038e4 2:41025b01e9200000 3:7ff8000000000001 4:419e3b0bc6342aab +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:4008000000000000 +series __name__=a,i=1,job=x ; +series __name__=a,i=2,job=y ; 0:4008000000000000 +series __name__=a,i=3,job=x ; 0:c0be15f800000000 +result job=x ; 0:0 +result job=y ; 0:0 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; +series __name__=a,i=1,job=x ; +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; 0:7ff0000000000000 2:c0cbac7e00000000 3:c0c08d0000000000 +series __name__=a,i=1,job=x ; 0:0 1:c0580a0000000000 2:c05ab40000000000 3:4000000000000000 +result job=x ; 0:0 1:0 2:0 3:0 +result job=y ; 0:7ff8000000000001 2:0 3:0 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:4000000000000000 1:40a480a000000000 2:1a56e1fc2f8f359 3:3ff0000000000000 5:c0a9118000000000 7:3ff0000000000000 +series __name__=a,i=1,job=y ; 0:7ff0000000000000 1:c0cd41b600000000 2:1a56e1fc2f8f359 3:4000000000000000 4:c0caf4a000000000 5:0 6:0 7:7ff8000000000001 +series __name__=a,i=2,job=x ; 0:40b67ccc00000000 1:c063298000000000 2:fff0000000000000 3:c08167a000000000 5:40ccc19400000000 6:0 7:0 +series __name__=a,i=3,job=y ; 0:0 1:408930a000000000 2:c0bb8f0000000000 3:40a91e2800000000 5:40c7a9fa00000000 6:c0c2e75c00000000 +result job=x ; 0:0 1:0 2:7ff8000000000001 3:0 5:0 6:0 7:0 +result job=y ; 0:fff8000000000000 1:418dcbc26cd571c8 2:416518b8071c71c8 3:4141823de6d71c73 4:0 5:4184c4030962c71d 6:417655a072910000 7:7ff8000000000001 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:7fe1ccf385ebc8a0 1:40726a0000000000 3:3ff0000000000000 +series __name__=a,i=1,job=y ; 0:8000000000000000 2:3ff0000000000000 3:0 +series __name__=a,i=2,job=x ; 0:4000000000000000 1:40b2a68400000000 2:7ff8000000000001 3:40b9db2800000000 +series __name__=a,i=3,job=y ; 0:ffe1ccf385ebc8a0 1:40c9c4c600000000 3:0 +result job=x ; 0:7ff0000000000000 1:415323c2c0310000 2:7ff8000000000001 3:4164e2adc1320000 +result job=y ; 0:7ff0000000000000 1:0 2:0 3:0 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:1 1:fff0000000000000 +result job=x ; 0:0 1:7ff8000000000001 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:c0bf015400000000 1:8000000000000000 2:0 3:408195e000000000 +series __name__=a,i=1,job=y ; 1:c0c6d10c00000000 2:fff0000000000000 3:4008000000000000 +series __name__=a,i=2,job=y ; 0:c0c266fc00000000 2:4008000000000000 +series __name__=a,i=3,job=x ; 1:40caa2a600000000 2:ffe1ccf385ebc8a0 3:7ff8000000000001 +series __name__=a,i=4,job=x ; 0:3ff0000000000000 2:4000000000000000 3:7ff8000000000001 +series __name__=a,i=5,job=x ; 0:8000000000000000 1:4008000000000000 2:40c7818a00000000 3:8000000000000000 +result job=x ; 0:416ab4ed398b1c71 1:4183b3cf05a10000 2:7ff0000000000000 3:7ff8000000000001 +result job=y ; 0:0 1:0 2:fff8000000000000 3:0 +end +case agg stdvar without i - +expr stdvar without (i) (a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:c0c33d8c00000000 1:1a56e1fc2f8f359 2:c0ac4ff800000000 3:4008000000000000 4:40c52a6400000000 5:3ff0000000000000 +series __name__=a,i=1,job=x ; 0:4008000000000000 1:c0c7b7a000000000 2:c0c1cd0c00000000 3:fff0000000000000 4:40c867b400000000 +series __name__=a,i=2,job=y ; 2:0 3:c0c14ff600000000 4:4008000000000000 5:0 +result job=x ; 0:0 1:0 2:0 3:7ff8000000000001 4:0 +result job=y ; 0:0 1:0 2:41490cb9d8020000 3:4172beb97e264000 4:417bfbbf00b10000 5:3fd0000000000000 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:fff0000000000000 1:40c572ce00000000 3:fff0000000000000 5:409672d000000000 6:4000000000000000 7:c0b387a000000000 +series __name__=a,i=1,job=x ; 0:c0b2ae7400000000 1:0 2:4000000000000000 3:4000000000000000 5:3ff0000000000000 6:c0c69f4000000000 7:c0c0836400000000 +series __name__=a,i=2,job=x ; 0:40a5e7f800000000 1:7ff8000000000001 2:0 3:7fe1ccf385ebc8a0 4:8000000000000000 5:7ff8000000000001 6:ffe1ccf385ebc8a0 +series __name__=a,i=3,job=y ; 0:7ff8000000000001 1:40a16ef000000000 2:4008000000000000 3:4008000000000000 5:7ff8000000000001 6:7ff0000000000000 7:c0c62a3a00000000 +result i=0 ; 0:7ff8000000000001 1:0 3:7ff8000000000001 5:0 6:0 7:0 +result i=1 ; 0:0 1:0 2:0 3:0 5:0 6:0 7:0 +result i=2 ; 0:0 1:7ff8000000000001 2:0 3:0 4:0 5:7ff8000000000001 6:0 +result i=3 ; 0:7ff8000000000001 1:0 2:0 3:0 5:7ff8000000000001 6:7ff8000000000001 7:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 1:c0c1c3ba00000000 2:8000000000000000 3:c0ccfb9e00000000 +series __name__=a,i=1,job=x ; 0:c0a7ec7800000000 1:40c90c3e00000000 2:40ba0c8c00000000 3:3ff0000000000000 4:ffe1ccf385ebc8a0 +series __name__=a,i=2,job=x ; 0:c0c7848a00000000 1:c091044000000000 2:40c9e60400000000 3:0 4:c0c3d83400000000 +series __name__=a,i=3,job=x ; 0:40cb623200000000 2:0 4:c0bba6a400000000 +series __name__=a,i=4,job=x ; 0:c0c2ffbe00000000 1:7ff0000000000000 2:4008000000000000 3:40a81eb800000000 4:c0b99e1000000000 +result i=0 ; 1:0 2:0 3:0 +result i=1 ; 0:0 1:0 2:0 3:0 4:0 +result i=2 ; 0:0 1:0 2:0 3:0 4:0 +result i=3 ; 0:0 2:0 4:0 +result i=4 ; 0:0 1:7ff8000000000001 2:0 3:0 4:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:408ba60000000000 1:c0ce3af000000000 2:3ff0000000000000 3:4084f8a000000000 4:c0bcb35c00000000 +series __name__=a,i=1,job=y ; 0:4008000000000000 1:40b3f9e000000000 2:c0b564f000000000 3:4008000000000000 4:c0c4f5d400000000 +series __name__=a,i=2,job=y ; 1:40c28ec600000000 2:7ff8000000000001 3:4008000000000000 +series __name__=a,i=3,job=y ; 2:40c5a69400000000 3:c0bb0c0000000000 +series __name__=a,i=4,job=y ; 1:7ff0000000000000 2:8000000000000000 3:ffe1ccf385ebc8a0 4:ffe1ccf385ebc8a0 +result i=0 ; 0:0 1:0 2:0 3:0 4:0 +result i=1 ; 0:0 1:0 2:0 3:0 4:0 +result i=2 ; 1:0 2:7ff8000000000001 3:0 +result i=3 ; 2:0 3:0 +result i=4 ; 1:7ff8000000000001 2:0 3:0 4:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:8000000000000000 2:c0abfbf000000000 3:40bb7fb800000000 4:3ff0000000000000 +series __name__=a,i=1,job=x ; 0:40b0d6e000000000 1:40b5c4fc00000000 2:ffe1ccf385ebc8a0 4:c0b7606c00000000 5:8000000000000000 +series __name__=a,i=2,job=y ; 1:7ff8000000000001 2:0 3:7ff8000000000001 4:c0af83a000000000 5:40c4da3a00000000 +series __name__=a,i=3,job=x ; 0:0 1:fff0000000000000 2:0 3:40c4bdce00000000 4:c0be9d2800000000 5:7ff8000000000001 +series __name__=a,i=4,job=y ; 0:c0b86a7000000000 1:0 2:8000000000000000 3:40bc7bd800000000 4:fff0000000000000 5:8000000000000000 +result i=0 ; 0:0 2:0 3:0 4:0 +result i=1 ; 0:0 1:0 2:0 4:0 5:0 +result i=2 ; 1:7ff8000000000001 2:0 3:7ff8000000000001 4:0 5:0 +result i=3 ; 0:0 1:7ff8000000000001 2:0 3:0 4:0 5:7ff8000000000001 +result i=4 ; 0:0 1:0 2:0 3:0 4:7ff8000000000001 5:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:7ff8000000000001 +series __name__=a,i=1,job=y ; 0:c0c98bbe00000000 1:c0b7919c00000000 +result i=0 ; 0:7ff8000000000001 +result i=1 ; 0:0 1:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:8000000000000000 1:40c5147a00000000 2:0 3:40c0e99000000000 4:40c140e800000000 5:4008000000000000 6:0 7:c0913cd000000000 +series __name__=a,i=1,job=y ; 0:3ff0000000000000 2:1a56e1fc2f8f359 3:4000000000000000 4:407f888000000000 5:4092c8e000000000 +series __name__=a,i=2,job=y ; 0:ffe1ccf385ebc8a0 1:40c6bf9a00000000 2:4008000000000000 3:4000000000000000 4:7ff0000000000000 5:7fe1ccf385ebc8a0 6:c0c9116800000000 7:40a5bd8800000000 +series __name__=a,i=3,job=y ; 0:40b1291400000000 1:0 2:4008000000000000 3:4000000000000000 5:4000000000000000 6:4083964000000000 7:7ff0000000000000 +series __name__=a,i=4,job=x ; 0:40bd58ec00000000 1:c085676000000000 3:0 4:c0cc89ea00000000 5:4000000000000000 6:c0a628a000000000 7:c092692000000000 +result i=0 ; 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0 +result i=1 ; 0:0 2:0 3:0 4:0 5:0 +result i=2 ; 0:0 1:0 2:0 3:0 4:7ff8000000000001 5:0 6:0 7:0 +result i=3 ; 0:0 1:0 2:0 3:0 5:0 6:0 7:7ff8000000000001 +result i=4 ; 0:0 1:0 3:0 4:0 5:0 6:0 7:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:c0ce34b800000000 1:7ff0000000000000 2:4000000000000000 +series __name__=a,i=1,job=x ; 0:8000000000000000 1:40b43b4c00000000 2:c0b9677c00000000 +series __name__=a,i=2,job=x ; 0:7ff0000000000000 2:40cac5aa00000000 +result i=0 ; 0:0 1:7ff8000000000001 2:0 +result i=1 ; 0:0 1:0 2:0 +result i=2 ; 0:7ff8000000000001 2:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:7ff0000000000000 +result i=0 ; 0:7ff8000000000001 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; 0:c0c6f49a00000000 +series __name__=a,i=1,job=y ; 0:c0c4f17600000000 +series __name__=a,i=2,job=x ; 0:c05fec0000000000 +series __name__=a,i=3,job=x ; 0:fff0000000000000 +series __name__=a,i=4,job=y ; 0:40cdcad600000000 +result i=0 ; 0:0 +result i=1 ; 0:0 +result i=2 ; 0:0 +result i=3 ; 0:7ff8000000000001 +result i=4 ; 0:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:0 1:c09ee62000000000 2:1a56e1fc2f8f359 +series __name__=a,i=1,job=y ; 0:7fe1ccf385ebc8a0 1:40c0eda000000000 2:4008000000000000 +result i=0 ; 0:0 1:0 2:0 +result i=1 ; 0:0 1:0 2:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:4000000000000000 1:40c9659200000000 3:0 4:c0b09f7400000000 5:c0cb93c000000000 +result i=0 ; 0:0 1:0 3:0 4:0 5:0 +end +case agg stdvar by i - +expr stdvar by (i) (a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:40cc39dc00000000 1:c07a100000000000 2:7ff8000000000001 3:7ff8000000000001 4:40ca253200000000 +series __name__=a,i=1,job=x ; 0:3ff0000000000000 1:c0c13ace00000000 2:c0c9b3e000000000 3:8000000000000000 4:8000000000000000 +result i=0 ; 0:0 1:0 2:7ff8000000000001 3:7ff8000000000001 4:0 +result i=1 ; 0:0 1:0 2:0 3:0 4:0 +end +case agg quantile none - - +expr quantile (1, a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:40cb9e5c00000000 +series __name__=a,i=1,job=y ; 1:1 +series __name__=a,i=2,job=y ; 0:8000000000000000 1:7ff8000000000001 +series __name__=a,i=3,job=y ; 0:7ff8000000000001 +scalar - ; 0:3ff0000000000000 1:3ff0000000000000 +result - ; 0:8000000000000000 1:40cb9e5c00000000 +end +case agg quantile none - - +expr quantile (scalar(q), a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 0:40bc56a800000000 1:4000000000000000 2:1a56e1fc2f8f359 3:40a2aea800000000 4:40c06d2200000000 5:7ff0000000000000 +series __name__=a,i=1,job=y ; 0:c0ce57bc00000000 2:4008000000000000 3:7ff8000000000001 +series __name__=a,i=2,job=y ; 0:4008000000000000 1:c0a2873000000000 3:7ff8000000000001 4:40ce4d8e00000000 5:c0a48c3000000000 +series __name__=a,i=3,job=y ; 1:40c8ff2400000000 2:7ff8000000000001 3:7ff8000000000001 4:7ff0000000000000 +scalar - ; 0:3ff8000000000000 1:bfe0000000000000 2:bfe0000000000000 3:0 4:3fd0000000000000 5:0 +result - ; 0:7ff0000000000000 1:fff0000000000000 2:fff0000000000000 3:7ff8000000000001 4:40c75d5800000000 5:fff8000000000000 +end +case agg quantile none - - +expr quantile (1.5, a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:4000000000000000 1:7ff0000000000000 2:c0c2563000000000 4:c0c5517e00000000 +series __name__=a,i=1,job=y ; 1:7fe1ccf385ebc8a0 3:c0bc8e9000000000 4:c0c5080800000000 +series __name__=a,i=2,job=x ; 0:c0b7178800000000 2:c0ca878a00000000 3:7ff0000000000000 4:4008000000000000 +scalar - ; 0:3ff8000000000000 1:3ff8000000000000 2:3ff8000000000000 3:3ff8000000000000 4:3ff8000000000000 +result - ; 0:7ff0000000000000 1:7ff0000000000000 2:7ff0000000000000 3:7ff0000000000000 4:7ff0000000000000 +end +case agg quantile none - - +expr quantile (0.25, a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:8000000000000000 1:c0cc7d8000000000 2:40c2dee000000000 3:0 +series __name__=a,i=1,job=y ; 0:3ff0000000000000 1:c0a36b7800000000 2:4008000000000000 3:4008000000000000 +scalar - ; 0:3fd0000000000000 1:3fd0000000000000 2:3fd0000000000000 3:3fd0000000000000 +result - ; 0:3fd0000000000000 1:c0c694d780000000 2:40a2e36000000000 3:3fe8000000000000 +end +case agg quantile none - - +expr quantile (scalar(q), a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:7ff8000000000001 1:3ff0000000000000 2:7ff0000000000000 3:c0c2c6a400000000 6:c0c30fc600000000 +series __name__=a,i=1,job=x ; 0:8000000000000000 1:c0b1a6b800000000 2:c0b4bfd400000000 3:40a0a8a000000000 4:7ff8000000000001 5:3ff0000000000000 6:8000000000000000 +scalar - ; 0:bfe0000000000000 1:3feccccccccccccd 2:3feccccccccccccd 3:3fe0000000000000 4:0 5:3feccccccccccccd 6:7ff8000000000001 +result - ; 0:fff0000000000000 1:c07c2f8ccccccccb 2:7ff0000000000000 3:c0ad38f800000000 4:7ff8000000000001 5:3ff0000000000000 6:7ff8000000000001 +end +case agg quantile none - - +expr quantile (scalar(q), a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 1:c0b140d000000000 +series __name__=a,i=1,job=x ; 0:7ff0000000000000 1:0 +scalar - ; 0:3feccccccccccccd 1:7ff8000000000001 +result - ; 0:fff8000000000000 1:7ff8000000000001 +end +case agg quantile none - - +expr quantile (scalar(q), a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:4008000000000000 1:4008000000000000 +series __name__=a,i=1,job=y ; 2:8000000000000000 +scalar - ; 0:0 1:3fe0000000000000 2:7ff8000000000001 +result - ; 0:4008000000000000 1:4008000000000000 2:7ff8000000000001 +end +case agg quantile none - - +expr quantile (0.1, a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:3ff0000000000000 1:c0b58e1c00000000 3:40c61a7200000000 4:c09e22f000000000 5:4008000000000000 +series __name__=a,i=1,job=y ; 1:40c9948c00000000 2:0 3:1 4:7ff8000000000001 +series __name__=a,i=2,job=x ; 1:fff0000000000000 3:7ff0000000000000 4:c0a246e000000000 5:c0c1d8e200000000 +scalar - ; 0:3fb999999999999a 1:3fb999999999999a 2:3fb999999999999a 3:3fb999999999999a 4:3fb999999999999a 5:3fb999999999999a +result - ; 0:3ff0000000000000 1:fff0000000000000 2:0 3:40a1aec19999999a 4:7ff8000000000001 5:c0c00fd833333334 +end +case agg quantile none - - +expr quantile (scalar(q), a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 0:0 1:4008000000000000 2:8000000000000000 4:7ff8000000000001 5:c0a6bb6000000000 6:0 +series __name__=a,i=1,job=x ; 0:c07de34000000000 1:7fe1ccf385ebc8a0 2:c0a0702800000000 3:c0c7692a00000000 4:fff0000000000000 5:fff0000000000000 6:fff0000000000000 +series __name__=a,i=2,job=y ; 0:7ff8000000000001 2:3ff0000000000000 3:1a56e1fc2f8f359 4:0 5:c0be6f6800000000 6:3ff0000000000000 +series __name__=a,i=3,job=y ; 0:ffe1ccf385ebc8a0 2:7ff8000000000001 3:40c8d68400000000 4:4008000000000000 5:fff0000000000000 6:c0a862b000000000 +scalar - ; 0:3ff8000000000000 1:bfe0000000000000 2:3ff0000000000000 3:3ff0000000000000 4:3ff0000000000000 5:3fe0000000000000 6:0 +result - ; 0:7ff0000000000000 1:fff0000000000000 2:3ff0000000000000 3:40c8d68400000000 4:4008000000000000 5:fff0000000000000 6:fff0000000000000 +end +case agg quantile none - - +expr quantile (1.5, a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:8000000000000000 1:1 3:40bbd76400000000 4:40c9914c00000000 5:7ff8000000000001 6:0 +series __name__=a,i=1,job=y ; 0:7ff8000000000001 1:40c6f78e00000000 2:7ff0000000000000 5:c0c00cb200000000 6:0 +series __name__=a,i=2,job=y ; 0:fff0000000000000 1:8000000000000000 2:3ff0000000000000 3:7ff0000000000000 4:c0c404f400000000 +scalar - ; 0:3ff8000000000000 1:3ff8000000000000 2:3ff8000000000000 3:3ff8000000000000 4:3ff8000000000000 5:3ff8000000000000 6:3ff8000000000000 +result - ; 0:7ff0000000000000 1:7ff0000000000000 2:7ff0000000000000 3:7ff0000000000000 4:7ff0000000000000 5:7ff0000000000000 6:7ff0000000000000 +end +case agg quantile none - - +expr quantile (scalar(q), a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; +series __name__=a,i=1,job=x ; 0:7fe1ccf385ebc8a0 +scalar - ; 0:bfe0000000000000 +result - ; 0:fff0000000000000 +end +case agg quantile none - - +expr quantile (1.5, a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:ffe1ccf385ebc8a0 2:c0c916ac00000000 3:fff0000000000000 4:40b85a5000000000 +series __name__=a,i=1,job=x ; 0:7ff8000000000001 2:8000000000000000 3:c0a49ab000000000 4:7ff8000000000001 +series __name__=a,i=2,job=y ; 3:4000000000000000 4:7ff8000000000001 +series __name__=a,i=3,job=x ; 0:4000000000000000 1:40c8d03c00000000 2:7fe1ccf385ebc8a0 3:c0b557d800000000 4:c0c1739e00000000 +scalar - ; 0:3ff8000000000000 1:3ff8000000000000 2:3ff8000000000000 3:3ff8000000000000 4:3ff8000000000000 +result - ; 0:7ff0000000000000 1:7ff0000000000000 2:7ff0000000000000 3:7ff0000000000000 4:7ff0000000000000 +end +case agg quantile by job - +expr quantile by (job) (0.1, a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 1:c0ba92d800000000 2:4000000000000000 3:4008000000000000 4:c0cac21600000000 +series __name__=a,i=1,job=x ; 0:40bee0b800000000 1:fff0000000000000 2:3ff0000000000000 3:4008000000000000 4:fff0000000000000 +scalar - ; 0:3fb999999999999a 1:3fb999999999999a 2:3fb999999999999a 3:3fb999999999999a 4:3fb999999999999a +result job=x ; 0:40bee0b800000000 1:fff8000000000000 2:3ff0000000000000 3:4008000000000000 4:fff8000000000000 +result job=y ; 1:c0ba92d800000000 2:4000000000000000 3:4008000000000000 4:c0cac21600000000 +end +case agg quantile by job - +expr quantile by (job) (0, a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:c0cbbccc00000000 1:fff0000000000000 2:40ba665c00000000 3:0 4:7ff8000000000001 +series __name__=a,i=1,job=x ; 0:7ff8000000000001 1:1a56e1fc2f8f359 2:7ff0000000000000 +series __name__=a,i=2,job=x ; 0:7fe1ccf385ebc8a0 2:7ff8000000000001 3:40b5766c00000000 4:fff0000000000000 +series __name__=a,i=3,job=y ; 0:7ff0000000000000 1:c0c128c400000000 2:3ff0000000000000 4:40c7f45200000000 +scalar - ; 0:0 1:0 2:0 3:0 4:0 +result job=x ; 0:7ff8000000000001 1:1a56e1fc2f8f359 2:fff8000000000000 3:40b5766c00000000 4:fff8000000000000 +result job=y ; 0:fff8000000000000 1:fff0000000000000 2:3ff0000000000000 3:0 4:7ff8000000000001 +end +case agg quantile by job - +expr quantile by (job) (1.5, a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; 1:7ff8000000000001 2:1 3:408bc36000000000 +series __name__=a,i=1,job=y ; 0:8000000000000000 1:4000000000000000 2:1 3:c0cd5d9200000000 +series __name__=a,i=2,job=x ; 0:40cd64b000000000 1:8000000000000000 3:0 +scalar - ; 0:3ff8000000000000 1:3ff8000000000000 2:3ff8000000000000 3:3ff8000000000000 +result job=x ; 0:7ff0000000000000 1:7ff0000000000000 3:7ff0000000000000 +result job=y ; 0:7ff0000000000000 1:7ff0000000000000 2:7ff0000000000000 3:7ff0000000000000 +end +case agg quantile by job - +expr quantile by (job) (scalar(q), a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:0 1:0 +series __name__=a,i=1,job=y ; 0:40b0fee000000000 1:40ce4e4600000000 +scalar - ; 0:3fd0000000000000 1:3fd0000000000000 +result job=x ; 0:0 1:0 +result job=y ; 0:40b0fee000000000 1:40ce4e4600000000 +end +case agg quantile by job - +expr quantile by (job) (0.1, a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:40bc838c00000000 1:c0b21a0000000000 2:fff0000000000000 3:4008000000000000 4:1a56e1fc2f8f359 +scalar - ; 0:3fb999999999999a 1:3fb999999999999a 2:3fb999999999999a 3:3fb999999999999a 4:3fb999999999999a +result job=y ; 0:40bc838c00000000 1:c0b21a0000000000 2:fff8000000000000 3:4008000000000000 4:1a56e1fc2f8f359 +end +case agg quantile by job - +expr quantile by (job) (0.1, a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:8000000000000000 1:c0c997ba00000000 3:4008000000000000 4:4008000000000000 5:7fe1ccf385ebc8a0 6:8000000000000000 +series __name__=a,i=1,job=y ; 0:c0cabac600000000 1:7ff8000000000001 2:c0c638fa00000000 3:c0c0e56e00000000 4:0 5:c0b5a32800000000 6:3ff0000000000000 +series __name__=a,i=2,job=x ; 0:0 2:7ff8000000000001 3:40bc768c00000000 4:40cd744e00000000 5:c086724000000000 6:7ff0000000000000 +scalar - ; 0:3fb999999999999a 1:3fb999999999999a 2:3fb999999999999a 3:3fb999999999999a 4:3fb999999999999a 5:3fb999999999999a 6:3fb999999999999a +result job=x ; 0:0 2:7ff8000000000001 3:40bc768c00000000 4:40cd744e00000000 5:c086724000000000 6:fff8000000000000 +result job=y ; 0:c0c80e7f00000000 1:7ff8000000000001 2:c0c638fa00000000 3:c0be697933333333 4:3fd3333333333334 5:7fac7b1f3cac7434 6:3fb999999999999a +end +case agg quantile by job - +expr quantile by (job) (0.9, a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:7ff8000000000001 2:c0cb124400000000 3:ffe1ccf385ebc8a0 +scalar - ; 0:3feccccccccccccd 1:3feccccccccccccd 2:3feccccccccccccd 3:3feccccccccccccd +result job=x ; 0:7ff8000000000001 1:7ff8000000000001 2:c0cb124400000000 3:ffe1ccf385ebc8a0 +end +case agg quantile by job - +expr quantile by (job) (scalar(q), a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:c0c1e28000000000 1:1 2:c0c5aa7c00000000 +scalar - ; 0:3ff8000000000000 1:bfe0000000000000 2:7ff8000000000001 3:3ff8000000000000 4:3ff0000000000000 +result job=x ; 0:7ff0000000000000 1:fff0000000000000 2:7ff8000000000001 +end +case agg quantile by job - +expr quantile by (job) (0, a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:c0c3335a00000000 1:1a56e1fc2f8f359 2:c095eef000000000 +series __name__=a,i=1,job=x ; 1:c0c7010400000000 2:4000000000000000 4:1a56e1fc2f8f359 +series __name__=a,i=2,job=y ; 0:7ff8000000000001 1:0 2:0 3:40b0996c00000000 4:fff0000000000000 +series __name__=a,i=3,job=y ; 0:0 1:7ff8000000000001 2:40bf900400000000 3:0 4:40c1034a00000000 +scalar - ; 0:0 1:0 2:0 3:0 4:0 +result job=x ; 1:c0c7010400000000 2:4000000000000000 4:1a56e1fc2f8f359 +result job=y ; 0:7ff8000000000001 1:7ff8000000000001 2:c095eef000000000 3:0 4:fff0000000000000 +end +case agg quantile by job - +expr quantile by (job) (scalar(q), a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; 1:7fe1ccf385ebc8a0 2:40c6b5b000000000 3:4008000000000000 +scalar - ; 0:3fe0000000000000 1:0 2:3ff8000000000000 3:bfe0000000000000 +result job=y ; 1:7fe1ccf385ebc8a0 2:7ff0000000000000 3:fff0000000000000 +end +case agg quantile by job - +expr quantile by (job) (0.9, a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:7fe1ccf385ebc8a0 1:40c4dc6e00000000 2:c0c0e51200000000 4:40901ce000000000 5:c0b4f54000000000 6:1 7:c0bb3e0800000000 +series __name__=a,i=1,job=x ; 1:0 2:4000000000000000 3:7ff0000000000000 5:4000000000000000 7:40b20d7400000000 +scalar - ; 0:3feccccccccccccd 1:3feccccccccccccd 2:3feccccccccccccd 3:3feccccccccccccd 4:3feccccccccccccd 5:3feccccccccccccd 6:3feccccccccccccd 7:3feccccccccccccd +result job=x ; 1:0 2:4000000000000000 3:fff8000000000000 5:4000000000000000 7:40b20d7400000000 +result job=y ; 0:7fe1ccf385ebc8a0 1:40c4dc6e00000000 2:c0c0e51200000000 4:40901ce000000000 5:c0b4f54000000000 6:1 7:c0bb3e0800000000 +end +case agg quantile by job - +expr quantile by (job) (1.5, a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:c0cc2ad000000000 1:4000000000000000 2:fff0000000000000 4:7ff8000000000001 5:1 6:0 7:40c6520400000000 +series __name__=a,i=1,job=y ; 0:3ff0000000000000 1:c091b06000000000 3:40c47ecc00000000 4:1a56e1fc2f8f359 6:7ff0000000000000 +series __name__=a,i=2,job=x ; 0:0 1:4008000000000000 2:40ba9c9000000000 4:c0cd107000000000 5:3ff0000000000000 6:3ff0000000000000 7:40cd4bd600000000 +series __name__=a,i=3,job=y ; 0:40ca7e1e00000000 1:0 2:ffe1ccf385ebc8a0 3:40bd9b9000000000 4:3ff0000000000000 6:8000000000000000 7:7ff8000000000001 +scalar - ; 0:3ff8000000000000 1:3ff8000000000000 2:3ff8000000000000 3:3ff8000000000000 4:3ff8000000000000 5:3ff8000000000000 6:3ff8000000000000 7:3ff8000000000000 +result job=x ; 0:7ff0000000000000 1:7ff0000000000000 2:7ff0000000000000 4:7ff0000000000000 5:7ff0000000000000 6:7ff0000000000000 7:7ff0000000000000 +result job=y ; 0:7ff0000000000000 1:7ff0000000000000 2:7ff0000000000000 3:7ff0000000000000 4:7ff0000000000000 6:7ff0000000000000 7:7ff0000000000000 +end +case agg quantile without i - +expr quantile without (i) (scalar(q), a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:c0bc320800000000 +series __name__=a,i=1,job=x ; 0:0 +series __name__=a,i=2,job=x ; 0:0 +series __name__=a,i=3,job=y ; 0:8000000000000000 +scalar - ; 0:7ff8000000000001 +result job=x ; 0:7ff8000000000001 +result job=y ; 0:7ff8000000000001 +end +case agg quantile without i - +expr quantile without (i) (0, a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:ffe1ccf385ebc8a0 1:fff0000000000000 3:4000000000000000 4:40bdb43000000000 +series __name__=a,i=1,job=y ; 0:c0ac911800000000 2:7ff8000000000001 4:3ff0000000000000 +series __name__=a,i=2,job=y ; 0:0 1:c0c9b80800000000 2:40c83bb400000000 3:40c9f05a00000000 4:40864f0000000000 +scalar - ; 0:0 1:0 2:0 3:0 4:0 +result job=y ; 0:ffe1ccf385ebc8a0 1:fff0000000000000 2:7ff8000000000001 3:4000000000000000 4:3ff0000000000000 +end +case agg quantile without i - +expr quantile without (i) (scalar(q), a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 1:7ff8000000000001 3:4008000000000000 4:4000000000000000 5:40c3390800000000 6:4008000000000000 7:c09d830000000000 +series __name__=a,i=1,job=x ; 0:ffe1ccf385ebc8a0 1:3ff0000000000000 2:40cc3fd400000000 3:3ff0000000000000 6:40a345e000000000 +scalar - ; 0:7ff8000000000001 1:3feccccccccccccd 2:7ff8000000000001 3:3ff8000000000000 4:7ff8000000000001 5:3fe0000000000000 6:7ff8000000000001 7:3feccccccccccccd +result job=x ; 0:7ff8000000000001 1:7ff8000000000001 2:7ff8000000000001 3:7ff0000000000000 4:7ff8000000000001 5:40c3390800000000 6:7ff8000000000001 7:c09d830000000000 +end +case agg quantile without i - +expr quantile without (i) (NaN, a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:fff0000000000000 1:c0b6fcb000000000 2:c0b2b2e400000000 3:4008000000000000 4:40cd47a000000000 5:3ff0000000000000 6:0 +series __name__=a,i=1,job=x ; 0:c087d80000000000 1:4000000000000000 2:c0c4b3e400000000 4:4008000000000000 5:7ff8000000000001 6:c0a288a000000000 +scalar - ; 0:7ff8000000000001 1:7ff8000000000001 2:7ff8000000000001 3:7ff8000000000001 4:7ff8000000000001 5:7ff8000000000001 6:7ff8000000000001 +result job=x ; 0:7ff8000000000001 1:7ff8000000000001 2:7ff8000000000001 4:7ff8000000000001 5:7ff8000000000001 6:7ff8000000000001 +result job=y ; 0:7ff8000000000001 1:7ff8000000000001 2:7ff8000000000001 3:7ff8000000000001 4:7ff8000000000001 5:7ff8000000000001 6:7ff8000000000001 +end +case agg quantile without i - +expr quantile without (i) (0.75, a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:4000000000000000 1:3ff0000000000000 +series __name__=a,i=1,job=x ; 0:7ff8000000000001 +series __name__=a,i=2,job=x ; 0:4008000000000000 +series __name__=a,i=3,job=x ; 0:c0b4075000000000 1:c0c8038400000000 +scalar - ; 0:3fe8000000000000 1:3fe8000000000000 +result job=x ; 0:c0a4045000000000 1:c0c8038400000000 +result job=y ; 0:4000000000000000 1:3ff0000000000000 +end +case agg quantile without i - +expr quantile without (i) (scalar(q), a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:4008000000000000 3:1 4:7ff8000000000001 +series __name__=a,i=1,job=y ; 0:40c4725200000000 1:40c00e4000000000 3:4008000000000000 6:c051120000000000 +series __name__=a,i=2,job=y ; 0:4008000000000000 5:c0bfe23c00000000 +scalar - ; 0:3ff0000000000000 1:3feccccccccccccd 2:0 3:0 4:3fd0000000000000 5:3fd0000000000000 6:3ff8000000000000 +result job=x ; 0:7ff8000000000001 1:4008000000000000 3:1 4:7ff8000000000001 +result job=y ; 0:40c4725200000000 1:40c00e4000000000 3:4008000000000000 5:c0bfe23c00000000 6:7ff0000000000000 +end +case agg quantile without i - +expr quantile without (i) (0.75, a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:7ff8000000000001 1:1 2:4000000000000000 3:fff0000000000000 4:c0ca50e200000000 5:8000000000000000 +scalar - ; 0:3fe8000000000000 1:3fe8000000000000 2:3fe8000000000000 3:3fe8000000000000 4:3fe8000000000000 5:3fe8000000000000 6:3fe8000000000000 +result job=y ; 0:7ff8000000000001 1:1 2:4000000000000000 3:fff8000000000000 4:c0ca50e200000000 5:8000000000000000 +end +case agg quantile without i - +expr quantile without (i) (scalar(q), a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:c0bf679000000000 1:c09dd4b000000000 +series __name__=a,i=1,job=y ; 1:fff0000000000000 +scalar - ; 0:3fe0000000000000 1:bfe0000000000000 2:3fd0000000000000 +result job=x ; 0:c0bf679000000000 1:fff0000000000000 +result job=y ; 1:fff0000000000000 +end +case agg quantile without i - +expr quantile without (i) (0.9, a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 2:c077028000000000 3:ffe1ccf385ebc8a0 4:40c800da00000000 5:ffe1ccf385ebc8a0 +series __name__=a,i=1,job=x ; 1:c0ab2ea800000000 2:40c4063000000000 3:7ff8000000000001 4:7ff0000000000000 5:c0bdd80c00000000 6:40b0a16800000000 +series __name__=a,i=2,job=y ; 0:c0c4e06600000000 1:40bbac5000000000 3:0 5:40bfc85400000000 6:3ff0000000000000 +series __name__=a,i=3,job=y ; 0:3ff0000000000000 1:c0be6ff400000000 2:c09019c000000000 3:3ff0000000000000 4:c0b464a400000000 5:40888d6000000000 +scalar - ; 0:3feccccccccccccd 1:3feccccccccccccd 2:3feccccccccccccd 3:3feccccccccccccd 4:3feccccccccccccd 5:3feccccccccccccd 6:3feccccccccccccd +result job=x ; 1:c0ab2ea800000000 2:40c4063000000000 3:7ff8000000000001 4:fff8000000000000 5:c0bdd80c00000000 6:40b0a16800000000 +result job=y ; 0:c090afeb33333332 1:40b5dcaf9999999a 2:c07b262666666666 3:3fe999999999999a 4:40c495559999999a 5:40ba0a3266666666 6:3ff0000000000000 +end +case agg quantile without i - +expr quantile without (i) (scalar(q), a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:40babaac00000000 1:1 2:fff0000000000000 3:c0ca81e800000000 +series __name__=a,i=1,job=x ; 0:40a52ea000000000 2:7ff0000000000000 3:7ff8000000000001 +scalar - ; 0:3feccccccccccccd 1:3ff0000000000000 2:7ff8000000000001 3:7ff8000000000001 +result job=x ; 0:40b91d8933333334 1:1 2:7ff8000000000001 3:7ff8000000000001 +end +case agg quantile without i - +expr quantile without (i) (0.75, a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; 2:7ff8000000000001 3:40c365c000000000 +series __name__=a,i=1,job=x ; 0:40c9183000000000 1:c0c25c6a00000000 3:c0cc3d0000000000 +scalar - ; 0:3fe8000000000000 1:3fe8000000000000 2:3fe8000000000000 3:3fe8000000000000 +result job=x ; 0:40c9183000000000 1:c0c25c6a00000000 3:c0cc3d0000000000 +result job=y ; 2:7ff8000000000001 3:40c365c000000000 +end +case agg quantile without i - +expr quantile without (i) (1, a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:c0cbcc3a00000000 2:40c329a200000000 3:0 4:0 6:c0c9376c00000000 +series __name__=a,i=1,job=x ; 1:4000000000000000 2:c0a255a000000000 3:c0cc6eec00000000 4:40c5c94c00000000 5:0 6:408aa6a000000000 +scalar - ; 0:3ff0000000000000 1:3ff0000000000000 2:3ff0000000000000 3:3ff0000000000000 4:3ff0000000000000 5:3ff0000000000000 6:3ff0000000000000 7:3ff0000000000000 +result job=x ; 1:4000000000000000 2:c0a255a000000000 3:c0cc6eec00000000 4:40c5c94c00000000 5:0 6:408aa6a000000000 +result job=y ; 0:c0cbcc3a00000000 2:40c329a200000000 3:0 4:0 6:c0c9376c00000000 +end +case agg quantile by i - +expr quantile by (i) (scalar(q), a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; +series __name__=a,i=1,job=x ; 0:0 1:40cd0d3000000000 2:1a56e1fc2f8f359 3:7ff8000000000001 +scalar - ; 0:3ff8000000000000 1:3fd0000000000000 2:3ff8000000000000 3:bfe0000000000000 +result i=1 ; 0:7ff0000000000000 1:40cd0d3000000000 2:7ff0000000000000 3:fff0000000000000 +end +case agg quantile by i - +expr quantile by (i) (-0.5, a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 1:0 2:c074278000000000 +series __name__=a,i=1,job=y ; 0:4000000000000000 1:8000000000000000 2:40c00a8800000000 +series __name__=a,i=2,job=y ; 0:7ff8000000000001 1:40b8654000000000 +scalar - ; 0:bfe0000000000000 1:bfe0000000000000 2:bfe0000000000000 +result i=0 ; 1:fff0000000000000 2:fff0000000000000 +result i=1 ; 0:fff0000000000000 1:fff0000000000000 2:fff0000000000000 +result i=2 ; 0:fff0000000000000 1:fff0000000000000 +end +case agg quantile by i - +expr quantile by (i) (0.5, a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 1:40ce82c400000000 +series __name__=a,i=1,job=y ; 0:408497a000000000 1:40cc3d1a00000000 +series __name__=a,i=2,job=x ; 0:40b00d0000000000 1:c0c5c04400000000 +series __name__=a,i=3,job=x ; 0:7ff8000000000001 1:c0a9af2800000000 +scalar - ; 0:3fe0000000000000 1:3fe0000000000000 +result i=0 ; 1:40ce82c400000000 +result i=1 ; 0:408497a000000000 1:40cc3d1a00000000 +result i=2 ; 0:40b00d0000000000 1:c0c5c04400000000 +result i=3 ; 0:7ff8000000000001 1:c0a9af2800000000 +end +case agg quantile by i - +expr quantile by (i) (0.9, a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:c0bb3e9400000000 +series __name__=a,i=1,job=y ; 0:3ff0000000000000 +series __name__=a,i=2,job=x ; 0:c0c4d78600000000 +series __name__=a,i=3,job=y ; 0:0 +scalar - ; 0:3feccccccccccccd +result i=0 ; 0:c0bb3e9400000000 +result i=1 ; 0:3ff0000000000000 +result i=2 ; 0:c0c4d78600000000 +result i=3 ; 0:0 +end +case agg quantile by i - +expr quantile by (i) (scalar(q), a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:40b6d41000000000 1:c088468000000000 +series __name__=a,i=1,job=y ; 0:40c9a45400000000 1:40aa2ee800000000 +series __name__=a,i=2,job=y ; 0:40c5ce2a00000000 1:7ff8000000000001 +series __name__=a,i=3,job=y ; 0:7ff8000000000001 1:7ff8000000000001 +series __name__=a,i=4,job=x ; 0:ffe1ccf385ebc8a0 1:1a56e1fc2f8f359 +scalar - ; 0:3ff0000000000000 1:0 +result i=0 ; 0:40b6d41000000000 1:c088468000000000 +result i=1 ; 0:40c9a45400000000 1:40aa2ee800000000 +result i=2 ; 0:40c5ce2a00000000 1:7ff8000000000001 +result i=3 ; 0:7ff8000000000001 1:7ff8000000000001 +result i=4 ; 0:ffe1ccf385ebc8a0 1:1a56e1fc2f8f359 +end +case agg quantile by i - +expr quantile by (i) (0.5, a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:1 1:3ff0000000000000 2:409fa10000000000 +series __name__=a,i=1,job=y ; 1:0 2:7fe1ccf385ebc8a0 +scalar - ; 0:3fe0000000000000 1:3fe0000000000000 2:3fe0000000000000 +result i=0 ; 0:1 1:3ff0000000000000 2:409fa10000000000 +result i=1 ; 1:0 2:7fe1ccf385ebc8a0 +end +case agg quantile by i - +expr quantile by (i) (0.5, a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 1:7fe1ccf385ebc8a0 3:40c2c72200000000 +series __name__=a,i=1,job=x ; 0:40b5884c00000000 2:fff0000000000000 3:7ff0000000000000 +series __name__=a,i=2,job=x ; 0:40b1044c00000000 1:7fe1ccf385ebc8a0 2:7ff0000000000000 3:7ff8000000000001 +series __name__=a,i=3,job=x ; 0:c0c643f200000000 1:3ff0000000000000 2:7ff8000000000001 3:40ab7a8000000000 +scalar - ; 0:3fe0000000000000 1:3fe0000000000000 2:3fe0000000000000 3:3fe0000000000000 +result i=0 ; 1:7fe1ccf385ebc8a0 3:40c2c72200000000 +result i=1 ; 0:40b5884c00000000 2:fff8000000000000 3:fff8000000000000 +result i=2 ; 0:40b1044c00000000 1:7fe1ccf385ebc8a0 2:fff8000000000000 3:7ff8000000000001 +result i=3 ; 0:c0c643f200000000 1:3ff0000000000000 2:7ff8000000000001 3:40ab7a8000000000 +end +case agg quantile by i - +expr quantile by (i) (1, a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 1:0 2:3ff0000000000000 +series __name__=a,i=1,job=y ; 0:ffe1ccf385ebc8a0 1:4000000000000000 +scalar - ; 0:3ff0000000000000 1:3ff0000000000000 2:3ff0000000000000 +result i=0 ; 1:0 2:3ff0000000000000 +result i=1 ; 0:ffe1ccf385ebc8a0 1:4000000000000000 +end +case agg quantile by i - +expr quantile by (i) (0.5, a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:3ff0000000000000 1:4008000000000000 2:ffe1ccf385ebc8a0 +series __name__=a,i=1,job=y ; 0:1 1:1a56e1fc2f8f359 2:c0b747a800000000 3:40c7435a00000000 4:ffe1ccf385ebc8a0 5:7ff8000000000001 +scalar - ; 0:3fe0000000000000 1:3fe0000000000000 2:3fe0000000000000 3:3fe0000000000000 4:3fe0000000000000 5:3fe0000000000000 +result i=0 ; 0:3ff0000000000000 1:4008000000000000 2:ffe1ccf385ebc8a0 +result i=1 ; 0:1 1:1a56e1fc2f8f359 2:c0b747a800000000 3:40c7435a00000000 4:ffe1ccf385ebc8a0 5:7ff8000000000001 +end +case agg quantile by i - +expr quantile by (i) (scalar(q), a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:c0abfcb800000000 +series __name__=a,i=1,job=y ; 0:c0c107fa00000000 +series __name__=a,i=2,job=x ; 0:40c3f39e00000000 +series __name__=a,i=3,job=x ; 0:7ff8000000000001 +series __name__=a,i=4,job=y ; 0:c0b0fd1800000000 +scalar - ; 0:3ff0000000000000 +result i=0 ; 0:c0abfcb800000000 +result i=1 ; 0:c0c107fa00000000 +result i=2 ; 0:40c3f39e00000000 +result i=3 ; 0:7ff8000000000001 +result i=4 ; 0:c0b0fd1800000000 +end +case agg quantile by i - +expr quantile by (i) (0.25, a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 0:ffe1ccf385ebc8a0 2:c0ab1df000000000 3:40c7c01600000000 4:fff0000000000000 5:40b6779800000000 +series __name__=a,i=1,job=x ; 1:40bb8db000000000 2:4000000000000000 3:4008000000000000 4:c0c0d92a00000000 5:c0bf439c00000000 6:40b6fdc000000000 +series __name__=a,i=2,job=y ; 0:0 1:40a16bd000000000 2:40c8753e00000000 3:fff0000000000000 4:4008000000000000 5:c0bd146800000000 6:40b75b3800000000 +series __name__=a,i=3,job=y ; 0:40c6170400000000 1:c0bf513000000000 2:c0b0b5b400000000 3:40a24aa800000000 4:0 5:7fe1ccf385ebc8a0 6:0 +scalar - ; 0:3fd0000000000000 1:3fd0000000000000 2:3fd0000000000000 3:3fd0000000000000 4:3fd0000000000000 5:3fd0000000000000 6:3fd0000000000000 +result i=0 ; 0:ffe1ccf385ebc8a0 2:c0ab1df000000000 3:40c7c01600000000 4:fff8000000000000 5:40b6779800000000 +result i=1 ; 1:40bb8db000000000 2:4000000000000000 3:4008000000000000 4:c0c0d92a00000000 5:c0bf439c00000000 6:40b6fdc000000000 +result i=2 ; 0:0 1:40a16bd000000000 2:40c8753e00000000 3:fff8000000000000 4:4008000000000000 5:c0bd146800000000 6:40b75b3800000000 +result i=3 ; 0:40c6170400000000 1:c0bf513000000000 2:c0b0b5b400000000 3:40a24aa800000000 4:0 5:7fe1ccf385ebc8a0 6:0 +end +case agg quantile by i - +expr quantile by (i) (0.5, a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:7ff0000000000000 1:4000000000000000 +series __name__=a,i=1,job=x ; 0:1 +series __name__=a,i=2,job=y ; 1:7fe1ccf385ebc8a0 +scalar - ; 0:3fe0000000000000 1:3fe0000000000000 +result i=0 ; 0:fff8000000000000 1:4000000000000000 +result i=1 ; 0:1 +result i=2 ; 1:7fe1ccf385ebc8a0 +end +case agg count_values none - job +expr count_values ("job", a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 1:ffe1ccf385ebc8a0 2:4096b48000000000 3:c0c70dca00000000 4:c0b84f8800000000 5:c0b45f1c00000000 6:0 7:1 +series __name__=a,i=1,job=y ; 0:c0cc34ce00000000 1:7ff8000000000001 2:7ff8000000000001 3:3ff0000000000000 4:fff0000000000000 5:40847e0000000000 6:0 7:c0c9b97800000000 +result job=-100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 1:3ff0000000000000 +result job=-11803.578125 ; 3:3ff0000000000000 +result job=-13170.9375 ; 7:3ff0000000000000 +result job=-14441.609375 ; 0:3ff0000000000000 +result job=-5215.109375 ; 5:3ff0000000000000 +result job=-6223.53125 ; 4:3ff0000000000000 +result job=-Inf ; 4:3ff0000000000000 +result job=0 ; 6:4000000000000000 +result job=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005 ; 7:3ff0000000000000 +result job=1 ; 3:3ff0000000000000 +result job=1453.125 ; 2:3ff0000000000000 +result job=655.75 ; 5:3ff0000000000000 +result job=NaN ; 1:3ff0000000000000 2:3ff0000000000000 +end +case agg count_values none - value +expr count_values ("value", a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:7ff8000000000001 1:4000000000000000 2:7ff8000000000001 3:3ff0000000000000 5:7ff0000000000000 6:c0ca32d800000000 +result value=+Inf ; 5:3ff0000000000000 +result value=-13413.6875 ; 6:3ff0000000000000 +result value=1 ; 3:3ff0000000000000 +result value=2 ; 1:3ff0000000000000 +result value=NaN ; 0:3ff0000000000000 2:3ff0000000000000 +end +case agg count_values none - job +expr count_values ("job", a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 0:0 1:c0c69bf600000000 2:40c1002c00000000 3:1a56e1fc2f8f359 4:c0b9a9f000000000 +series __name__=a,i=1,job=y ; 0:0 1:7ff8000000000001 2:c0c6950600000000 3:40c431fc00000000 4:ffe1ccf385ebc8a0 5:7ff8000000000001 +series __name__=a,i=2,job=y ; 0:0 2:4000000000000000 3:c0a084d000000000 4:c0afbef800000000 5:0 +series __name__=a,i=3,job=x ; 0:1a56e1fc2f8f359 1:c0bfdd5800000000 3:40a2535000000000 4:4000000000000000 5:c0bb2f7000000000 +result job=-100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 4:3ff0000000000000 +result job=-11562.046875 ; 2:3ff0000000000000 +result job=-11575.921875 ; 1:3ff0000000000000 +result job=-2114.40625 ; 3:3ff0000000000000 +result job=-4063.484375 ; 4:3ff0000000000000 +result job=-6569.9375 ; 4:3ff0000000000000 +result job=-6959.4375 ; 5:3ff0000000000000 +result job=-8157.34375 ; 1:3ff0000000000000 +result job=0 ; 0:4008000000000000 5:3ff0000000000000 +result job=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 0:3ff0000000000000 3:3ff0000000000000 +result job=10339.96875 ; 3:3ff0000000000000 +result job=2 ; 2:3ff0000000000000 4:3ff0000000000000 +result job=2345.65625 ; 3:3ff0000000000000 +result job=8704.34375 ; 2:3ff0000000000000 +result job=NaN ; 1:3ff0000000000000 5:3ff0000000000000 +end +case agg count_values none - value +expr count_values ("value", a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; 0:40b80e2800000000 +result value=6158.15625 ; 0:3ff0000000000000 +end +case agg count_values none - value +expr count_values ("value", a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; +series __name__=a,i=1,job=x ; 0:40c4e0d200000000 +series __name__=a,i=2,job=x ; 0:c0cd186600000000 +series __name__=a,i=3,job=y ; +series __name__=a,i=4,job=x ; 0:c0a2c91000000000 +result value=-14896.796875 ; 0:3ff0000000000000 +result value=-2404.53125 ; 0:3ff0000000000000 +result value=10689.640625 ; 0:3ff0000000000000 +end +case agg count_values none - job +expr count_values ("job", a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 1:c0be93a800000000 2:c0c7795e00000000 3:40aec96000000000 4:7ff8000000000001 5:c0c2970200000000 +series __name__=a,i=1,job=x ; 1:fff0000000000000 2:40c2d9aa00000000 3:0 4:408b9ee000000000 5:4000000000000000 +series __name__=a,i=2,job=x ; 0:40b80f1c00000000 2:c0c95a8000000000 3:7ff8000000000001 4:4008000000000000 5:3ff0000000000000 +series __name__=a,i=3,job=y ; 1:40c1726000000000 2:7fe1ccf385ebc8a0 4:7fe1ccf385ebc8a0 5:7ff8000000000001 +series __name__=a,i=4,job=x ; 0:4000000000000000 1:c0c0c96200000000 2:c038640000000000 3:1a56e1fc2f8f359 4:fff0000000000000 5:3ff0000000000000 +result job=-12018.734375 ; 2:3ff0000000000000 +result job=-12981 ; 2:3ff0000000000000 +result job=-24.390625 ; 2:3ff0000000000000 +result job=-7827.65625 ; 1:3ff0000000000000 +result job=-8594.765625 ; 1:3ff0000000000000 +result job=-9518.015625 ; 5:3ff0000000000000 +result job=-Inf ; 1:3ff0000000000000 4:3ff0000000000000 +result job=0 ; 3:3ff0000000000000 +result job=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 3:3ff0000000000000 +result job=1 ; 5:4000000000000000 +result job=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 2:3ff0000000000000 4:3ff0000000000000 +result job=2 ; 0:3ff0000000000000 5:3ff0000000000000 +result job=3 ; 4:3ff0000000000000 +result job=3940.6875 ; 3:3ff0000000000000 +result job=6159.109375 ; 0:3ff0000000000000 +result job=883.859375 ; 4:3ff0000000000000 +result job=8932.75 ; 1:3ff0000000000000 +result job=9651.328125 ; 2:3ff0000000000000 +result job=NaN ; 3:3ff0000000000000 4:3ff0000000000000 5:3ff0000000000000 +end +case agg count_values none - job +expr count_values ("job", a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:7ff0000000000000 +series __name__=a,i=1,job=y ; 0:c0c40f8a00000000 1:7ff8000000000001 +result job=+Inf ; 0:3ff0000000000000 +result job=-10271.078125 ; 0:3ff0000000000000 +result job=NaN ; 1:3ff0000000000000 +end +case agg count_values none - value +expr count_values ("value", a) +grid 0 1000 4 +series __name__=a,i=0,job=x ; 0:c0a350c800000000 1:4000000000000000 2:4008000000000000 +series __name__=a,i=1,job=x ; 1:4090b2c000000000 2:0 3:c0ccb91000000000 +series __name__=a,i=2,job=x ; 0:40a4315000000000 1:c0ce5d3800000000 2:40cb336a00000000 3:fff0000000000000 +series __name__=a,i=3,job=y ; 0:4000000000000000 1:7ff0000000000000 2:c0c0b58a00000000 +result value=+Inf ; 1:3ff0000000000000 +result value=-14706.125 ; 3:3ff0000000000000 +result value=-15546.4375 ; 1:3ff0000000000000 +result value=-2472.390625 ; 0:3ff0000000000000 +result value=-8555.078125 ; 2:3ff0000000000000 +result value=-Inf ; 3:3ff0000000000000 +result value=0 ; 2:3ff0000000000000 +result value=1068.6875 ; 1:3ff0000000000000 +result value=13926.828125 ; 2:3ff0000000000000 +result value=2 ; 0:3ff0000000000000 1:3ff0000000000000 +result value=2584.65625 ; 0:3ff0000000000000 +result value=3 ; 2:3ff0000000000000 +end +case agg count_values none - value +expr count_values ("value", a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:4083e3a000000000 2:40b31f1000000000 3:4008000000000000 4:40c128a400000000 +result value=3 ; 3:3ff0000000000000 +result value=4895.0625 ; 2:3ff0000000000000 +result value=636.453125 ; 0:3ff0000000000000 +result value=8785.28125 ; 4:3ff0000000000000 +end +case agg count_values none - value +expr count_values ("value", a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:40bbbc7c00000000 +series __name__=a,i=1,job=y ; 0:c0b1e3e000000000 1:3ff0000000000000 +series __name__=a,i=2,job=y ; 0:0 +series __name__=a,i=3,job=x ; 0:40c38f7c00000000 1:c0c5a63a00000000 +result value=-11084.453125 ; 1:3ff0000000000000 +result value=-4579.875 ; 0:3ff0000000000000 +result value=0 ; 0:3ff0000000000000 +result value=1 ; 1:3ff0000000000000 +result value=10014.96875 ; 0:3ff0000000000000 +result value=7100.484375 ; 0:3ff0000000000000 +end +case agg count_values none - job +expr count_values ("job", a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:8000000000000000 1:c0c77aea00000000 +series __name__=a,i=1,job=x ; 0:4000000000000000 1:409805f000000000 2:4008000000000000 4:7ff8000000000001 +series __name__=a,i=2,job=x ; 0:0 1:7ff8000000000001 3:7ff8000000000001 4:c0beb6d400000000 +series __name__=a,i=3,job=y ; 0:4000000000000000 2:c0c17a0c00000000 3:8000000000000000 4:c0b9924c00000000 +result job=-0 ; 0:3ff0000000000000 3:3ff0000000000000 +result job=-12021.828125 ; 1:3ff0000000000000 +result job=-6546.296875 ; 4:3ff0000000000000 +result job=-7862.828125 ; 4:3ff0000000000000 +result job=-8948.09375 ; 2:3ff0000000000000 +result job=0 ; 0:3ff0000000000000 +result job=1537.484375 ; 1:3ff0000000000000 +result job=2 ; 0:4000000000000000 +result job=3 ; 2:3ff0000000000000 +result job=NaN ; 1:3ff0000000000000 3:3ff0000000000000 4:3ff0000000000000 +end +case agg count_values none - value +expr count_values ("value", a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; 0:40a64fe800000000 +series __name__=a,i=1,job=y ; +series __name__=a,i=2,job=x ; 0:0 +result value=0 ; 0:3ff0000000000000 +result value=2855.953125 ; 0:3ff0000000000000 +end +case agg count_values by job value +expr count_values by (job) ("value", a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:c0a53ce000000000 1:c0cc7ef200000000 3:c0c858e400000000 6:c0c8fba800000000 7:40c1f36200000000 +series __name__=a,i=1,job=y ; 0:c0c0595200000000 1:c0c8d72800000000 2:7ff8000000000001 3:c0cdd35800000000 4:c0a8001800000000 5:0 6:0 7:8000000000000000 +series __name__=a,i=2,job=y ; 2:0 3:4000000000000000 4:40c3764c00000000 5:4000000000000000 7:0 +series __name__=a,i=3,job=x ; 0:7ff8000000000001 1:4008000000000000 3:40b4f44400000000 4:c0c10e1a00000000 5:40b17d0000000000 6:7ff8000000000001 +result job=x,value=-12465.78125 ; 3:3ff0000000000000 +result job=x,value=-12791.3125 ; 6:3ff0000000000000 +result job=x,value=-14589.890625 ; 1:3ff0000000000000 +result job=x,value=-2718.4375 ; 0:3ff0000000000000 +result job=x,value=-8732.203125 ; 4:3ff0000000000000 +result job=x,value=3 ; 1:3ff0000000000000 +result job=x,value=4477 ; 5:3ff0000000000000 +result job=x,value=5364.265625 ; 3:3ff0000000000000 +result job=x,value=9190.765625 ; 7:3ff0000000000000 +result job=x,value=NaN ; 0:3ff0000000000000 6:3ff0000000000000 +result job=y,value=-0 ; 7:3ff0000000000000 +result job=y,value=-12718.3125 ; 1:3ff0000000000000 +result job=y,value=-15270.6875 ; 3:3ff0000000000000 +result job=y,value=-3072.046875 ; 4:3ff0000000000000 +result job=y,value=-8370.640625 ; 0:3ff0000000000000 +result job=y,value=0 ; 2:3ff0000000000000 5:3ff0000000000000 6:3ff0000000000000 7:3ff0000000000000 +result job=y,value=2 ; 3:3ff0000000000000 5:3ff0000000000000 +result job=y,value=9964.59375 ; 4:3ff0000000000000 +result job=y,value=NaN ; 2:3ff0000000000000 +end +case agg count_values by job __name__ +expr count_values by (job) ("__name__", a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 1:4000000000000000 2:1 3:0 4:0 +series __name__=a,i=1,job=x ; 0:3ff0000000000000 1:40c815ea00000000 3:4091b2a000000000 4:1 5:40a2421800000000 +result __name__=0,job=y ; 3:3ff0000000000000 4:3ff0000000000000 +result __name__=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,job=x ; 4:3ff0000000000000 +result __name__=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,job=y ; 2:3ff0000000000000 +result __name__=1,job=x ; 0:3ff0000000000000 +result __name__=1132.65625,job=x ; 3:3ff0000000000000 +result __name__=12331.828125,job=x ; 1:3ff0000000000000 +result __name__=2,job=y ; 1:3ff0000000000000 +result __name__=2337.046875,job=x ; 5:3ff0000000000000 +end +case agg count_values by job value +expr count_values by (job) ("value", a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:c085538000000000 2:7fe1ccf385ebc8a0 3:c0aba9d000000000 5:7ff0000000000000 +series __name__=a,i=1,job=y ; 0:0 1:1a56e1fc2f8f359 2:c0c233cc00000000 4:0 5:4000000000000000 +series __name__=a,i=2,job=y ; 0:40a8546800000000 1:4000000000000000 4:7ff8000000000001 +result job=x,value=+Inf ; 5:3ff0000000000000 +result job=x,value=-3540.90625 ; 3:3ff0000000000000 +result job=x,value=-682.4375 ; 1:3ff0000000000000 +result job=x,value=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 2:3ff0000000000000 +result job=x,value=NaN ; 0:3ff0000000000000 +result job=y,value=-9319.59375 ; 2:3ff0000000000000 +result job=y,value=0 ; 0:3ff0000000000000 4:3ff0000000000000 +result job=y,value=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 1:3ff0000000000000 +result job=y,value=2 ; 1:3ff0000000000000 5:3ff0000000000000 +result job=y,value=3114.203125 ; 0:3ff0000000000000 +result job=y,value=NaN ; 4:3ff0000000000000 +end +case agg count_values by job job +expr count_values by (job) ("job", a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:40a4529800000000 1:1a56e1fc2f8f359 +series __name__=a,i=1,job=x ; 0:407e2f0000000000 1:1 +series __name__=a,i=2,job=y ; 1:8000000000000000 +series __name__=a,i=3,job=x ; 0:3ff0000000000000 1:7ff8000000000001 +result job=-0 ; 1:3ff0000000000000 +result job=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005 ; 1:3ff0000000000000 +result job=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 1:3ff0000000000000 +result job=1 ; 0:3ff0000000000000 +result job=2601.296875 ; 0:3ff0000000000000 +result job=482.9375 ; 0:3ff0000000000000 +result job=NaN ; 1:3ff0000000000000 +end +case agg count_values by job job +expr count_values by (job) ("job", a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:4000000000000000 1:40cd4bf000000000 3:40b7219c00000000 4:7fe1ccf385ebc8a0 +series __name__=a,i=1,job=y ; 0:7ff8000000000001 1:c0bf4a6000000000 2:0 3:7ff0000000000000 +series __name__=a,i=2,job=x ; 1:7ff8000000000001 2:c075360000000000 3:c0b3152400000000 4:40b63ecc00000000 +result job=+Inf ; 3:3ff0000000000000 +result job=-339.375 ; 2:3ff0000000000000 +result job=-4885.140625 ; 3:3ff0000000000000 +result job=-8010.375 ; 1:3ff0000000000000 +result job=0 ; 2:3ff0000000000000 +result job=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 4:3ff0000000000000 +result job=14999.875 ; 1:3ff0000000000000 +result job=2 ; 0:3ff0000000000000 +result job=5694.796875 ; 4:3ff0000000000000 +result job=5921.609375 ; 3:3ff0000000000000 +result job=NaN ; 0:3ff0000000000000 1:3ff0000000000000 +end +case agg count_values by job job +expr count_values by (job) ("job", a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:40cd8f3c00000000 1:7ff0000000000000 2:7ff0000000000000 3:1a56e1fc2f8f359 4:0 +series __name__=a,i=1,job=x ; 0:7ff8000000000001 1:0 2:0 3:4000000000000000 4:8000000000000000 +series __name__=a,i=2,job=x ; 0:7ff8000000000001 1:40c1522c00000000 2:4008000000000000 3:40c6de0e00000000 4:40ca5fe400000000 +result job=+Inf ; 1:3ff0000000000000 2:3ff0000000000000 +result job=-0 ; 4:3ff0000000000000 +result job=0 ; 1:3ff0000000000000 2:3ff0000000000000 4:3ff0000000000000 +result job=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 3:3ff0000000000000 +result job=11708.109375 ; 3:3ff0000000000000 +result job=13503.78125 ; 4:3ff0000000000000 +result job=15134.46875 ; 0:3ff0000000000000 +result job=2 ; 3:3ff0000000000000 +result job=3 ; 2:3ff0000000000000 +result job=8868.34375 ; 1:3ff0000000000000 +result job=NaN ; 0:4000000000000000 +end +case agg count_values by job value +expr count_values by (job) ("value", a) +grid 0 1000 3 +series __name__=a,i=0,job=x ; 0:4000000000000000 1:c0b9cadc00000000 +result job=x,value=-6602.859375 ; 1:3ff0000000000000 +result job=x,value=2 ; 0:3ff0000000000000 +end +case agg count_values by job job +expr count_values by (job) ("job", a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; +series __name__=a,i=1,job=x ; 0:7ff0000000000000 +series __name__=a,i=2,job=y ; 0:3ff0000000000000 +series __name__=a,i=3,job=y ; +result job=+Inf ; 0:3ff0000000000000 +result job=1 ; 0:3ff0000000000000 +end +case agg count_values by job value +expr count_values by (job) ("value", a) +grid 0 1000 1 +series __name__=a,i=0,job=y ; +series __name__=a,i=1,job=x ; +end +case agg count_values by job job +expr count_values by (job) ("job", a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:4080c46000000000 1:0 2:0 +result job=0 ; 1:3ff0000000000000 2:3ff0000000000000 +result job=536.546875 ; 0:3ff0000000000000 +end +case agg count_values by job job +expr count_values by (job) ("job", a) +grid 0 1000 7 +series __name__=a,i=0,job=y ; 0:7ff8000000000001 1:0 2:0 4:4000000000000000 5:0 6:4008000000000000 +series __name__=a,i=1,job=y ; 0:3ff0000000000000 1:c0cd3b8c00000000 2:4094bc2000000000 3:7ff8000000000001 6:7ff8000000000001 +result job=-14967.09375 ; 1:3ff0000000000000 +result job=0 ; 1:3ff0000000000000 2:3ff0000000000000 5:3ff0000000000000 +result job=1 ; 0:3ff0000000000000 +result job=1327.03125 ; 2:3ff0000000000000 +result job=2 ; 4:3ff0000000000000 +result job=3 ; 6:3ff0000000000000 +result job=NaN ; 0:3ff0000000000000 3:3ff0000000000000 6:3ff0000000000000 +end +case agg count_values by job job +expr count_values by (job) ("job", a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:40cd231600000000 1:40b4ed4000000000 +series __name__=a,i=1,job=y ; 0:4008000000000000 1:c0b9b9e800000000 +series __name__=a,i=2,job=y ; 0:fff0000000000000 1:c0ce442a00000000 +result job=-15496.328125 ; 1:3ff0000000000000 +result job=-6585.90625 ; 1:3ff0000000000000 +result job=-Inf ; 0:3ff0000000000000 +result job=14918.171875 ; 0:3ff0000000000000 +result job=3 ; 0:3ff0000000000000 +result job=5357.25 ; 1:3ff0000000000000 +end +case agg count_values without i,__name__ __name__ +expr count_values without (i,__name__) ("__name__", a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:40b48f0800000000 1:0 2:c0cd439800000000 4:4000000000000000 6:7ff8000000000001 7:40b7a24800000000 +series __name__=a,i=1,job=x ; 0:4000000000000000 1:4000000000000000 2:c0c5bbac00000000 3:3ff0000000000000 4:0 5:4008000000000000 6:4000000000000000 7:0 +series __name__=a,i=2,job=y ; 0:0 1:8000000000000000 2:1 3:7ff8000000000001 5:c0c6211e00000000 6:4089cc0000000000 7:7ff8000000000001 +series __name__=a,i=3,job=y ; 0:c0b9a6bc00000000 1:4008000000000000 3:7ff8000000000001 4:7ff0000000000000 6:40c9833600000000 7:40c9c19400000000 +result job=x ; 0:4000000000000000 1:4000000000000000 2:4000000000000000 3:3ff0000000000000 4:4000000000000000 5:3ff0000000000000 6:4000000000000000 7:4000000000000000 +result job=y ; 0:4000000000000000 1:4000000000000000 2:3ff0000000000000 3:4000000000000000 4:3ff0000000000000 5:3ff0000000000000 6:4000000000000000 7:4000000000000000 +end +case agg count_values without i __name__ +expr count_values without (i) ("__name__", a) +grid 0 1000 7 +series __name__=a,i=0,job=x ; 0:0 1:c0b9f0cc00000000 4:409b7d7000000000 5:40a713b800000000 6:7fe1ccf385ebc8a0 +series __name__=a,i=1,job=x ; 0:7fe1ccf385ebc8a0 1:0 2:40c726f600000000 4:7ff8000000000001 5:1 6:4000000000000000 +result job=x ; 0:4000000000000000 1:4000000000000000 2:3ff0000000000000 4:4000000000000000 5:4000000000000000 6:4000000000000000 +end +case agg count_values without i,job job +expr count_values without (i,job) ("job", a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 1:7ff0000000000000 2:c0c701da00000000 3:7ff8000000000001 4:0 5:40af710800000000 6:c0a7e69800000000 7:40cce9f200000000 +series __name__=a,i=1,job=y ; 0:3ff0000000000000 3:4008000000000000 4:7ff8000000000001 6:40c3383c00000000 7:3ff0000000000000 +result - ; 0:3ff0000000000000 1:3ff0000000000000 2:3ff0000000000000 3:4000000000000000 4:4000000000000000 5:3ff0000000000000 6:4000000000000000 7:4000000000000000 +end +case agg count_values without i,job job +expr count_values without (i,job) ("job", a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; 0:409ef45000000000 +result - ; 0:3ff0000000000000 +end +case agg count_values without i __name__ +expr count_values without (i) ("__name__", a) +grid 0 1000 6 +series __name__=a,i=0,job=y ; 1:4008000000000000 3:40c0be6200000000 4:0 5:4008000000000000 +series __name__=a,i=1,job=x ; 0:c095fdd000000000 1:0 2:7ff8000000000001 3:40cd1fc600000000 4:40af829000000000 5:4000000000000000 +series __name__=a,i=2,job=y ; 0:0 1:7ff8000000000001 2:1 3:7ff8000000000001 4:40bcdbcc00000000 5:7ff0000000000000 +result job=x ; 0:3ff0000000000000 1:3ff0000000000000 2:3ff0000000000000 3:3ff0000000000000 4:3ff0000000000000 5:3ff0000000000000 +result job=y ; 0:3ff0000000000000 1:4000000000000000 2:3ff0000000000000 3:4000000000000000 4:4000000000000000 5:4000000000000000 +end +case agg count_values without i,__name__ __name__ +expr count_values without (i,__name__) ("__name__", a) +grid 0 1000 5 +series __name__=a,i=0,job=x ; 0:8000000000000000 1:4008000000000000 2:c0c2339a00000000 3:ffe1ccf385ebc8a0 4:4008000000000000 +series __name__=a,i=1,job=x ; 2:4000000000000000 4:7ff8000000000001 +result job=x ; 0:3ff0000000000000 1:3ff0000000000000 2:4000000000000000 3:3ff0000000000000 4:4000000000000000 +end +case agg count_values without i value +expr count_values without (i) ("value", a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:3ff0000000000000 1:0 +series __name__=a,i=1,job=x ; 0:c0baa3b000000000 1:fff0000000000000 +series __name__=a,i=2,job=y ; 0:408c4e8000000000 1:c0bb6af400000000 +result job=x,value=-6819.6875 ; 0:3ff0000000000000 +result job=x,value=-Inf ; 1:3ff0000000000000 +result job=x,value=0 ; 1:3ff0000000000000 +result job=x,value=1 ; 0:3ff0000000000000 +result job=y,value=-7018.953125 ; 1:3ff0000000000000 +result job=y,value=905.8125 ; 0:3ff0000000000000 +end +case agg count_values without i __name__ +expr count_values without (i) ("__name__", a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 1:4008000000000000 2:7ff0000000000000 3:4090615000000000 4:40b93d1c00000000 +series __name__=a,i=1,job=x ; 1:c0704c4000000000 3:40c2e22000000000 5:40c9534600000000 +result job=x ; 1:4000000000000000 2:3ff0000000000000 3:4000000000000000 4:3ff0000000000000 5:3ff0000000000000 +end +case agg count_values without i,__name__ __name__ +expr count_values without (i,__name__) ("__name__", a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:0 1:40a7baa000000000 +series __name__=a,i=1,job=x ; +series __name__=a,i=2,job=y ; +series __name__=a,i=3,job=y ; 0:0 1:406a6b0000000000 +result job=x ; 0:3ff0000000000000 1:3ff0000000000000 +result job=y ; 0:3ff0000000000000 1:3ff0000000000000 +end +case agg count_values without i,__name__ __name__ +expr count_values without (i,__name__) ("__name__", a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:c0c3226200000000 2:c09d736000000000 +series __name__=a,i=1,job=x ; 0:c099719000000000 2:4008000000000000 +series __name__=a,i=2,job=y ; 2:40c9d56600000000 +result job=x ; 0:3ff0000000000000 2:3ff0000000000000 +result job=y ; 0:3ff0000000000000 2:4000000000000000 +end +case agg count_values without i value +expr count_values without (i) ("value", a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; 0:0 2:40bece3000000000 3:1a56e1fc2f8f359 +result job=y,value=0 ; 0:3ff0000000000000 +result job=y,value=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 3:3ff0000000000000 +result job=y,value=7886.1875 ; 2:3ff0000000000000 +end +case agg count_values without i value +expr count_values without (i) ("value", a) +grid 0 1000 8 +series __name__=a,i=0,job=y ; 0:3ff0000000000000 1:8000000000000000 2:7ff8000000000001 3:8000000000000000 4:ffe1ccf385ebc8a0 5:c0c1014400000000 7:7ff8000000000001 +series __name__=a,i=1,job=x ; 2:c095e20000000000 3:40add8f000000000 4:7ff0000000000000 6:7ff8000000000001 7:3ff0000000000000 +series __name__=a,i=2,job=x ; 1:40c557b400000000 2:40ba8a2800000000 3:c0b7dde000000000 4:4008000000000000 5:40b821d400000000 6:40b961ec00000000 7:40be49d400000000 +series __name__=a,i=3,job=y ; 1:40c3351a00000000 3:7ff0000000000000 4:1 5:4008000000000000 6:40ca238000000000 +result job=x,value=+Inf ; 4:3ff0000000000000 +result job=x,value=-1400.5 ; 2:3ff0000000000000 +result job=x,value=-6109.875 ; 3:3ff0000000000000 +result job=x,value=1 ; 7:3ff0000000000000 +result job=x,value=10927.40625 ; 1:3ff0000000000000 +result job=x,value=3 ; 4:3ff0000000000000 +result job=x,value=3820.46875 ; 3:3ff0000000000000 +result job=x,value=6177.828125 ; 5:3ff0000000000000 +result job=x,value=6497.921875 ; 6:3ff0000000000000 +result job=x,value=6794.15625 ; 2:3ff0000000000000 +result job=x,value=7753.828125 ; 7:3ff0000000000000 +result job=x,value=NaN ; 6:3ff0000000000000 +result job=y,value=+Inf ; 3:3ff0000000000000 +result job=y,value=-0 ; 1:3ff0000000000000 3:3ff0000000000000 +result job=y,value=-100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 4:3ff0000000000000 +result job=y,value=-8706.53125 ; 5:3ff0000000000000 +result job=y,value=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005 ; 4:3ff0000000000000 +result job=y,value=1 ; 0:3ff0000000000000 +result job=y,value=13383 ; 6:3ff0000000000000 +result job=y,value=3 ; 5:3ff0000000000000 +result job=y,value=9834.203125 ; 1:3ff0000000000000 +result job=y,value=NaN ; 2:3ff0000000000000 7:3ff0000000000000 +end +case agg count_values by i value +expr count_values by (i) ("value", a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; 0:4000000000000000 +series __name__=a,i=1,job=x ; 0:40c0ac1e00000000 +result i=0,value=2 ; 0:3ff0000000000000 +result i=1,value=8536.234375 ; 0:3ff0000000000000 +end +case agg count_values by i value +expr count_values by (i) ("value", a) +grid 0 1000 3 +series __name__=a,i=0,job=y ; 0:7ff8000000000001 1:40cd33b000000000 2:40ac695000000000 +series __name__=a,i=1,job=x ; 1:4008000000000000 2:4000000000000000 +series __name__=a,i=2,job=y ; 0:40b3f0e800000000 1:1a56e1fc2f8f359 2:7ff8000000000001 +result i=0,value=14951.375 ; 1:3ff0000000000000 +result i=0,value=3636.65625 ; 2:3ff0000000000000 +result i=0,value=NaN ; 0:3ff0000000000000 +result i=1,value=2 ; 2:3ff0000000000000 +result i=1,value=3 ; 1:3ff0000000000000 +result i=2,value=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 1:3ff0000000000000 +result i=2,value=5104.90625 ; 0:3ff0000000000000 +result i=2,value=NaN ; 2:3ff0000000000000 +end +case agg count_values by i __name__ +expr count_values by (i) ("__name__", a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 0:0 1:1 5:40ce296400000000 +series __name__=a,i=1,job=x ; 0:4008000000000000 1:0 2:409c299000000000 5:7ff8000000000001 +result __name__=0,i=0 ; 0:3ff0000000000000 +result __name__=0,i=1 ; 1:3ff0000000000000 +result __name__=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000005,i=0 ; 1:3ff0000000000000 +result __name__=15442.78125,i=0 ; 5:3ff0000000000000 +result __name__=1802.390625,i=1 ; 2:3ff0000000000000 +result __name__=3,i=1 ; 0:3ff0000000000000 +result __name__=NaN,i=1 ; 5:3ff0000000000000 +end +case agg count_values by i value +expr count_values by (i) ("value", a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:7ff8000000000001 1:40c895d800000000 2:0 3:4000000000000000 4:40c1054000000000 5:7ff0000000000000 6:c0aadca000000000 7:40a182d800000000 +series __name__=a,i=1,job=x ; 0:4000000000000000 1:7ff0000000000000 2:c0a233f800000000 5:4000000000000000 6:40af700000000000 7:7ff8000000000001 +series __name__=a,i=2,job=y ; 0:7ff8000000000001 1:c0c070ec00000000 2:3ff0000000000000 3:7fe1ccf385ebc8a0 4:c0b61cdc00000000 5:c0c07a2e00000000 6:7ff0000000000000 7:7ff8000000000001 +result i=0,value=+Inf ; 5:3ff0000000000000 +result i=0,value=-3438.3125 ; 6:3ff0000000000000 +result i=0,value=0 ; 2:3ff0000000000000 +result i=0,value=12587.6875 ; 1:3ff0000000000000 +result i=0,value=2 ; 3:3ff0000000000000 +result i=0,value=2241.421875 ; 7:3ff0000000000000 +result i=0,value=8714.5 ; 4:3ff0000000000000 +result i=0,value=NaN ; 0:3ff0000000000000 +result i=1,value=+Inf ; 1:3ff0000000000000 +result i=1,value=-2329.984375 ; 2:3ff0000000000000 +result i=1,value=2 ; 0:3ff0000000000000 5:3ff0000000000000 +result i=1,value=4024 ; 6:3ff0000000000000 +result i=1,value=NaN ; 7:3ff0000000000000 +result i=2,value=+Inf ; 6:3ff0000000000000 +result i=2,value=-5660.859375 ; 4:3ff0000000000000 +result i=2,value=-8417.84375 ; 1:3ff0000000000000 +result i=2,value=-8436.359375 ; 5:3ff0000000000000 +result i=2,value=1 ; 2:3ff0000000000000 +result i=2,value=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 3:3ff0000000000000 +result i=2,value=NaN ; 0:3ff0000000000000 7:3ff0000000000000 +end +case agg count_values by i value +expr count_values by (i) ("value", a) +grid 0 1000 4 +series __name__=a,i=0,job=y ; 0:c0c7974200000000 1:fff0000000000000 2:c0a4c51800000000 3:40c3ee5200000000 +series __name__=a,i=1,job=x ; 0:c0b3ac4400000000 +series __name__=a,i=2,job=y ; 1:c0c0a9c800000000 2:c069dc0000000000 3:4008000000000000 +result i=0,value=-12078.515625 ; 0:3ff0000000000000 +result i=0,value=-2658.546875 ; 2:3ff0000000000000 +result i=0,value=-Inf ; 1:3ff0000000000000 +result i=0,value=10204.640625 ; 3:3ff0000000000000 +result i=1,value=-5036.265625 ; 0:3ff0000000000000 +result i=2,value=-206.875 ; 2:3ff0000000000000 +result i=2,value=-8531.5625 ; 1:3ff0000000000000 +result i=2,value=3 ; 3:3ff0000000000000 +end +case agg count_values by i __name__ +expr count_values by (i) ("__name__", a) +grid 0 1000 2 +series __name__=a,i=0,job=y ; 0:40c4d7f200000000 +series __name__=a,i=1,job=x ; 0:7fe1ccf385ebc8a0 1:4008000000000000 +series __name__=a,i=2,job=x ; 0:ffe1ccf385ebc8a0 1:7ff8000000000001 +result __name__=-100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,i=2 ; 0:3ff0000000000000 +result __name__=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,i=1 ; 0:3ff0000000000000 +result __name__=10671.890625,i=0 ; 0:3ff0000000000000 +result __name__=3,i=1 ; 1:3ff0000000000000 +result __name__=NaN,i=2 ; 1:3ff0000000000000 +end +case agg count_values by i value +expr count_values by (i) ("value", a) +grid 0 1000 8 +series __name__=a,i=0,job=x ; 0:8000000000000000 4:40c96efc00000000 5:40a2a0d800000000 7:c0b601ac00000000 +series __name__=a,i=1,job=x ; 1:7ff8000000000001 3:40b0594800000000 5:7ff0000000000000 6:40bd264c00000000 7:c0c42daa00000000 +result i=0,value=-0 ; 0:3ff0000000000000 +result i=0,value=-5633.671875 ; 7:3ff0000000000000 +result i=0,value=13021.96875 ; 4:3ff0000000000000 +result i=0,value=2384.421875 ; 5:3ff0000000000000 +result i=1,value=+Inf ; 5:3ff0000000000000 +result i=1,value=-10331.328125 ; 7:3ff0000000000000 +result i=1,value=4185.28125 ; 3:3ff0000000000000 +result i=1,value=7462.296875 ; 6:3ff0000000000000 +result i=1,value=NaN ; 1:3ff0000000000000 +end +case agg count_values by i __name__ +expr count_values by (i) ("__name__", a) +grid 0 1000 1 +series __name__=a,i=0,job=x ; +series __name__=a,i=1,job=y ; 0:40c56b2400000000 +series __name__=a,i=2,job=y ; 0:7fe1ccf385ebc8a0 +series __name__=a,i=3,job=x ; +result __name__=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,i=2 ; 0:3ff0000000000000 +result __name__=10966.28125,i=1 ; 0:3ff0000000000000 +end +case agg count_values by i value +expr count_values by (i) ("value", a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 0:fff0000000000000 1:ffe1ccf385ebc8a0 2:4000000000000000 4:4000000000000000 5:c0c9af2c00000000 +series __name__=a,i=1,job=y ; 0:40b3391800000000 1:7fe1ccf385ebc8a0 4:8000000000000000 +series __name__=a,i=2,job=x ; 0:8000000000000000 1:7ff8000000000001 2:0 3:c0a1e41800000000 4:c0c934e200000000 +series __name__=a,i=3,job=x ; 0:fff0000000000000 1:fff0000000000000 2:4008000000000000 3:0 5:7ff8000000000001 +result i=0,value=-100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 1:3ff0000000000000 +result i=0,value=-13150.34375 ; 5:3ff0000000000000 +result i=0,value=-Inf ; 0:3ff0000000000000 +result i=0,value=2 ; 2:3ff0000000000000 4:3ff0000000000000 +result i=1,value=-0 ; 4:3ff0000000000000 +result i=1,value=100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 1:3ff0000000000000 +result i=1,value=4921.09375 ; 0:3ff0000000000000 +result i=2,value=-0 ; 0:3ff0000000000000 +result i=2,value=-12905.765625 ; 4:3ff0000000000000 +result i=2,value=-2290.046875 ; 3:3ff0000000000000 +result i=2,value=0 ; 2:3ff0000000000000 +result i=2,value=NaN ; 1:3ff0000000000000 +result i=3,value=-Inf ; 0:3ff0000000000000 1:3ff0000000000000 +result i=3,value=0 ; 3:3ff0000000000000 +result i=3,value=3 ; 2:3ff0000000000000 +result i=3,value=NaN ; 5:3ff0000000000000 +end +case agg count_values by i __name__ +expr count_values by (i) ("__name__", a) +grid 0 1000 2 +series __name__=a,i=0,job=x ; 0:c0cc859200000000 1:4000000000000000 +series __name__=a,i=1,job=x ; 1:4008000000000000 +series __name__=a,i=2,job=x ; 0:c0b3972800000000 1:7ff8000000000001 +result __name__=-14603.140625,i=0 ; 0:3ff0000000000000 +result __name__=-5015.15625,i=2 ; 0:3ff0000000000000 +result __name__=2,i=0 ; 1:3ff0000000000000 +result __name__=3,i=1 ; 1:3ff0000000000000 +result __name__=NaN,i=2 ; 1:3ff0000000000000 +end +case agg count_values by i job +expr count_values by (i) ("job", a) +grid 0 1000 6 +series __name__=a,i=0,job=x ; 1:7ff8000000000001 3:40c0636400000000 4:40aac7e000000000 5:c0b757f400000000 +series __name__=a,i=1,job=x ; 0:7ff8000000000001 2:c090e41000000000 3:3ff0000000000000 5:7ff0000000000000 +series __name__=a,i=2,job=x ; 0:4008000000000000 1:40a233e800000000 2:c0b425bc00000000 3:7ff0000000000000 4:fff0000000000000 +series __name__=a,i=3,job=x ; 0:40b8ce6000000000 1:7ff8000000000001 2:3ff0000000000000 3:7ff8000000000001 5:40c1618200000000 +result i=0,job=-5975.953125 ; 5:3ff0000000000000 +result i=0,job=3427.9375 ; 4:3ff0000000000000 +result i=0,job=8390.78125 ; 3:3ff0000000000000 +result i=0,job=NaN ; 1:3ff0000000000000 +result i=1,job=+Inf ; 5:3ff0000000000000 +result i=1,job=-1081.015625 ; 2:3ff0000000000000 +result i=1,job=1 ; 3:3ff0000000000000 +result i=1,job=NaN ; 0:3ff0000000000000 +result i=2,job=+Inf ; 3:3ff0000000000000 +result i=2,job=-5157.734375 ; 2:3ff0000000000000 +result i=2,job=-Inf ; 4:3ff0000000000000 +result i=2,job=2329.953125 ; 1:3ff0000000000000 +result i=2,job=3 ; 0:3ff0000000000000 +result i=3,job=1 ; 2:3ff0000000000000 +result i=3,job=6350.375 ; 0:3ff0000000000000 +result i=3,job=8899.015625 ; 5:3ff0000000000000 +result i=3,job=NaN ; 1:3ff0000000000000 3:3ff0000000000000 +end +case agg count_values by i value +expr count_values by (i) ("value", a) +grid 0 1000 5 +series __name__=a,i=0,job=y ; 0:3ff0000000000000 1:40c895a200000000 4:fff0000000000000 +series __name__=a,i=1,job=y ; 0:8000000000000000 1:1a56e1fc2f8f359 2:c0cdce1c00000000 3:40b824bc00000000 4:c0c5d4d000000000 +series __name__=a,i=2,job=y ; 0:40c6911400000000 1:c0cb43d800000000 2:0 3:c0a6113000000000 4:4000000000000000 +series __name__=a,i=3,job=y ; 0:40bbe3fc00000000 2:40b9816000000000 3:4008000000000000 4:ffe1ccf385ebc8a0 +result i=0,value=-Inf ; 4:3ff0000000000000 +result i=0,value=1 ; 0:3ff0000000000000 +result i=0,value=12587.265625 ; 1:3ff0000000000000 +result i=1,value=-0 ; 0:3ff0000000000000 +result i=1,value=-11177.625 ; 4:3ff0000000000000 +result i=1,value=-15260.21875 ; 2:3ff0000000000000 +result i=1,value=0.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 ; 1:3ff0000000000000 +result i=1,value=6180.734375 ; 3:3ff0000000000000 +result i=2,value=-13959.6875 ; 1:3ff0000000000000 +result i=2,value=-2824.59375 ; 3:3ff0000000000000 +result i=2,value=0 ; 2:3ff0000000000000 +result i=2,value=11554.15625 ; 0:3ff0000000000000 +result i=2,value=2 ; 4:3ff0000000000000 +result i=3,value=-100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 ; 4:3ff0000000000000 +result i=3,value=3 ; 3:3ff0000000000000 +result i=3,value=6529.375 ; 2:3ff0000000000000 +result i=3,value=7139.984375 ; 0:3ff0000000000000 +end diff --git a/src/promql/src/aggregate/tests.rs b/src/promql/src/aggregate/tests.rs index e166ddf7243..6b20c4c6bf8 100644 --- a/src/promql/src/aggregate/tests.rs +++ b/src/promql/src/aggregate/tests.rs @@ -42,6 +42,10 @@ const OPS: [AggregateOp; 6] = [ ]; fn schema(fields: &[&str]) -> Arc { + schema_with_grid_len(fields, 128) +} + +fn schema_with_grid_len(fields: &[&str], len: u64) -> Arc { Arc::new(SeriesSchema { fields: fields .iter() @@ -50,7 +54,7 @@ fn schema(fields: &[&str]) -> Arc { }) .collect(), eval_grid: Some(Arc::new( - EvalGrid::try_new(GridSpec::try_new(-1000, 250, 128).unwrap()).unwrap(), + EvalGrid::try_new(GridSpec::try_new(-1000, 250, len).unwrap()).unwrap(), )), }) } @@ -199,6 +203,42 @@ fn aggregates_match_prometheus() { } } +/// `stddev`, `stdvar`, `quantile` and `count_values` evaluated by the Prometheus v3.15.0 engine; +/// see the header of `stat_cases.txt`. +#[test] +fn stat_aggregates_match_prometheus() { + let mut matched = BTreeMap::::new(); + for case in cases(include_str!("stat_cases.txt")) { + let h = &case.header; + let labels = h[3] + .split(',') + .filter(|label| *label != "-") + .collect::>(); + let grouping = grouping(h, &labels); + let output = match h[1].as_str() { + "stddev" => aggregate_float(&case.schema, &case.series, AggregateOp::Stddev, grouping), + "stdvar" => aggregate_float(&case.schema, &case.series, AggregateOp::Stdvar, grouping), + "quantile" => { + let q = case.scalar.as_ref().expect("quantile cases carry q"); + aggregate_quantile(&case.schema, &case.series, q, grouping) + } + "count_values" => count_values(&case.schema, &case.series, &h[4], grouping), + other => panic!("unmapped aggregate {other}"), + }; + assert_result(&case, output.unwrap()); + *matched.entry(format!("{} {}", h[1], h[2])).or_default() += 1; + } + for op in ["stddev", "stdvar", "quantile", "count_values"] { + for grouping in ["none", "by", "without"] { + let count = matched + .get(&format!("{op} {grouping}")) + .copied() + .unwrap_or_default(); + assert!(count >= 12, "{op} {grouping}: {count}"); + } + } +} + #[test] fn compensated_sum_and_overflowing_avg_follow_prometheus() { let schema = schema(&["value"]); @@ -351,18 +391,50 @@ fn fields_are_aggregated_independently() { }) .collect() }; + let grid_len = multi.eval_grid.as_ref().unwrap().timestamps().len(); + let q_values: Vec> = (0..grid_len) + .map(|i| Some([0.0, 0.25, 0.5, 0.9, 1.0][i % 5])) + .collect(); + let q = input( + &schema(&["scalar"]), + MetricName::try_new(None, Vec::new()).unwrap(), + 0, + &[q_values], + ); + type Kernel<'a> = Box, &[Series], Grouping<'_>) -> Vec + 'a>; + let mut kernels: Vec<(String, Kernel<'_>)> = OPS + .iter() + .chain(&[AggregateOp::Stddev, AggregateOp::Stdvar]) + .map(|&op| -> (String, Kernel<'_>) { + ( + format!("{op:?}"), + Box::new(move |schema, input, grouping| { + aggregate_float(schema, input, op, grouping).unwrap() + }), + ) + }) + .collect(); + kernels.push(( + "quantile".into(), + Box::new(|schema, input, grouping| { + aggregate_quantile(schema, input, &q, grouping).unwrap() + }), + )); + kernels.push(( + "count_values".into(), + Box::new(|schema, input, grouping| count_values(schema, input, "value", grouping).unwrap()), + )); for grouping in [ Grouping::By(&[]), Grouping::By(&["host"]), Grouping::Without(&["i"]), ] { - for op in OPS { - let output = aggregate_float(&multi, &series, op, grouping).unwrap(); + for (op, kernel) in &kernels { + let output = kernel(&multi, &series, grouping); for field in [0, 1] { - let expected = aggregate_float(&single, &project(field), op, grouping).unwrap(); + let expected = kernel(&single, &project(field), grouping); // The multi-field result is cut into pieces where its values are interrupted, so // the comparison is over the dense values of each label set, not over pieces. - let grid_len = multi.eval_grid.as_ref().unwrap().timestamps().len(); let grouped = |pieces: &[Series], field: usize| { let mut by_metric: BTreeMap = BTreeMap::new(); for piece in pieces { @@ -394,7 +466,7 @@ fn fields_are_aggregated_independently() { }; let actual = grouped(&output, field); let expected = grouped(&expected, 0); - assert_eq!(actual, expected, "{op:?} {grouping:?} field {field}"); + assert_eq!(actual, expected, "{op} {grouping:?} field {field}"); } } } @@ -632,6 +704,16 @@ fn unsupported_shapes_and_mutated_schema_fail_without_partial_output() { 11, &[vec![Some(1.0)], vec![Some(2.0)]], ); + // Prometheus rejects an empty `count_values` label name at evaluation. + assert!(matches!( + count_values( + &schema, + std::slice::from_ref(&source), + "", + Grouping::By(&[]) + ), + Err(DataFusionError::Execution(_)) + )); assert!(matches!( aggregate_float( &schema, @@ -815,3 +897,170 @@ fn an_aggregation_of_sparse_inputs_is_compared_in_full_against_the_reference() { assert_pieces_eq(&counts, &counted, &metric_of(&Labels::new())); assert_eq!(piece_ranges(&counts), vec![(2, 1), (6, 1)]); } + +/// `count_values` writes value labels the way Go's `strconv.FormatFloat(v, 'f', -1, 64)` does, +/// including the round-half-even choice of the last shortest digit; see the header of +/// `format_float_cases.txt` (promql-compat `cmd/narthex-golden-formatfloat`). +#[test] +fn value_labels_format_like_go() { + let mut checked = 0; + for line in include_str!("format_float_cases.txt").lines() { + let (bits, expected) = line.split_once(' ').unwrap(); + let value = f64::from_bits(u64::from_str_radix(bits, 16).unwrap()); + assert_eq!(format_value(value), expected, "{bits}"); + checked += 1; + } + assert!(checked > 2_400, "{checked}"); + for (value, expected) in [ + (f64::NAN, "NaN"), + (f64::INFINITY, "+Inf"), + (f64::NEG_INFINITY, "-Inf"), + ] { + assert_eq!(format_value(value), expected); + } +} + +/// A point where the `q` scalar has no value has no `quantile` result, as a missing scalar point +/// yields no output in the other scalar operators. +#[test] +fn quantile_without_q_at_a_point_has_no_result() { + let schema = schema(&["value"]); + let series = [ + input( + &schema, + metric("a", &[("i", "0")]), + 10, + &[vec![Some(1.0); 3]], + ), + input( + &schema, + metric("a", &[("i", "1")]), + 10, + &[vec![Some(3.0); 3]], + ), + ]; + let q = input( + &schema, + MetricName::try_new(None, Vec::new()).unwrap(), + 10, + &[vec![Some(0.5), None, Some(0.5)]], + ); + let output = aggregate_quantile(&schema, &series, &q, Grouping::By(&[])).unwrap(); + let (start, values) = values_of(&output, 0, 128); + assert_eq!((start, values), (10, vec![Some(2.0), None, Some(2.0)])); +} + +/// Listing the value label in `by` repeats what `count_values` adds to the grouping, also when an +/// input field has that name; listing another field name is still unsupported. +#[test] +fn count_values_accepts_its_own_label_in_by() { + let schema = schema(&["value"]); + let series = [ + input(&schema, metric("m", &[("i", "0")]), 10, &[vec![Some(1.0)]]), + input(&schema, metric("m", &[("i", "1")]), 10, &[vec![Some(2.0)]]), + ]; + let rendered = |grouping| { + let mut output: Vec<_> = count_values(&schema, &series, "value", grouping) + .unwrap() + .iter() + .map(|series| (format!("{:?}", series.metric), values(series, 0))) + .collect(); + output.sort_by(|a, b| a.0.cmp(&b.0)); + output + }; + let implicit = rendered(Grouping::By(&[])); + assert_eq!(implicit.len(), 2); + assert_eq!(implicit, rendered(Grouping::By(&["value"]))); + assert!(matches!( + count_values(&schema, &series, "c", Grouping::By(&["value"])), + Err(DataFusionError::NotImplemented(_)) + )); +} + +/// A series the aggregator rejects is not folded in part: the series after it aggregate as if it +/// had never been offered. +#[test] +fn a_rejected_series_leaves_the_aggregator_unchanged() { + let schema = schema(&["value"]); + let other = schema_with_grid_len(&["value"], 64); + let first = input(&schema, metric("m", &[("i", "0")]), 10, &[vec![Some(1.0)]]); + let second = input(&schema, metric("m", &[("i", "1")]), 10, &[vec![Some(2.0)]]); + let foreign = input(&other, metric("m", &[("i", "2")]), 10, &[vec![Some(4.0)]]); + + let mut aggregator = + FloatAggregator::try_new(&schema, AggregateOp::Sum, Grouping::By(&[])).unwrap(); + aggregator.update(&first).unwrap(); + assert!(aggregator.update(&foreign).is_err()); + aggregator.update(&second).unwrap(); + let output = aggregator.finish().unwrap(); + assert_eq!(values_of(&output, 0, 128), (10, vec![Some(3.0)])); +} + +/// A group of short-lived series, one sample each at its own point: every point aggregates the one +/// member present there, the shape whose cost must follow the samples and not members × points. +#[test] +fn quantile_over_one_point_members_reads_each_member_at_its_point() { + let schema = schema(&["value"]); + let series: Vec = (0..128) + .map(|point| { + input( + &schema, + metric("m", &[("i", &point.to_string())]), + point, + &[vec![Some(point as f64)]], + ) + }) + .collect(); + let q = input( + &schema, + MetricName::try_new(None, Vec::new()).unwrap(), + 0, + &[vec![Some(0.5); 128]], + ); + let output = aggregate_quantile(&schema, &series, &q, Grouping::By(&[])).unwrap(); + let expected: Vec> = (0..128).map(|point| Some(point as f64)).collect(); + assert_eq!(values_of(&output, 0, 128), (0, expected)); +} + +/// `2^-24` and the float below it format to different labels, so they count as two values: the +/// even 16-digit candidate for `2^-24` names the lower neighbour. +#[test] +fn count_values_keeps_neighbours_of_a_power_of_two_apart() { + let schema = schema(&["value"]); + let series = [0x3e70_0000_0000_0000, 0x3e6f_ffff_ffff_ffff] + .into_iter() + .enumerate() + .map(|(index, bits)| { + input( + &schema, + metric("m", &[("i", &index.to_string())]), + 0, + &[vec![Some(f64::from_bits(bits))]], + ) + }) + .collect::>(); + let mut groups: Vec<_> = count_values(&schema, &series, "v", Grouping::By(&[])) + .unwrap() + .iter() + .map(|series| { + ( + series.metric.get("v").unwrap().to_string(), + values(series, 0), + ) + }) + .collect(); + groups.sort_by(|a, b| a.0.cmp(&b.0)); + assert_eq!( + groups, + [ + ( + "0.00000005960464477539062".to_string(), + (0, vec![Some(1.0)]) + ), + ( + "0.00000005960464477539063".to_string(), + (0, vec![Some(1.0)]) + ), + ] + ); +} diff --git a/src/promql/src/histogram_eval/aggregate.rs b/src/promql/src/histogram_eval/aggregate.rs index 9e1721c8b59..0ffcca5e8e8 100644 --- a/src/promql/src/histogram_eval/aggregate.rs +++ b/src/promql/src/histogram_eval/aggregate.rs @@ -156,7 +156,8 @@ fn aggregate_point<'a>( /// The Kahan sum or the mean of `histograms` in order, without compaction; `None` when there is /// none or they mix exponential and custom buckets. Prometheus `sum_over_time` and /// `avg_over_time` run the same steps as the aggregations. Histograms are consumed one at a -/// time, so the first error ends the fold. +/// time, so the first error ends the fold. The result is derived, so it carries no start +/// timestamp. pub(crate) fn sum_or_avg( op: HistogramAggregate, histograms: impl IntoIterator>, @@ -236,5 +237,11 @@ pub(crate) fn sum_or_avg( } }, } + // The result was derived from its inputs, so it carries no start timestamp of its own, like + // every other operation that builds one. Clearing it here covers the fold that added nothing: + // the first histogram of a window becomes the result as it arrived, and the adds above are + // what drop the field otherwise, which would make the payload depend on the sample count. + // The bucket layout is left as the fold built it -- compaction belongs to the caller. + value.start_timestamp = None; Ok(Some(value)) } diff --git a/src/promql/src/histogram_eval/float_histogram.rs b/src/promql/src/histogram_eval/float_histogram.rs index acce48c1776..22d016418ad 100644 --- a/src/promql/src/histogram_eval/float_histogram.rs +++ b/src/promql/src/histogram_eval/float_histogram.rs @@ -35,6 +35,22 @@ type Buckets = Vec<(i32, f64)>; #[derive(Debug, Clone)] pub(crate) struct FloatHistogram { pub(crate) reset_hint: CounterResetHint, + /// The start timestamp of the sample this histogram was read from, in milliseconds. + /// + /// It is metadata of GreptimeDB's histogram row, not part of the histogram value that + /// Prometheus's `FloatHistogram` models. This owned form preserves it -- [`Self::try_from_view`] + /// reads it off the sample and [`Self::push_to`] writes it back -- while every operation that + /// derives a histogram from its input ([`Self::add`], [`Self::kahan_add`], [`Self::mul`], + /// [`Self::div`], [`Self::compact`], [`Self::copy_to_schema`], with the constructors beside + /// them) clears it. [`Self::equals`] does not compare it. + /// + /// Both halves are this module's own policy and say nothing about how Prometheus propagates + /// these timestamps: its `FloatHistogram` does not carry the field, while its rate and reset + /// evaluation receives start timestamps through a separate channel. This crate's native range + /// kernel does not read the field; the legacy extrapolation path does, to synthesize a zero + /// point. So a selection that keeps the field preserves what was stored, and does not by itself + /// make a native rate agree with the legacy one. + pub(crate) start_timestamp: Option, pub(crate) schema: i32, pub(crate) zero_threshold: f64, pub(crate) zero_count: f64, @@ -62,6 +78,7 @@ impl FloatHistogram { pub(crate) fn try_from_view(view: &HistogramView<'_>) -> Result { Ok(Self { reset_hint: view.reset_hint, + start_timestamp: view.start_timestamp, schema: view.schema, zero_threshold: view.zero_threshold, zero_count: view.zero_count, @@ -130,7 +147,7 @@ impl FloatHistogram { count: self.count, zero_count: self.zero_count, reset_hint: self.reset_hint, - start_timestamp: None, + start_timestamp: self.start_timestamp, custom_values: &self.custom_values, positive: BucketSideView { span_offsets: &positive_offsets, @@ -151,6 +168,7 @@ impl FloatHistogram { pub(crate) fn empty_like(&self) -> Self { Self { reset_hint: CounterResetHint::Unknown, + start_timestamp: None, schema: self.schema, zero_threshold: 0.0, zero_count: 0.0, @@ -169,6 +187,8 @@ impl FloatHistogram { /// Go `Mul`. pub(crate) fn mul(&mut self, factor: f64) { + // A result this operation derived, so it carries no start timestamp of its own. + self.start_timestamp = None; self.zero_count *= factor; self.count *= factor; self.sum *= factor; @@ -182,6 +202,8 @@ impl FloatHistogram { /// Go `Div`; dividing by zero removes every bucket. pub(crate) fn div(&mut self, scalar: f64) { + // A result this operation derived, so it carries no start timestamp of its own. + self.start_timestamp = None; self.zero_count /= scalar; self.count /= scalar; self.sum /= scalar; @@ -215,6 +237,8 @@ impl FloatHistogram { /// Go `Compact(0)`: drops empty buckets. pub(crate) fn compact(&mut self) { + // A result this operation derived, so it carries no start timestamp of its own. + self.start_timestamp = None; self.positive.retain(|&(_, count)| count != 0.0); self.negative.retain(|&(_, count)| count != 0.0); self.layout = None; @@ -223,13 +247,19 @@ impl FloatHistogram { /// Go `CopyToSchema`; `target` must not exceed the schema. pub(crate) fn copy_to_schema(&self, target: i32) -> Result { if target == self.schema { - return Ok(self.clone()); + // The copy is a histogram this call produced, like the reduced one below: a start + // timestamp belongs to the sample that carried it, not to a value derived from it. + return Ok(Self { + start_timestamp: None, + ..self.clone() + }); } if self.uses_custom_buckets() || target == CUSTOM_BUCKETS_SCHEMA || target > self.schema { return Err(incompatible_schema()); } Ok(Self { reset_hint: CounterResetHint::Unknown, + start_timestamp: None, schema: target, zero_threshold: self.zero_threshold, zero_count: self.zero_count, @@ -255,6 +285,8 @@ impl FloatHistogram { fn add_or_sub(&mut self, other: &Self, subtract: bool) -> Result { check_schemas(self, other)?; self.layout = None; + // A result this operation derived, so it carries no start timestamp of its own. + self.start_timestamp = None; let mut outcome = AddOutcome { counter_reset_collision: self.adjust_counter_reset(other), custom_bounds_reconciled: false, @@ -323,6 +355,8 @@ impl FloatHistogram { ) -> Result<(Self, AddOutcome)> { check_schemas(self, other)?; self.layout = None; + // A result this operation derived, so it carries no start timestamp of its own. + self.start_timestamp = None; let mut outcome = AddOutcome { counter_reset_collision: self.adjust_counter_reset(other), custom_bounds_reconciled: false, @@ -410,6 +444,7 @@ impl FloatHistogram { fn new_compensation(&self) -> Self { Self { reset_hint: self.reset_hint, + start_timestamp: None, schema: self.schema, zero_threshold: self.zero_threshold, zero_count: 0.0, diff --git a/src/promql/src/histogram_eval/tests.rs b/src/promql/src/histogram_eval/tests.rs index 8b815b0a49d..258e747a4cb 100644 --- a/src/promql/src/histogram_eval/tests.rs +++ b/src/promql/src/histogram_eval/tests.rs @@ -16,6 +16,9 @@ use std::collections::BTreeMap; use std::sync::Arc; use datafusion::error::DataFusionError; +use datatypes::series::histogram::{ + BucketSideView, CounterResetHint, HistogramBatchBuilder, HistogramView, +}; use datatypes::series::samples::{FieldSpec, SampleRef, Series, SeriesSchema}; use datatypes::series::time::{EvalGrid, GridRange, GridSpec, TimeAxis}; @@ -383,6 +386,75 @@ fn histogram_points(series: &Series) -> BTreeMap { .collect() } +/// The start timestamp is payload of a histogram that was read, and not of one that was computed. +/// +/// This pins GreptimeDB's own payload policy, not a Prometheus expectation: the timestamp is read +/// off a sample ([`FloatHistogram::try_from_view`]) and written back +/// ([`FloatHistogram::push_to`]), which is what a selection needs to hand a sample on unchanged, +/// and every operation that derives a value from its input clears it. Nothing else depends on the +/// field: the type derives `Debug` and `Clone` only, so it has no equality, hash or serialized form +/// that could compare it, and [`FloatHistogram::equals`] is Go `Equals` on counts and bucket layout. +#[test] +fn a_start_timestamp_belongs_to_a_read_histogram_and_not_to_a_computed_one() { + let offsets = [0]; + let lengths = [2]; + let buckets = [1.0, 2.0]; + let view = HistogramView { + schema: 0, + zero_threshold: 0.0, + zero_count: 0.0, + count: 3.0, + sum: 3.0, + reset_hint: CounterResetHint::Unknown, + start_timestamp: Some(1500), + custom_values: &[], + positive: BucketSideView { + span_offsets: &offsets, + span_lengths: &lengths, + buckets: &buckets, + }, + negative: BucketSideView { + span_offsets: &[], + span_lengths: &[], + buckets: &[], + }, + }; + let histogram = FloatHistogram::try_from_view(&view).unwrap(); + assert_eq!(histogram.start_timestamp, Some(1500)); + + // Writing it back keeps it, which is what makes a selected sample a sample. + let mut builder = HistogramBatchBuilder::new(); + histogram.push_to(&mut builder).unwrap(); + let table = builder.finish().unwrap(); + assert_eq!( + table.view(0).unwrap().start_timestamp, + Some(1500), + "the histogram was written back without the start timestamp it was read with" + ); + + // A value derived from it carries none, whichever operation derived it. + let mut added = histogram.clone(); + added.add(&histogram).unwrap(); + assert_eq!(added.start_timestamp, None); + let mut summed = histogram.clone(); + let (compensation, _) = summed.kahan_add(&histogram, None).unwrap(); + assert_eq!(summed.start_timestamp, None); + assert_eq!(compensation.start_timestamp, None); + let mut multiplied = histogram.clone(); + multiplied.mul(2.0); + assert_eq!(multiplied.start_timestamp, None); + let mut divided = histogram.clone(); + divided.div(2.0); + assert_eq!(divided.start_timestamp, None); + let mut compacted = histogram.clone(); + compacted.compact(); + assert_eq!(compacted.start_timestamp, None); + assert_eq!(histogram.copy_to_schema(0).unwrap().start_timestamp, None); + assert_eq!(histogram.empty_like().start_timestamp, None); + // The one it was read into is still the sample it was read from. + assert_eq!(histogram.start_timestamp, Some(1500)); +} + /// `histogram_quantile` drops all metadata labels; the single-histogram functions drop only /// `__name__`, as Prometheus does. #[test] diff --git a/src/promql/src/info.rs b/src/promql/src/info.rs new file mode 100644 index 00000000000..af619b9d280 --- /dev/null +++ b/src/promql/src/info.rs @@ -0,0 +1,445 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! `info(v, {selector})`: the series of `v` with the data labels of the info series that share +//! their identifying labels, following Prometheus `combineWithInfoSeries` and +//! `combineWithInfoVector`. +//! +//! Selecting the info series is the caller's: the series whose name and data labels match the +//! selector, evaluated at every point of the grid like an instant selector, with the value +//! replaced by the original timestamp of the selected sample, as Prometheus' `evalSeries` records +//! it for `info`. This kernel only combines. + +#[cfg(test)] +mod tests; + +use std::collections::btree_map::Entry; +use std::collections::{BTreeMap, BTreeSet, HashMap}; +use std::sync::Arc; + +use datafusion::error::{DataFusionError, Result}; +use datatypes::series::MetricName; +use datatypes::series::samples::{SampleRef, Series, SeriesSchema}; +use regex::Regex; + +use crate::grid_series::{GridSample, GridSeriesBuilder, LabelSet, external, label_set, owned}; +use crate::select::MatchOp; + +/// The labels an info series is joined on, as in Prometheus. +const IDENTIFYING_LABELS: [&str; 2] = ["instance", "job"]; + +/// The second argument of `info`, split the way Prometheus uses it. +#[derive(Clone, Debug)] +pub struct InfoSelector { + /// The `__name__` matchers, which choose the info metrics; none means `target_info`. + pub name_matchers: Vec<(MatchOp, Arc)>, + /// The names of the other matchers: only these labels are copied. None copies every label + /// of the info series. + pub data_labels: Vec>, + /// Whether every one of those other matchers matches the empty string, in which case a series + /// without a matching info series is kept as it is. + pub keep_unmatched: bool, +} + +/// Combines `base` with the data labels of `info`. +/// +/// `info` holds the info series the selector chooses, one float field each, whose value at a +/// point is the original timestamp of the sample selected there. For each info metric a base +/// series takes the info series with the same identifying labels. Several of them at one point are +/// compared in input order, as Prometheus compares them in the order its storage returns them: a +/// newer one replaces the one kept so far, and one exactly as new is an error. Labels +/// the base series already has are kept, and two info metrics giving one label different values +/// are an error. A base series without identifying labels matches no info series, since +/// Prometheus fetches none for it, and a base series that is itself an info metric is passed +/// through. Results that share a label set merge; a field held twice at one point is an error. +pub fn info( + schema: &Arc, + base: &[Series], + info: &[Series], + selector: &InfoSelector, +) -> Result> { + let grid = schema + .eval_grid + .as_ref() + .ok_or_else(|| DataFusionError::Execution("info requires an evaluated grid".into()))?; + let points = grid.timestamps().len(); + for series in base { + if series.time.grid().map(|grid| grid.spec()) != Some(grid.spec()) + || series.fields.len() != schema.fields.len() + { + return Err(DataFusionError::Execution( + "info base series does not match its schema".into(), + )); + } + } + for series in info { + if series.time.grid().map(|grid| grid.spec()) != Some(grid.spec()) + || series.fields.len() != 1 + { + return Err(DataFusionError::Execution( + "info series must be single-field series on the base grid".into(), + )); + } + } + let name_matchers = effective_name_matchers(&selector.name_matchers)?; + let is_info_metric = |name: &str| name_matchers.iter().all(|matcher| matcher.matches(name)); + + let mut base_present = vec![false; points]; + for series in base { + for field in series.fields.iter() { + for ((point, _), sample) in series.time.positions().zip(field.iter()) { + if !matches!(sample, SampleRef::Missing) { + base_present[point] = true; + } + } + } + } + + let mut error = FirstError::default(); + + // Prometheus fetches info series per presence pattern of the identifying labels among the + // base series it enriches: a present label matches any value the pattern's base series have, + // an absent one matches only absence. An info series no pattern admits is never fetched, so + // it neither enriches nor conflicts. + let mut patterns: HashMap, Vec>>> = HashMap::new(); + for series in base { + if is_info_metric(series.metric.name().unwrap_or("")) { + continue; + } + let values = identifying_values(&series.metric); + let presence: Vec = values.iter().map(Option::is_some).collect(); + if !presence.contains(&true) { + continue; + } + let sets = patterns + .entry(presence) + .or_insert_with(|| vec![BTreeSet::new(); IDENTIFYING_LABELS.len()]); + for (set, value) in sets.iter_mut().zip(values) { + set.extend(value); + } + } + + // The info series kept for each signature at each point. + let mut by_signature: HashMap> = HashMap::new(); + let mut info_names: BTreeSet> = BTreeSet::new(); + for (index, series) in info.iter().enumerate() { + let values = identifying_values(&series.metric); + let presence: Vec = values.iter().map(Option::is_some).collect(); + let fetched = patterns.get(&presence).is_some_and(|sets| { + sets.iter() + .zip(&values) + .all(|(set, value)| value.as_ref().is_none_or(|value| set.contains(value))) + }); + if !fetched { + continue; + } + let name: Arc = Arc::from(series.metric.name().unwrap_or("")); + info_names.insert(name.clone()); + let kept = by_signature.entry((name, values)).or_default(); + let mut cursor = series.fields.as_slice()[0].cursor(); + for (point, row) in series.time.positions() { + let timestamp = match cursor.at(row).expect("the axis and the fields are aligned") { + SampleRef::Missing => continue, + SampleRef::Float(timestamp) => timestamp, + SampleRef::Histogram(_) => { + return Err(DataFusionError::Internal( + "info series must hold the original sample timestamps as floats".into(), + )); + } + }; + match kept.entry(point) { + Entry::Vacant(entry) => { + entry.insert((timestamp, index)); + } + Entry::Occupied(mut entry) => { + let (existing, existing_index) = *entry.get(); + if timestamp > existing { + entry.insert((timestamp, index)); + } else if timestamp == existing && base_present[point] { + error.record(point, 0, || { + format!( + "found duplicate series for info metric: existing {} @ {}, new \ + {} @ {}", + render(&label_set(&info[existing_index].metric)), + existing as i64, + render(&label_set(&series.metric)), + timestamp as i64 + ) + }); + } + } + } + } + } + + let width = schema.fields.len(); + let mut result_index: HashMap = HashMap::new(); + let mut results: Vec<(MetricName, Vec)> = Vec::new(); + let mut added: Vec<(Arc, Arc)> = Vec::new(); + let mut chosen: Vec = Vec::new(); + for series in base { + let ignored = is_info_metric(series.metric.name().unwrap_or("")); + // The signature of each info metric is fixed for a series, so its kept series are looked + // up once; a point then only reads which of them is kept there. + let candidates: Vec<&BTreeMap> = if ignored { + Vec::new() + } else { + let values = identifying_values(&series.metric); + info_names + .iter() + .filter_map(|name| by_signature.get(&(name.clone(), values.clone()))) + .collect() + }; + // The result of the previous point, reused while the same info series are kept. + let mut previous: Option = None; + let mut cursors: Vec<_> = series.fields.iter().map(|field| field.cursor()).collect(); + for (point, row) in series.time.positions() { + let mut values = Vec::with_capacity(width); + for cursor in &mut cursors { + values.push(owned( + cursor.at(row).expect("the axis and the fields are aligned"), + )?); + } + if values.iter().all(Option::is_none) { + continue; + } + chosen.clear(); + chosen.extend( + candidates + .iter() + .filter_map(|kept| kept.get(&point).map(|&(_, index)| index)), + ); + let reuse = previous + .as_ref() + .is_some_and(|previous| previous.info == chosen); + if !reuse { + added.clear(); + let mut conflict = None; + for &index in &chosen { + if let Err(label) = + add_data_labels(&info[index].metric, &series.metric, selector, &mut added) + { + conflict = Some(label); + break; + } + } + let result = if chosen.is_empty() && !selector.keep_unmatched && !ignored { + None + } else { + let mut metric = series.metric.clone(); + for (name, value) in &added { + metric.set(name, value.clone()).map_err(external)?; + } + Some(match result_index.entry(label_set(&metric)) { + std::collections::hash_map::Entry::Occupied(entry) => *entry.get(), + std::collections::hash_map::Entry::Vacant(entry) => { + results.push((metric, Vec::new())); + *entry.insert(results.len() - 1) + } + }) + }; + previous = Some(Choice { + info: chosen.clone(), + result, + conflict, + }); + } + let choice = previous.as_ref().expect("set above"); + if let Some(label) = &choice.conflict { + error.record(point, 1, || format!("conflicting label: {label}")); + } + if let Some(result) = choice.result { + results[result].1.push((point, values)); + } + } + } + + // Rows of one label set arrive per base series; sorted by point, a field held twice at one + // point is a collision. + for (metric, rows) in &mut results { + rows.sort_by_key(|(point, _)| *point); + let mut merged: Vec = Vec::with_capacity(rows.len()); + for (point, values) in rows.drain(..) { + match merged.last_mut() { + Some((last, slots)) if *last == point => { + for (slot, value) in slots.iter_mut().zip(values) { + if value.is_none() { + continue; + } + if slot.is_some() { + error.record(point, 2, || { + format!( + "vector cannot contain metrics with the same labelset {}", + render(&label_set(metric)) + ) + }); + } + *slot = value; + } + } + _ => merged.push((point, values)), + } + } + *rows = merged; + } + if let Some((_, _, message)) = error.0 { + return Err(DataFusionError::Execution(message)); + } + + let mut builder = GridSeriesBuilder::try_new(schema.clone())?; + let mut output = Vec::with_capacity(results.len()); + for (metric, rows) in results { + builder.begin_series(); + for (point, row) in rows { + builder.push_samples(point, &row)?; + } + output.extend(builder.finish(metric)?); + } + Ok(output) +} + +/// The samples of one result series at one grid point, one per field. +type Row = (usize, Vec>); + +/// What the info series kept at a point make of one base series. +struct Choice { + /// The info series, one per info metric that has one. + info: Vec, + /// The result series the point goes to, `None` when the point is dropped. + result: Option, + /// A label two of the info series set to different values. + conflict: Option>, +} + +/// The error Prometheus reports: the one of the first failing step, and within a step the first +/// of its checks (the info series, then each base series, then the result label sets). +#[derive(Default)] +struct FirstError(Option<(usize, u8, String)>); + +impl FirstError { + /// Records an error of check `rank` at `point`, formatting it only if it comes first. + fn record(&mut self, point: usize, rank: u8, message: impl FnOnce() -> String) { + if self + .0 + .as_ref() + .is_none_or(|(first, first_rank, _)| (point, rank) < (*first, *first_rank)) + { + self.0 = Some((point, rank, message())); + } + } +} + +/// A label set as Prometheus prints one. +fn render(labels: &LabelSet) -> String { + let labels: Vec = labels + .iter() + .map(|(name, value)| format!("{name}=\"{value}\"")) + .collect(); + format!("{{{}}}", labels.join(", ")) +} + +/// An info metric name and the identifying label values present on a series. +type Signature = (Arc, Vec>>); + +/// The value of each identifying label, `None` where the series does not have it. +fn identifying_values(metric: &MetricName) -> Vec>> { + IDENTIFYING_LABELS + .iter() + .map(|label| { + metric + .get(label) + .filter(|value| !value.is_empty()) + .map(Arc::from) + }) + .collect() +} + +/// Adds the data labels `info` gives a series with labels `base` to `added`; returns the name of +/// a label another info metric already set to a different value. +fn add_data_labels( + info: &MetricName, + base: &MetricName, + selector: &InfoSelector, + added: &mut Vec<(Arc, Arc)>, +) -> std::result::Result<(), Arc> { + for tag in info.tags() { + if tag.value.is_empty() + || (!selector.data_labels.is_empty() && !selector.data_labels.contains(&tag.name)) + { + continue; + } + if let Some((_, value)) = added.iter().find(|(name, _)| *name == tag.name) { + if *value != tag.value { + return Err(tag.name.clone()); + } + continue; + } + if base.get(&tag.name).is_some_and(|value| !value.is_empty()) { + continue; + } + added.push((tag.name.clone(), tag.value.clone())); + } + Ok(()) +} + +struct NameMatcher { + op: MatchOp, + value: Arc, + regex: Option, +} + +impl NameMatcher { + fn try_new(op: MatchOp, value: Arc) -> Result { + let regex = match op { + MatchOp::Regex | MatchOp::NotRegex => { + Some(Regex::new(&format!("^(?s:{value})$")).map_err(|error| { + DataFusionError::Plan(format!("invalid regular expression {value}: {error}")) + })?) + } + MatchOp::Equal | MatchOp::NotEqual => None, + }; + Ok(Self { op, value, regex }) + } + + fn matches(&self, name: &str) -> bool { + match (self.op, &self.regex) { + (MatchOp::Equal, _) => name == &*self.value, + (MatchOp::NotEqual, _) => name != &*self.value, + (MatchOp::Regex, Some(regex)) => regex.is_match(name), + (MatchOp::NotRegex, Some(regex)) => !regex.is_match(name), + _ => unreachable!("regex matchers compile their regex"), + } + } +} + +/// Prometheus `effectiveInfoNameMatchers`: the name matchers as given when one of them selects, +/// prefixed with `.+_info` when all of them only exclude, and `target_info` when there are none. +fn effective_name_matchers(matchers: &[(MatchOp, Arc)]) -> Result> { + let mut effective = Vec::with_capacity(matchers.len() + 1); + if matchers.is_empty() { + effective.push(NameMatcher::try_new( + MatchOp::Equal, + Arc::from("target_info"), + )?); + } else if matchers + .iter() + .all(|(op, _)| matches!(op, MatchOp::NotEqual | MatchOp::NotRegex)) + { + effective.push(NameMatcher::try_new(MatchOp::Regex, Arc::from(".+_info"))?); + } + for (op, value) in matchers { + effective.push(NameMatcher::try_new(*op, value.clone())?); + } + Ok(effective) +} diff --git a/src/promql/src/info/prometheus_cases.txt b/src/promql/src/info/prometheus_cases.txt new file mode 100644 index 00000000000..84b0cba30ad --- /dev/null +++ b/src/promql/src/info/prometheus_cases.txt @@ -0,0 +1,4882 @@ +# Generated by promql-compat cmd/narthex-golden-info built for amd64 (Prometheus v3.15.0 engine, +# seed 1, lookback 25000ms). `case `, `base` the +# evaluated base expression, `info` the original sample timestamps of the info series matching the +# name and data matchers (a superset of what Prometheus fetches: the identifying-label filter is +# the kernel's), then the result series or the error. Points are `grid index:hex value bits`. +case - true - +expr info({__name__="a"}) +grid 100000 10000 2 +base __name__=a,instance=i1 ; 0:4076620000000000 1:c0828d0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:406ad00000000000 1:406ad00000000000 +base __name__=a,k8s_cluster=c1,version=base ; 0:c078e20000000000 1:40839a0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 +result __name__=a,instance=i1 ; 0:4076620000000000 1:c0828d0000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 0:406ad00000000000 1:406ad00000000000 +result __name__=a,k8s_cluster=c1,version=base ; 0:c078e20000000000 1:40839a0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i2 ; 1:c02b800000000000 2:c02b800000000000 3:c02b800000000000 4:4077da0000000000 5:4077da0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 1:c02b800000000000 2:c02b800000000000 3:c02b800000000000 4:4077da0000000000 5:4077da0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=x,k8s_cluster=c2 ; 0:406ee80000000000 +base __name__=a,k8s_cluster=c1 ; 0:c066980000000000 +info __name__=build_info,instance=i1,version=v1,zone=z2 ; 0:40f86a0000000000 +info __name__=build_info,job=y,version=v2,zone=z1 ; 0:40f86a0000000000 +info __name__=build_info,job=x,version=v2 ; 0:40f86a0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z2 ; 0:c075140000000000 1:c075140000000000 2:c075140000000000 3:408f330000000000 4:c088450000000000 5:c088450000000000 6:c08be80000000000 7:c08be80000000000 +base __name__=a,instance=i1,job=x,version=base,zone=z1 ; 0:c0762c0000000000 1:4061b80000000000 2:4077060000000000 3:4048800000000000 4:407b0c0000000000 5:c08e730000000000 6:c089200000000000 7:4084670000000000 +base __name__=a,instance=i2 ; 0:4066240000000000 1:405a480000000000 2:408c9f0000000000 3:408c9f0000000000 4:4081b10000000000 5:c087190000000000 6:407dfa0000000000 7:c0891a0000000000 +base __name__=a,job=y,k8s_cluster=c1 ; 0:4080900000000000 1:407c720000000000 2:403a200000000000 3:407c080000000000 4:407c080000000000 5:407c080000000000 +base __name__=a,version=base ; 1:40723a0000000000 2:c059c80000000000 3:c08a180000000000 4:c068f40000000000 5:c068f40000000000 6:c068f40000000000 7:bff4000000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y,version=base ; 0:c0659c0000000000 1:4089ba0000000000 +base __name__=a,instance=i2,job=x ; 1:c067180000000000 +base __name__=a,job=y ; 0:408d4c0000000000 1:c082410000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:c0659c0000000000 1:4089ba0000000000 +result __name__=a,instance=i2,job=x ; 1:c067180000000000 +result __name__=a,job=y ; 0:408d4c0000000000 1:c082410000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 8 +base __name__=a,job=x,version=base ; 0:c084380000000000 1:c084380000000000 2:c084380000000000 3:c07f340000000000 4:407f680000000000 5:4085500000000000 6:c08e6b0000000000 7:c08e6b0000000000 +info __name__=target_info,job=x,k8s_cluster=d1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 +info __name__=target_info,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +result __name__=a,job=x,k8s_cluster=d1,version=base ; 1:c084380000000000 2:c084380000000000 3:c07f340000000000 4:407f680000000000 5:4085500000000000 6:c08e6b0000000000 7:c08e6b0000000000 +result __name__=a,job=x,version=base ; 0:c084380000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i2,version=base ; 0:4081650000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 0:c074900000000000 +base __name__=target_info,k8s_cluster=c1 ; 0:c081b00000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 0:c074900000000000 +result __name__=target_info,k8s_cluster=c1 ; 0:c081b00000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 2 +base __name__=a,instance=i1 ; 0:c06bbc0000000000 1:c08ec80000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c05df00000000000 1:4081c00000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i2,job=x,version=base,zone=z2 ; 0:c07b600000000000 1:4089f80000000000 2:40795e0000000000 3:408b9b0000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:c0836c0000000000 1:c0836c0000000000 2:408aed0000000000 3:4075f00000000000 +base __name__=a,job=y,version=base ; 0:401a000000000000 1:401a000000000000 2:c067d00000000000 3:c076ba0000000000 +base __name__=a,job=y,zone=z1 ; 0:c08d980000000000 1:4081b80000000000 2:408db20000000000 3:408db20000000000 +info __name__=build_info,instance=i2,version=v1 ; +info __name__=build_info,job=y,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 +info __name__=build_info,instance=i2,job=x,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +result __name__=a,instance=i2,job=x,version=base,zone=z2 ; 0:c07b600000000000 1:4089f80000000000 2:40795e0000000000 3:408b9b0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:c0836c0000000000 1:c0836c0000000000 2:408aed0000000000 3:4075f00000000000 +result __name__=a,job=y,version=base ; 0:401a000000000000 1:401a000000000000 2:c067d00000000000 3:c076ba0000000000 +result __name__=a,job=y,version=v2,zone=z1 ; 0:c08d980000000000 1:4081b80000000000 2:408db20000000000 3:408db20000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 8 +base __name__=a,instance=i2,k8s_cluster=c1 ; 0:407a7e0000000000 1:407a7e0000000000 2:c086000000000000 3:407dda0000000000 4:4086890000000000 5:c0653c0000000000 6:c0653c0000000000 7:c088c70000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1 ; 0:c08e610000000000 1:4053c00000000000 2:4053c00000000000 3:40868d0000000000 4:4054d00000000000 5:408bfc0000000000 6:408bfc0000000000 7:408bfc0000000000 +base __name__=a,instance=i2 ; 1:c085f00000000000 2:407dea0000000000 3:4088fe0000000000 4:40833c0000000000 5:40833c0000000000 6:c07f2a0000000000 7:4088730000000000 +base __name__=a,instance=i2,job=y ; 1:c084510000000000 2:c084510000000000 3:c08e860000000000 4:c08e860000000000 5:c0899b0000000000 6:c0890d0000000000 7:c083800000000000 +base __name__=a,job=y,k8s_cluster=c2,version=base,zone=z1 ; 0:c08ac20000000000 1:406ab00000000000 2:406ab00000000000 3:c0852d0000000000 4:407c440000000000 5:408a800000000000 6:407e2a0000000000 7:c07b0e0000000000 +result __name__=a,instance=i1 ; 0:c08e610000000000 1:4053c00000000000 2:4053c00000000000 3:40868d0000000000 4:4054d00000000000 5:408bfc0000000000 6:408bfc0000000000 7:408bfc0000000000 +result __name__=a,instance=i2 ; 1:c085f00000000000 2:407dea0000000000 3:4088fe0000000000 4:40833c0000000000 5:40833c0000000000 6:c07f2a0000000000 7:4088730000000000 +result __name__=a,instance=i2,job=y ; 1:c084510000000000 2:c084510000000000 3:c08e860000000000 4:c08e860000000000 5:c0899b0000000000 6:c0890d0000000000 7:c083800000000000 +result __name__=a,job=y,k8s_cluster=c2,version=base,zone=z1 ; 0:c08ac20000000000 1:406ab00000000000 2:406ab00000000000 3:c0852d0000000000 4:407c440000000000 5:408a800000000000 6:407e2a0000000000 7:c07b0e0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=y,version=base ; 0:40798c0000000000 1:c056500000000000 2:40896d0000000000 3:4068cc0000000000 +base __name__=a,instance=i2,k8s_cluster=c2 ; 1:4087d50000000000 2:4087d50000000000 3:4077a00000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 8 +base __name__=a,job=x,k8s_cluster=c2 ; 0:c05d580000000000 1:4088910000000000 2:c08b240000000000 3:c08b240000000000 4:c084a10000000000 5:c084a10000000000 6:4066b40000000000 7:4066b40000000000 +base __name__=a,job=y,zone=z1 ; 0:400c000000000000 1:c083f60000000000 2:c083f60000000000 3:406a6c0000000000 4:406a6c0000000000 5:406a6c0000000000 6:c087e30000000000 7:c084b20000000000 +info __name__=target_info,job=y,k8s_cluster=d1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 0:c05d580000000000 1:4088910000000000 2:c08b240000000000 3:c08b240000000000 4:c084a10000000000 5:c084a10000000000 6:4066b40000000000 7:4066b40000000000 +result __name__=a,job=y,k8s_cluster=d1,version=v2,zone=z1 ; 2:c083f60000000000 3:406a6c0000000000 4:406a6c0000000000 5:406a6c0000000000 6:c087e30000000000 7:c084b20000000000 +result __name__=a,job=y,zone=z1 ; 0:400c000000000000 1:c083f60000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 1 +base __name__=a ; 0:c0830b0000000000 +base __name__=a,instance=i1 ; 0:4079300000000000 +base __name__=a,instance=i2,job=x ; 0:4089930000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:4081320000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; +info __name__=target_info,k8s_cluster=c1 ; +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 +result __name__=a ; 0:c0830b0000000000 +result __name__=a,instance=i1 ; 0:4079300000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:4089930000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:4081320000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=x ; 0:c084350000000000 1:c0802b0000000000 2:c07ab60000000000 3:407e9a0000000000 4:4068bc0000000000 +base __name__=a,job=y,zone=z2 ; 1:40735c0000000000 2:c07f0a0000000000 3:c07f0a0000000000 4:4083470000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; 0:4084270000000000 1:4084270000000000 2:4084270000000000 4:407c8a0000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 1:408c170000000000 2:c0834d0000000000 3:c0834d0000000000 4:c0834d0000000000 +base __name__=target_info,job=y,k8s_cluster=c1 ; 0:4075a20000000000 1:4075a20000000000 2:4075a20000000000 4:c083ec0000000000 +base __name__=target_info,k8s_cluster=d1 ; 0:c078140000000000 1:c062880000000000 2:c062880000000000 3:c062880000000000 4:405f300000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 +info __name__=target_info,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; +result __name__=a,instance=i1,job=x ; 0:c084350000000000 1:c0802b0000000000 2:c07ab60000000000 3:407e9a0000000000 4:4068bc0000000000 +result __name__=a,job=y,k8s_cluster=c1,zone=z2 ; 1:40735c0000000000 2:c07f0a0000000000 4:4083470000000000 +result __name__=a,job=y,zone=z2 ; 3:c07f0a0000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; 0:4084270000000000 1:4084270000000000 2:4084270000000000 4:407c8a0000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 1:408c170000000000 2:c0834d0000000000 3:c0834d0000000000 4:c0834d0000000000 +result __name__=target_info,job=y,k8s_cluster=c1 ; 0:4075a20000000000 1:4075a20000000000 2:4075a20000000000 4:c083ec0000000000 +result __name__=target_info,k8s_cluster=d1 ; 0:c078140000000000 1:c062880000000000 2:c062880000000000 3:c062880000000000 4:405f300000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a ; 0:408d170000000000 1:4082fc0000000000 2:4085460000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 2 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c08d970000000000 1:c08d970000000000 +base __name__=a,instance=i2,job=y ; 0:c08b420000000000 1:c08b420000000000 +base __name__=a,zone=z1 ; 0:40647c0000000000 1:40739e0000000000 +info __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 4 +base __name__=a,instance=i1,zone=z2 ; 0:c06ac80000000000 1:4029800000000000 2:40789a0000000000 3:40789a0000000000 +base __name__=a,instance=i2 ; 0:c084b80000000000 1:407e2a0000000000 2:c086ee0000000000 3:4080eb0000000000 +base __name__=a,instance=i2,job=x ; 0:c088c60000000000 1:406d140000000000 2:c08c960000000000 3:408cf10000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c07eda0000000000 1:4072ce0000000000 2:4072ce0000000000 3:404ca00000000000 +base __name__=a,instance=i2,job=y ; 0:4080250000000000 1:c030200000000000 2:c0838f0000000000 3:c077c60000000000 +base __name__=a,job=x,version=base ; 0:4085f80000000000 1:4085f80000000000 2:4085f80000000000 3:c084cb0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,instance=i1,k8s_cluster=c1,zone=z2 ; 0:c06ac80000000000 1:4029800000000000 2:40789a0000000000 +result __name__=a,instance=i1,zone=z2 ; 3:40789a0000000000 +result __name__=a,instance=i2 ; 0:c084b80000000000 1:407e2a0000000000 2:c086ee0000000000 3:4080eb0000000000 +result __name__=a,instance=i2,job=x ; 0:c088c60000000000 1:406d140000000000 2:c08c960000000000 3:408cf10000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:c07eda0000000000 1:4072ce0000000000 2:4072ce0000000000 3:404ca00000000000 +result __name__=a,instance=i2,job=y ; 3:c077c60000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 0:4080250000000000 1:c030200000000000 2:c0838f0000000000 +result __name__=a,job=x,version=base ; 0:4085f80000000000 1:4085f80000000000 2:4085f80000000000 3:c084cb0000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i1,version=base ; 0:c0709c0000000000 +base __name__=a,instance=i2,job=x ; 0:c079da0000000000 +base __name__=a,instance=i2,k8s_cluster=c2 ; 0:407be40000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c068a00000000000 +base __name__=a,job=x ; 0:4088360000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 0:c087eb0000000000 +base __name__=target_info,job=y,k8s_cluster=c2 ; 0:c081360000000000 +base __name__=target_info,k8s_cluster=c1,version=v1 ; 0:c083b10000000000 +info __name__=target_info,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 0:c087eb0000000000 +result __name__=target_info,job=y,k8s_cluster=c2 ; 0:c081360000000000 +result __name__=target_info,k8s_cluster=c1,version=v1 ; 0:c083b10000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=y ; 0:c080740000000000 1:c080970000000000 2:c066800000000000 3:c066800000000000 4:c083eb0000000000 5:c078300000000000 6:c08bf00000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:407d4e0000000000 1:4084120000000000 2:4084120000000000 3:c087b00000000000 4:c087b00000000000 5:c08c340000000000 6:4082df0000000000 +base __name__=a,instance=i1,zone=z2 ; 1:4084ee0000000000 2:4085720000000000 3:c08a480000000000 4:c08a4a0000000000 5:4074ce0000000000 6:4074ce0000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c07a6c0000000000 1:4078860000000000 2:c014000000000000 3:c0889c0000000000 4:4081ca0000000000 5:40789a0000000000 6:c08e2e0000000000 +base __name__=target_info,instance=i1,k8s_cluster=c1 ; 2:4078c40000000000 3:4086380000000000 4:c081e20000000000 5:40825e0000000000 6:4077fe0000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 1:4080e40000000000 2:406d7c0000000000 3:406d7c0000000000 4:c0831a0000000000 5:408e730000000000 6:408e730000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 2:c041400000000000 3:c041400000000000 4:c078920000000000 5:c078920000000000 6:4081b50000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 2:4084120000000000 3:c087b00000000000 4:c087b00000000000 5:c08c340000000000 6:4082df0000000000 +result __name__=a,instance=i1,k8s_cluster=c1,zone=z2 ; 2:4085720000000000 3:c08a480000000000 4:c08a4a0000000000 5:4074ce0000000000 6:4074ce0000000000 +result __name__=target_info,instance=i1,k8s_cluster=c1 ; 2:4078c40000000000 3:4086380000000000 4:c081e20000000000 5:40825e0000000000 6:4077fe0000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 1:4080e40000000000 2:406d7c0000000000 3:406d7c0000000000 4:c0831a0000000000 5:408e730000000000 6:408e730000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 2:c041400000000000 3:c041400000000000 4:c078920000000000 5:c078920000000000 6:4081b50000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y,version=base ; 1:4085f80000000000 2:c08df90000000000 +base __name__=a,instance=i2,k8s_cluster=c1 ; 0:c068500000000000 1:c074000000000000 2:4077040000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v1 ; +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=build_info,instance=i1,job=y,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 +result __name__=a,instance=i1,job=y,version=base ; 1:4085f80000000000 2:c08df90000000000 +result __name__=a,instance=i2,k8s_cluster=c1,version=v2 ; 1:c074000000000000 2:4077040000000000 +end +case version false __name__=~".+_info" +expr info({__name__=~"a|target_info"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z2 ; 0:4087100000000000 1:c08b0a0000000000 2:c08b0a0000000000 3:4082dd0000000000 4:4082dd0000000000 5:c0871d0000000000 6:c050700000000000 +base __name__=a,instance=i1,job=y ; 0:408f240000000000 1:40893a0000000000 2:406a200000000000 3:c081e20000000000 4:c081e20000000000 5:c081e20000000000 +base __name__=a,instance=i2,job=x ; 0:c08d700000000000 1:c08d700000000000 2:c08d700000000000 3:c079a20000000000 4:c079a20000000000 5:c079a20000000000 6:c040d00000000000 +base __name__=a,job=y,zone=z1 ; 0:c070820000000000 1:c070820000000000 2:c070820000000000 3:407c7e0000000000 4:c080ad0000000000 5:c0635c0000000000 6:c0635c0000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:c07fbe0000000000 1:40804d0000000000 2:c072d40000000000 3:c089460000000000 4:c089460000000000 5:c046c00000000000 6:c046c00000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 1:407bce0000000000 2:407bce0000000000 3:c089f70000000000 4:c089f70000000000 5:4083750000000000 6:4083750000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=build_info,instance=i2,job=y,version=v2,zone=z2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:c07fbe0000000000 1:40804d0000000000 2:c072d40000000000 3:c089460000000000 4:c089460000000000 5:c046c00000000000 6:c046c00000000000 +result __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 1:407bce0000000000 2:407bce0000000000 3:c089f70000000000 4:c089f70000000000 5:4083750000000000 6:4083750000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=x,version=base,zone=z1 ; 0:c0743c0000000000 1:c063e80000000000 2:c06b740000000000 3:c07ed40000000000 4:408baf0000000000 +base __name__=a,instance=i1,job=y ; 0:408ea80000000000 1:c07fe80000000000 2:4002000000000000 3:c082220000000000 4:c075860000000000 +base __name__=a,instance=i1,version=base,zone=z1 ; 0:c07f0c0000000000 1:c07adc0000000000 2:c077840000000000 3:c085770000000000 4:4062140000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; +result __name__=a,instance=i1,job=x,version=base,zone=z1 ; 0:c0743c0000000000 1:c063e80000000000 2:c06b740000000000 3:c07ed40000000000 4:408baf0000000000 +result __name__=a,instance=i1,job=y ; 0:408ea80000000000 1:c07fe80000000000 2:4002000000000000 3:c082220000000000 4:c075860000000000 +result __name__=a,instance=i1,version=base,zone=z1 ; 0:c07f0c0000000000 1:c07adc0000000000 2:c077840000000000 3:c085770000000000 4:4062140000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 1 +base __name__=a,instance=i1 ; 0:4086390000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z2 ; 0:c078be0000000000 +base __name__=a,instance=i2,job=y,version=base ; 0:c051c00000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:c087230000000000 +result __name__=a,instance=i1 ; 0:4086390000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z2 ; 0:c078be0000000000 +result __name__=a,instance=i2,job=y,version=base ; 0:c051c00000000000 +result __name__=a,instance=i2,job=y,zone=z1 ; 0:c087230000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 2 +base __name__=a,job=y ; 0:c053f80000000000 1:407f100000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; +result __name__=a,job=y ; 0:c053f80000000000 1:407f100000000000 +end +case version false __name__=~".+_info" +expr info({__name__=~"a|target_info"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:4089b10000000000 1:40806a0000000000 2:402ec00000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c03c400000000000 1:c0839a0000000000 2:4089610000000000 +base __name__=a,job=x ; 0:c083fc0000000000 1:c083fc0000000000 2:408ad90000000000 +base __name__=a,job=y,version=base ; 1:c042200000000000 2:4087730000000000 +base __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:c08bc10000000000 2:c08bc10000000000 +base __name__=target_info,k8s_cluster=c2,version=v2 ; 0:405a280000000000 1:405a280000000000 2:405a280000000000 +info __name__=target_info,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=build_info,job=x,version=v1 ; 2:40fd4c0000000000 +result __name__=a,job=x,version=v1 ; 1:c083fc0000000000 2:408ad90000000000 +result __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:c08bc10000000000 2:c08bc10000000000 +result __name__=target_info,k8s_cluster=c2,version=v2 ; 0:405a280000000000 1:405a280000000000 2:405a280000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=y ; 0:c065a40000000000 1:c059a00000000000 2:c08e1c0000000000 3:4073b20000000000 4:4073b20000000000 5:408b6d0000000000 6:408b6d0000000000 7:c080320000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:c07fd60000000000 1:4082110000000000 2:408def0000000000 3:c071100000000000 4:c071100000000000 5:c071100000000000 7:c083ff0000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z1 ; 1:c089f90000000000 2:c089f90000000000 3:4081f90000000000 4:4081f90000000000 5:4081f90000000000 6:4082c70000000000 7:4082c70000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 7:4104c08000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1 ; 6:4103880000000000 7:4103880000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +result __name__=a,instance=i1,job=y ; 0:c065a40000000000 1:c059a00000000000 2:c08e1c0000000000 3:4073b20000000000 4:4073b20000000000 5:408b6d0000000000 6:408b6d0000000000 7:c080320000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 0:c07fd60000000000 1:4082110000000000 2:408def0000000000 3:c071100000000000 4:c071100000000000 5:c071100000000000 7:c083ff0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z1 ; 1:c089f90000000000 2:c089f90000000000 3:4081f90000000000 4:4081f90000000000 5:4081f90000000000 6:4082c70000000000 7:4082c70000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x,k8s_cluster=c2,version=base,zone=z2 ; 0:4084ad0000000000 1:4084ad0000000000 2:4084ad0000000000 3:c077a40000000000 4:404d500000000000 5:404d500000000000 6:c077a60000000000 +base __name__=a,instance=i1,job=y ; 0:4076f40000000000 1:4076f40000000000 2:40861d0000000000 3:c06cf80000000000 4:4083340000000000 5:4083340000000000 6:c061ec0000000000 +base __name__=a,instance=i1,job=y,version=base ; 1:c080f90000000000 2:c080f90000000000 3:407df40000000000 4:4075220000000000 5:4075220000000000 6:4075be0000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 1:4079740000000000 2:4079740000000000 3:c040500000000000 4:4084d70000000000 5:407f1a0000000000 6:40853a0000000000 +base __name__=a,instance=i2,job=y ; 0:405d880000000000 1:c0884b0000000000 2:407ece0000000000 3:407ece0000000000 4:407ece0000000000 5:4073b00000000000 6:4084c60000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 +info __name__=build_info,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 +info __name__=build_info,job=x,version=v1 ; 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 2 +base __name__=a,instance=i2,job=x ; 0:c07a140000000000 1:408eb40000000000 +base __name__=a,job=x ; 1:c088b20000000000 +base __name__=a,version=base ; 0:c083230000000000 1:4066980000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 1:40fadb0000000000 +result __name__=a,instance=i2,job=x ; 0:c07a140000000000 1:408eb40000000000 +result __name__=a,job=x ; 1:c088b20000000000 +result __name__=a,version=base ; 0:c083230000000000 1:4066980000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,job=y ; 2:406a040000000000 3:c05f680000000000 4:c05f680000000000 5:4008000000000000 6:c083230000000000 +info __name__=target_info,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 +result __name__=a,job=y,version=v2 ; 2:406a040000000000 3:c05f680000000000 5:4008000000000000 6:c083230000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:c086f20000000000 1:c074d60000000000 2:c076f00000000000 3:c08a150000000000 4:c063340000000000 5:c056680000000000 6:c056680000000000 7:4076ea0000000000 +base __name__=a,instance=i1,version=base ; 0:4082950000000000 1:4072c60000000000 2:40802c0000000000 3:c06e6c0000000000 4:c061840000000000 5:c061840000000000 6:c070d60000000000 7:c082e10000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c086040000000000 1:40763e0000000000 2:4078d20000000000 3:c08ee00000000000 4:c08ee00000000000 5:c08ee00000000000 6:c08ebc0000000000 7:40683c0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1 ; 0:c06ba80000000000 1:c06ba80000000000 2:402dc00000000000 3:402dc00000000000 4:408ea20000000000 5:c085fb0000000000 6:407fbe0000000000 7:4089db0000000000 8:4086490000000000 9:40853c0000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1,zone=z1 ; 0:c0779e0000000000 1:c081c60000000000 2:c0815b0000000000 3:c0815b0000000000 4:c06bb80000000000 5:c0865a0000000000 6:4082e10000000000 7:4082e10000000000 8:4082e10000000000 +base __name__=a,instance=i2,job=y,version=base ; 0:c0811c0000000000 1:c0811c0000000000 2:4086bf0000000000 3:4086bf0000000000 4:4086bf0000000000 5:407e380000000000 6:c0735c0000000000 7:4086840000000000 8:407c0e0000000000 9:c07aac0000000000 +base __name__=a,instance=i2,zone=z2 ; 0:406e700000000000 1:c0714e0000000000 2:40837c0000000000 3:4087d30000000000 4:4087d30000000000 5:405d100000000000 6:c05cf00000000000 7:406f000000000000 8:406f000000000000 9:406f000000000000 +base __name__=a,job=x,zone=z2 ; 0:4057880000000000 1:c08ec80000000000 2:c077f60000000000 3:c08f200000000000 4:c08f200000000000 5:c07de40000000000 6:c057b80000000000 7:c0848e0000000000 8:c0848e0000000000 9:c062d80000000000 +base __name__=a,version=base ; 1:408a2c0000000000 2:c04a800000000000 3:c04a800000000000 4:c06b700000000000 5:c06aa40000000000 6:c06aa40000000000 7:40805a0000000000 8:406b480000000000 9:c03a800000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v2 ; 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 9:4105f90000000000 +error found duplicate series for info metric: existing {__name__="target_info", instance="i2", job="x", k8s_cluster="c1", version="v2"} @ 180000, new {__name__="target_info", instance="i2", job="x", k8s_cluster="c2", version="v2"} @ 180000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a ; 0:c085d50000000000 1:40756c0000000000 2:40756c0000000000 +base __name__=a,instance=i1 ; 0:4089250000000000 1:408bd00000000000 2:c08f260000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:4072ae0000000000 1:c07b520000000000 2:c075ca0000000000 +base __name__=a,instance=i2 ; 0:c077720000000000 1:40826d0000000000 2:c08b3d0000000000 +base __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 0:c05fc00000000000 1:c05fc00000000000 2:c05fc00000000000 +result __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 0:c05fc00000000000 1:c05fc00000000000 2:c05fc00000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:c067700000000000 1:4080720000000000 2:4080720000000000 +base __name__=a,instance=i2,job=x ; 0:408cf20000000000 1:c085f60000000000 2:c085f60000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1,version=base,zone=z2 ; 0:407d940000000000 1:4075860000000000 2:4075860000000000 +base __name__=a,job=x,k8s_cluster=c2,zone=z2 ; 0:c07a920000000000 1:c07a920000000000 2:c07f4e0000000000 +base __name__=a,job=y,zone=z1 ; 1:c06c200000000000 2:c07e2c0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 5 +base __name__=a,instance=i2 ; 0:4082260000000000 1:c08a380000000000 2:407c5e0000000000 3:c01b800000000000 4:408e530000000000 +base __name__=a,job=x ; 0:4080a90000000000 1:c086fd0000000000 2:c086fd0000000000 3:c08c570000000000 4:c08c570000000000 +result __name__=a,instance=i2 ; 0:4082260000000000 1:c08a380000000000 2:407c5e0000000000 3:c01b800000000000 4:408e530000000000 +result __name__=a,job=x ; 0:4080a90000000000 1:c086fd0000000000 2:c086fd0000000000 3:c08c570000000000 4:c08c570000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:4081960000000000 1:4081960000000000 2:407fc20000000000 +base __name__=a,instance=i2,job=y ; 0:c0789e0000000000 1:c0789e0000000000 2:408a940000000000 +base __name__=a,instance=i2,version=base,zone=z1 ; 1:4088430000000000 2:4087810000000000 +base __name__=a,instance=i2,zone=z2 ; 0:404d400000000000 1:c08f190000000000 2:c084d60000000000 +base __name__=a,job=x,zone=z1 ; 0:4083a50000000000 1:c071680000000000 2:c08ed00000000000 +info __name__=build_info,instance=i2,job=y,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 +result __name__=a,instance=i1,job=y,zone=z2 ; 0:4081960000000000 1:4081960000000000 2:407fc20000000000 +result __name__=a,instance=i2,job=y ; 0:c0789e0000000000 +result __name__=a,instance=i2,job=y,version=v1 ; 1:c0789e0000000000 2:408a940000000000 +result __name__=a,instance=i2,version=base,zone=z1 ; 1:4088430000000000 2:4087810000000000 +result __name__=a,instance=i2,zone=z2 ; 0:404d400000000000 1:c08f190000000000 2:c084d60000000000 +result __name__=a,job=x,zone=z1 ; 0:4083a50000000000 1:c071680000000000 2:c08ed00000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:c07fc00000000000 1:c07fc00000000000 2:407dd40000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:40878d0000000000 1:40759c0000000000 2:408af40000000000 +base __name__=a,instance=i1,zone=z2 ; 0:c088d10000000000 1:c088d10000000000 2:c088d10000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:c06dcc0000000000 1:407e940000000000 2:408ec40000000000 +base __name__=a,job=x,zone=z1 ; 0:40821c0000000000 1:408b060000000000 2:408b060000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; 2:40fd4c0000000000 +result __name__=a,instance=i1,job=x,zone=z1 ; 0:c07fc00000000000 1:c07fc00000000000 2:407dd40000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2,version=v1,zone=z1 ; 0:40878d0000000000 1:40759c0000000000 2:408af40000000000 +result __name__=a,instance=i1,zone=z2 ; 0:c088d10000000000 1:c088d10000000000 2:c088d10000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:c06dcc0000000000 1:407e940000000000 2:408ec40000000000 +result __name__=a,job=x,zone=z1 ; 0:40821c0000000000 1:408b060000000000 2:408b060000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 1:c08a2f0000000000 2:c080e90000000000 3:c080e90000000000 4:c072e20000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 1:c08a650000000000 2:c08a650000000000 3:c06a280000000000 4:c047200000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2,version=base,zone=z1 ; 0:c086110000000000 1:4057000000000000 2:c076680000000000 3:c03a000000000000 4:c074000000000000 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:c064680000000000 1:408f2c0000000000 2:c080250000000000 3:c080250000000000 4:c089520000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:4080c20000000000 1:4080c20000000000 2:4080c20000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c087c90000000000 1:c087c90000000000 2:c087c90000000000 3:4089040000000000 4:c072ae0000000000 +info __name__=build_info,instance=i2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=build_info,instance=i2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +error found duplicate series for info metric: existing {__name__="build_info", instance="i2", version="v2"} @ 100000, new {__name__="build_info", instance="i2", version="v1"} @ 100000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=x ; 0:407f0a0000000000 1:c054700000000000 2:406be00000000000 3:406be00000000000 4:406be00000000000 6:c074f60000000000 7:c088700000000000 8:407c280000000000 9:4086740000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 3:4072140000000000 4:4072140000000000 5:4072140000000000 7:c081e70000000000 8:c086150000000000 9:404b200000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:c087d90000000000 1:c080250000000000 2:c06f380000000000 3:c08e180000000000 4:c086380000000000 5:c07d640000000000 6:c067c80000000000 7:c067c80000000000 8:408b990000000000 9:408c200000000000 +base __name__=a,instance=i1,version=base ; 0:c065600000000000 1:c065600000000000 2:c065600000000000 3:4085b90000000000 4:c0743a0000000000 5:c0743a0000000000 6:c0743a0000000000 7:c045100000000000 8:4051380000000000 9:c06b240000000000 +base __name__=a,instance=i2,job=x ; 0:4089e80000000000 1:c081010000000000 2:4086f60000000000 3:4086f60000000000 4:4089e80000000000 5:4083010000000000 6:4083010000000000 7:4083010000000000 8:c066640000000000 9:c0874e0000000000 +base __name__=a,version=base ; 0:c083740000000000 1:c083740000000000 2:40870c0000000000 3:c08e930000000000 4:c08e930000000000 5:c08e930000000000 6:4068b40000000000 7:4068b40000000000 8:4068b40000000000 9:c080fd0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=build_info,version=v1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 9:4105f90000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 2:4042400000000000 3:c05a200000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2,zone=z1 ; 0:c084210000000000 1:c084210000000000 2:c084210000000000 +info __name__=target_info,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,job=y,k8s_cluster=c2 ; 3:40ffbd0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 10 +base __name__=a,instance=i1,zone=z1 ; 0:4082980000000000 1:c0882d0000000000 2:4072920000000000 3:4072920000000000 4:4072920000000000 7:c08b600000000000 8:c08b600000000000 9:4084610000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 5 +base __name__=a,instance=i1,k8s_cluster=c2,version=base ; 0:c0858c0000000000 1:c062d00000000000 2:c088640000000000 3:c07dee0000000000 4:c08e4d0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 +info __name__=target_info,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a,instance=i1 ; 0:c07ade0000000000 1:c056c00000000000 2:40809f0000000000 3:c0737e0000000000 4:c0737e0000000000 5:c08e070000000000 6:c08e070000000000 7:bff4000000000000 8:c071060000000000 +base __name__=a,instance=i1,zone=z2 ; 0:c082ed0000000000 1:c073fe0000000000 2:c08a520000000000 3:c08a520000000000 4:4065f00000000000 5:4081b40000000000 6:4081b40000000000 7:4088e90000000000 8:4088e90000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c06d180000000000 1:c0716a0000000000 2:4063040000000000 3:4063040000000000 4:c07fcc0000000000 5:4082e40000000000 6:4082e40000000000 7:4082e40000000000 8:c063780000000000 +base __name__=a,instance=i2,k8s_cluster=c2 ; 0:c067c80000000000 1:4087480000000000 2:40754e0000000000 3:c020400000000000 4:4089430000000000 5:c089880000000000 6:c089880000000000 7:4081f00000000000 8:4066e80000000000 +base __name__=a,job=y ; 2:c05a680000000000 3:408ce70000000000 4:408c8a0000000000 5:408a8d0000000000 6:4082510000000000 7:4082510000000000 8:c0693c0000000000 +base __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 0:c082330000000000 1:c082330000000000 2:c0739a0000000000 3:c0739a0000000000 4:c0739a0000000000 5:4089b40000000000 6:4089b40000000000 7:c08dad0000000000 8:c08dad0000000000 +base __name__=target_info,job=x,k8s_cluster=c1 ; 0:4063200000000000 1:4063200000000000 2:4080d20000000000 3:4080010000000000 4:406a080000000000 5:c06ec40000000000 6:c08f120000000000 7:c088e60000000000 8:c088e60000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 2:4084d20000000000 3:4084d20000000000 4:40714e0000000000 5:40714e0000000000 6:40714e0000000000 +base __name__=target_info,job=x,k8s_cluster=c2 ; 1:405f200000000000 2:405f200000000000 3:405f200000000000 4:408f0b0000000000 5:40897d0000000000 6:40897d0000000000 7:4077b60000000000 8:4077b60000000000 +info __name__=target_info,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +result __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 0:c082330000000000 1:c082330000000000 2:c0739a0000000000 3:c0739a0000000000 4:c0739a0000000000 5:4089b40000000000 6:4089b40000000000 7:c08dad0000000000 8:c08dad0000000000 +result __name__=target_info,job=x,k8s_cluster=c1 ; 0:4063200000000000 1:4063200000000000 2:4080d20000000000 3:4080010000000000 4:406a080000000000 5:c06ec40000000000 6:c08f120000000000 7:c088e60000000000 8:c088e60000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 2:4084d20000000000 3:4084d20000000000 4:40714e0000000000 5:40714e0000000000 6:40714e0000000000 +result __name__=target_info,job=x,k8s_cluster=c2 ; 1:405f200000000000 2:405f200000000000 3:405f200000000000 4:408f0b0000000000 5:40897d0000000000 6:40897d0000000000 7:4077b60000000000 8:4077b60000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:c08b2b0000000000 1:c087950000000000 2:406cdc0000000000 3:406cdc0000000000 4:4047f00000000000 5:4047f00000000000 +base __name__=a,instance=i1,job=x,version=base ; 1:c063e40000000000 2:408a0f0000000000 3:c072aa0000000000 4:407bee0000000000 5:c070840000000000 +base __name__=a,instance=i2 ; 0:40833e0000000000 1:c075360000000000 2:c084d30000000000 3:4083530000000000 4:40851f0000000000 5:40851f0000000000 +base __name__=a,job=y ; 0:4089e10000000000 1:4082ac0000000000 2:c068d80000000000 3:c07d3e0000000000 4:4007000000000000 5:c06b500000000000 +info __name__=target_info,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:c08b2b0000000000 1:c087950000000000 2:406cdc0000000000 3:406cdc0000000000 4:4047f00000000000 5:4047f00000000000 +result __name__=a,instance=i1,job=x,version=base ; 1:c063e40000000000 2:408a0f0000000000 3:c072aa0000000000 4:407bee0000000000 5:c070840000000000 +result __name__=a,instance=i2,k8s_cluster=d1 ; 0:40833e0000000000 1:c075360000000000 2:c084d30000000000 3:4083530000000000 4:40851f0000000000 5:40851f0000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 0:4089e10000000000 1:4082ac0000000000 2:c068d80000000000 3:c07d3e0000000000 4:4007000000000000 5:c06b500000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=y ; 0:4065100000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c04fe00000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; +result __name__=a,instance=i2,job=y ; 0:4065100000000000 +result __name__=a,instance=i2,zone=z1 ; 0:c04fe00000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:405bf00000000000 1:405bf00000000000 2:405bf00000000000 +base __name__=a,instance=i2,job=y ; 1:4074c80000000000 2:c076c60000000000 3:c047100000000000 +base __name__=a,job=y,zone=z1 ; 1:c0872a0000000000 2:c077c40000000000 3:c062b80000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 1 +base __name__=a ; 0:40840b0000000000 +base __name__=a,instance=i1 ; 0:408a860000000000 +base __name__=a,job=y,zone=z1 ; 0:bfd0000000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 0:4086250000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 0:c076900000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; +info __name__=target_info,job=x,k8s_cluster=d1 ; 0:40f86a0000000000 +info __name__=target_info,k8s_cluster=c2 ; +result __name__=a ; 0:40840b0000000000 +result __name__=a,instance=i1 ; 0:408a860000000000 +result __name__=a,job=y,zone=z1 ; 0:bfd0000000000000 +result __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 0:4086250000000000 +result __name__=target_info,job=x,k8s_cluster=d1 ; 0:c076900000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a,instance=i2,job=x ; 1:4068e00000000000 2:4068e00000000000 3:c081450000000000 4:407f240000000000 5:c081e60000000000 6:c079ba0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 2:c084800000000000 3:c084800000000000 4:c084800000000000 5:4077ee0000000000 6:c069ac0000000000 +base __name__=target_info,instance=i1,k8s_cluster=d1 ; 0:4082940000000000 1:4082940000000000 2:4082940000000000 5:c0882c0000000000 6:408d750000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 0:c074280000000000 1:c074280000000000 2:c057b80000000000 3:c057b80000000000 4:c0835f0000000000 5:4087db0000000000 6:c07e480000000000 +base __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; 2:40773a0000000000 3:40773a0000000000 4:4087420000000000 5:4087420000000000 6:4087420000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:4103880000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 2:c084800000000000 3:c084800000000000 4:c084800000000000 5:4077ee0000000000 6:c069ac0000000000 +result __name__=target_info,instance=i1,k8s_cluster=d1 ; 0:4082940000000000 1:4082940000000000 2:4082940000000000 5:c0882c0000000000 6:408d750000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 0:c074280000000000 1:c074280000000000 2:c057b80000000000 3:c057b80000000000 4:c0835f0000000000 5:4087db0000000000 6:c07e480000000000 +result __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; 2:40773a0000000000 3:40773a0000000000 4:4087420000000000 5:4087420000000000 6:4087420000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 4 +base __name__=a,instance=i2,version=base ; 0:c085bd0000000000 1:408e700000000000 2:c07ba20000000000 3:c081df0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=build_info,version=v2 ; +info __name__=build_info,instance=i2,job=y,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:c06a480000000000 +base __name__=a,job=x,k8s_cluster=c2,zone=z2 ; 0:c08eaf0000000000 +base __name__=a,job=x,zone=z1 ; 0:4054900000000000 +base __name__=a,job=y,zone=z1 ; 0:4084d30000000000 +base __name__=a,zone=z2 ; 0:c07a640000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x ; 1:c081810000000000 2:c08a420000000000 3:c08a420000000000 4:4080a90000000000 5:4080a90000000000 6:40636c0000000000 +base __name__=a,instance=i1,k8s_cluster=c1,zone=z1 ; 0:4089930000000000 1:c05f800000000000 2:c05f800000000000 3:c05f800000000000 4:408db30000000000 5:c08d070000000000 6:4071940000000000 +base __name__=a,instance=i2 ; 1:c074740000000000 2:c074740000000000 3:4076440000000000 4:4076440000000000 5:4076440000000000 6:40828d0000000000 +base __name__=a,instance=i2,job=x,version=base ; 0:c065bc0000000000 1:c065bc0000000000 2:4038200000000000 3:4068640000000000 4:c082350000000000 5:c085560000000000 6:c0873d0000000000 +base __name__=a,job=y ; 0:c078240000000000 1:c063c80000000000 2:c085870000000000 3:c08b5f0000000000 4:408cc60000000000 5:408cc60000000000 6:c086c20000000000 +base __name__=a,version=base ; 0:c03c400000000000 1:c07e260000000000 2:4049800000000000 3:4060600000000000 4:4078300000000000 5:408f080000000000 6:c082ae0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 +info __name__=build_info,job=x,version=v2,zone=z1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=build_info,instance=i1,job=x,version=v2,zone=z2 ; +info __name__=build_info,instance=i1,version=v2,zone=z2 ; 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +result __name__=a,instance=i1,k8s_cluster=c1,version=v2,zone=z1 ; 3:c05f800000000000 4:408db30000000000 5:c08d070000000000 6:4071940000000000 +result __name__=a,job=y,version=v1 ; 0:c078240000000000 1:c063c80000000000 2:c085870000000000 3:c08b5f0000000000 4:408cc60000000000 5:408cc60000000000 6:c086c20000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:40816c0000000000 1:c088fc0000000000 2:4081c30000000000 +base __name__=a,instance=i1,version=base ; 1:4071000000000000 2:4071000000000000 +base __name__=a,instance=i2,job=y ; 0:4063240000000000 1:407da00000000000 2:4078940000000000 +base __name__=a,job=x ; 0:c08ee70000000000 1:40737a0000000000 2:40737a0000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 2:4072ca0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; +info __name__=target_info,instance=i2,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 +result __name__=a,instance=i1 ; 0:40816c0000000000 1:c088fc0000000000 2:4081c30000000000 +result __name__=a,instance=i1,version=base ; 1:4071000000000000 2:4071000000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:4063240000000000 1:407da00000000000 2:4078940000000000 +result __name__=a,job=x ; 0:c08ee70000000000 1:40737a0000000000 2:40737a0000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 2:4072ca0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=y ; 0:4085470000000000 1:40766c0000000000 2:c06e140000000000 3:c06e140000000000 4:c06f180000000000 5:c06f180000000000 6:c06f180000000000 +base __name__=a,job=x,zone=z1 ; 0:40754e0000000000 1:40740e0000000000 2:4086db0000000000 3:c051580000000000 4:c05ba80000000000 5:c05ba80000000000 6:4056800000000000 +base __name__=a,job=y ; 0:4066e00000000000 1:c059800000000000 2:40766a0000000000 3:4083c20000000000 4:4069600000000000 5:4069600000000000 6:4071460000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 +result __name__=a,instance=i1,job=y ; 0:4085470000000000 1:40766c0000000000 2:c06e140000000000 3:c06e140000000000 4:c06f180000000000 5:c06f180000000000 6:c06f180000000000 +result __name__=a,job=x,zone=z1 ; 0:40754e0000000000 1:40740e0000000000 2:4086db0000000000 3:c051580000000000 4:c05ba80000000000 5:c05ba80000000000 6:4056800000000000 +result __name__=a,job=y ; 0:4066e00000000000 1:c059800000000000 2:40766a0000000000 3:4083c20000000000 4:4069600000000000 5:4069600000000000 6:4071460000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 1 +base __name__=a,instance=i1,version=base ; 0:4088d10000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; +info __name__=target_info,k8s_cluster=c2 ; 0:40f86a0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; +result __name__=a,instance=i1,version=base ; 0:4088d10000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a,instance=i1,zone=z2 ; 1:4086e40000000000 +base __name__=a,instance=i2,job=y ; 1:4055e00000000000 +base __name__=a,instance=i2,zone=z2 ; 0:c05de80000000000 1:4050c80000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; +result __name__=a,instance=i2,version=v2,zone=z2 ; 0:c05de80000000000 1:4050c80000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=y,zone=z1 ; 1:c07df40000000000 2:c0760a0000000000 3:4067640000000000 4:4067640000000000 5:40736c0000000000 6:408b050000000000 7:40785a0000000000 8:40785a0000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 1:c07df40000000000 2:c0760a0000000000 3:4067640000000000 4:4067640000000000 5:40736c0000000000 6:408b050000000000 7:40785a0000000000 8:40785a0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 10 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:c050c00000000000 1:4089dd0000000000 2:4089dd0000000000 3:4089dd0000000000 4:406ec40000000000 5:406ec40000000000 6:406ec40000000000 8:c05ab80000000000 9:c05ab80000000000 +base __name__=a,instance=i2,job=y ; 0:c079540000000000 1:407d6a0000000000 2:406fa00000000000 3:4087470000000000 4:4087470000000000 5:c08c430000000000 6:c085570000000000 7:c085570000000000 8:c074e20000000000 9:4085910000000000 +base __name__=a,job=x ; 1:4084400000000000 2:4084400000000000 3:408e4e0000000000 4:4051100000000000 5:4087d40000000000 6:4068a00000000000 7:4068a00000000000 8:4068a00000000000 9:c088420000000000 +base __name__=a,job=y,k8s_cluster=c1 ; 0:c08c2f0000000000 1:c089970000000000 2:4081090000000000 3:c085610000000000 4:c085610000000000 5:407c560000000000 6:c06aa00000000000 7:c06aa00000000000 8:c089d60000000000 9:c04de00000000000 +base __name__=a,k8s_cluster=c1 ; 1:c070640000000000 2:c058c00000000000 3:4061fc0000000000 4:408b870000000000 5:408b870000000000 6:c079e20000000000 7:c079e20000000000 8:c079e20000000000 9:c037800000000000 +base __name__=a,zone=z1 ; 0:408bd00000000000 1:40836f0000000000 2:c052200000000000 3:c052200000000000 4:c053480000000000 5:c053480000000000 6:c053480000000000 8:c06d580000000000 9:c0770a0000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4105f90000000000 9:4107318000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:c050c00000000000 1:4089dd0000000000 2:4089dd0000000000 3:4089dd0000000000 4:406ec40000000000 5:406ec40000000000 6:406ec40000000000 8:c05ab80000000000 9:c05ab80000000000 +result __name__=a,instance=i2,job=y ; 0:c079540000000000 1:407d6a0000000000 2:406fa00000000000 3:4087470000000000 4:4087470000000000 5:c08c430000000000 6:c085570000000000 7:c085570000000000 8:c074e20000000000 9:4085910000000000 +result __name__=a,job=x ; 1:4084400000000000 2:4084400000000000 3:408e4e0000000000 4:4051100000000000 5:4087d40000000000 6:4068a00000000000 7:4068a00000000000 8:4068a00000000000 9:c088420000000000 +result __name__=a,job=y,k8s_cluster=c1 ; 0:c08c2f0000000000 1:c089970000000000 2:4081090000000000 3:c085610000000000 4:c085610000000000 5:407c560000000000 6:c06aa00000000000 7:c06aa00000000000 8:c089d60000000000 9:c04de00000000000 +result __name__=a,k8s_cluster=c1 ; 1:c070640000000000 2:c058c00000000000 3:4061fc0000000000 4:408b870000000000 5:408b870000000000 6:c079e20000000000 7:c079e20000000000 8:c079e20000000000 9:c037800000000000 +result __name__=a,zone=z1 ; 0:408bd00000000000 1:40836f0000000000 2:c052200000000000 3:c052200000000000 4:c053480000000000 5:c053480000000000 6:c053480000000000 8:c06d580000000000 9:c0770a0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=y,version=base ; 0:4088f20000000000 1:c07a6c0000000000 2:c08a370000000000 3:c06d4c0000000000 4:c034a00000000000 +base __name__=a,instance=i2,job=x ; 1:c064b80000000000 2:408b420000000000 3:408b420000000000 4:408b420000000000 +base __name__=a,instance=i2,version=base ; 0:c0870c0000000000 1:c0870c0000000000 2:c0870c0000000000 3:40806d0000000000 4:c06b740000000000 +base __name__=a,instance=i2,zone=z2 ; 1:408dc00000000000 2:406a600000000000 3:408e7c0000000000 4:407f220000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:c083f50000000000 1:c085580000000000 2:c085580000000000 +base __name__=a,instance=i1,job=x ; 0:4089af0000000000 1:c07cf00000000000 2:4080b70000000000 +base __name__=a,instance=i2 ; 0:4087cf0000000000 1:408c660000000000 2:c089c40000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:4064f80000000000 1:4064f80000000000 2:4064f80000000000 +base __name__=a,job=y ; 0:408f210000000000 1:408f210000000000 2:c065b00000000000 +base __name__=a,job=y,k8s_cluster=c2,zone=z1 ; 1:4086f20000000000 2:4086f20000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=build_info,instance=i1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 +info __name__=build_info,instance=i2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,instance=i1,job=x,version=v1 ; 0:4089af0000000000 1:c07cf00000000000 2:4080b70000000000 +result __name__=a,instance=i1,version=v2 ; 0:c083f50000000000 1:c085580000000000 2:c085580000000000 +result __name__=a,instance=i2,version=v2 ; 0:4087cf0000000000 1:408c660000000000 2:c089c40000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 4 +base __name__=a ; 0:c08c740000000000 1:40804a0000000000 2:c08b430000000000 3:4061980000000000 +base __name__=a,instance=i2,job=y ; 2:406c240000000000 3:4080540000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:4083a90000000000 1:408db10000000000 2:407c2c0000000000 3:407c2c0000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 0:c072220000000000 1:40833b0000000000 2:40833b0000000000 3:408c2c0000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=x,version=base ; 0:c082450000000000 1:4060400000000000 2:c063280000000000 3:c063280000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +result __name__=a,instance=i1,job=x,version=base ; 0:c082450000000000 1:4060400000000000 2:c063280000000000 3:c063280000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a,job=x ; 0:40690c0000000000 1:c077380000000000 2:c077380000000000 3:40778c0000000000 +info __name__=build_info,instance=i1,version=v1 ; 2:40fd4c0000000000 3:40ffbd0000000000 +result __name__=a,job=x ; 0:40690c0000000000 1:c077380000000000 2:c077380000000000 3:40778c0000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=x ; 0:4078780000000000 1:40870e0000000000 2:4052200000000000 3:c087180000000000 4:4083eb0000000000 5:408cfe0000000000 6:c05b300000000000 7:c088cc0000000000 8:4081fe0000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 2:408d440000000000 3:c078e40000000000 4:c05c300000000000 5:405c700000000000 6:405c700000000000 7:c088b20000000000 8:4070880000000000 +base __name__=a,instance=i2,job=y ; 0:c08acd0000000000 1:c08acd0000000000 2:4081280000000000 3:c076000000000000 4:408db90000000000 5:c079960000000000 6:c082460000000000 7:c082460000000000 8:c078c20000000000 +base __name__=a,job=y,zone=z2 ; 0:408e1b0000000000 1:4062cc0000000000 2:4077ea0000000000 3:c089f60000000000 4:c089f60000000000 5:40869f0000000000 6:c08a940000000000 7:c055b80000000000 8:c055b80000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 3:c080e30000000000 4:c080e30000000000 5:c080e30000000000 7:c06dbc0000000000 8:4061e00000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 7:4104c08000000000 8:4105f90000000000 +result __name__=a,instance=i1,job=x ; 0:4078780000000000 1:40870e0000000000 2:4052200000000000 3:c087180000000000 4:4083eb0000000000 5:408cfe0000000000 6:c05b300000000000 7:c088cc0000000000 8:4081fe0000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 2:408d440000000000 3:c078e40000000000 4:c05c300000000000 5:405c700000000000 6:405c700000000000 7:c088b20000000000 8:4070880000000000 +result __name__=a,instance=i2,job=y ; 0:c08acd0000000000 1:c08acd0000000000 2:4081280000000000 3:c076000000000000 4:408db90000000000 5:c079960000000000 6:c082460000000000 7:c082460000000000 8:c078c20000000000 +result __name__=a,job=y,zone=z2 ; 0:408e1b0000000000 1:4062cc0000000000 2:4077ea0000000000 3:c089f60000000000 4:c089f60000000000 5:40869f0000000000 6:c08a940000000000 7:c055b80000000000 8:c055b80000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 3:c080e30000000000 4:c080e30000000000 5:c080e30000000000 7:c06dbc0000000000 8:4061e00000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y ; 1:c08d750000000000 +base __name__=a,instance=i2,job=x ; 0:c085d30000000000 1:c071360000000000 +base __name__=a,job=y ; 0:c08ad40000000000 1:c08ad40000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i1,version=base ; 0:c060ec0000000000 1:406a3c0000000000 2:c08c410000000000 3:c0824e0000000000 4:c086570000000000 5:c086570000000000 6:c086570000000000 7:408d5f0000000000 8:c080510000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 0:c0666c0000000000 1:c0666c0000000000 2:c0666c0000000000 4:4083b50000000000 5:408a040000000000 6:c072da0000000000 7:c06cd80000000000 8:c06cd80000000000 +base __name__=target_info,job=y,k8s_cluster=c1 ; 0:c05fd80000000000 1:c08b5f0000000000 2:4089dc0000000000 3:c07f640000000000 4:c07f640000000000 5:c07f640000000000 6:c053700000000000 7:c053700000000000 8:c053700000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 +result __name__=a,instance=i1,version=base ; 0:c060ec0000000000 1:406a3c0000000000 2:c08c410000000000 3:c0824e0000000000 4:c086570000000000 5:c086570000000000 6:c086570000000000 7:408d5f0000000000 8:c080510000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 0:c0666c0000000000 1:c0666c0000000000 2:c0666c0000000000 4:4083b50000000000 5:408a040000000000 6:c072da0000000000 7:c06cd80000000000 8:c06cd80000000000 +result __name__=target_info,job=y,k8s_cluster=c1 ; 0:c05fd80000000000 1:c08b5f0000000000 2:4089dc0000000000 3:c07f640000000000 4:c07f640000000000 5:c07f640000000000 6:c053700000000000 7:c053700000000000 8:c053700000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 4 +base __name__=a,instance=i2,k8s_cluster=c2 ; 0:c07f500000000000 1:405cc80000000000 2:4077040000000000 3:4077040000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 3:40ffbd0000000000 +result __name__=a,instance=i2,k8s_cluster=c2 ; 0:c07f500000000000 1:405cc80000000000 2:4077040000000000 +result __name__=a,instance=i2,k8s_cluster=c2,version=v1 ; 3:4077040000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 7 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:40734a0000000000 2:40734a0000000000 3:c077c80000000000 4:4086af0000000000 5:4087920000000000 6:c083600000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:408e860000000000 1:408e860000000000 2:c08b450000000000 3:c08b450000000000 4:c08b450000000000 6:c073c20000000000 +base __name__=a,instance=i2,k8s_cluster=c1 ; 0:c06bf40000000000 1:c06bf40000000000 2:c08bdf0000000000 3:c08bdf0000000000 4:c0848b0000000000 5:4082580000000000 6:4082580000000000 +base __name__=a,job=x ; 2:c086080000000000 3:c0896e0000000000 4:c07bd20000000000 5:407af80000000000 6:c0692c0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:40734a0000000000 2:40734a0000000000 3:c077c80000000000 4:4086af0000000000 5:4087920000000000 6:c083600000000000 +result __name__=a,instance=i2,job=y,zone=z1 ; 0:408e860000000000 1:408e860000000000 2:c08b450000000000 3:c08b450000000000 4:c08b450000000000 6:c073c20000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 0:c06bf40000000000 1:c06bf40000000000 2:c08bdf0000000000 3:c08bdf0000000000 4:c0848b0000000000 5:4082580000000000 6:4082580000000000 +result __name__=a,job=x ; 2:c086080000000000 3:c0896e0000000000 4:c07bd20000000000 5:407af80000000000 6:c0692c0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 8 +base __name__=a,instance=i1,zone=z1 ; 0:c0885e0000000000 1:c071f20000000000 2:c08a0d0000000000 3:406a780000000000 4:406a780000000000 5:4073940000000000 6:4083420000000000 7:c07d2e0000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:407bce0000000000 1:407bce0000000000 2:407bce0000000000 3:408d320000000000 4:4085d80000000000 5:c072520000000000 6:c072520000000000 7:4074ba0000000000 +result __name__=a,instance=i1,zone=z1 ; 0:c0885e0000000000 1:c071f20000000000 2:c08a0d0000000000 3:406a780000000000 4:406a780000000000 5:4073940000000000 6:4083420000000000 7:c07d2e0000000000 +result __name__=a,instance=i2,job=y,zone=z1 ; 0:407bce0000000000 1:407bce0000000000 2:407bce0000000000 3:408d320000000000 4:4085d80000000000 5:c072520000000000 6:c072520000000000 7:4074ba0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 8 +base __name__=a,instance=i2,job=x ; 0:c075580000000000 1:c075580000000000 2:c075580000000000 3:4077840000000000 4:c088c50000000000 5:c088c50000000000 6:c088c50000000000 +base __name__=a,job=x ; 0:c081e50000000000 1:c08e0d0000000000 2:c08e0d0000000000 3:4077200000000000 4:4059700000000000 5:c089630000000000 6:c089630000000000 7:c089630000000000 +info __name__=target_info,k8s_cluster=c2,version=v1 ; +info __name__=build_info,version=v1,zone=z1 ; 7:4104c08000000000 +info __name__=build_info,instance=i2,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i2,k8s_cluster=c2 ; 0:4063d00000000000 1:40716a0000000000 2:4063f40000000000 +base __name__=a,job=x,version=base ; 1:40748a0000000000 2:c079f20000000000 +base __name__=a,job=x,zone=z2 ; 0:408dee0000000000 1:4052200000000000 2:c086100000000000 +base __name__=a,k8s_cluster=c1 ; 0:c06c540000000000 1:c08a820000000000 2:c08f070000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; +info __name__=target_info,k8s_cluster=d1 ; +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; +result __name__=a,instance=i2,k8s_cluster=c2 ; 0:4063d00000000000 1:40716a0000000000 2:4063f40000000000 +result __name__=a,job=x,k8s_cluster=c1,version=base ; 1:40748a0000000000 2:c079f20000000000 +result __name__=a,job=x,k8s_cluster=c1,zone=z2 ; 0:408dee0000000000 1:4052200000000000 2:c086100000000000 +result __name__=a,k8s_cluster=c1 ; 0:c06c540000000000 1:c08a820000000000 2:c08f070000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 6 +base __name__=a,instance=i2,job=y ; 0:4054e00000000000 1:4054e00000000000 2:406b2c0000000000 3:4080f10000000000 4:c07ba40000000000 5:c07ba40000000000 +base __name__=a,job=y,k8s_cluster=c2,zone=z1 ; 0:406d440000000000 1:406d440000000000 2:c0726c0000000000 3:4051e00000000000 4:4051e00000000000 5:c054480000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:408df40000000000 1:c07b160000000000 2:4087ec0000000000 3:4040b00000000000 4:c0738a0000000000 5:c0738a0000000000 6:4076c80000000000 7:c063600000000000 8:c0684c0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 0:c079a60000000000 1:c079a60000000000 2:4041300000000000 3:4041300000000000 4:c074d40000000000 +base __name__=a,instance=i1,job=x ; 1:4084a40000000000 2:408d670000000000 3:408dfc0000000000 4:408dfc0000000000 +base __name__=a,job=x,zone=z1 ; 0:c06ca00000000000 1:4078860000000000 2:4078860000000000 3:4084bc0000000000 4:408ddc0000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v1 ; +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 3:40ffbd0000000000 4:4101170000000000 +result __name__=a,instance=i1 ; 0:c079a60000000000 1:c079a60000000000 +result __name__=a,instance=i1,job=x ; 1:4084a40000000000 2:408d670000000000 3:408dfc0000000000 4:408dfc0000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 2:4041300000000000 3:4041300000000000 4:c074d40000000000 +result __name__=a,job=x,k8s_cluster=c1,version=v1,zone=z1 ; 1:4078860000000000 2:4078860000000000 3:4084bc0000000000 4:408ddc0000000000 +result __name__=a,job=x,zone=z1 ; 0:c06ca00000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 9 +base __name__=a,instance=i2,k8s_cluster=c1,zone=z2 ; 0:406e340000000000 1:c08d360000000000 2:c072380000000000 3:c063180000000000 4:40818a0000000000 5:40818a0000000000 6:c08ed00000000000 7:4078340000000000 8:4078340000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 +result __name__=a,instance=i2,k8s_cluster=c1,zone=z2 ; 0:406e340000000000 1:c08d360000000000 2:c072380000000000 3:c063180000000000 4:40818a0000000000 5:40818a0000000000 6:c08ed00000000000 7:4078340000000000 8:4078340000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=x ; 0:4042700000000000 1:c07f900000000000 2:c076640000000000 3:c076640000000000 +base __name__=a,instance=i1,job=y ; 0:407da60000000000 1:4089b70000000000 2:4089b70000000000 3:408e630000000000 +base __name__=a,instance=i2 ; 0:c079e60000000000 1:c079e60000000000 2:c07a440000000000 3:4086e60000000000 +base __name__=a,instance=i2,zone=z1 ; 1:c03b200000000000 2:c03b200000000000 3:4085340000000000 +base __name__=a,zone=z1 ; 0:4082770000000000 1:4082770000000000 2:4082770000000000 +result __name__=a,instance=i1,job=x ; 0:4042700000000000 1:c07f900000000000 2:c076640000000000 3:c076640000000000 +result __name__=a,instance=i1,job=y ; 0:407da60000000000 1:4089b70000000000 2:4089b70000000000 3:408e630000000000 +result __name__=a,instance=i2 ; 0:c079e60000000000 1:c079e60000000000 2:c07a440000000000 3:4086e60000000000 +result __name__=a,instance=i2,zone=z1 ; 1:c03b200000000000 2:c03b200000000000 3:4085340000000000 +result __name__=a,zone=z1 ; 0:4082770000000000 1:4082770000000000 2:4082770000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i2,zone=z1 ; 0:406bf00000000000 +base __name__=a,job=x,zone=z2 ; 0:407bfa0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 0:4076600000000000 +base __name__=target_info,k8s_cluster=d1 ; 0:4049e00000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 0:4076600000000000 +result __name__=target_info,k8s_cluster=d1 ; 0:4049e00000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 6 +base __name__=a ; 1:408dd30000000000 2:408dd30000000000 3:4070220000000000 4:4070220000000000 5:4054680000000000 +base __name__=a,instance=i1,job=x ; 1:408d380000000000 2:4060800000000000 3:4060800000000000 4:407bbe0000000000 5:408b520000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:407e180000000000 2:4079940000000000 3:4079940000000000 4:4082840000000000 5:c082a30000000000 +base __name__=a,version=base,zone=z2 ; 0:c0813f0000000000 1:4029c00000000000 2:407d500000000000 3:c08b4f0000000000 4:c08b4f0000000000 5:c087f90000000000 +result __name__=a ; 1:408dd30000000000 2:408dd30000000000 3:4070220000000000 4:4070220000000000 5:4054680000000000 +result __name__=a,instance=i1,job=x ; 1:408d380000000000 2:4060800000000000 3:4060800000000000 4:407bbe0000000000 5:408b520000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 1:407e180000000000 2:4079940000000000 3:4079940000000000 4:4082840000000000 5:c082a30000000000 +result __name__=a,version=base,zone=z2 ; 0:c0813f0000000000 1:4029c00000000000 2:407d500000000000 3:c08b4f0000000000 4:c08b4f0000000000 5:c087f90000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=y ; 0:c072e00000000000 1:c072e00000000000 2:c0849e0000000000 3:c0849e0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:c072e00000000000 1:c072e00000000000 2:c0849e0000000000 3:c0849e0000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 4 +base __name__=a ; 0:c030c00000000000 1:c082f00000000000 2:4083560000000000 3:c069a80000000000 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:4084700000000000 1:4084700000000000 2:407f020000000000 3:407f020000000000 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:c083cb0000000000 1:c083cb0000000000 2:4078e40000000000 3:4079d80000000000 +base __name__=a,instance=i1,k8s_cluster=c1,zone=z2 ; 0:4076b20000000000 1:4076b20000000000 2:4076b20000000000 3:4063fc0000000000 +base __name__=a,job=x ; 1:c06acc0000000000 2:c07b860000000000 3:c07b860000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 0:c0674c0000000000 1:c0674c0000000000 2:408a680000000000 3:408a680000000000 +base __name__=target_info,job=x,k8s_cluster=d1,version=v2 ; 2:40851c0000000000 3:40851c0000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 0:c0674c0000000000 1:c0674c0000000000 2:408a680000000000 3:408a680000000000 +result __name__=target_info,job=x,k8s_cluster=d1,version=v2 ; 2:40851c0000000000 3:40851c0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=x ; 0:c06c140000000000 1:c06c140000000000 2:c063740000000000 3:c078020000000000 +base __name__=a,instance=i1,job=x,version=base ; 1:408b200000000000 2:4070960000000000 3:4070960000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; +info __name__=target_info,job=x,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,job=x,k8s_cluster=c2 ; 3:40ffbd0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y ; 0:407f040000000000 1:407f040000000000 2:4082a80000000000 +base __name__=a,instance=i1,zone=z1 ; 0:4086f20000000000 1:406d7c0000000000 2:c076c20000000000 +base __name__=a,zone=z2 ; 1:c08c8b0000000000 2:4071200000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x ; 0:c055d80000000000 1:408dad0000000000 +base __name__=a,instance=i1,job=y ; 0:406d180000000000 1:406d180000000000 +base __name__=a,instance=i2,job=x ; 0:c0824e0000000000 1:c07ee60000000000 +base __name__=a,job=x,zone=z1 ; 0:c063700000000000 1:407c2c0000000000 +base __name__=a,version=base,zone=z1 ; 1:4064880000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 +result __name__=a,instance=i1,job=x ; 0:c055d80000000000 1:408dad0000000000 +result __name__=a,instance=i1,job=y ; 0:406d180000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 1:406d180000000000 +result __name__=a,instance=i2,job=x ; 0:c0824e0000000000 1:c07ee60000000000 +result __name__=a,job=x,zone=z1 ; 0:c063700000000000 1:407c2c0000000000 +result __name__=a,version=base,zone=z1 ; 1:4064880000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 10 +base __name__=a,instance=i2,job=y,version=base ; 0:c03c400000000000 1:c082ad0000000000 2:4077920000000000 3:408e4b0000000000 4:4059e00000000000 5:4059e00000000000 6:c065440000000000 7:408cf00000000000 8:408cf00000000000 9:c0750e0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:403ca00000000000 1:c080d60000000000 2:c080d60000000000 3:c04cf00000000000 4:4072d60000000000 5:4072d60000000000 6:4086920000000000 7:405ae80000000000 8:405ae80000000000 9:c07c2a0000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 1:c0700c0000000000 2:c0700c0000000000 3:c081000000000000 4:c084d00000000000 5:408e370000000000 6:c0733c0000000000 7:c089c30000000000 8:c087bd0000000000 9:c078720000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=x ; 0:408cab0000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:408cae0000000000 +base __name__=a,instance=i2,version=base ; 0:c085070000000000 +info __name__=build_info,job=x,version=v1,zone=z2 ; +info __name__=build_info,instance=i1,job=y,version=v2,zone=z1 ; +info __name__=build_info,version=v2,zone=z1 ; +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 8 +base __name__=a,instance=i1 ; 0:c08bea0000000000 1:c08bea0000000000 2:406bdc0000000000 3:c07db00000000000 4:407ba60000000000 5:408ed50000000000 6:c009000000000000 7:c054800000000000 +base __name__=a,instance=i2 ; 0:4015000000000000 1:407dfa0000000000 2:407dfa0000000000 3:407e180000000000 4:c070380000000000 5:c08e170000000000 6:c081ac0000000000 7:4052680000000000 +base __name__=a,instance=i2,k8s_cluster=c1 ; 0:c089d00000000000 1:408abf0000000000 2:c001000000000000 3:c08b270000000000 4:c07e100000000000 5:4060400000000000 6:4060400000000000 7:4060400000000000 +result __name__=a,instance=i1 ; 0:c08bea0000000000 1:c08bea0000000000 2:406bdc0000000000 3:c07db00000000000 4:407ba60000000000 5:408ed50000000000 6:c009000000000000 7:c054800000000000 +result __name__=a,instance=i2 ; 0:4015000000000000 1:407dfa0000000000 2:407dfa0000000000 3:407e180000000000 4:c070380000000000 5:c08e170000000000 6:c081ac0000000000 7:4052680000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 0:c089d00000000000 1:408abf0000000000 2:c001000000000000 3:c08b270000000000 4:c07e100000000000 5:4060400000000000 6:4060400000000000 7:4060400000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i2,zone=z2 ; 0:40888d0000000000 1:4047f00000000000 2:4078de0000000000 3:c08a4e0000000000 4:4084d60000000000 5:4084d60000000000 +base __name__=a,job=x ; 0:c08dba0000000000 1:408ebb0000000000 2:4051800000000000 3:c080550000000000 4:c08c830000000000 5:c08c830000000000 +base __name__=a,job=x,version=base,zone=z1 ; 0:4086f50000000000 1:c080d30000000000 2:c080d30000000000 3:4078900000000000 4:4078900000000000 5:408a2c0000000000 +base __name__=a,job=y,zone=z1 ; 1:408c560000000000 2:408a550000000000 3:c07c5c0000000000 4:c07c5c0000000000 5:4086750000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 1:407ff80000000000 2:407ff80000000000 3:c053a80000000000 4:40824d0000000000 5:4088ed0000000000 +base __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 0:4077ae0000000000 1:408ef10000000000 2:408ef10000000000 3:408ef10000000000 5:c0850e0000000000 +base __name__=target_info,instance=i2,k8s_cluster=c2 ; 3:408e8c0000000000 4:c071820000000000 5:bffe000000000000 +base __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; 0:c049900000000000 1:c049900000000000 2:c060100000000000 3:c060100000000000 4:c060100000000000 +result __name__=a,instance=i2,zone=z2 ; 0:40888d0000000000 1:4047f00000000000 2:4078de0000000000 3:c08a4e0000000000 4:4084d60000000000 5:4084d60000000000 +result __name__=a,job=x ; 0:c08dba0000000000 1:408ebb0000000000 2:4051800000000000 3:c080550000000000 4:c08c830000000000 5:c08c830000000000 +result __name__=a,job=x,version=base,zone=z1 ; 0:4086f50000000000 1:c080d30000000000 2:c080d30000000000 3:4078900000000000 4:4078900000000000 5:408a2c0000000000 +result __name__=a,job=y,zone=z1 ; 1:408c560000000000 2:408a550000000000 3:c07c5c0000000000 4:c07c5c0000000000 5:4086750000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 1:407ff80000000000 2:407ff80000000000 3:c053a80000000000 4:40824d0000000000 5:4088ed0000000000 +result __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 0:4077ae0000000000 1:408ef10000000000 2:408ef10000000000 3:408ef10000000000 5:c0850e0000000000 +result __name__=target_info,instance=i2,k8s_cluster=c2 ; 3:408e8c0000000000 4:c071820000000000 5:bffe000000000000 +result __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; 0:c049900000000000 1:c049900000000000 2:c060100000000000 3:c060100000000000 4:c060100000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z1 ; 0:c076080000000000 1:4079120000000000 +base __name__=a,instance=i2 ; 0:c074620000000000 1:c074620000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 +info __name__=build_info,job=y,version=v2 ; +info __name__=build_info,instance=i2,job=y,version=v1 ; +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,version=base ; 0:4060e00000000000 1:4060e00000000000 2:c089bb0000000000 3:408e770000000000 4:c087580000000000 5:4087360000000000 6:4087360000000000 7:4087360000000000 +base __name__=a,job=y ; 0:c07b360000000000 1:4065f00000000000 2:4065f00000000000 3:4065f00000000000 4:4031a00000000000 5:c08da20000000000 6:c08da20000000000 7:407d7c0000000000 +base __name__=a,k8s_cluster=c2,version=base ; 2:c08ad70000000000 3:4084470000000000 4:4078f60000000000 5:c089980000000000 6:c089980000000000 7:c087f50000000000 +info __name__=build_info,job=y,version=v2,zone=z1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4104c08000000000 +info __name__=build_info,job=y,version=v2,zone=z2 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 7:4104c08000000000 +error found duplicate series for info metric: existing {__name__="build_info", job="y", version="v2", zone="z1"} @ 130000, new {__name__="build_info", job="y", version="v2", zone="z2"} @ 130000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 7 +base __name__=a,instance=i1 ; 0:406f000000000000 1:c082ed0000000000 2:c08a440000000000 3:c050200000000000 4:408c300000000000 5:4048000000000000 6:c080d10000000000 +base __name__=a,instance=i1,job=y ; 1:40782c0000000000 2:c063700000000000 3:c08a3a0000000000 4:c0825f0000000000 5:c0825f0000000000 6:4044e00000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 0:4084660000000000 1:408a9d0000000000 2:c0673c0000000000 3:4030800000000000 4:4030800000000000 5:4070d00000000000 6:c063f80000000000 +base __name__=a,job=x ; 0:c017800000000000 1:40619c0000000000 2:4084c30000000000 3:c078a20000000000 4:c084e70000000000 5:c023000000000000 6:407f3c0000000000 +base __name__=a,job=x,version=base ; 0:40815a0000000000 1:4076740000000000 2:405df80000000000 3:405df80000000000 4:c08a160000000000 5:c07f760000000000 6:4080810000000000 +base __name__=a,k8s_cluster=c1,zone=z2 ; 0:408c7f0000000000 1:c081280000000000 2:c070800000000000 3:40862d0000000000 4:c088d00000000000 5:408edc0000000000 6:4085590000000000 +result __name__=a,instance=i1 ; 0:406f000000000000 1:c082ed0000000000 2:c08a440000000000 3:c050200000000000 4:408c300000000000 5:4048000000000000 6:c080d10000000000 +result __name__=a,instance=i1,job=y ; 1:40782c0000000000 2:c063700000000000 3:c08a3a0000000000 4:c0825f0000000000 5:c0825f0000000000 6:4044e00000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 0:4084660000000000 1:408a9d0000000000 2:c0673c0000000000 3:4030800000000000 4:4030800000000000 5:4070d00000000000 6:c063f80000000000 +result __name__=a,job=x ; 0:c017800000000000 1:40619c0000000000 2:4084c30000000000 3:c078a20000000000 4:c084e70000000000 5:c023000000000000 6:407f3c0000000000 +result __name__=a,job=x,version=base ; 0:40815a0000000000 1:4076740000000000 2:405df80000000000 3:405df80000000000 4:c08a160000000000 5:c07f760000000000 6:4080810000000000 +result __name__=a,k8s_cluster=c1,zone=z2 ; 0:408c7f0000000000 1:c081280000000000 2:c070800000000000 3:40862d0000000000 4:c088d00000000000 5:408edc0000000000 6:4085590000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:4046d00000000000 1:4046d00000000000 +base __name__=a,job=y,version=base,zone=z1 ; 0:407e3a0000000000 1:407d300000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 1:40fadb0000000000 +info __name__=target_info,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 +result __name__=a,instance=i1,job=x,zone=z1 ; 0:4046d00000000000 1:4046d00000000000 +result __name__=a,job=y,version=base,zone=z1 ; 0:407e3a0000000000 1:407d300000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 0:c057e80000000000 1:c057e80000000000 2:4074c80000000000 3:c082c90000000000 4:c08e8c0000000000 5:4052e80000000000 +base __name__=a,instance=i2,job=x,version=base,zone=z1 ; 2:c082060000000000 3:c0876a0000000000 4:40892c0000000000 5:40892c0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 0:c057e80000000000 1:c057e80000000000 2:4074c80000000000 3:c082c90000000000 4:c08e8c0000000000 5:4052e80000000000 +result __name__=a,instance=i2,job=x,version=base,zone=z1 ; 2:c082060000000000 3:c0876a0000000000 4:40892c0000000000 5:40892c0000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 0:40880a0000000000 1:c08adb0000000000 2:4088b30000000000 3:4083200000000000 4:4083200000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z1 ; 1:408d1f0000000000 2:c08bc00000000000 3:c08bc00000000000 4:c08bc00000000000 +base __name__=a,instance=i2,job=x ; 0:c072140000000000 1:c080570000000000 2:c080570000000000 3:c050c00000000000 4:c07e020000000000 +base __name__=a,job=y ; 0:c085d40000000000 1:c085d40000000000 2:4050b00000000000 3:c0875c0000000000 4:c085c70000000000 +base __name__=target_info,job=x,k8s_cluster=c2,version=v2 ; 1:407d580000000000 2:407d580000000000 3:407d580000000000 4:c073d20000000000 +base __name__=target_info,k8s_cluster=d1,version=v1 ; 0:4085180000000000 1:4085180000000000 2:408d450000000000 3:408d450000000000 4:408d450000000000 +result __name__=a,instance=i1 ; 0:40880a0000000000 1:c08adb0000000000 2:4088b30000000000 3:4083200000000000 4:4083200000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z1 ; 1:408d1f0000000000 2:c08bc00000000000 3:c08bc00000000000 4:c08bc00000000000 +result __name__=a,instance=i2,job=x ; 0:c072140000000000 1:c080570000000000 2:c080570000000000 3:c050c00000000000 4:c07e020000000000 +result __name__=a,job=y ; 0:c085d40000000000 1:c085d40000000000 2:4050b00000000000 3:c0875c0000000000 4:c085c70000000000 +result __name__=target_info,job=x,k8s_cluster=c2,version=v2 ; 1:407d580000000000 2:407d580000000000 3:407d580000000000 4:c073d20000000000 +result __name__=target_info,k8s_cluster=d1,version=v1 ; 0:4085180000000000 1:4085180000000000 2:408d450000000000 3:408d450000000000 4:408d450000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 1:408d690000000000 2:4078720000000000 3:4045000000000000 4:c072640000000000 5:c07eee0000000000 6:c077740000000000 +base __name__=a,instance=i2,job=x ; 0:c0825f0000000000 1:c081880000000000 2:4084300000000000 3:4086ae0000000000 4:4086ae0000000000 5:c07b9c0000000000 6:4050680000000000 +base __name__=a,instance=i2,job=x,version=base,zone=z1 ; 0:c083440000000000 1:c083440000000000 2:40635c0000000000 3:c07f8a0000000000 4:407db40000000000 5:40866d0000000000 6:c081860000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i2,job=x,version=base,zone=z1 ; 2:40635c0000000000 3:c07f8a0000000000 4:407db40000000000 5:40866d0000000000 6:c081860000000000 +result __name__=a,instance=i2,job=x,version=v1 ; 2:4084300000000000 3:4086ae0000000000 4:4086ae0000000000 5:c07b9c0000000000 6:4050680000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=x,version=base,zone=z1 ; 0:c06c480000000000 1:c083300000000000 2:c083300000000000 3:408d940000000000 4:408d940000000000 5:4083b80000000000 6:407df60000000000 7:c05ac00000000000 +base __name__=a,instance=i2 ; 0:c07e1e0000000000 1:c07e1e0000000000 2:c07e1e0000000000 3:c08a2d0000000000 4:c08c2f0000000000 5:c07afe0000000000 6:c069d80000000000 7:4083ab0000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c0880c0000000000 1:404da00000000000 2:408b980000000000 3:408b980000000000 4:c041b00000000000 5:40664c0000000000 6:40664c0000000000 7:c043e00000000000 +base __name__=a,job=y ; 0:c086a20000000000 1:c08e090000000000 2:40889e0000000000 3:40889e0000000000 4:40889e0000000000 5:406afc0000000000 6:406afc0000000000 7:408f170000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a,instance=i1,job=x,version=base,zone=z1 ; 0:c06c480000000000 1:c083300000000000 2:c083300000000000 3:408d940000000000 4:408d940000000000 5:4083b80000000000 6:407df60000000000 7:c05ac00000000000 +result __name__=a,instance=i2 ; 0:c07e1e0000000000 1:c07e1e0000000000 2:c07e1e0000000000 3:c08a2d0000000000 4:c08c2f0000000000 5:c07afe0000000000 6:c069d80000000000 7:4083ab0000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:c0880c0000000000 1:404da00000000000 2:408b980000000000 3:408b980000000000 4:c041b00000000000 5:40664c0000000000 6:40664c0000000000 7:c043e00000000000 +result __name__=a,job=y ; 0:c086a20000000000 1:c08e090000000000 2:40889e0000000000 3:40889e0000000000 4:40889e0000000000 5:406afc0000000000 6:406afc0000000000 7:408f170000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:c07d6c0000000000 1:4073f00000000000 2:c0693c0000000000 3:406fd80000000000 4:406fd80000000000 5:40803a0000000000 +base __name__=a,instance=i1,zone=z2 ; 0:4050800000000000 1:4050800000000000 2:4008000000000000 3:4051b80000000000 4:c07c280000000000 5:c07c280000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z1 ; 0:c06b0c0000000000 1:c074840000000000 2:4053200000000000 3:4063c80000000000 4:4088500000000000 5:4085c70000000000 +base __name__=a,instance=i2,zone=z2 ; 1:408aaf0000000000 2:40874a0000000000 3:40874a0000000000 4:c074d60000000000 5:c074d60000000000 +base __name__=a,job=y,zone=z2 ; 0:c072040000000000 1:c08a1c0000000000 2:c08a1c0000000000 3:c08a1c0000000000 5:c03f000000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 0:c07d6c0000000000 1:4073f00000000000 2:c0693c0000000000 3:406fd80000000000 4:406fd80000000000 5:40803a0000000000 +result __name__=a,instance=i1,zone=z2 ; 0:4050800000000000 1:4050800000000000 2:4008000000000000 3:4051b80000000000 4:c07c280000000000 5:c07c280000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z1 ; 0:c06b0c0000000000 1:c074840000000000 2:4053200000000000 3:4063c80000000000 4:4088500000000000 5:4085c70000000000 +result __name__=a,instance=i2,zone=z2 ; 1:408aaf0000000000 2:40874a0000000000 3:40874a0000000000 4:c074d60000000000 5:c074d60000000000 +result __name__=a,job=y,zone=z2 ; 0:c072040000000000 1:c08a1c0000000000 2:c08a1c0000000000 3:c08a1c0000000000 5:c03f000000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a,job=y ; 0:4085090000000000 1:4089050000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y ; 0:c081010000000000 1:c082610000000000 2:c06fb00000000000 +base __name__=a,instance=i2 ; 0:407d440000000000 1:408e4a0000000000 2:408eb30000000000 +base __name__=a,instance=i2,job=y ; 0:408d620000000000 1:c069b80000000000 2:4057b00000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i2 ; 0:c082790000000000 1:c082790000000000 2:4065200000000000 3:4065200000000000 4:c0732e0000000000 5:c0732e0000000000 6:c08d050000000000 7:c08d050000000000 8:c081700000000000 +base __name__=a,instance=i2,job=x ; 0:c0843d0000000000 1:c0843d0000000000 2:c0843d0000000000 3:c032400000000000 4:c08f300000000000 5:c08f300000000000 6:c07b2a0000000000 7:4054b80000000000 8:407b320000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z1 ; 1:408b4f0000000000 2:c077000000000000 3:c08ecb0000000000 4:c059480000000000 5:c08e540000000000 6:c08e540000000000 7:4062dc0000000000 8:40809b0000000000 +base __name__=a,job=y ; 1:c08da00000000000 2:c08da00000000000 3:c08da00000000000 4:4084cc0000000000 5:4079200000000000 6:4079200000000000 7:c074180000000000 8:c074180000000000 +base __name__=a,job=y,version=base,zone=z1 ; 0:408e130000000000 1:408e130000000000 2:c086fb0000000000 3:c086fb0000000000 4:c086fb0000000000 5:40861e0000000000 6:40861e0000000000 7:40861e0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4105f90000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 8:4105f90000000000 +result __name__=a,instance=i2 ; 0:c082790000000000 1:c082790000000000 2:4065200000000000 3:4065200000000000 4:c0732e0000000000 5:c0732e0000000000 6:c08d050000000000 7:c08d050000000000 8:c081700000000000 +result __name__=a,instance=i2,job=x ; 0:c0843d0000000000 1:c0843d0000000000 2:c0843d0000000000 3:c032400000000000 4:c08f300000000000 5:c08f300000000000 6:c07b2a0000000000 7:4054b80000000000 8:407b320000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1,version=v1,zone=z1 ; 1:408b4f0000000000 2:c077000000000000 3:c08ecb0000000000 4:c059480000000000 5:c08e540000000000 6:c08e540000000000 7:4062dc0000000000 8:40809b0000000000 +result __name__=a,job=y ; 1:c08da00000000000 2:c08da00000000000 3:c08da00000000000 4:4084cc0000000000 5:4079200000000000 6:4079200000000000 7:c074180000000000 8:c074180000000000 +result __name__=a,job=y,version=base,zone=z1 ; 0:408e130000000000 1:408e130000000000 2:c086fb0000000000 3:c086fb0000000000 4:c086fb0000000000 5:40861e0000000000 6:40861e0000000000 7:40861e0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=y ; 0:4053a00000000000 1:c0706a0000000000 2:c076740000000000 3:c08d170000000000 +base __name__=a,instance=i1,zone=z2 ; 0:c061380000000000 1:c084250000000000 2:c084250000000000 3:408aac0000000000 +base __name__=a,instance=i2 ; 0:4065840000000000 1:4065840000000000 2:c076ca0000000000 3:4082320000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:c058500000000000 1:c058500000000000 2:4068e80000000000 3:408c130000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +result __name__=a,instance=i1,job=y ; 0:4053a00000000000 1:c0706a0000000000 2:c076740000000000 3:c08d170000000000 +result __name__=a,instance=i1,zone=z2 ; 0:c061380000000000 1:c084250000000000 2:c084250000000000 3:408aac0000000000 +result __name__=a,instance=i2 ; 0:4065840000000000 1:4065840000000000 2:c076ca0000000000 3:4082320000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2,zone=z1 ; 0:c058500000000000 1:c058500000000000 2:4068e80000000000 3:408c130000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 10 +base __name__=a,job=x,version=base ; 1:4056800000000000 2:c08a6b0000000000 3:c085f40000000000 4:405a480000000000 5:405a480000000000 6:405a480000000000 8:c080e60000000000 9:40886f0000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=target_info,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4107318000000000 +result __name__=a,job=x,version=base ; 1:4056800000000000 2:c08a6b0000000000 3:c085f40000000000 4:405a480000000000 5:405a480000000000 6:405a480000000000 8:c080e60000000000 9:40886f0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 10 +base __name__=a,instance=i1 ; 0:4079f40000000000 1:c07e000000000000 2:c0719c0000000000 3:4064e40000000000 4:4064e40000000000 5:4064e40000000000 6:4076820000000000 7:4076820000000000 8:408c620000000000 9:405bc00000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:c079d00000000000 1:c079d00000000000 2:c069d40000000000 3:c069d40000000000 4:4077860000000000 5:408e850000000000 6:c088c80000000000 7:c088c80000000000 8:c088c80000000000 9:4064f80000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c067640000000000 1:c0848a0000000000 2:c0848a0000000000 3:c0848a0000000000 5:c08b210000000000 6:c08a300000000000 7:404b100000000000 8:c022000000000000 9:c022000000000000 +base __name__=a,job=y ; 0:408b670000000000 1:4034c00000000000 2:4034c00000000000 3:4086820000000000 4:4086820000000000 5:4071b40000000000 6:4071b40000000000 7:4071b40000000000 8:4076fe0000000000 9:4076fe0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +result __name__=a,instance=i1 ; 0:4079f40000000000 1:c07e000000000000 2:c0719c0000000000 3:4064e40000000000 4:4064e40000000000 5:4064e40000000000 6:4076820000000000 7:4076820000000000 8:408c620000000000 9:405bc00000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 0:c079d00000000000 1:c079d00000000000 2:c069d40000000000 3:c069d40000000000 4:4077860000000000 5:408e850000000000 6:c088c80000000000 7:c088c80000000000 8:c088c80000000000 9:4064f80000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c067640000000000 1:c0848a0000000000 2:c0848a0000000000 3:c0848a0000000000 5:c08b210000000000 6:c08a300000000000 7:404b100000000000 8:c022000000000000 9:c022000000000000 +result __name__=a,job=y ; 0:408b670000000000 1:4034c00000000000 2:4034c00000000000 3:4086820000000000 4:4086820000000000 5:4071b40000000000 6:4071b40000000000 7:4071b40000000000 8:4076fe0000000000 9:4076fe0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a,job=y,version=base,zone=z1 ; 0:c089c30000000000 1:c089c30000000000 2:407b4e0000000000 3:c071c20000000000 4:4053b80000000000 5:4053b80000000000 6:c079960000000000 7:c07c3e0000000000 8:c0792a0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 8:4105f90000000000 +info __name__=target_info,job=x,k8s_cluster=c2 ; 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4104c08000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 1 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v2 ; +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x ; 0:4069f00000000000 1:4071740000000000 2:4071740000000000 3:4063580000000000 4:408e190000000000 5:408e190000000000 6:408eb40000000000 +base __name__=a,instance=i1,zone=z1 ; 1:407f700000000000 2:4079d60000000000 3:c08abd0000000000 4:c06e980000000000 5:4080790000000000 6:4080790000000000 +base __name__=a,instance=i2 ; 0:408aee0000000000 1:40833b0000000000 2:407c240000000000 3:c07c420000000000 4:40881b0000000000 5:407d300000000000 6:c076120000000000 +info __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i1,job=x ; 0:4069f00000000000 1:4071740000000000 2:4071740000000000 3:4063580000000000 4:408e190000000000 5:408e190000000000 6:408eb40000000000 +result __name__=a,instance=i1,zone=z1 ; 1:407f700000000000 2:4079d60000000000 3:c08abd0000000000 4:c06e980000000000 5:4080790000000000 6:4080790000000000 +result __name__=a,instance=i2 ; 0:408aee0000000000 1:40833b0000000000 2:407c240000000000 3:c07c420000000000 4:40881b0000000000 5:407d300000000000 6:c076120000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y ; 0:4087230000000000 1:4087230000000000 +base __name__=a,instance=i1,job=y,version=base ; 0:c0814e0000000000 1:408dbf0000000000 +base __name__=a,job=x ; 0:c00e000000000000 1:4071720000000000 +base __name__=a,job=y,version=base ; 0:408a580000000000 1:4083640000000000 +info __name__=target_info,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v1 ; +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 1:40fadb0000000000 +result __name__=a,instance=i1,job=y ; 0:4087230000000000 1:4087230000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:c0814e0000000000 1:408dbf0000000000 +result __name__=a,job=x ; 0:c00e000000000000 1:4071720000000000 +result __name__=a,job=y,version=base ; 0:408a580000000000 1:4083640000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a ; 1:c07c0c0000000000 2:c08e290000000000 3:407b120000000000 4:c077140000000000 5:4077900000000000 6:c079640000000000 7:c082b40000000000 8:c08a3f0000000000 +base __name__=a,instance=i1 ; 0:c053600000000000 1:c08bb80000000000 2:4073680000000000 3:4073680000000000 4:c07a680000000000 5:c07a680000000000 6:c07a680000000000 7:4086830000000000 8:40728e0000000000 +base __name__=a,job=x,zone=z2 ; 3:c0712e0000000000 4:408b1d0000000000 5:4085f30000000000 6:c06aac0000000000 7:c08d610000000000 8:c08d610000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 8 +base __name__=a,instance=i2,job=y ; 0:4078620000000000 1:c012000000000000 2:4031400000000000 3:c08e530000000000 4:4079920000000000 5:4079920000000000 6:407d300000000000 7:4056400000000000 +base __name__=a,job=y ; 1:4086850000000000 2:406e780000000000 3:c06b7c0000000000 4:c06b7c0000000000 5:c071a40000000000 6:407b980000000000 7:407b980000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 5:4087c90000000000 6:4087c90000000000 7:4087c90000000000 +result __name__=a,instance=i2,job=y ; 0:4078620000000000 1:c012000000000000 2:4031400000000000 3:c08e530000000000 4:4079920000000000 5:4079920000000000 6:407d300000000000 7:4056400000000000 +result __name__=a,job=y ; 1:4086850000000000 2:406e780000000000 3:c06b7c0000000000 4:c06b7c0000000000 5:c071a40000000000 6:407b980000000000 7:407b980000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 5:4087c90000000000 6:4087c90000000000 7:4087c90000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i2,job=y ; 0:c06aec0000000000 1:4088550000000000 2:c080330000000000 3:40886f0000000000 4:40886f0000000000 5:4076260000000000 +base __name__=a,instance=i2,zone=z2 ; 1:4061c80000000000 2:4061c80000000000 3:4069b40000000000 4:4069b40000000000 5:40806c0000000000 +base __name__=a,job=x ; 0:c07dc60000000000 1:c080e60000000000 2:402e000000000000 3:402e000000000000 4:402e000000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 4:c071760000000000 5:c071760000000000 +base __name__=target_info,instance=i2,k8s_cluster=d1 ; 4:4086cb0000000000 5:c068c40000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1 ; 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i2,job=y ; 0:c06aec0000000000 1:4088550000000000 2:c080330000000000 3:40886f0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 4:40886f0000000000 5:4076260000000000 +result __name__=a,instance=i2,k8s_cluster=d1,zone=z2 ; 4:4069b40000000000 5:40806c0000000000 +result __name__=a,instance=i2,zone=z2 ; 1:4061c80000000000 2:4061c80000000000 3:4069b40000000000 +result __name__=a,job=x ; 0:c07dc60000000000 1:c080e60000000000 2:402e000000000000 3:402e000000000000 4:402e000000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 4:c071760000000000 5:c071760000000000 +result __name__=target_info,instance=i2,k8s_cluster=d1 ; 4:4086cb0000000000 5:c068c40000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=x ; 1:c059900000000000 2:408cab0000000000 3:c081b00000000000 4:4086dc0000000000 5:407d6c0000000000 6:4072460000000000 7:408e3a0000000000 8:405f500000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c0843c0000000000 1:407c2e0000000000 2:407c2e0000000000 3:40819b0000000000 4:40819b0000000000 5:40819b0000000000 6:c064900000000000 7:c064900000000000 8:c07f260000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:c049c00000000000 2:4088cc0000000000 3:4069fc0000000000 4:4074d00000000000 5:4074d00000000000 6:c067280000000000 7:408a390000000000 8:4066d00000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 1:404a600000000000 2:c087a10000000000 3:c087a10000000000 4:c087a10000000000 5:4070040000000000 6:4070040000000000 7:c062480000000000 8:c062480000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4104c08000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:c049c00000000000 2:4088cc0000000000 3:4069fc0000000000 4:4074d00000000000 5:4074d00000000000 6:c067280000000000 7:408a390000000000 8:4066d00000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 1:404a600000000000 2:c087a10000000000 3:c087a10000000000 4:c087a10000000000 5:4070040000000000 6:4070040000000000 7:c062480000000000 8:c062480000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 2 +base __name__=a ; 0:40867f0000000000 1:c0744e0000000000 +base __name__=a,instance=i1,job=x ; 0:4082f40000000000 1:4082f40000000000 +base __name__=a,instance=i1,job=y ; 0:c06bd80000000000 1:40814f0000000000 +base __name__=a,instance=i2,job=x,version=base ; 1:408da20000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i1,k8s_cluster=c2 ; 0:4088f10000000000 1:4088f10000000000 2:4088f10000000000 3:4077ca0000000000 4:4074c60000000000 5:c045800000000000 6:c06fc40000000000 7:4081a80000000000 8:c078d00000000000 +base __name__=a,instance=i2 ; 1:40736a0000000000 2:4068380000000000 3:c07b360000000000 4:c07b360000000000 5:402e400000000000 6:402e400000000000 7:c08b560000000000 8:c08b560000000000 +info __name__=build_info,instance=i1,job=y,version=v2,zone=z2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 8:4105f90000000000 +result __name__=a,instance=i1,k8s_cluster=c2 ; 0:4088f10000000000 1:4088f10000000000 2:4088f10000000000 3:4077ca0000000000 4:4074c60000000000 5:c045800000000000 6:c06fc40000000000 7:4081a80000000000 8:c078d00000000000 +result __name__=a,instance=i2 ; 1:40736a0000000000 2:4068380000000000 3:c07b360000000000 4:c07b360000000000 5:402e400000000000 6:402e400000000000 7:c08b560000000000 8:c08b560000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a ; 2:c08e0b0000000000 +base __name__=a,instance=i1 ; 0:c06c480000000000 1:40762c0000000000 2:40804b0000000000 +base __name__=a,instance=i1,zone=z2 ; 0:4060f40000000000 1:c06d040000000000 2:c06d040000000000 +base __name__=a,instance=i2,job=y ; 0:4071160000000000 1:403c200000000000 2:c080f70000000000 +base __name__=a,job=x ; 0:3ffc000000000000 1:c08c1a0000000000 2:c08dcc0000000000 +base __name__=a,job=y,zone=z2 ; 0:c08d830000000000 1:c08b740000000000 2:406aa80000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:408e520000000000 1:c087330000000000 2:c087330000000000 3:c087330000000000 4:4079280000000000 5:4080660000000000 6:40829f0000000000 7:40829f0000000000 +base __name__=a,instance=i2,job=x ; 3:407bd40000000000 4:407bd40000000000 5:c05d800000000000 6:c08dc30000000000 7:c08dc30000000000 +base __name__=a,zone=z2 ; 0:c082e20000000000 1:c082e20000000000 2:40703a0000000000 3:40703a0000000000 4:40703a0000000000 6:408ad60000000000 7:408ad60000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +info __name__=target_info,job=x,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z2 ; 3:c087330000000000 4:4079280000000000 5:4080660000000000 6:40829f0000000000 +result __name__=a,instance=i1,job=x,zone=z2 ; 0:408e520000000000 1:c087330000000000 2:c087330000000000 7:40829f0000000000 +result __name__=a,instance=i2,job=x ; 3:407bd40000000000 4:407bd40000000000 5:c05d800000000000 6:c08dc30000000000 7:c08dc30000000000 +result __name__=a,zone=z2 ; 0:c082e20000000000 1:c082e20000000000 2:40703a0000000000 3:40703a0000000000 4:40703a0000000000 6:408ad60000000000 7:408ad60000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,instance=i1,zone=z1 ; 1:4081040000000000 2:4085860000000000 3:4085860000000000 4:c071980000000000 5:c071980000000000 6:c081a00000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c08a660000000000 1:408cb90000000000 2:c082d60000000000 3:c082d60000000000 4:c082d60000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v2 ; 4:4101170000000000 5:41024f8000000000 6:4103880000000000 +info __name__=build_info,instance=i1,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i1,version=v2,zone=z1 ; 1:4081040000000000 2:4085860000000000 3:4085860000000000 4:c071980000000000 5:c071980000000000 6:c081a00000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 4 +base __name__=a ; 0:c0888d0000000000 1:c059a80000000000 2:c080fa0000000000 3:c080fa0000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:c063f00000000000 1:c063f00000000000 2:c06e540000000000 3:c06e540000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 2:4057600000000000 3:4057600000000000 +base __name__=a,instance=i2,job=y,version=base ; 0:c076c40000000000 1:c076c40000000000 2:c076c40000000000 3:408d490000000000 +base __name__=a,job=y,k8s_cluster=c1,version=base,zone=z2 ; 0:c053200000000000 1:c084a10000000000 2:c084a10000000000 3:c08e830000000000 +base __name__=a,job=y,version=base ; 0:c0813e0000000000 1:4089f40000000000 2:404e700000000000 3:404e700000000000 +info __name__=target_info,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 2:4057600000000000 3:4057600000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,version=base ; 1:c076c40000000000 2:c076c40000000000 3:408d490000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 4 +base __name__=a,instance=i2,job=x,version=base ; 1:c0633c0000000000 2:c0633c0000000000 3:c0633c0000000000 +base __name__=a,instance=i2,version=base ; 0:4075c40000000000 1:4075c40000000000 2:c0816a0000000000 3:4083a60000000000 +base __name__=a,job=x,version=base,zone=z1 ; 0:c083060000000000 1:c066740000000000 2:4079fc0000000000 3:4079fc0000000000 +base __name__=a,zone=z2 ; 1:c066580000000000 2:406a8c0000000000 3:405cd80000000000 +info __name__=target_info,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 +info __name__=target_info,job=x,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2,version=base ; 1:c0633c0000000000 2:c0633c0000000000 3:c0633c0000000000 +result __name__=a,instance=i2,version=base ; 0:4075c40000000000 1:4075c40000000000 2:c0816a0000000000 3:4083a60000000000 +result __name__=a,job=x,k8s_cluster=c2,version=base,zone=z1 ; 1:c066740000000000 2:4079fc0000000000 3:4079fc0000000000 +result __name__=a,job=x,version=base,zone=z1 ; 0:c083060000000000 +result __name__=a,zone=z2 ; 1:c066580000000000 2:406a8c0000000000 3:405cd80000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:4028c00000000000 1:40711e0000000000 2:c078ca0000000000 +base __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:4052a00000000000 1:c0742e0000000000 2:c0742e0000000000 +base __name__=target_info,instance=i1,k8s_cluster=c2,version=v2 ; 1:4061400000000000 2:4061400000000000 +base __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 0:c086ae0000000000 1:4054580000000000 2:4054580000000000 +result __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:4052a00000000000 1:c0742e0000000000 2:c0742e0000000000 +result __name__=target_info,instance=i1,k8s_cluster=c2,version=v2 ; 1:4061400000000000 2:4061400000000000 +result __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 0:c086ae0000000000 1:4054580000000000 2:4054580000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y ; 1:c026c00000000000 +base __name__=a,instance=i1,k8s_cluster=c1,version=base ; 0:c08af70000000000 1:c08af70000000000 +base __name__=a,instance=i1,zone=z2 ; 0:405d380000000000 1:405d380000000000 +base __name__=a,instance=i2,job=x,version=base ; 0:4060680000000000 1:4060680000000000 +base __name__=a,job=y ; 1:40815c0000000000 +base __name__=a,k8s_cluster=c2,version=base ; 0:c074080000000000 1:c074080000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; +info __name__=target_info,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,instance=i2,job=x,version=base ; 0:408af20000000000 1:4083070000000000 2:c08c460000000000 3:4061740000000000 4:c086e60000000000 5:4085d00000000000 6:c044900000000000 +base __name__=a,instance=i2,job=y,version=base ; 0:c04ac00000000000 1:406ed80000000000 2:406a5c0000000000 3:c088190000000000 4:c084030000000000 5:c084030000000000 6:c05c480000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 2:c086130000000000 3:c0868d0000000000 4:c05db00000000000 5:c05db00000000000 6:40681c0000000000 +base __name__=a,job=x,zone=z1 ; 0:407d820000000000 1:c08e920000000000 2:408daf0000000000 3:4084ee0000000000 4:4084ee0000000000 5:4084ee0000000000 6:c03be00000000000 +base __name__=a,k8s_cluster=c1,version=base,zone=z1 ; 0:c05b180000000000 1:c079180000000000 2:40899e0000000000 3:4078b20000000000 4:408ef00000000000 5:c088700000000000 6:c06f440000000000 +base __name__=a,zone=z2 ; 1:408d7b0000000000 2:c089c30000000000 3:c08a4b0000000000 4:c02c000000000000 5:c02c000000000000 6:4051480000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=build_info,instance=i2,job=y,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=build_info,instance=i2,job=x,version=v1,zone=z2 ; 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i2,job=x,version=base ; 4:c086e60000000000 5:4085d00000000000 6:c044900000000000 +result __name__=a,instance=i2,job=y,version=base ; 1:406ed80000000000 2:406a5c0000000000 3:c088190000000000 4:c084030000000000 5:c084030000000000 6:c05c480000000000 +result __name__=a,instance=i2,job=y,version=v2,zone=z1 ; 2:c086130000000000 3:c0868d0000000000 4:c05db00000000000 5:c05db00000000000 6:40681c0000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,zone=z1 ; 0:408a190000000000 1:408a190000000000 +base __name__=a,instance=i2 ; 1:c02b400000000000 +base __name__=a,instance=i2,k8s_cluster=c2,version=base,zone=z2 ; 0:c0714a0000000000 1:c0714a0000000000 +base __name__=a,job=x ; 0:408b300000000000 1:4089030000000000 +base __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 1:c05ec80000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v1 ; +info __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 +result __name__=a,instance=i1,zone=z1 ; 0:408a190000000000 1:408a190000000000 +result __name__=a,instance=i2 ; 1:c02b400000000000 +result __name__=a,instance=i2,k8s_cluster=c2,version=base,zone=z2 ; 0:c0714a0000000000 1:c0714a0000000000 +result __name__=a,job=x ; 0:408b300000000000 +result __name__=a,job=x,k8s_cluster=d1,version=v1 ; 1:4089030000000000 +result __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 1:c05ec80000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 2 +base __name__=a ; 0:c06bfc0000000000 1:405c580000000000 +base __name__=a,instance=i1 ; 0:c084020000000000 1:407e900000000000 +base __name__=a,instance=i1,job=x ; 0:4054a80000000000 1:4087140000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:c07ab40000000000 1:4082080000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 1:c064e00000000000 +base __name__=a,job=y,zone=z2 ; 0:408e310000000000 1:c054e80000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=y ; 0:c084b80000000000 1:c06a180000000000 2:407f4e0000000000 3:4039800000000000 4:4039800000000000 5:c085ca0000000000 6:4060c00000000000 7:c029000000000000 8:c029000000000000 +base __name__=a,job=x ; 0:4078c40000000000 1:c080010000000000 2:c080010000000000 3:4088910000000000 4:4088910000000000 5:c066640000000000 6:4074120000000000 7:408dab0000000000 8:408dab0000000000 +base __name__=a,job=y,zone=z1 ; 0:408cb80000000000 1:4074240000000000 2:c06f4c0000000000 3:c063380000000000 4:c063380000000000 5:c089600000000000 6:c08c060000000000 7:4083f90000000000 8:c0811e0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:4043800000000000 1:4043800000000000 2:4089a10000000000 3:4089a10000000000 4:4089a10000000000 7:406b140000000000 8:406b140000000000 +base __name__=target_info,job=x,k8s_cluster=c1 ; 0:c0785c0000000000 1:4089d40000000000 2:407ad80000000000 3:c070460000000000 4:c070460000000000 5:c0744c0000000000 6:c07ab60000000000 7:c07ab60000000000 8:c07ab60000000000 +base __name__=target_info,job=y,k8s_cluster=d1 ; 0:4089c90000000000 1:4089c90000000000 2:4081830000000000 3:4081830000000000 4:4081830000000000 5:c06da00000000000 6:c072340000000000 7:4053800000000000 8:4053800000000000 +base __name__=target_info,k8s_cluster=d1 ; 0:c078bc0000000000 1:c078bc0000000000 2:c078bc0000000000 3:40890a0000000000 4:4069f00000000000 5:405da00000000000 6:40816b0000000000 7:408c820000000000 8:408c820000000000 +result __name__=a,instance=i1,job=y ; 0:c084b80000000000 1:c06a180000000000 2:407f4e0000000000 3:4039800000000000 4:4039800000000000 5:c085ca0000000000 6:4060c00000000000 7:c029000000000000 8:c029000000000000 +result __name__=a,job=x ; 0:4078c40000000000 1:c080010000000000 2:c080010000000000 3:4088910000000000 4:4088910000000000 5:c066640000000000 6:4074120000000000 7:408dab0000000000 8:408dab0000000000 +result __name__=a,job=y,zone=z1 ; 0:408cb80000000000 1:4074240000000000 2:c06f4c0000000000 3:c063380000000000 4:c063380000000000 5:c089600000000000 6:c08c060000000000 7:4083f90000000000 8:c0811e0000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:4043800000000000 1:4043800000000000 2:4089a10000000000 3:4089a10000000000 4:4089a10000000000 7:406b140000000000 8:406b140000000000 +result __name__=target_info,job=x,k8s_cluster=c1 ; 0:c0785c0000000000 1:4089d40000000000 2:407ad80000000000 3:c070460000000000 4:c070460000000000 5:c0744c0000000000 6:c07ab60000000000 7:c07ab60000000000 8:c07ab60000000000 +result __name__=target_info,job=y,k8s_cluster=d1 ; 0:4089c90000000000 1:4089c90000000000 2:4081830000000000 3:4081830000000000 4:4081830000000000 5:c06da00000000000 6:c072340000000000 7:4053800000000000 8:4053800000000000 +result __name__=target_info,k8s_cluster=d1 ; 0:c078bc0000000000 1:c078bc0000000000 2:c078bc0000000000 3:40890a0000000000 4:4069f00000000000 5:405da00000000000 6:40816b0000000000 7:408c820000000000 8:408c820000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 3 +base __name__=a,instance=i2,k8s_cluster=c1 ; 0:c072e00000000000 1:40746e0000000000 2:c080450000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 0:c072e00000000000 1:40746e0000000000 2:c080450000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:405b200000000000 1:c061680000000000 2:c07ec60000000000 +base __name__=a,instance=i1,job=y ; 0:c077fe0000000000 1:c086880000000000 2:c086880000000000 +base __name__=a,instance=i2 ; 0:c050400000000000 1:c055180000000000 2:c07ba80000000000 +base __name__=a,job=x,zone=z2 ; 1:4080f30000000000 2:c064700000000000 +result __name__=a,instance=i1,job=x,zone=z1 ; 0:405b200000000000 1:c061680000000000 2:c07ec60000000000 +result __name__=a,instance=i1,job=y ; 0:c077fe0000000000 1:c086880000000000 2:c086880000000000 +result __name__=a,instance=i2 ; 0:c050400000000000 1:c055180000000000 2:c07ba80000000000 +result __name__=a,job=x,zone=z2 ; 1:4080f30000000000 2:c064700000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 10 +base __name__=a,instance=i2 ; 0:c082670000000000 1:c082670000000000 2:c0894a0000000000 3:40806b0000000000 4:407fd80000000000 5:4089080000000000 6:4024800000000000 7:c0887b0000000000 8:c085dc0000000000 9:405bf00000000000 +base __name__=a,instance=i2,job=x ; 1:c074c00000000000 2:c074c00000000000 3:4069cc0000000000 4:c074620000000000 5:4045900000000000 6:c074b40000000000 7:c074b40000000000 8:c076600000000000 9:4070500000000000 +base __name__=a,instance=i2,zone=z2 ; 0:c069540000000000 1:c089590000000000 2:4086070000000000 3:40658c0000000000 4:c0785c0000000000 5:c0785c0000000000 6:c064c00000000000 7:c064c00000000000 8:c064c00000000000 9:c088740000000000 +base __name__=a,job=x ; 0:c084d10000000000 1:c084d10000000000 2:40854e0000000000 3:407c3c0000000000 4:c051800000000000 5:c051800000000000 6:c051800000000000 7:c065f80000000000 8:4079ee0000000000 9:40766a0000000000 +base __name__=a,job=x,zone=z2 ; 0:c07dfc0000000000 1:4045600000000000 2:4045600000000000 3:c07b6a0000000000 4:4076c80000000000 5:4076c80000000000 6:407bf20000000000 7:c038000000000000 8:c051980000000000 9:4084fa0000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a ; 0:408c1a0000000000 1:4076440000000000 2:4089600000000000 3:408ac60000000000 4:408ac60000000000 5:4085a00000000000 6:4081ef0000000000 +base __name__=a,instance=i1 ; 0:40836e0000000000 1:4074600000000000 2:4071c40000000000 3:c08c0f0000000000 4:c082640000000000 5:405a200000000000 6:407ede0000000000 +base __name__=a,instance=i1,job=x ; 0:c086450000000000 1:c08bb00000000000 2:407ea40000000000 3:407ea40000000000 4:c082220000000000 5:4071a20000000000 6:c07fa40000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:c08bd40000000000 1:c0806a0000000000 2:c0806a0000000000 3:c01d800000000000 4:c0833b0000000000 5:c084350000000000 6:c084350000000000 +base __name__=a,instance=i2,job=x ; 3:4048f00000000000 4:404a100000000000 5:404a100000000000 6:c081c40000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y,version=base ; 1:c05a800000000000 +base __name__=a,instance=i2,job=x ; 0:c067880000000000 1:c044d00000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 1:40fadb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 +result __name__=a,instance=i1,job=y,version=base ; 1:c05a800000000000 +result __name__=a,instance=i2,job=x ; 0:c067880000000000 1:c044d00000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,zone=z1 ; 2:c085e10000000000 3:c081dc0000000000 4:408c480000000000 5:408f180000000000 6:408f180000000000 7:4070a60000000000 +base __name__=a,instance=i2 ; 0:c0809b0000000000 1:c052e00000000000 2:c052e00000000000 3:c052e00000000000 4:c072880000000000 5:c072880000000000 6:4086ef0000000000 7:c08bbf0000000000 +base __name__=a,instance=i2,job=x ; 0:c088a30000000000 1:40854f0000000000 2:40854f0000000000 3:c089780000000000 4:4084a00000000000 5:4084a00000000000 6:4078000000000000 7:4071fc0000000000 +base __name__=a,instance=i2,job=y,version=base,zone=z1 ; 1:4086ef0000000000 2:c082040000000000 3:c082040000000000 4:c082040000000000 5:c083a70000000000 6:c068bc0000000000 7:c068bc0000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +info __name__=build_info,instance=i2,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 +info __name__=build_info,instance=i2,job=y,version=v2,zone=z2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 +result __name__=a,instance=i1,zone=z1 ; 2:c085e10000000000 3:c081dc0000000000 4:408c480000000000 5:408f180000000000 6:408f180000000000 7:4070a60000000000 +result __name__=a,instance=i2 ; 0:c0809b0000000000 1:c052e00000000000 +result __name__=a,instance=i2,job=x,version=v2 ; 0:c088a30000000000 1:40854f0000000000 2:40854f0000000000 3:c089780000000000 4:4084a00000000000 5:4084a00000000000 6:4078000000000000 7:4071fc0000000000 +result __name__=a,instance=i2,job=y,version=base,zone=z1 ; 1:4086ef0000000000 2:c082040000000000 3:c082040000000000 4:c082040000000000 5:c083a70000000000 6:c068bc0000000000 7:c068bc0000000000 +result __name__=a,instance=i2,version=v2 ; 2:c052e00000000000 3:c052e00000000000 4:c072880000000000 5:c072880000000000 6:4086ef0000000000 7:c08bbf0000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i2 ; 1:408b120000000000 +base __name__=a,instance=i2,job=y ; 0:c05e200000000000 1:c05e200000000000 +base __name__=a,instance=i2,job=y,version=base ; 0:c05eb80000000000 1:c05eb80000000000 +base __name__=a,job=x ; 0:c061600000000000 1:c061600000000000 +base __name__=a,zone=z1 ; 0:c07e7c0000000000 1:c07cd40000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:4080200000000000 1:4089e00000000000 +result __name__=a,instance=i2 ; 1:408b120000000000 +result __name__=a,instance=i2,job=y ; 0:c05e200000000000 1:c05e200000000000 +result __name__=a,instance=i2,job=y,version=base ; 0:c05eb80000000000 1:c05eb80000000000 +result __name__=a,job=x ; 0:c061600000000000 1:c061600000000000 +result __name__=a,zone=z1 ; 0:c07e7c0000000000 1:c07cd40000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:4080200000000000 1:4089e00000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 7 +base __name__=a ; 1:4044d00000000000 2:408d670000000000 3:407e8c0000000000 4:4081be0000000000 5:c07bc00000000000 6:c07bc00000000000 +base __name__=a,instance=i2 ; 0:c07b620000000000 1:c073600000000000 2:c073600000000000 3:c073600000000000 4:c07e920000000000 5:405d280000000000 6:c049400000000000 +base __name__=a,instance=i2,job=y ; 1:4088510000000000 2:c08b4e0000000000 3:c088b60000000000 4:c088b60000000000 5:408e750000000000 6:4062ec0000000000 +base __name__=a,instance=i2,zone=z2 ; 0:c08ae80000000000 1:4088380000000000 2:c066a80000000000 3:c061b80000000000 4:c06bc00000000000 5:c0812a0000000000 6:c089660000000000 +base __name__=a,k8s_cluster=c2,version=base,zone=z1 ; 2:4050700000000000 3:c0704a0000000000 4:c0704a0000000000 5:c074e40000000000 6:c084940000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 +result __name__=a ; 1:4044d00000000000 2:408d670000000000 3:407e8c0000000000 4:4081be0000000000 5:c07bc00000000000 6:c07bc00000000000 +result __name__=a,instance=i2 ; 0:c07b620000000000 1:c073600000000000 2:c073600000000000 3:c073600000000000 4:c07e920000000000 5:405d280000000000 6:c049400000000000 +result __name__=a,instance=i2,job=y ; 1:4088510000000000 2:c08b4e0000000000 3:c088b60000000000 4:c088b60000000000 5:408e750000000000 6:4062ec0000000000 +result __name__=a,instance=i2,zone=z2 ; 0:c08ae80000000000 1:4088380000000000 2:c066a80000000000 3:c061b80000000000 4:c06bc00000000000 5:c0812a0000000000 6:c089660000000000 +result __name__=a,k8s_cluster=c2,version=base,zone=z1 ; 2:4050700000000000 3:c0704a0000000000 4:c0704a0000000000 5:c074e40000000000 6:c084940000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,job=x ; 0:4088980000000000 1:4088980000000000 2:4088980000000000 3:401f000000000000 4:401f000000000000 5:401f000000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; +info __name__=target_info,instance=i1,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,job=x ; 0:4088980000000000 1:4088980000000000 2:4088980000000000 3:401f000000000000 4:401f000000000000 5:401f000000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=y ; 0:4064f00000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:40726e0000000000 +base __name__=a,job=x ; 0:4083bf0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 0:c08c560000000000 +base __name__=target_info,job=x,k8s_cluster=c1 ; 0:4086e10000000000 +info __name__=target_info,k8s_cluster=c1 ; +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v2 ; +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 0:4064f00000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:40726e0000000000 +result __name__=a,job=x,k8s_cluster=c1 ; 0:4083bf0000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 0:c08c560000000000 +result __name__=target_info,job=x,k8s_cluster=c1 ; 0:4086e10000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a,instance=i1 ; 1:c08b000000000000 2:c07ad60000000000 3:c08c3b0000000000 4:c0810e0000000000 5:c080190000000000 6:c080190000000000 +base __name__=a,instance=i2,job=x ; 0:c087880000000000 1:4057b80000000000 2:c08bc60000000000 3:c0880d0000000000 4:4049600000000000 5:4049600000000000 6:4049600000000000 +base __name__=a,instance=i2,job=y ; 0:c07dbe0000000000 1:c07dea0000000000 2:c076420000000000 3:c076420000000000 4:c076420000000000 5:4088110000000000 6:40703e0000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:c08e230000000000 1:c0838f0000000000 2:407ff40000000000 3:408a210000000000 4:408a210000000000 5:408a210000000000 6:408de20000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 6:c061d40000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:c070f60000000000 1:c070f60000000000 2:c070f60000000000 3:4063e00000000000 4:4063e00000000000 5:4063e00000000000 6:c07bc60000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 3:40791c0000000000 4:c064080000000000 5:c078440000000000 6:c078440000000000 +base __name__=target_info,instance=i2,k8s_cluster=d1 ; 5:c031000000000000 6:4081a00000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 1:c074900000000000 2:40869b0000000000 3:c07f3e0000000000 4:c07f3e0000000000 5:c07f3e0000000000 6:406e880000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 6:4103880000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c07dbe0000000000 1:c07dea0000000000 2:c076420000000000 3:c076420000000000 4:c076420000000000 5:4088110000000000 6:40703e0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z1 ; 0:c08e230000000000 1:c0838f0000000000 2:407ff40000000000 3:408a210000000000 4:408a210000000000 5:408a210000000000 6:408de20000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 6:c061d40000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:c070f60000000000 1:c070f60000000000 2:c070f60000000000 3:4063e00000000000 4:4063e00000000000 5:4063e00000000000 6:c07bc60000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 3:40791c0000000000 4:c064080000000000 5:c078440000000000 6:c078440000000000 +result __name__=target_info,instance=i2,k8s_cluster=d1 ; 5:c031000000000000 6:4081a00000000000 +result __name__=target_info,job=x,k8s_cluster=d1 ; 1:c074900000000000 2:40869b0000000000 3:c07f3e0000000000 4:c07f3e0000000000 5:c07f3e0000000000 6:406e880000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,job=x ; 0:4080e20000000000 1:4080be0000000000 2:408e510000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 2:40fd4c0000000000 +info __name__=target_info,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,k8s_cluster=c1 ; +result __name__=a,job=x ; 0:4080e20000000000 1:4080be0000000000 2:408e510000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 10 +base __name__=a,instance=i2,job=x ; 0:c082e60000000000 1:407f720000000000 2:c081490000000000 3:40811d0000000000 4:c08e180000000000 5:c08e180000000000 6:c083630000000000 7:c083630000000000 8:407bc80000000000 9:4066c80000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4107318000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 9:4107318000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 1:407f720000000000 2:c081490000000000 3:40811d0000000000 4:c08e180000000000 9:4066c80000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=x ; 0:408eff0000000000 1:4076d40000000000 2:c087510000000000 3:c087510000000000 4:408ca70000000000 5:c07a7a0000000000 6:4081130000000000 7:4058880000000000 8:c07fd80000000000 +base __name__=a,instance=i1,version=base ; 0:c07d7c0000000000 1:c07e780000000000 2:4045500000000000 3:40859d0000000000 4:4046500000000000 5:c083f60000000000 6:c088bf0000000000 7:c088bf0000000000 8:c07a440000000000 +base __name__=a,instance=i1,zone=z2 ; 0:c081cb0000000000 1:c081cb0000000000 2:c0815b0000000000 3:c0815b0000000000 4:4085ff0000000000 5:c08d230000000000 6:c08d230000000000 7:c08d230000000000 8:c067740000000000 +base __name__=a,instance=i2 ; 0:40782a0000000000 1:40782a0000000000 2:c08ad60000000000 3:c08ad60000000000 4:c08ad60000000000 5:c087ba0000000000 6:4076060000000000 7:c076fa0000000000 8:c061080000000000 +base __name__=a,job=y,zone=z1 ; 1:4073940000000000 2:c061600000000000 3:c061600000000000 4:c0800c0000000000 5:c045f00000000000 6:c045f00000000000 7:c078ea0000000000 8:4086bf0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 8:4105f90000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4105f90000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 7:4104c08000000000 8:4104c08000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 1 +base __name__=a,job=y ; 0:4070ae0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 +info __name__=target_info,k8s_cluster=d1 ; +info __name__=target_info,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 +result __name__=a,job=y ; 0:4070ae0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i2,job=x,k8s_cluster=c1,zone=z1 ; 0:40716c0000000000 1:c0761a0000000000 2:40726c0000000000 +base __name__=a,instance=i2,zone=z2 ; 0:c070fc0000000000 1:4065740000000000 2:c084650000000000 +base __name__=a,job=x,zone=z2 ; 0:c0718e0000000000 1:c0718e0000000000 2:c05cb00000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fd4c0000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1,zone=z1 ; 0:40716c0000000000 1:c0761a0000000000 2:40726c0000000000 +result __name__=a,instance=i2,zone=z2 ; 0:c070fc0000000000 1:4065740000000000 2:c084650000000000 +result __name__=a,job=x,zone=z2 ; 0:c0718e0000000000 1:c0718e0000000000 2:c05cb00000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,k8s_cluster=c1 ; 1:c069580000000000 2:c078fa0000000000 3:4067600000000000 4:40860d0000000000 5:4060380000000000 6:4060380000000000 7:4067b40000000000 +base __name__=a,instance=i2,job=y ; 0:c088760000000000 1:4061240000000000 2:40785e0000000000 3:c08c960000000000 4:c070280000000000 5:c0805f0000000000 6:c0805f0000000000 7:408e530000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:408bca0000000000 1:408bca0000000000 2:408b3c0000000000 3:c07f880000000000 4:407bbe0000000000 5:c063b00000000000 6:408b460000000000 7:408a320000000000 +info __name__=build_info,instance=i1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=build_info,version=v2,zone=z1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 3:4067600000000000 4:40860d0000000000 5:4060380000000000 6:4060380000000000 7:4067b40000000000 +result __name__=a,instance=i1,k8s_cluster=c1,version=v1 ; 1:c069580000000000 2:c078fa0000000000 +result __name__=a,instance=i2,job=y ; 0:c088760000000000 1:4061240000000000 2:40785e0000000000 3:c08c960000000000 4:c070280000000000 5:c0805f0000000000 6:c0805f0000000000 7:408e530000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 0:408bca0000000000 1:408bca0000000000 2:408b3c0000000000 3:c07f880000000000 4:407bbe0000000000 5:c063b00000000000 6:408b460000000000 7:408a320000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=y ; 0:40705c0000000000 1:c075c00000000000 2:408b9f0000000000 3:4047700000000000 4:c08a010000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:4083030000000000 1:407e0a0000000000 2:40737e0000000000 3:c03ba00000000000 4:c03ba00000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 4:4101170000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=build_info,instance=i1,job=x,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a ; 0:c0875b0000000000 1:c0875b0000000000 +base __name__=a,instance=i2,job=x ; 0:c08c2f0000000000 1:4087820000000000 +base __name__=a,job=y,k8s_cluster=c1 ; 0:4071320000000000 1:40702c0000000000 +base __name__=a,zone=z1 ; 0:c080420000000000 1:4077600000000000 +result __name__=a ; 0:c0875b0000000000 1:c0875b0000000000 +result __name__=a,instance=i2,job=x ; 0:c08c2f0000000000 1:4087820000000000 +result __name__=a,job=y,k8s_cluster=c1 ; 0:4071320000000000 1:40702c0000000000 +result __name__=a,zone=z1 ; 0:c080420000000000 1:4077600000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 2 +base __name__=a,job=y ; 0:c088da0000000000 1:c07ab80000000000 +result __name__=a,job=y ; 0:c088da0000000000 1:c07ab80000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x ; 0:c08d6b0000000000 1:c082920000000000 2:c082920000000000 +base __name__=a,instance=i1,job=y ; 0:408ccc0000000000 1:c089b60000000000 2:c083d50000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:c08d540000000000 1:c08d540000000000 2:c08d540000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:4082d60000000000 1:4082d60000000000 2:4084ae0000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; +info __name__=build_info,instance=i2,version=v2 ; +result __name__=a,instance=i1,job=x ; 0:c08d6b0000000000 1:c082920000000000 2:c082920000000000 +result __name__=a,instance=i1,job=y ; 0:408ccc0000000000 1:c089b60000000000 2:c083d50000000000 +result __name__=a,instance=i2,job=x,zone=z1 ; 0:c08d540000000000 1:c08d540000000000 2:c08d540000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:4082d60000000000 1:4082d60000000000 2:4084ae0000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 8 +base __name__=a ; 0:40850b0000000000 1:c06ecc0000000000 2:c06ecc0000000000 3:c06ecc0000000000 5:c081b40000000000 6:c081b40000000000 7:c0750a0000000000 +base __name__=a,instance=i2,zone=z2 ; 1:408c210000000000 2:4089e80000000000 3:c06b880000000000 4:c08a690000000000 5:c08a690000000000 6:c08a690000000000 7:408df60000000000 +base __name__=a,job=x ; 1:4074140000000000 2:c089920000000000 3:c04de00000000000 4:c054580000000000 5:408b1f0000000000 6:4064440000000000 7:c081bf0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 3 +base __name__=a ; 0:4089e40000000000 1:c0890e0000000000 2:c0890e0000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z1 ; 0:4088d20000000000 1:4077ec0000000000 2:c0857a0000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:407fd80000000000 1:407fd80000000000 2:408e2f0000000000 +base __name__=a,job=x ; 0:408b3b0000000000 1:4085ba0000000000 2:4075460000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 0:4071b40000000000 1:c075f60000000000 2:c075f60000000000 +result __name__=a ; 0:4089e40000000000 1:c0890e0000000000 2:c0890e0000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z1 ; 0:4088d20000000000 1:4077ec0000000000 2:c0857a0000000000 +result __name__=a,instance=i1,job=x,zone=z2 ; 0:407fd80000000000 1:407fd80000000000 2:408e2f0000000000 +result __name__=a,job=x ; 0:408b3b0000000000 1:4085ba0000000000 2:4075460000000000 +result __name__=a,job=x,k8s_cluster=c1 ; 0:4071b40000000000 1:c075f60000000000 2:c075f60000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 9 +base __name__=a ; 0:4088160000000000 1:c061e80000000000 2:c061e80000000000 3:4088e30000000000 4:408c110000000000 5:c08f270000000000 6:407d6a0000000000 7:4083b30000000000 8:c075100000000000 +base __name__=a,instance=i1 ; 0:c065d00000000000 1:c083af0000000000 2:c082e90000000000 3:c082e90000000000 4:c082e90000000000 5:4066ec0000000000 6:406ef80000000000 7:406ef80000000000 8:406ef80000000000 +base __name__=a,instance=i1,job=y ; 0:4089280000000000 1:404d300000000000 2:408e710000000000 3:4055a00000000000 4:407f2a0000000000 5:c083b90000000000 6:40763e0000000000 7:c05ee00000000000 8:4089bc0000000000 +base __name__=a,instance=i2,job=y ; 1:c082fa0000000000 2:c082fa0000000000 3:c082fa0000000000 6:c07a0a0000000000 7:c084d60000000000 8:c08b7f0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4105f90000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 9 +base __name__=a ; 0:4082320000000000 1:407ea40000000000 2:c0780a0000000000 3:c0780a0000000000 4:404ff00000000000 5:405ce00000000000 6:405ce00000000000 7:c087260000000000 8:c020c00000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 3:406d3c0000000000 4:408a230000000000 5:408a230000000000 6:408a230000000000 7:c08ddb0000000000 8:c08ddb0000000000 +base __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:c067500000000000 1:c067500000000000 2:c067500000000000 7:406bb00000000000 8:407a4c0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 7:4104c08000000000 8:4105f90000000000 +result __name__=a ; 0:4082320000000000 1:407ea40000000000 2:c0780a0000000000 3:c0780a0000000000 4:404ff00000000000 5:405ce00000000000 6:405ce00000000000 7:c087260000000000 8:c020c00000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 3:406d3c0000000000 4:408a230000000000 5:408a230000000000 6:408a230000000000 7:c08ddb0000000000 8:c08ddb0000000000 +result __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:c067500000000000 1:c067500000000000 2:c067500000000000 7:406bb00000000000 8:407a4c0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a ; 3:408ec20000000000 4:406c200000000000 5:c0879f0000000000 6:4084b40000000000 7:c055b00000000000 +base __name__=a,instance=i2 ; 0:c081b70000000000 1:407bb20000000000 2:c0793a0000000000 3:40670c0000000000 4:c08e3c0000000000 5:c08e3c0000000000 6:4048600000000000 7:40745e0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 2:c0850f0000000000 3:c0850f0000000000 4:c0850f0000000000 5:c08dd70000000000 6:c0829f0000000000 7:c0832d0000000000 +base __name__=a,job=y,version=base ; 0:408a1e0000000000 1:c088d00000000000 2:c08b540000000000 3:408a520000000000 4:4043100000000000 5:4043100000000000 6:c08a060000000000 7:c078260000000000 +info __name__=build_info,version=v2,zone=z2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +info __name__=build_info,instance=i2,job=x,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4103880000000000 +info __name__=build_info,instance=i1,job=x,version=v2 ; 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a ; 3:408ec20000000000 4:406c200000000000 5:c0879f0000000000 6:4084b40000000000 7:c055b00000000000 +result __name__=a,instance=i2 ; 0:c081b70000000000 1:407bb20000000000 2:c0793a0000000000 3:40670c0000000000 4:c08e3c0000000000 5:c08e3c0000000000 6:4048600000000000 7:40745e0000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 2:c0850f0000000000 3:c0850f0000000000 4:c0850f0000000000 5:c08dd70000000000 6:c0829f0000000000 7:c0832d0000000000 +result __name__=a,job=y,version=base ; 0:408a1e0000000000 1:c088d00000000000 2:c08b540000000000 3:408a520000000000 4:4043100000000000 5:4043100000000000 6:c08a060000000000 7:c078260000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 5 +base __name__=a,instance=i2 ; 0:c082890000000000 1:c082890000000000 2:c07ede0000000000 3:c07ede0000000000 4:406f280000000000 +base __name__=a,job=x ; 0:4078800000000000 1:c07e0a0000000000 2:c07e0a0000000000 3:c089620000000000 4:c083170000000000 +base __name__=a,job=y,version=base,zone=z1 ; 1:c0842b0000000000 2:4088480000000000 3:c041c00000000000 4:4087c60000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 0:c0852e0000000000 1:c0852e0000000000 2:c0852e0000000000 3:c044800000000000 4:c044800000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +result __name__=a,instance=i2 ; 0:c082890000000000 1:c082890000000000 2:c07ede0000000000 3:c07ede0000000000 4:406f280000000000 +result __name__=a,job=x ; 0:4078800000000000 1:c07e0a0000000000 2:c07e0a0000000000 3:c089620000000000 4:c083170000000000 +result __name__=a,job=y,version=base,zone=z1 ; 1:c0842b0000000000 2:4088480000000000 3:c041c00000000000 4:4087c60000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 0:c0852e0000000000 1:c0852e0000000000 2:c0852e0000000000 3:c044800000000000 4:c044800000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:4080da0000000000 1:c05f000000000000 2:408cfd0000000000 3:c07c340000000000 4:4067d40000000000 5:408a410000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:408f0e0000000000 1:406eb80000000000 2:40875b0000000000 3:4087080000000000 4:4087080000000000 5:408c6c0000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c08bd00000000000 1:4075600000000000 2:4075600000000000 3:c088b70000000000 4:c088b70000000000 5:c088b70000000000 +base __name__=a,instance=i2,job=y ; 0:c08ae50000000000 1:4039e00000000000 2:4054480000000000 3:407f300000000000 4:4088230000000000 5:c084ef0000000000 +base __name__=a,k8s_cluster=c2,version=base ; 0:c0897d0000000000 1:40796e0000000000 2:c087670000000000 3:c06c280000000000 4:407c640000000000 5:407c640000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,version=base ; 0:c07f6a0000000000 1:c07bb60000000000 2:c042d00000000000 3:c085aa0000000000 4:c02fc00000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,k8s_cluster=c1 ; +info __name__=target_info,job=y,k8s_cluster=d1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +result __name__=a,instance=i1,k8s_cluster=c2,version=base ; 0:c07f6a0000000000 1:c07bb60000000000 2:c042d00000000000 3:c085aa0000000000 4:c02fc00000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 3 +base __name__=a ; 1:4059f80000000000 2:c089150000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 1:c08cab0000000000 2:c071820000000000 +base __name__=a,job=x,zone=z2 ; 1:c089960000000000 2:c078300000000000 +base __name__=a,k8s_cluster=c2 ; 0:c074000000000000 1:4070020000000000 2:c07dc00000000000 +base __name__=a,zone=z2 ; 0:4065f40000000000 1:c02e800000000000 2:4067440000000000 +info __name__=build_info,instance=i2,job=x,version=v2,zone=z1 ; +result __name__=a ; 1:4059f80000000000 2:c089150000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 1:c08cab0000000000 2:c071820000000000 +result __name__=a,job=x,zone=z2 ; 1:c089960000000000 2:c078300000000000 +result __name__=a,k8s_cluster=c2 ; 0:c074000000000000 1:4070020000000000 2:c07dc00000000000 +result __name__=a,zone=z2 ; 0:4065f40000000000 1:c02e800000000000 2:4067440000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i2,job=x,zone=z1 ; 1:c087000000000000 2:c087000000000000 3:c089f90000000000 4:c070fc0000000000 5:c04af00000000000 +base __name__=a,job=x ; 0:407c2a0000000000 1:4061380000000000 2:40856b0000000000 3:40856b0000000000 4:408ea40000000000 5:403a600000000000 +base __name__=a,zone=z1 ; 0:4057680000000000 1:c083b30000000000 2:c071cc0000000000 3:40847d0000000000 4:40847d0000000000 5:40847d0000000000 +info __name__=target_info,k8s_cluster=c1 ; 4:4101170000000000 5:4101170000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i2,job=x,zone=z1 ; 1:c087000000000000 2:c087000000000000 3:c089f90000000000 4:c070fc0000000000 5:c04af00000000000 +result __name__=a,job=x ; 0:407c2a0000000000 1:4061380000000000 2:40856b0000000000 3:40856b0000000000 4:408ea40000000000 5:403a600000000000 +result __name__=a,zone=z1 ; 0:4057680000000000 1:c083b30000000000 2:c071cc0000000000 3:40847d0000000000 4:40847d0000000000 5:40847d0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 6 +base __name__=a,job=x,version=base ; 0:404f500000000000 1:404f500000000000 2:c066b40000000000 3:c066b40000000000 4:c066b40000000000 5:c08ccb0000000000 +base __name__=a,job=y ; 0:c03f200000000000 1:c081230000000000 2:408c4e0000000000 3:c079d80000000000 4:c07a180000000000 5:c0812c0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x,k8s_cluster=c2 ; 0:c07c980000000000 1:c07c980000000000 2:c07c980000000000 3:c06f880000000000 4:c07aa60000000000 5:4051100000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:4086fc0000000000 1:c064ac0000000000 2:c064ac0000000000 3:c082bd0000000000 4:407b180000000000 5:407b180000000000 +base __name__=a,job=x,version=base ; 0:4084fe0000000000 1:4084fe0000000000 2:4084fe0000000000 3:408bf60000000000 4:c054f00000000000 5:4081ef0000000000 +base __name__=a,job=x,zone=z2 ; 0:405f680000000000 1:c0727a0000000000 2:4044700000000000 3:c0837c0000000000 4:4077d20000000000 5:4077d20000000000 +base __name__=a,job=y ; 0:407d560000000000 1:404b600000000000 2:404b600000000000 3:c073b20000000000 4:c072b00000000000 5:408a2b0000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2 ; 0:c07c980000000000 1:c07c980000000000 2:c07c980000000000 3:c06f880000000000 4:c07aa60000000000 5:4051100000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:4086fc0000000000 1:c064ac0000000000 2:c064ac0000000000 3:c082bd0000000000 4:407b180000000000 5:407b180000000000 +result __name__=a,job=x,version=base ; 0:4084fe0000000000 1:4084fe0000000000 2:4084fe0000000000 3:408bf60000000000 4:c054f00000000000 5:4081ef0000000000 +result __name__=a,job=x,zone=z2 ; 0:405f680000000000 1:c0727a0000000000 2:4044700000000000 3:c0837c0000000000 4:4077d20000000000 5:4077d20000000000 +result __name__=a,job=y ; 0:407d560000000000 1:404b600000000000 2:404b600000000000 3:c073b20000000000 4:c072b00000000000 5:408a2b0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 3 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 2:c07b320000000000 +base __name__=a,instance=i2,zone=z2 ; 0:408b760000000000 1:4084a50000000000 2:c083d90000000000 +base __name__=a,job=x ; 0:4082a80000000000 1:4082a80000000000 2:c087000000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 +info __name__=build_info,job=y,version=v2,zone=z1 ; 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; 2:40fd4c0000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y,k8s_cluster=c1,zone=z2 ; 0:c0825e0000000000 1:c0825e0000000000 2:c0825e0000000000 +base __name__=a,instance=i2,job=x ; 1:c036000000000000 2:c046000000000000 +base __name__=a,instance=i2,k8s_cluster=c2 ; 0:c0704a0000000000 1:c051580000000000 2:c051580000000000 +base __name__=a,instance=i2,zone=z2 ; 2:408e450000000000 +base __name__=a,job=x,version=base ; 1:4050a80000000000 2:4053380000000000 +base __name__=a,job=y ; 0:c052f80000000000 1:4087a20000000000 2:4083310000000000 +base __name__=target_info,instance=i2,k8s_cluster=d1,version=v1 ; 2:40881e0000000000 +info __name__=target_info,k8s_cluster=c2,version=v1 ; +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v1 ; 2:40fd4c0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1,zone=z2 ; 0:c0825e0000000000 1:c0825e0000000000 2:c0825e0000000000 +result __name__=a,instance=i2,job=x ; 1:c036000000000000 2:c046000000000000 +result __name__=a,instance=i2,k8s_cluster=c2 ; 0:c0704a0000000000 1:c051580000000000 +result __name__=a,instance=i2,k8s_cluster=c2,version=v1 ; 2:c051580000000000 +result __name__=a,instance=i2,k8s_cluster=d1,version=v1,zone=z2 ; 2:408e450000000000 +result __name__=a,job=x,version=base ; 1:4050a80000000000 2:4053380000000000 +result __name__=a,job=y ; 0:c052f80000000000 1:4087a20000000000 2:4083310000000000 +result __name__=target_info,instance=i2,k8s_cluster=d1,version=v1 ; 2:40881e0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 8 +base __name__=a ; 2:4076fa0000000000 3:4076fa0000000000 4:405f080000000000 5:408bf20000000000 6:c089ef0000000000 7:403a000000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:c02e400000000000 2:c02e400000000000 3:c02e400000000000 5:c08c8a0000000000 6:c06da40000000000 7:c078000000000000 +info __name__=build_info,job=x,version=v2,zone=z2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=build_info,instance=i2,job=y,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a,instance=i2,job=y,version=v2,zone=z2 ; 1:c02e400000000000 2:c02e400000000000 3:c02e400000000000 5:c08c8a0000000000 6:c06da40000000000 7:c078000000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i2,job=x ; 1:c062e40000000000 2:c062e40000000000 3:4055400000000000 4:4055400000000000 5:4077c40000000000 6:c08a990000000000 7:c070600000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:c07fce0000000000 2:405c280000000000 3:c08c130000000000 4:c089660000000000 5:406e500000000000 6:406e500000000000 7:c07cae0000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:407a760000000000 1:c074b00000000000 2:c074b00000000000 3:408cfc0000000000 4:405dc80000000000 5:4079840000000000 6:c082ec0000000000 7:c07f760000000000 +base __name__=a,job=x,zone=z1 ; 0:4058700000000000 1:c058980000000000 2:c058980000000000 3:c058980000000000 5:407bda0000000000 6:407bda0000000000 7:c067380000000000 +base __name__=a,job=y ; 0:40861d0000000000 1:c087850000000000 2:c087850000000000 3:4080ba0000000000 4:4061d40000000000 5:4061d40000000000 6:c058300000000000 7:c070a40000000000 +info __name__=build_info,instance=i2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +info __name__=build_info,instance=i2,version=v1,zone=z1 ; 6:4103880000000000 7:4104c08000000000 +info __name__=build_info,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4104c08000000000 +result __name__=a,instance=i2,job=x ; 1:c062e40000000000 2:c062e40000000000 3:4055400000000000 4:4055400000000000 5:4077c40000000000 6:c08a990000000000 7:c070600000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:c07fce0000000000 2:405c280000000000 3:c08c130000000000 4:c089660000000000 5:406e500000000000 6:406e500000000000 7:c07cae0000000000 +result __name__=a,instance=i2,job=y,zone=z1 ; 0:407a760000000000 1:c074b00000000000 2:c074b00000000000 3:408cfc0000000000 4:405dc80000000000 5:4079840000000000 6:c082ec0000000000 7:c07f760000000000 +result __name__=a,job=x,zone=z1 ; 0:4058700000000000 1:c058980000000000 2:c058980000000000 3:c058980000000000 5:407bda0000000000 6:407bda0000000000 7:c067380000000000 +result __name__=a,job=y ; 0:40861d0000000000 1:c087850000000000 2:c087850000000000 3:4080ba0000000000 4:4061d40000000000 5:4061d40000000000 6:c058300000000000 7:c070a40000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=x,zone=z2 ; 1:40736e0000000000 2:40736e0000000000 3:c08b950000000000 4:c08b950000000000 5:c0842f0000000000 6:c0842f0000000000 7:4089a10000000000 8:4089a10000000000 +base __name__=a,job=x ; 0:c08de30000000000 1:406ad00000000000 2:c059180000000000 3:406b380000000000 4:4073b40000000000 5:4073b40000000000 6:4073b40000000000 +base __name__=a,job=y ; 2:c07a600000000000 3:4080f20000000000 4:4080f20000000000 5:4080f20000000000 6:408c180000000000 7:c08d5d0000000000 8:c08d5d0000000000 +info __name__=target_info,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 8:4105f90000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i2 ; 0:c0717a0000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:c08efe0000000000 +base __name__=a,zone=z1 ; 0:407fac0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:c087820000000000 1:407b5a0000000000 2:4050b00000000000 +base __name__=a,instance=i1,job=y ; 0:c08e6a0000000000 1:c062580000000000 2:c062580000000000 +base __name__=a,instance=i1,version=base ; 0:406a5c0000000000 1:c07bea0000000000 2:c070800000000000 +base __name__=a,job=y ; 0:c0759e0000000000 1:c07dc00000000000 2:c07dc00000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 2:40fd4c0000000000 +result __name__=a,instance=i1 ; 0:c087820000000000 1:407b5a0000000000 2:4050b00000000000 +result __name__=a,instance=i1,job=y ; 0:c08e6a0000000000 1:c062580000000000 2:c062580000000000 +result __name__=a,instance=i1,version=base ; 0:406a5c0000000000 1:c07bea0000000000 2:c070800000000000 +result __name__=a,job=y ; 0:c0759e0000000000 +result __name__=a,job=y,k8s_cluster=c2,version=v1 ; 1:c07dc00000000000 2:c07dc00000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,k8s_cluster=c2 ; 0:4086330000000000 1:c081ba0000000000 2:40877e0000000000 3:40877e0000000000 4:40877e0000000000 +base __name__=a,k8s_cluster=c2,zone=z1 ; 1:c082eb0000000000 2:c084970000000000 3:c072e40000000000 4:c072e40000000000 +info __name__=build_info,instance=i2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +result __name__=a,instance=i1,k8s_cluster=c2 ; 0:4086330000000000 1:c081ba0000000000 2:40877e0000000000 3:40877e0000000000 4:40877e0000000000 +result __name__=a,k8s_cluster=c2,zone=z1 ; 1:c082eb0000000000 2:c084970000000000 3:c072e40000000000 4:c072e40000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 10 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:c080e40000000000 1:c057080000000000 2:c057780000000000 3:c057780000000000 4:c057780000000000 5:c08ab50000000000 6:c08ab50000000000 7:408df90000000000 8:4088230000000000 9:c08c7a0000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 0:c089a00000000000 1:4082c50000000000 2:408f3c0000000000 3:408f3c0000000000 4:408f3c0000000000 5:406f4c0000000000 6:406f4c0000000000 7:406f4c0000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 0:c080e40000000000 1:c057080000000000 2:c057780000000000 3:c057780000000000 4:c057780000000000 5:c08ab50000000000 6:c08ab50000000000 7:408df90000000000 8:4088230000000000 9:c08c7a0000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 0:c089a00000000000 1:4082c50000000000 2:408f3c0000000000 3:408f3c0000000000 4:408f3c0000000000 5:406f4c0000000000 6:406f4c0000000000 7:406f4c0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1 ; 0:408d830000000000 1:4080060000000000 2:408aa00000000000 3:408aa00000000000 4:408aa00000000000 9:4045b00000000000 +base __name__=a,instance=i1,job=y,version=base ; 0:407b900000000000 1:408ee30000000000 2:408ee30000000000 3:c087c40000000000 4:4063d80000000000 5:408f270000000000 6:c08e150000000000 7:c087fa0000000000 8:c087fa0000000000 9:4083960000000000 +base __name__=a,job=x ; 0:408c220000000000 1:408c220000000000 2:4053d00000000000 3:4053d00000000000 4:c080c10000000000 5:40758a0000000000 6:40758a0000000000 7:c082560000000000 8:4080720000000000 9:4085830000000000 +base __name__=a,job=y,zone=z2 ; 0:c086590000000000 1:4056600000000000 2:408eae0000000000 3:408eae0000000000 4:408eae0000000000 6:40877f0000000000 7:40877f0000000000 8:4084030000000000 9:4084030000000000 +base __name__=a,version=base,zone=z1 ; 3:c088200000000000 4:c088200000000000 5:408d9f0000000000 6:c0739e0000000000 7:c086a30000000000 8:4080e00000000000 9:40726e0000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a,instance=i1 ; 0:408d830000000000 1:4080060000000000 2:408aa00000000000 3:408aa00000000000 4:408aa00000000000 9:4045b00000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:407b900000000000 1:408ee30000000000 2:408ee30000000000 3:c087c40000000000 4:4063d80000000000 5:408f270000000000 6:c08e150000000000 7:c087fa0000000000 8:c087fa0000000000 9:4083960000000000 +result __name__=a,job=x ; 0:408c220000000000 1:408c220000000000 2:4053d00000000000 3:4053d00000000000 4:c080c10000000000 5:40758a0000000000 6:40758a0000000000 7:c082560000000000 8:4080720000000000 9:4085830000000000 +result __name__=a,job=y,zone=z2 ; 0:c086590000000000 1:4056600000000000 2:408eae0000000000 3:408eae0000000000 4:408eae0000000000 6:40877f0000000000 7:40877f0000000000 8:4084030000000000 9:4084030000000000 +result __name__=a,version=base,zone=z1 ; 3:c088200000000000 4:c088200000000000 5:408d9f0000000000 6:c0739e0000000000 7:c086a30000000000 8:4080e00000000000 9:40726e0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=y ; 1:406e2c0000000000 2:408b090000000000 3:408b090000000000 4:408b090000000000 5:c0853d0000000000 6:c081100000000000 7:c081100000000000 8:c081100000000000 +base __name__=a,instance=i2,job=x ; 0:408c350000000000 1:c062180000000000 2:4068440000000000 3:4080ca0000000000 4:4080ca0000000000 5:4088ac0000000000 6:4088ac0000000000 7:c0851c0000000000 8:4072620000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z1 ; 1:4089640000000000 2:4089640000000000 3:40839d0000000000 4:c058380000000000 5:c07c560000000000 6:c07c560000000000 7:c07c560000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +result __name__=a,instance=i1,job=y ; 1:406e2c0000000000 2:408b090000000000 3:408b090000000000 4:408b090000000000 5:c0853d0000000000 6:c081100000000000 7:c081100000000000 8:c081100000000000 +result __name__=a,instance=i2,job=x ; 0:408c350000000000 1:c062180000000000 2:4068440000000000 3:4080ca0000000000 4:4080ca0000000000 5:4088ac0000000000 6:4088ac0000000000 7:c0851c0000000000 8:4072620000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z1 ; 1:4089640000000000 2:4089640000000000 3:40839d0000000000 4:c058380000000000 5:c07c560000000000 6:c07c560000000000 7:c07c560000000000 +end +case version false __name__=~".+_info" +expr info({__name__=~"a|target_info"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 6 +base __name__=a,job=y ; 2:c087300000000000 3:c087300000000000 4:4082990000000000 5:4082990000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 +info __name__=build_info,instance=i1,job=y,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 +info __name__=build_info,instance=i1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:4070cc0000000000 1:4070cc0000000000 2:4089a50000000000 +base __name__=a,instance=i2,job=y ; 1:c08ac20000000000 2:c053600000000000 +base __name__=a,instance=i2,zone=z1 ; 1:40685c0000000000 2:c077b60000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v2 ; +info __name__=target_info,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,instance=i1 ; 0:4070cc0000000000 1:4070cc0000000000 2:4089a50000000000 +result __name__=a,instance=i2,job=y ; 1:c08ac20000000000 2:c053600000000000 +result __name__=a,instance=i2,zone=z1 ; 1:40685c0000000000 2:c077b60000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 1:c062600000000000 2:406b8c0000000000 3:c047500000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 0:c084cb0000000000 1:c084cb0000000000 2:c084cb0000000000 +base __name__=a,instance=i2,job=y,version=base ; 0:40790c0000000000 1:4050180000000000 2:4074be0000000000 3:bfd8000000000000 +base __name__=a,job=x ; 0:c08d0b0000000000 1:c075240000000000 2:c075240000000000 3:408ceb0000000000 +info __name__=build_info,instance=i1,version=v2,zone=z2 ; 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=build_info,instance=i1,version=v1 ; 3:40ffbd0000000000 +result __name__=a,instance=i1,version=v1 ; 3:c047500000000000 +result __name__=a,instance=i1,version=v2 ; 2:406b8c0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i2,job=x ; 3:407d500000000000 4:c08b6a0000000000 5:4089e70000000000 6:406dc40000000000 7:406dc40000000000 8:4073d00000000000 9:c083020000000000 +info __name__=build_info,instance=i2,job=x,version=v2,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 9:4107318000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=build_info,instance=i1,version=v1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4105f90000000000 9:4107318000000000 +result __name__=a,instance=i2,job=x ; 7:406dc40000000000 8:4073d00000000000 +result __name__=a,instance=i2,job=x,version=v2,zone=z1 ; 3:407d500000000000 4:c08b6a0000000000 5:4089e70000000000 6:406dc40000000000 9:c083020000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i2,job=y ; 2:407e580000000000 3:407e580000000000 4:407e580000000000 6:40887f0000000000 7:40887f0000000000 8:408a950000000000 9:408a950000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 1:c02cc00000000000 2:4080750000000000 3:407cc00000000000 4:4083940000000000 5:4083940000000000 6:408c4e0000000000 7:c081ff0000000000 8:c08abe0000000000 9:4077aa0000000000 +result __name__=a,instance=i2,job=y ; 2:407e580000000000 3:407e580000000000 4:407e580000000000 6:40887f0000000000 7:40887f0000000000 8:408a950000000000 9:408a950000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 1:c02cc00000000000 2:4080750000000000 3:407cc00000000000 4:4083940000000000 5:4083940000000000 6:408c4e0000000000 7:c081ff0000000000 8:c08abe0000000000 9:4077aa0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 1:c0758c0000000000 2:c0758c0000000000 3:c0758c0000000000 4:c03e000000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z1 ; 0:c07f680000000000 1:c063580000000000 2:c07f620000000000 3:c07f620000000000 4:40698c0000000000 +base __name__=a,instance=i2 ; 0:40883f0000000000 1:c08bda0000000000 2:4072a60000000000 3:c049600000000000 4:c049600000000000 +base __name__=a,instance=i2,zone=z2 ; 0:c065e80000000000 1:c065e80000000000 2:c065e80000000000 3:408c840000000000 4:c081a20000000000 +base __name__=a,job=x ; 3:408e270000000000 4:408e270000000000 +info __name__=target_info,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1 ; +info __name__=target_info,instance=i2,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +result __name__=a,instance=i1 ; 1:c0758c0000000000 2:c0758c0000000000 3:c0758c0000000000 4:c03e000000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z1 ; 0:c07f680000000000 1:c063580000000000 2:c07f620000000000 3:c07f620000000000 4:40698c0000000000 +result __name__=a,instance=i2,k8s_cluster=d1 ; 0:40883f0000000000 1:c08bda0000000000 2:4072a60000000000 3:c049600000000000 4:c049600000000000 +result __name__=a,instance=i2,k8s_cluster=d1,zone=z2 ; 0:c065e80000000000 1:c065e80000000000 2:c065e80000000000 3:408c840000000000 4:c081a20000000000 +result __name__=a,job=x ; 3:408e270000000000 4:408e270000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 2 +base __name__=a,instance=i1 ; 0:c085700000000000 1:c088120000000000 +base __name__=a,instance=i2,job=x ; 0:4055800000000000 1:c07d080000000000 +base __name__=a,instance=i2,k8s_cluster=c2,version=base ; 0:c08ce80000000000 1:c088750000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 +error found duplicate series for info metric: existing {__name__="target_info", instance="i1", k8s_cluster="c2", version="v1"} @ 110000, new {__name__="target_info", instance="i1", k8s_cluster="c1", version="v1"} @ 110000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 9 +base __name__=a,instance=i1 ; 0:40863e0000000000 1:c08b150000000000 2:406d880000000000 3:c089d10000000000 4:4063d40000000000 5:407ade0000000000 6:c087030000000000 7:c0746e0000000000 8:c0746e0000000000 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:40880f0000000000 1:c07a2a0000000000 2:4070da0000000000 3:c06d280000000000 4:c06d280000000000 5:407a6a0000000000 6:407a6a0000000000 7:407a6a0000000000 8:c083620000000000 +base __name__=a,instance=i1,version=base,zone=z2 ; 0:c06f940000000000 1:c033600000000000 2:c08eaf0000000000 3:407a6c0000000000 4:407a6c0000000000 5:407a6c0000000000 6:4083270000000000 7:408b330000000000 8:408b330000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:4087ac0000000000 1:408d790000000000 2:408d790000000000 3:408d790000000000 4:4057e80000000000 5:408a5d0000000000 6:c08bf40000000000 7:c08bf40000000000 8:c08bf40000000000 +base __name__=a,job=x ; 1:407c500000000000 2:407c500000000000 3:407c500000000000 5:c07d380000000000 6:c08cf60000000000 7:c08cf60000000000 8:c08cf60000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 10 +base __name__=a ; 1:c0864a0000000000 2:c0864a0000000000 3:c07be20000000000 4:c07be20000000000 5:c07be20000000000 6:4065340000000000 7:4088570000000000 8:c0760e0000000000 9:403a400000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c2 ; 2:4074420000000000 3:c07a740000000000 4:c07a740000000000 5:408a880000000000 6:405b280000000000 7:4042500000000000 8:c08d3f0000000000 9:c082730000000000 +base __name__=a,job=x,zone=z1 ; 1:c08c940000000000 2:c061f40000000000 3:408dfa0000000000 4:408dfa0000000000 5:c05e780000000000 6:4056b80000000000 7:4081820000000000 8:4078d00000000000 9:4054800000000000 +base __name__=a,zone=z1 ; 1:c08d500000000000 2:407eee0000000000 3:407eee0000000000 4:4078ea0000000000 5:4058000000000000 6:4058000000000000 7:4058000000000000 8:c0763c0000000000 9:406a800000000000 +base __name__=a,zone=z2 ; 1:c076a80000000000 2:408bdf0000000000 3:408bdf0000000000 4:c07d480000000000 5:c07d480000000000 6:c06ff00000000000 7:c029800000000000 8:c029800000000000 9:c029800000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a ; 2:c08a000000000000 3:4064b40000000000 4:4081c90000000000 5:4079f00000000000 6:4079f00000000000 7:4079f00000000000 8:408e350000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 1:40768c0000000000 2:40768c0000000000 3:c0828d0000000000 4:c07f8c0000000000 5:c0656c0000000000 6:402d800000000000 7:402d800000000000 8:c061640000000000 +base __name__=a,instance=i2,job=y ; 1:c033c00000000000 2:c076b80000000000 3:c075560000000000 4:c057480000000000 5:c081150000000000 6:c081150000000000 7:40842b0000000000 8:40638c0000000000 +base __name__=a,k8s_cluster=c1 ; 0:408e050000000000 1:408e050000000000 2:407a3e0000000000 3:4078140000000000 4:4044300000000000 5:4077da0000000000 6:4077da0000000000 7:c05ec00000000000 8:4082170000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1 ; 3:c060dc0000000000 4:c060dc0000000000 5:c0803c0000000000 6:c0803c0000000000 7:c087e90000000000 8:c087e90000000000 +base __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 0:c0778c0000000000 1:c0778c0000000000 2:c0778c0000000000 3:c05c900000000000 4:c05c900000000000 5:4080950000000000 6:c082850000000000 7:c082850000000000 8:c08d140000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 0:c076780000000000 1:407a200000000000 2:c079680000000000 3:c079680000000000 4:c079680000000000 6:4075180000000000 7:c072620000000000 8:c072620000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4104c08000000000 +result __name__=target_info,instance=i2,k8s_cluster=c1 ; 3:c060dc0000000000 4:c060dc0000000000 5:c0803c0000000000 6:c0803c0000000000 7:c087e90000000000 8:c087e90000000000 +result __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 0:c0778c0000000000 1:c0778c0000000000 2:c0778c0000000000 3:c05c900000000000 4:c05c900000000000 5:4080950000000000 6:c082850000000000 7:c082850000000000 8:c08d140000000000 +result __name__=target_info,job=x,k8s_cluster=d1 ; 0:c076780000000000 1:407a200000000000 2:c079680000000000 3:c079680000000000 4:c079680000000000 6:4075180000000000 7:c072620000000000 8:c072620000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:4075ee0000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:408f310000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a,instance=i1,zone=z2 ; 0:c088770000000000 1:c07b880000000000 2:c08c4b0000000000 3:407c200000000000 4:407c200000000000 5:407c200000000000 +base __name__=a,k8s_cluster=c1,zone=z1 ; 0:c06a280000000000 1:4076460000000000 2:c061580000000000 3:c061580000000000 4:c071140000000000 5:4086f10000000000 6:4086f10000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:c07aa00000000000 1:c08be40000000000 2:c08be40000000000 3:4054800000000000 4:4054800000000000 5:4054800000000000 6:4081a70000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 1:408a190000000000 2:408a190000000000 3:408a190000000000 +base __name__=target_info,instance=i2,k8s_cluster=c2 ; 1:403a000000000000 2:4082070000000000 3:406a4c0000000000 4:406a4c0000000000 5:406a4c0000000000 6:c0700c0000000000 +base __name__=target_info,job=x,k8s_cluster=c2 ; 3:40820f0000000000 4:40820f0000000000 5:c078060000000000 6:c08da20000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; +info __name__=target_info,job=x,k8s_cluster=c2 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:c07aa00000000000 1:c08be40000000000 2:c08be40000000000 3:4054800000000000 4:4054800000000000 5:4054800000000000 6:4081a70000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 1:408a190000000000 2:408a190000000000 3:408a190000000000 +result __name__=target_info,instance=i2,k8s_cluster=c2 ; 1:403a000000000000 2:4082070000000000 3:406a4c0000000000 4:406a4c0000000000 5:406a4c0000000000 6:c0700c0000000000 +result __name__=target_info,job=x,k8s_cluster=c2 ; 3:40820f0000000000 4:40820f0000000000 5:c078060000000000 6:c08da20000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 7 +base __name__=a,instance=i2,job=y ; 0:c087400000000000 1:408aca0000000000 2:408aca0000000000 3:408d760000000000 4:408d760000000000 5:c086640000000000 6:c086640000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:c08e920000000000 2:4089b00000000000 3:c07be20000000000 4:c067040000000000 +base __name__=a,job=x,zone=z1 ; 0:c05c380000000000 1:c05c380000000000 2:40779e0000000000 3:40779e0000000000 4:40779e0000000000 +base __name__=a,job=x,zone=z2 ; 0:4057680000000000 1:4057680000000000 2:407fb20000000000 3:405cf80000000000 4:405cf80000000000 +base __name__=a,job=y,k8s_cluster=c2,zone=z2 ; 0:408db70000000000 1:408db70000000000 2:408db70000000000 3:c08b5f0000000000 4:4071ec0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 4:4101170000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 1:c08e920000000000 2:4089b00000000000 3:c07be20000000000 4:c067040000000000 +result __name__=a,job=x,zone=z1 ; 0:c05c380000000000 1:c05c380000000000 2:40779e0000000000 3:40779e0000000000 4:40779e0000000000 +result __name__=a,job=x,zone=z2 ; 0:4057680000000000 1:4057680000000000 2:407fb20000000000 3:405cf80000000000 4:405cf80000000000 +result __name__=a,job=y,k8s_cluster=c2,zone=z2 ; 0:408db70000000000 1:408db70000000000 2:408db70000000000 3:c08b5f0000000000 4:4071ec0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,k8s_cluster=c2 ; 1:4084100000000000 2:c070b00000000000 3:c07cfa0000000000 4:c086b40000000000 5:c084b10000000000 6:4070520000000000 7:4086a70000000000 +base __name__=a,instance=i1,zone=z1 ; 0:4068880000000000 1:4068880000000000 2:4068880000000000 3:c0811c0000000000 4:4067940000000000 5:c06fb80000000000 6:c0873f0000000000 7:c07e7a0000000000 +base __name__=a,job=x ; 0:c06cb80000000000 1:4087d00000000000 2:408e5b0000000000 3:4075c00000000000 4:4075c00000000000 5:408a060000000000 6:c05a180000000000 7:4089090000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:408e250000000000 1:407c860000000000 2:407fca0000000000 3:c0839b0000000000 4:4052c80000000000 5:4079100000000000 6:40893e0000000000 7:c07f600000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4103880000000000 +result __name__=a,instance=i1,k8s_cluster=c1,zone=z1 ; 4:4067940000000000 5:c06fb80000000000 6:c0873f0000000000 7:c07e7a0000000000 +result __name__=a,instance=i1,k8s_cluster=c2 ; 1:4084100000000000 2:c070b00000000000 3:c07cfa0000000000 4:c086b40000000000 5:c084b10000000000 6:4070520000000000 7:4086a70000000000 +result __name__=a,instance=i1,zone=z1 ; 0:4068880000000000 1:4068880000000000 2:4068880000000000 3:c0811c0000000000 +result __name__=a,job=x ; 0:c06cb80000000000 1:4087d00000000000 2:408e5b0000000000 3:4075c00000000000 4:4075c00000000000 5:408a060000000000 6:c05a180000000000 7:4089090000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 0:408e250000000000 1:407c860000000000 2:407fca0000000000 3:c0839b0000000000 4:4052c80000000000 5:4079100000000000 6:40893e0000000000 7:c07f600000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x ; 0:408b4a0000000000 1:c084af0000000000 2:c084af0000000000 3:4062440000000000 4:4083df0000000000 5:c067100000000000 6:407caa0000000000 +base __name__=a,instance=i2,k8s_cluster=c2 ; 0:c063e80000000000 1:c063e80000000000 2:c07cb40000000000 3:c07c160000000000 4:406d9c0000000000 5:4051b80000000000 6:4051b80000000000 +result __name__=a,instance=i1,job=x ; 0:408b4a0000000000 1:c084af0000000000 2:c084af0000000000 3:4062440000000000 4:4083df0000000000 5:c067100000000000 6:407caa0000000000 +result __name__=a,instance=i2,k8s_cluster=c2 ; 0:c063e80000000000 1:c063e80000000000 2:c07cb40000000000 3:c07c160000000000 4:406d9c0000000000 5:4051b80000000000 6:4051b80000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 6 +base __name__=a,instance=i1,k8s_cluster=c2 ; 0:c08b8b0000000000 1:c062280000000000 2:4078ce0000000000 3:407a300000000000 4:407a300000000000 5:406fd00000000000 +base __name__=a,instance=i2 ; 0:c08b840000000000 1:c07dae0000000000 2:c07dae0000000000 3:c0879a0000000000 4:c070160000000000 5:4083e30000000000 +base __name__=a,job=x,zone=z2 ; 1:c07a480000000000 2:4058280000000000 3:40788c0000000000 4:40788c0000000000 5:4080310000000000 +base __name__=a,k8s_cluster=c2,zone=z2 ; 1:408a770000000000 2:405e400000000000 3:4061cc0000000000 4:c08c1f0000000000 5:4085d30000000000 +result __name__=a,instance=i1,k8s_cluster=c2 ; 0:c08b8b0000000000 1:c062280000000000 2:4078ce0000000000 3:407a300000000000 4:407a300000000000 5:406fd00000000000 +result __name__=a,instance=i2 ; 0:c08b840000000000 1:c07dae0000000000 2:c07dae0000000000 3:c0879a0000000000 4:c070160000000000 5:4083e30000000000 +result __name__=a,job=x,zone=z2 ; 1:c07a480000000000 2:4058280000000000 3:40788c0000000000 4:40788c0000000000 5:4080310000000000 +result __name__=a,k8s_cluster=c2,zone=z2 ; 1:408a770000000000 2:405e400000000000 3:4061cc0000000000 4:c08c1f0000000000 5:4085d30000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:40748a0000000000 1:4024400000000000 +base __name__=a,job=y ; 0:c0877f0000000000 1:408b1c0000000000 +base __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:4083200000000000 1:4083200000000000 +result __name__=a,instance=i1,job=y,zone=z2 ; 0:40748a0000000000 1:4024400000000000 +result __name__=a,job=y ; 0:c0877f0000000000 1:408b1c0000000000 +result __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:4083200000000000 1:4083200000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a,instance=i1,k8s_cluster=c2 ; 0:c0820e0000000000 1:4081210000000000 2:c017800000000000 +base __name__=a,instance=i2,version=base ; 0:c0729e0000000000 1:405df00000000000 2:405df00000000000 +base __name__=a,version=base,zone=z2 ; 0:406a980000000000 1:406a980000000000 2:406ff80000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=x ; 0:c083d30000000000 +info __name__=build_info,instance=i2,job=y,version=v2,zone=z2 ; +result __name__=a,instance=i1,job=x ; 0:c083d30000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:4088150000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:4088150000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=x ; 0:407bdc0000000000 1:406cdc0000000000 2:407e520000000000 3:407e7e0000000000 4:c07c240000000000 5:c07c240000000000 6:403ec00000000000 7:403ec00000000000 8:403ec00000000000 9:408ed10000000000 +base __name__=a,instance=i2,job=x ; 0:c069400000000000 1:407a320000000000 2:407a320000000000 3:407a7c0000000000 4:4060780000000000 5:4089930000000000 6:408afb0000000000 7:408bd10000000000 8:c086bc0000000000 9:c06e900000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 9:4107318000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4105f90000000000 9:4107318000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 1:407a320000000000 2:407a320000000000 3:407a7c0000000000 4:4060780000000000 5:4089930000000000 6:408afb0000000000 7:408bd10000000000 9:c06e900000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 3:4084790000000000 +base __name__=a,instance=i2 ; 0:40830c0000000000 1:40887b0000000000 2:40887b0000000000 3:4070180000000000 +base __name__=a,instance=i2,job=x ; 0:4006000000000000 1:4006000000000000 2:40756e0000000000 3:c080810000000000 +base __name__=a,instance=i2,job=y ; 3:406eb00000000000 +base __name__=a,instance=i2,version=base ; 0:c08de40000000000 1:408c710000000000 2:408c710000000000 3:408c710000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1 ; 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +error found duplicate series for info metric: existing {__name__="target_info", instance="i2", k8s_cluster="d1"} @ 120000, new {__name__="target_info", instance="i2", k8s_cluster="c2"} @ 120000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=y,k8s_cluster=c1,version=base,zone=z2 ; 0:c0615c0000000000 1:c081c30000000000 2:c081c30000000000 3:4085090000000000 4:4085090000000000 5:4085090000000000 6:c077fc0000000000 7:4066f40000000000 +base __name__=a,instance=i1,k8s_cluster=c1,zone=z2 ; 0:407b980000000000 1:4052b80000000000 2:c080800000000000 3:4086e60000000000 4:407e300000000000 5:4070200000000000 6:4082f40000000000 7:4082f40000000000 +base __name__=a,instance=i2,version=base ; 1:40896e0000000000 2:4075480000000000 3:4075480000000000 4:c077560000000000 5:4041b00000000000 6:406f200000000000 7:406f200000000000 +base __name__=a,job=y ; 0:4041900000000000 1:4041900000000000 2:c08a890000000000 3:c08a890000000000 4:c08eb00000000000 5:c08eb00000000000 6:4087f90000000000 7:4087f90000000000 +base __name__=a,version=base,zone=z2 ; 0:c086370000000000 1:4074a20000000000 2:c085260000000000 3:c085260000000000 4:c085260000000000 5:c061c00000000000 6:c061c00000000000 7:c061c00000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 2 +base __name__=a,job=y,version=base,zone=z2 ; 0:4081f80000000000 1:c07a180000000000 +base __name__=target_info,instance=i1,k8s_cluster=c1,version=v2 ; 1:408ae20000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v2 ; +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; +result __name__=a,job=y,version=base,zone=z2 ; 0:4081f80000000000 1:c07a180000000000 +result __name__=target_info,instance=i1,k8s_cluster=c1,version=v2 ; 1:408ae20000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 1 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 1:407f100000000000 2:c0845d0000000000 3:c087cc0000000000 4:408d2a0000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:406f180000000000 1:406f180000000000 2:c06dc80000000000 3:c08b930000000000 4:408e350000000000 +base __name__=a,instance=i2,version=base,zone=z1 ; 2:c089820000000000 3:c089820000000000 4:40836f0000000000 +base __name__=a,job=y ; 1:c08b350000000000 2:c08b350000000000 3:40654c0000000000 4:c06b180000000000 +base __name__=a,job=y,zone=z2 ; 1:408e6a0000000000 2:c089f50000000000 3:c089f50000000000 4:c089f50000000000 +result __name__=a,instance=i1 ; 1:407f100000000000 2:c0845d0000000000 3:c087cc0000000000 4:408d2a0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:406f180000000000 1:406f180000000000 2:c06dc80000000000 3:c08b930000000000 4:408e350000000000 +result __name__=a,instance=i2,version=base,zone=z1 ; 2:c089820000000000 3:c089820000000000 4:40836f0000000000 +result __name__=a,job=y ; 1:c08b350000000000 2:c08b350000000000 3:40654c0000000000 4:c06b180000000000 +result __name__=a,job=y,zone=z2 ; 1:408e6a0000000000 2:c089f50000000000 3:c089f50000000000 4:c089f50000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a ; 0:4089a00000000000 1:4081be0000000000 2:c08dbd0000000000 3:4081900000000000 +base __name__=a,instance=i1,job=y ; 0:4080390000000000 1:4080390000000000 2:4080390000000000 3:4088b80000000000 +base __name__=a,instance=i1,job=y,version=base ; 0:405f780000000000 1:c059500000000000 2:4089740000000000 3:c0703c0000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c086080000000000 1:40813a0000000000 2:c07a100000000000 3:c0824f0000000000 +base __name__=a,job=x,zone=z2 ; 0:c079ee0000000000 1:c072d80000000000 2:40890f0000000000 3:40890f0000000000 +base __name__=a,job=y ; 0:c08a980000000000 1:c04bf00000000000 2:c04bf00000000000 3:c080da0000000000 +result __name__=a ; 0:4089a00000000000 1:4081be0000000000 2:c08dbd0000000000 3:4081900000000000 +result __name__=a,instance=i1,job=y ; 0:4080390000000000 1:4080390000000000 2:4080390000000000 3:4088b80000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:405f780000000000 1:c059500000000000 2:4089740000000000 3:c0703c0000000000 +result __name__=a,instance=i2,zone=z1 ; 0:c086080000000000 1:40813a0000000000 2:c07a100000000000 3:c0824f0000000000 +result __name__=a,job=x,zone=z2 ; 0:c079ee0000000000 1:c072d80000000000 2:40890f0000000000 3:40890f0000000000 +result __name__=a,job=y ; 0:c08a980000000000 1:c04bf00000000000 2:c04bf00000000000 3:c080da0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=y ; 1:c06c600000000000 2:4040200000000000 3:4084b90000000000 4:4082460000000000 5:4087940000000000 6:4087940000000000 7:4087940000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2,zone=z2 ; 0:c077020000000000 1:408d6e0000000000 2:407e3c0000000000 3:c086d10000000000 4:c086d10000000000 5:c086d10000000000 6:4087750000000000 7:c08d710000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 1 +base __name__=a,instance=i2,zone=z2 ; 0:40847d0000000000 +result __name__=a,instance=i2,zone=z2 ; 0:40847d0000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z1 ; 0:c06b840000000000 1:c06b840000000000 2:c081b60000000000 3:c071cc0000000000 4:c07c780000000000 5:4085bb0000000000 6:4085bb0000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:406a440000000000 1:406a440000000000 2:406a440000000000 4:c080200000000000 5:c04a500000000000 6:bffa000000000000 +base __name__=a,instance=i2,zone=z1 ; 0:408cb80000000000 1:408cec0000000000 2:407a660000000000 3:407a660000000000 4:c070440000000000 5:c07cf00000000000 6:c07cf00000000000 +base __name__=a,zone=z2 ; 0:4089540000000000 1:406d640000000000 2:406d640000000000 3:406d640000000000 4:4085130000000000 5:4082c00000000000 6:407aee0000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:c03f600000000000 2:c03f600000000000 3:c03f600000000000 6:4044d00000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:c072580000000000 2:407d080000000000 3:407d080000000000 4:407d080000000000 5:408f350000000000 6:408f350000000000 +base __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:c069dc0000000000 1:c069dc0000000000 2:c073880000000000 3:c08d760000000000 4:c08d760000000000 5:4083f50000000000 6:4083f50000000000 +base __name__=target_info,job=y,k8s_cluster=d1 ; 0:4085b50000000000 1:4085b50000000000 2:4085b50000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 6:4103880000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=target_info,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z1 ; 0:c06b840000000000 1:c06b840000000000 2:c081b60000000000 3:c071cc0000000000 4:c07c780000000000 5:4085bb0000000000 6:4085bb0000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=d1,zone=z2 ; 1:406a440000000000 2:406a440000000000 6:bffa000000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:406a440000000000 4:c080200000000000 5:c04a500000000000 +result __name__=a,instance=i2,zone=z1 ; 0:408cb80000000000 1:408cec0000000000 2:407a660000000000 3:407a660000000000 4:c070440000000000 5:c07cf00000000000 6:c07cf00000000000 +result __name__=a,zone=z2 ; 0:4089540000000000 1:406d640000000000 2:406d640000000000 3:406d640000000000 4:4085130000000000 5:4082c00000000000 6:407aee0000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:c03f600000000000 2:c03f600000000000 3:c03f600000000000 6:4044d00000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:c072580000000000 2:407d080000000000 3:407d080000000000 4:407d080000000000 5:408f350000000000 6:408f350000000000 +result __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:c069dc0000000000 1:c069dc0000000000 2:c073880000000000 3:c08d760000000000 4:c08d760000000000 5:4083f50000000000 6:4083f50000000000 +result __name__=target_info,job=y,k8s_cluster=d1 ; 0:4085b50000000000 1:4085b50000000000 2:4085b50000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a ; 1:c080730000000000 +base __name__=a,instance=i1,job=x ; 0:c06b480000000000 1:c06b480000000000 +base __name__=a,instance=i1,job=y ; 0:40792a0000000000 1:40792a0000000000 +base __name__=a,instance=i2 ; 0:c073c60000000000 1:4077e20000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c08c8e0000000000 1:c0826a0000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 1:c088610000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; +info __name__=build_info,instance=i2,job=y,version=v2 ; 1:40fadb0000000000 +result __name__=a,instance=i1,job=x,version=v2 ; 0:c06b480000000000 1:c06b480000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a,instance=i1 ; 0:c08e9e0000000000 1:405d700000000000 +base __name__=a,instance=i1,job=y,version=base,zone=z2 ; 0:4071b60000000000 1:4071b60000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 1:c08cb00000000000 +base __name__=a,job=x ; 0:4082e30000000000 1:408b380000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v2 ; +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1 ; 1:c071ce0000000000 2:407bf40000000000 3:407bf40000000000 4:405b480000000000 5:4083090000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 1:4081da0000000000 2:4081da0000000000 3:4081da0000000000 4:408cc40000000000 5:4070000000000000 +base __name__=a,instance=i2 ; 0:c077580000000000 1:c04f000000000000 2:c04f000000000000 3:c04f000000000000 4:c07df00000000000 5:c07df00000000000 +base __name__=a,instance=i2,job=x,version=base,zone=z2 ; 2:4045800000000000 3:4045800000000000 4:c08cb10000000000 5:c08b860000000000 +base __name__=a,job=x ; 0:4074280000000000 1:408c880000000000 2:406be80000000000 3:405c900000000000 4:c071fe0000000000 5:4054500000000000 +base __name__=a,job=y,version=base ; 0:c080b90000000000 1:4086800000000000 2:408eed0000000000 3:408eed0000000000 4:408e370000000000 5:c0881c0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 +result __name__=a,instance=i1 ; 5:4083090000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 1:4081da0000000000 2:4081da0000000000 3:4081da0000000000 4:408cc40000000000 5:4070000000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 1:c071ce0000000000 2:407bf40000000000 3:407bf40000000000 4:405b480000000000 +result __name__=a,instance=i2 ; 0:c077580000000000 4:c07df00000000000 5:c07df00000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1,version=base,zone=z2 ; 3:4045800000000000 4:c08cb10000000000 5:c08b860000000000 +result __name__=a,instance=i2,job=x,version=base,zone=z2 ; 2:4045800000000000 +result __name__=a,instance=i2,k8s_cluster=c1,version=v2 ; 1:c04f000000000000 2:c04f000000000000 3:c04f000000000000 +result __name__=a,job=x ; 0:4074280000000000 1:408c880000000000 2:406be80000000000 3:405c900000000000 4:c071fe0000000000 5:4054500000000000 +result __name__=a,job=y,version=base ; 0:c080b90000000000 1:4086800000000000 2:408eed0000000000 3:408eed0000000000 4:408e370000000000 5:c0881c0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 1 +base __name__=a,job=x ; 0:4082330000000000 +base __name__=a,zone=z2 ; 0:4004000000000000 +result __name__=a,job=x ; 0:4082330000000000 +result __name__=a,zone=z2 ; 0:4004000000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 3 +base __name__=a ; 0:4081590000000000 1:4081590000000000 2:407c780000000000 +base __name__=a,instance=i2,job=x,version=base ; 0:c08d9c0000000000 1:4055b00000000000 2:c02cc00000000000 +info __name__=build_info,instance=i2,job=y,version=v1 ; +info __name__=build_info,job=x,version=v2 ; +result __name__=a ; 0:4081590000000000 1:4081590000000000 2:407c780000000000 +result __name__=a,instance=i2,job=x,version=base ; 0:c08d9c0000000000 1:4055b00000000000 2:c02cc00000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i2,job=x ; 0:c074e60000000000 1:4054080000000000 2:c081b30000000000 3:4085ee0000000000 4:c06e800000000000 5:c047a00000000000 +base __name__=a,instance=i2,k8s_cluster=c2 ; 0:c0865d0000000000 1:c076f60000000000 2:c07a1a0000000000 3:c04db00000000000 4:c0725a0000000000 5:40808d0000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; +result __name__=a,instance=i2,job=x ; 0:c074e60000000000 1:4054080000000000 2:c081b30000000000 3:4085ee0000000000 4:c06e800000000000 5:c047a00000000000 +result __name__=a,instance=i2,k8s_cluster=c2 ; 0:c0865d0000000000 1:c076f60000000000 2:c07a1a0000000000 3:c04db00000000000 4:c0725a0000000000 5:40808d0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 2:c075380000000000 +base __name__=a,instance=i1,job=x,version=base ; 1:40870a0000000000 2:4037400000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:408ef50000000000 1:4084680000000000 2:4084680000000000 +base __name__=a,instance=i1,zone=z1 ; 0:4082dd0000000000 1:c07aee0000000000 2:c07aee0000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c077880000000000 1:c088fe0000000000 2:4071280000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:408f110000000000 1:4066400000000000 +base __name__=a,instance=i1,job=y,version=base ; 0:c087d10000000000 1:c087d10000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:4055b80000000000 1:c07fda0000000000 +base __name__=a,instance=i2,job=y ; 0:408f240000000000 1:c08d010000000000 +info __name__=build_info,instance=i1,version=v2,zone=z1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=build_info,instance=i1,job=x,version=v2,zone=z1 ; +info __name__=build_info,instance=i1,job=y,version=v1 ; +result __name__=a,instance=i1,job=x,zone=z1 ; 0:408f110000000000 1:4066400000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:c087d10000000000 1:c087d10000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 0:4055b80000000000 1:c07fda0000000000 +result __name__=a,instance=i2,job=y ; 0:408f240000000000 1:c08d010000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 9 +base __name__=a ; 0:407f040000000000 1:407f040000000000 2:c083390000000000 3:c083390000000000 4:c083390000000000 5:c08c890000000000 6:407d320000000000 7:407d320000000000 8:c08cbd0000000000 +info __name__=build_info,instance=i2,job=y,version=v2,zone=z1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4105f90000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 8:4105f90000000000 +result __name__=a ; 0:407f040000000000 1:407f040000000000 2:c083390000000000 3:c083390000000000 4:c083390000000000 5:c08c890000000000 6:407d320000000000 7:407d320000000000 8:c08cbd0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,job=y ; 0:408aa40000000000 1:405d380000000000 2:405d380000000000 3:405d380000000000 4:40880e0000000000 5:c084670000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,job=y ; 0:408aa40000000000 1:405d380000000000 2:405d380000000000 3:405d380000000000 4:40880e0000000000 5:c084670000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=y ; 0:404cd00000000000 1:407b980000000000 2:c0828a0000000000 3:c081b70000000000 4:c085700000000000 5:c074d60000000000 6:4083040000000000 7:4083040000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 2:407b3e0000000000 3:4083620000000000 4:4085fd0000000000 5:c089040000000000 6:4083700000000000 7:4083700000000000 +base __name__=a,instance=i1,version=base ; 0:4070600000000000 1:4070600000000000 2:c08c630000000000 3:c053180000000000 4:408cab0000000000 5:c072880000000000 6:4058400000000000 7:4058400000000000 +base __name__=a,instance=i2,job=x ; 0:4086ec0000000000 1:c001000000000000 2:408e040000000000 3:4074de0000000000 4:408c270000000000 5:c0858a0000000000 6:404d800000000000 7:c075420000000000 +base __name__=a,instance=i2,k8s_cluster=c1 ; 0:c0681c0000000000 1:c089660000000000 2:408c7e0000000000 3:4061400000000000 4:4061400000000000 5:c083820000000000 6:406ae00000000000 7:406ae00000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 0:c0881a0000000000 1:c083580000000000 2:c078d00000000000 3:c078d00000000000 4:c07a3c0000000000 5:c034000000000000 6:40734c0000000000 7:40734c0000000000 +result __name__=a,instance=i1,job=y ; 0:404cd00000000000 1:407b980000000000 2:c0828a0000000000 3:c081b70000000000 4:c085700000000000 5:c074d60000000000 6:4083040000000000 7:4083040000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 2:407b3e0000000000 3:4083620000000000 4:4085fd0000000000 5:c089040000000000 6:4083700000000000 7:4083700000000000 +result __name__=a,instance=i1,version=base ; 0:4070600000000000 1:4070600000000000 2:c08c630000000000 3:c053180000000000 4:408cab0000000000 5:c072880000000000 6:4058400000000000 7:4058400000000000 +result __name__=a,instance=i2,job=x ; 0:4086ec0000000000 1:c001000000000000 2:408e040000000000 3:4074de0000000000 4:408c270000000000 5:c0858a0000000000 6:404d800000000000 7:c075420000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 0:c0681c0000000000 1:c089660000000000 2:408c7e0000000000 3:4061400000000000 4:4061400000000000 5:c083820000000000 6:406ae00000000000 7:406ae00000000000 +result __name__=a,job=x,k8s_cluster=c1 ; 0:c0881a0000000000 1:c083580000000000 2:c078d00000000000 3:c078d00000000000 4:c07a3c0000000000 5:c034000000000000 6:40734c0000000000 7:40734c0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x,version=base ; 0:c06f340000000000 1:c06f340000000000 +base __name__=a,instance=i1,job=x,version=base,zone=z2 ; 0:c0882a0000000000 1:c0885b0000000000 +base __name__=a,instance=i1,job=y ; 0:c070e20000000000 1:4073940000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2,version=base,zone=z1 ; 0:4080c90000000000 1:40700e0000000000 +base __name__=a,job=y ; 0:407fb80000000000 1:40708e0000000000 +base __name__=a,job=y,k8s_cluster=c2,zone=z1 ; 0:c0877a0000000000 1:c0877a0000000000 +info __name__=target_info,job=x,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 1:40fadb0000000000 +result __name__=a,instance=i1,job=x,version=base ; 0:c06f340000000000 1:c06f340000000000 +result __name__=a,instance=i1,job=x,version=base,zone=z2 ; 0:c0882a0000000000 1:c0885b0000000000 +result __name__=a,instance=i1,job=y ; 0:c070e20000000000 1:4073940000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2,version=base,zone=z1 ; 0:4080c90000000000 1:40700e0000000000 +result __name__=a,job=y ; 0:407fb80000000000 1:40708e0000000000 +result __name__=a,job=y,k8s_cluster=c2,zone=z1 ; 0:c0877a0000000000 1:c0877a0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x ; 2:408d510000000000 +base __name__=a,instance=i1,k8s_cluster=c2 ; 1:c087050000000000 2:404ba00000000000 +base __name__=a,instance=i2,job=y ; 2:c08adb0000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 0:408c090000000000 1:408c090000000000 2:408c090000000000 +base __name__=a,job=y,k8s_cluster=c2,zone=z2 ; 0:c06be40000000000 1:c06be40000000000 2:c080f20000000000 +result __name__=a,instance=i1,job=x ; 2:408d510000000000 +result __name__=a,instance=i1,k8s_cluster=c2 ; 1:c087050000000000 2:404ba00000000000 +result __name__=a,instance=i2,job=y ; 2:c08adb0000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 0:408c090000000000 1:408c090000000000 2:408c090000000000 +result __name__=a,job=y,k8s_cluster=c2,zone=z2 ; 0:c06be40000000000 1:c06be40000000000 2:c080f20000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x ; 2:4064780000000000 3:c086ba0000000000 4:4081230000000000 5:408dbf0000000000 6:c080b70000000000 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:c060580000000000 1:c064a00000000000 2:407ba80000000000 3:c05a800000000000 4:c080a20000000000 5:405cd00000000000 6:4083610000000000 +base __name__=a,instance=i2 ; 1:4074720000000000 2:4074720000000000 3:c07a8a0000000000 4:4061140000000000 5:4062b00000000000 6:c035600000000000 +base __name__=a,instance=i2,job=x,version=base ; 0:c07bf40000000000 1:c035a00000000000 2:c083d50000000000 3:c073060000000000 4:408f000000000000 5:4089dd0000000000 6:c0755c0000000000 +base __name__=a,job=y,zone=z1 ; 0:408df40000000000 1:c084570000000000 2:40886d0000000000 3:40886d0000000000 4:40886d0000000000 5:408d440000000000 6:408d440000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:4103880000000000 +info __name__=build_info,instance=i1,job=y,version=v1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=build_info,job=y,version=v2,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 +error conflicting label: version +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x ; 0:c0778a0000000000 1:c07bd80000000000 2:c07bd80000000000 3:c07bd80000000000 4:40851c0000000000 5:40851c0000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1 ; 4:4101170000000000 5:41024f8000000000 +result __name__=a,instance=i1,job=x ; 0:c0778a0000000000 1:c07bd80000000000 2:c07bd80000000000 3:c07bd80000000000 4:40851c0000000000 5:40851c0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y ; 1:4081100000000000 +base __name__=a,instance=i2,job=x ; 0:406cb40000000000 1:406cb40000000000 +base __name__=a,job=x ; 0:c082110000000000 1:40852e0000000000 +base __name__=a,job=y,k8s_cluster=c1 ; 0:c072d00000000000 1:c072d00000000000 +info __name__=target_info,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 +result __name__=a,instance=i1,job=y ; 1:4081100000000000 +result __name__=a,instance=i2,job=x ; 0:406cb40000000000 1:406cb40000000000 +result __name__=a,job=x ; 0:c082110000000000 1:40852e0000000000 +result __name__=a,job=y,k8s_cluster=c1 ; 0:c072d00000000000 1:c072d00000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:405ef00000000000 1:4086e40000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 1:408dab0000000000 +base __name__=a,job=y ; 0:407ef80000000000 1:c086400000000000 +base __name__=a,zone=z2 ; 0:c06f180000000000 1:c088120000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 +result __name__=a,instance=i1,job=x,zone=z2 ; 0:405ef00000000000 1:4086e40000000000 +result __name__=a,instance=i2,job=y,zone=z1 ; 1:408dab0000000000 +result __name__=a,job=y ; 0:407ef80000000000 1:c086400000000000 +result __name__=a,zone=z2 ; 0:c06f180000000000 1:c088120000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a ; 0:4084350000000000 1:c05d580000000000 2:c05d580000000000 3:c021800000000000 4:407cd00000000000 5:c0735a0000000000 +base __name__=a,instance=i1,job=y ; 0:405b880000000000 1:405b880000000000 2:405b880000000000 3:c084d10000000000 4:4081410000000000 5:4081410000000000 +base __name__=a,instance=i2,job=x ; 0:c0605c0000000000 1:c0605c0000000000 2:c0605c0000000000 3:c08dd90000000000 4:c088f80000000000 5:407d800000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:4088150000000000 1:408a620000000000 2:c0834f0000000000 3:40828c0000000000 4:4081990000000000 5:bfd8000000000000 +info __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +result __name__=a ; 0:4084350000000000 1:c05d580000000000 2:c05d580000000000 3:c021800000000000 4:407cd00000000000 5:c0735a0000000000 +result __name__=a,instance=i1,job=y ; 0:405b880000000000 1:405b880000000000 2:405b880000000000 3:c084d10000000000 4:4081410000000000 5:4081410000000000 +result __name__=a,instance=i2,job=x ; 0:c0605c0000000000 1:c0605c0000000000 2:c0605c0000000000 3:c08dd90000000000 4:c088f80000000000 5:407d800000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:4088150000000000 1:408a620000000000 2:c0834f0000000000 3:40828c0000000000 4:4081990000000000 5:bfd8000000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:c03a200000000000 1:407b160000000000 2:406e580000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:c08a760000000000 1:4075020000000000 2:4075020000000000 +base __name__=a,instance=i1,job=y ; 0:4075540000000000 1:4077100000000000 2:4074ea0000000000 +base __name__=a,zone=z2 ; 1:c05f780000000000 2:c05f780000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 1:408a380000000000 2:408a380000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 1:c056180000000000 2:c056180000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 1:c0773c0000000000 2:404d100000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 1:40743a0000000000 2:40743a0000000000 +info __name__=target_info,job=x,k8s_cluster=d1 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 +error found duplicate series for info metric: existing {__name__="target_info", instance="i1", job="x", k8s_cluster="c2"} @ 110000, new {__name__="target_info", instance="i1", job="x", k8s_cluster="c1", version="v1"} @ 110000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:408bc70000000000 1:c08c920000000000 2:c082df0000000000 3:c082df0000000000 4:c05c680000000000 5:c05c680000000000 6:c07c900000000000 7:c088f20000000000 8:c0818a0000000000 9:c066a00000000000 +base __name__=a,instance=i2,job=x ; 0:408a780000000000 1:407d940000000000 2:c0844f0000000000 3:4072000000000000 4:4073c60000000000 5:c0679c0000000000 6:405cb80000000000 7:c06de80000000000 8:c06de80000000000 9:c06de80000000000 +base __name__=a,job=x ; 0:c048a00000000000 1:c06f0c0000000000 2:c066840000000000 3:406c580000000000 4:4082160000000000 5:c052980000000000 6:4063c00000000000 7:4063c00000000000 8:4063c00000000000 9:4080ef0000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:408bc70000000000 1:c08c920000000000 2:c082df0000000000 3:c082df0000000000 4:c05c680000000000 5:c05c680000000000 6:c07c900000000000 7:c088f20000000000 8:c0818a0000000000 9:c066a00000000000 +result __name__=a,instance=i2,job=x ; 0:408a780000000000 1:407d940000000000 2:c0844f0000000000 3:4072000000000000 4:4073c60000000000 5:c0679c0000000000 6:405cb80000000000 7:c06de80000000000 8:c06de80000000000 9:c06de80000000000 +result __name__=a,job=x ; 0:c048a00000000000 1:c06f0c0000000000 2:c066840000000000 3:406c580000000000 4:4082160000000000 5:c052980000000000 6:4063c00000000000 7:4063c00000000000 8:4063c00000000000 9:4080ef0000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:404ad00000000000 1:408df40000000000 2:408df40000000000 3:c083320000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2,zone=z2 ; 1:c079220000000000 2:c079220000000000 3:c08ad50000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:c06ce80000000000 1:c06ce80000000000 2:c07a520000000000 3:408ecb0000000000 +base __name__=a,job=x ; 0:c0840f0000000000 1:c08b9b0000000000 2:4083480000000000 3:408b350000000000 +base __name__=a,job=y ; 0:c07b3e0000000000 1:c08be40000000000 2:c0859b0000000000 3:40834a0000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:c0727a0000000000 2:c0727a0000000000 3:c0727a0000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:408acc0000000000 1:c06eac0000000000 2:407fa80000000000 3:407fa80000000000 +result __name__=a,instance=i1 ; 0:404ad00000000000 1:408df40000000000 2:408df40000000000 3:c083320000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2,zone=z2 ; 1:c079220000000000 2:c079220000000000 3:c08ad50000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:c06ce80000000000 1:c06ce80000000000 2:c07a520000000000 3:408ecb0000000000 +result __name__=a,job=x ; 0:c0840f0000000000 1:c08b9b0000000000 2:4083480000000000 3:408b350000000000 +result __name__=a,job=y ; 0:c07b3e0000000000 1:c08be40000000000 2:c0859b0000000000 3:40834a0000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:c0727a0000000000 2:c0727a0000000000 3:c0727a0000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:408acc0000000000 1:c06eac0000000000 2:407fa80000000000 3:407fa80000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a,instance=i1 ; 0:c07e8e0000000000 1:4068b00000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2,version=base ; 0:c084590000000000 1:407e420000000000 +base __name__=a,instance=i2,job=x,version=base,zone=z1 ; 0:c069000000000000 1:40680c0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:4075660000000000 1:c076f20000000000 +base __name__=a,job=x ; 0:4077100000000000 1:4077100000000000 +base __name__=a,job=x,version=base,zone=z1 ; 1:4088630000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 +result __name__=a,instance=i2,job=y,version=v2,zone=z2 ; 0:4075660000000000 1:c076f20000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x,k8s_cluster=c1,version=base,zone=z1 ; 1:c0755e0000000000 2:c067cc0000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:404ef00000000000 1:c0869d0000000000 2:c0869d0000000000 +base __name__=a,job=y ; 2:4082740000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=x ; 0:c080a20000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:40f86a0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; +result __name__=a,instance=i2,job=x ; 0:c080a20000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 8 +base __name__=a,instance=i2 ; 0:4071b60000000000 1:c04ae00000000000 2:c04ae00000000000 3:c04ae00000000000 7:408df40000000000 +base __name__=a,instance=i2,job=x ; 0:c03c200000000000 1:c07cd40000000000 2:c087360000000000 3:408c110000000000 4:408c110000000000 5:c030a00000000000 6:c065540000000000 7:c05aa80000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:c0806e0000000000 1:c08db80000000000 2:408e4f0000000000 3:408ed40000000000 4:408ed40000000000 5:40721a0000000000 6:c086ea0000000000 7:c086ea0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 1:c083380000000000 2:c085890000000000 3:406fe80000000000 4:406fe80000000000 5:c06d8c0000000000 6:c06d8c0000000000 7:c06d8c0000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:408ac00000000000 1:408ac00000000000 2:408ac00000000000 5:4088390000000000 6:4088390000000000 7:4088390000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 1:c083380000000000 2:c085890000000000 3:406fe80000000000 4:406fe80000000000 5:c06d8c0000000000 6:c06d8c0000000000 7:c06d8c0000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:408ac00000000000 1:408ac00000000000 2:408ac00000000000 5:4088390000000000 6:4088390000000000 7:4088390000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=y,k8s_cluster=c2,version=base ; 0:c085ec0000000000 1:c082ea0000000000 2:c072da0000000000 3:c086c90000000000 4:c069740000000000 5:c082aa0000000000 6:c082aa0000000000 +base __name__=a,instance=i1,job=y,version=base ; 0:c067cc0000000000 1:c067cc0000000000 2:c067cc0000000000 3:4051a00000000000 4:407f620000000000 5:4089ba0000000000 6:408df90000000000 +base __name__=a,instance=i2,job=x ; 0:c049300000000000 1:c049300000000000 2:4062880000000000 3:408e130000000000 4:408e130000000000 5:c043300000000000 6:c042a00000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:c0835f0000000000 2:407d100000000000 3:c060340000000000 4:c0796e0000000000 5:c0796e0000000000 6:407ad20000000000 +base __name__=a,job=y ; 1:4085c90000000000 2:4085c90000000000 3:4085c90000000000 4:40719c0000000000 5:40719c0000000000 6:40719c0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2,version=base ; 0:c085ec0000000000 1:c082ea0000000000 2:c072da0000000000 3:c086c90000000000 4:c069740000000000 5:c082aa0000000000 6:c082aa0000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:c067cc0000000000 1:c067cc0000000000 2:c067cc0000000000 3:4051a00000000000 4:407f620000000000 5:4089ba0000000000 6:408df90000000000 +result __name__=a,instance=i2,job=x ; 0:c049300000000000 1:c049300000000000 2:4062880000000000 3:408e130000000000 4:408e130000000000 5:c043300000000000 6:c042a00000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 1:c0835f0000000000 2:407d100000000000 3:c060340000000000 4:c0796e0000000000 5:c0796e0000000000 6:407ad20000000000 +result __name__=a,job=y ; 1:4085c90000000000 2:4085c90000000000 3:4085c90000000000 4:40719c0000000000 5:40719c0000000000 6:40719c0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a ; 0:c081560000000000 1:c081560000000000 +base __name__=a,instance=i2,job=x,version=base ; 1:4080800000000000 +base __name__=a,job=x ; 1:407ffe0000000000 +base __name__=a,job=y,k8s_cluster=c1 ; 1:40795e0000000000 +base __name__=a,version=base,zone=z1 ; 0:4076340000000000 1:4076340000000000 +info __name__=build_info,instance=i2,version=v2 ; +info __name__=build_info,instance=i1,job=y,version=v1,zone=z1 ; 1:40fadb0000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:c075700000000000 1:c08c180000000000 2:c08c180000000000 +base __name__=a,instance=i2,job=x ; 0:406b440000000000 1:408b350000000000 2:c0731c0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 0:c08c010000000000 1:c061000000000000 2:408c920000000000 3:408c920000000000 4:408c920000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:c03fc00000000000 1:4077aa0000000000 2:4077aa0000000000 3:c088cb0000000000 4:c082b40000000000 +base __name__=a,instance=i1,version=base ; 2:404b000000000000 3:408a800000000000 4:408a800000000000 +base __name__=a,instance=i2,job=x ; 1:c072280000000000 2:408b380000000000 3:408b380000000000 4:c055500000000000 +base __name__=a,job=y,k8s_cluster=c1 ; 0:40742e0000000000 1:4089ae0000000000 2:c086590000000000 3:405d780000000000 4:c0647c0000000000 +base __name__=a,k8s_cluster=c1,zone=z2 ; 0:4075c00000000000 1:4075c00000000000 2:4075c00000000000 3:4076b20000000000 4:c0814b0000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +result __name__=a,instance=i1 ; 0:c08c010000000000 1:c061000000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:c03fc00000000000 1:4077aa0000000000 2:4077aa0000000000 3:c088cb0000000000 4:c082b40000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 2:408c920000000000 3:408c920000000000 4:408c920000000000 +result __name__=a,instance=i1,k8s_cluster=c1,version=base ; 2:404b000000000000 3:408a800000000000 4:408a800000000000 +result __name__=a,instance=i2,job=x ; 1:c072280000000000 2:408b380000000000 3:408b380000000000 4:c055500000000000 +result __name__=a,job=y,k8s_cluster=c1 ; 0:40742e0000000000 1:4089ae0000000000 2:c086590000000000 3:405d780000000000 4:c0647c0000000000 +result __name__=a,k8s_cluster=c1,zone=z2 ; 0:4075c00000000000 1:4075c00000000000 2:4075c00000000000 3:4076b20000000000 4:c0814b0000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=x ; 1:4043700000000000 2:4043700000000000 3:408f200000000000 4:4070f80000000000 +base __name__=a,instance=i1,job=y ; 0:4057e80000000000 1:c035400000000000 2:407c880000000000 3:407c880000000000 4:4078e60000000000 +base __name__=a,instance=i1,zone=z2 ; 0:40784e0000000000 1:40784e0000000000 2:40784e0000000000 3:c04e600000000000 4:c04e600000000000 +base __name__=a,job=x ; 1:c0820b0000000000 2:c0820b0000000000 3:4081c20000000000 4:4081c20000000000 +base __name__=a,job=y,zone=z2 ; 2:408c620000000000 3:c071f40000000000 4:c073360000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 0:c0648c0000000000 1:c0648c0000000000 2:408e8d0000000000 3:4085b30000000000 4:c077500000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 1:407bd60000000000 2:c088e40000000000 3:c088e40000000000 4:4086890000000000 +base __name__=target_info,job=y,k8s_cluster=c2 ; 4:40706e0000000000 +result __name__=a,instance=i1,job=x ; 1:4043700000000000 2:4043700000000000 3:408f200000000000 4:4070f80000000000 +result __name__=a,instance=i1,job=y ; 0:4057e80000000000 1:c035400000000000 2:407c880000000000 3:407c880000000000 4:4078e60000000000 +result __name__=a,instance=i1,zone=z2 ; 0:40784e0000000000 1:40784e0000000000 2:40784e0000000000 3:c04e600000000000 4:c04e600000000000 +result __name__=a,job=x ; 1:c0820b0000000000 2:c0820b0000000000 3:4081c20000000000 4:4081c20000000000 +result __name__=a,job=y,zone=z2 ; 2:408c620000000000 3:c071f40000000000 4:c073360000000000 +result __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 0:c0648c0000000000 1:c0648c0000000000 2:408e8d0000000000 3:4085b30000000000 4:c077500000000000 +result __name__=target_info,job=x,k8s_cluster=d1 ; 1:407bd60000000000 2:c088e40000000000 3:c088e40000000000 4:4086890000000000 +result __name__=target_info,job=y,k8s_cluster=c2 ; 4:40706e0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 10 +base __name__=a,instance=i1,zone=z1 ; 0:c08d870000000000 1:4047f00000000000 2:c055100000000000 3:c055100000000000 4:c07fbc0000000000 5:4087470000000000 6:c0758a0000000000 7:4088e20000000000 8:4088e20000000000 9:407f5a0000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 1:40846a0000000000 2:40846a0000000000 3:40846a0000000000 5:4076c80000000000 6:c0807e0000000000 7:4080880000000000 8:c07bfe0000000000 9:c0873f0000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1,version=base,zone=z1 ; 0:c075480000000000 1:408e1a0000000000 2:c07e540000000000 3:c083ef0000000000 4:c083ef0000000000 5:c083ef0000000000 6:c083ca0000000000 7:c083ca0000000000 8:4088660000000000 9:4074180000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 9:4107318000000000 +result __name__=a,instance=i1,zone=z1 ; 0:c08d870000000000 1:4047f00000000000 2:c055100000000000 3:c055100000000000 4:c07fbc0000000000 5:4087470000000000 6:c0758a0000000000 7:4088e20000000000 8:4088e20000000000 9:407f5a0000000000 +result __name__=a,instance=i2,job=x,zone=z1 ; 1:40846a0000000000 2:40846a0000000000 3:40846a0000000000 5:4076c80000000000 6:c0807e0000000000 7:4080880000000000 8:c07bfe0000000000 9:c0873f0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1,version=base,zone=z1 ; 0:c075480000000000 1:408e1a0000000000 2:c07e540000000000 3:c083ef0000000000 4:c083ef0000000000 5:c083ef0000000000 6:c083ca0000000000 7:c083ca0000000000 8:4088660000000000 9:4074180000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 2 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:c067f80000000000 1:c088820000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 0:c067f80000000000 1:c088820000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a ; 0:405b400000000000 1:c084150000000000 2:c084150000000000 3:c084150000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 1:4075040000000000 2:4078660000000000 3:4087b50000000000 +base __name__=a,instance=i2,job=y ; 0:c062f80000000000 1:408ab90000000000 2:4072940000000000 3:4072940000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c04dc00000000000 1:c073900000000000 2:40717a0000000000 3:c08cc70000000000 +base __name__=a,job=x,version=base ; 0:407b420000000000 1:c088e80000000000 2:c088e80000000000 3:4082580000000000 +base __name__=a,zone=z2 ; 0:c080730000000000 1:c0873a0000000000 2:c041700000000000 3:c041700000000000 +info __name__=build_info,instance=i2,job=x,version=v1 ; +info __name__=build_info,instance=i1,job=x,version=v2,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a ; 0:405b400000000000 1:c084150000000000 2:c084150000000000 3:c084150000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 1:4075040000000000 2:4078660000000000 3:4087b50000000000 +result __name__=a,instance=i2,job=y ; 0:c062f80000000000 1:408ab90000000000 2:4072940000000000 3:4072940000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c04dc00000000000 1:c073900000000000 2:40717a0000000000 3:c08cc70000000000 +result __name__=a,job=x,version=base ; 0:407b420000000000 1:c088e80000000000 2:c088e80000000000 3:4082580000000000 +result __name__=a,zone=z2 ; 0:c080730000000000 1:c0873a0000000000 2:c041700000000000 3:c041700000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=y ; 2:c084d10000000000 3:c076100000000000 4:4089600000000000 +base __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:c08ded0000000000 1:c08ded0000000000 2:c080dc0000000000 3:c080dc0000000000 4:c080dc0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +result __name__=a,instance=i1,job=y ; 2:c084d10000000000 3:c076100000000000 4:4089600000000000 +result __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:c08ded0000000000 1:c08ded0000000000 2:c080dc0000000000 3:c080dc0000000000 4:c080dc0000000000 +end +case version false __name__=~".+_info" +expr info({__name__=~"a|target_info"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=y,k8s_cluster=c1,zone=z2 ; 0:c075340000000000 1:c075340000000000 2:4089880000000000 3:c043d00000000000 4:c043d00000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 1:c067080000000000 2:4072b40000000000 3:4072b40000000000 4:4072b40000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v2 ; 3:4079680000000000 4:c03f000000000000 +base __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 3:4057200000000000 4:4057200000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v2 ; 3:40ffbd0000000000 4:4101170000000000 +info __name__=build_info,instance=i2,job=x,version=v1 ; +info __name__=build_info,instance=i1,job=x,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=build_info,job=y,version=v1,zone=z2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1,version=v2,zone=z2 ; 1:c075340000000000 2:4089880000000000 3:c043d00000000000 4:c043d00000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 1:c067080000000000 2:4072b40000000000 3:4072b40000000000 4:4072b40000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v2 ; 3:4079680000000000 4:c03f000000000000 +result __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 3:4057200000000000 4:4057200000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a,instance=i1 ; 0:c08ec00000000000 1:c07cbc0000000000 2:c07cbc0000000000 3:c075420000000000 4:40654c0000000000 5:40654c0000000000 6:c074ca0000000000 7:c074ca0000000000 8:40799c0000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:4053f00000000000 1:c042700000000000 2:404c000000000000 3:404c000000000000 4:c08a840000000000 5:c0881f0000000000 6:c05c880000000000 7:c05c880000000000 8:4062b40000000000 +base __name__=a,instance=i1,job=y ; 0:408e280000000000 1:c063680000000000 2:408f3d0000000000 3:c040200000000000 4:c081210000000000 5:c036800000000000 6:403de00000000000 7:403de00000000000 8:c07ace0000000000 +base __name__=a,instance=i2,zone=z2 ; 2:4084430000000000 3:4084430000000000 4:4084430000000000 5:c0763e0000000000 6:408b2c0000000000 7:c08ab40000000000 8:4087c50000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 0:4060b40000000000 1:c08cf40000000000 2:c08cf40000000000 3:4089020000000000 4:408ada0000000000 5:408ada0000000000 6:408ada0000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 2:c05d100000000000 3:c05d100000000000 4:c05d100000000000 7:c0817a0000000000 8:c0817a0000000000 +base __name__=target_info,instance=i2,k8s_cluster=c2,version=v1 ; 0:4087af0000000000 1:c072820000000000 2:c072820000000000 3:c072820000000000 4:407c3c0000000000 5:c08b900000000000 6:408cf50000000000 7:408cf50000000000 8:408cf50000000000 +base __name__=target_info,k8s_cluster=c1 ; 0:c08df90000000000 1:c086860000000000 2:c086860000000000 3:c086860000000000 4:40836a0000000000 5:40836a0000000000 6:40836a0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +info __name__=target_info,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z2 ; 0:4053f00000000000 1:c042700000000000 3:404c000000000000 4:c08a840000000000 5:c0881f0000000000 6:c05c880000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z2 ; 2:404c000000000000 7:c05c880000000000 8:4062b40000000000 +result __name__=a,instance=i2,k8s_cluster=c2,zone=z2 ; 2:4084430000000000 3:4084430000000000 4:4084430000000000 5:c0763e0000000000 6:408b2c0000000000 7:c08ab40000000000 8:4087c50000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 0:4060b40000000000 1:c08cf40000000000 2:c08cf40000000000 3:4089020000000000 4:408ada0000000000 5:408ada0000000000 6:408ada0000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 2:c05d100000000000 3:c05d100000000000 4:c05d100000000000 7:c0817a0000000000 8:c0817a0000000000 +result __name__=target_info,instance=i2,k8s_cluster=c2,version=v1 ; 0:4087af0000000000 1:c072820000000000 2:c072820000000000 3:c072820000000000 4:407c3c0000000000 5:c08b900000000000 6:408cf50000000000 7:408cf50000000000 8:408cf50000000000 +result __name__=target_info,k8s_cluster=c1 ; 0:c08df90000000000 1:c086860000000000 2:c086860000000000 3:c086860000000000 4:40836a0000000000 5:40836a0000000000 6:40836a0000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x,k8s_cluster=c2 ; 1:c08bcc0000000000 +base __name__=a,instance=i2,zone=z2 ; 1:4080bd0000000000 +base __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:c03d400000000000 1:c03d400000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 +result __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 0:c03d400000000000 1:c03d400000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:4077820000000000 1:c08f360000000000 2:408a630000000000 3:c082e00000000000 4:c07e500000000000 5:c086e60000000000 +base __name__=a,instance=i2,job=y ; 0:408e960000000000 1:4069940000000000 2:c086bb0000000000 3:c086bb0000000000 4:c082a60000000000 5:4084b20000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:4085c80000000000 1:c07f880000000000 2:4085100000000000 3:4083da0000000000 4:c065580000000000 5:c085cb0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 1:404f500000000000 2:404f500000000000 3:404f500000000000 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:40795e0000000000 1:406ba00000000000 2:c08aad0000000000 3:4088ca0000000000 +base __name__=a,instance=i2,job=x,version=base,zone=z1 ; 0:4070a20000000000 1:406b500000000000 2:406d240000000000 3:c07fae0000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 3:c088ed0000000000 +base __name__=a,job=y ; 0:c082f40000000000 1:c0828a0000000000 2:c084ac0000000000 3:c084ac0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x ; 0:c03f000000000000 1:c03a600000000000 2:408ecc0000000000 3:408ecc0000000000 4:c081b10000000000 5:c0772c0000000000 6:c0772c0000000000 +base __name__=a,instance=i1,job=y ; 0:c082280000000000 1:4081bf0000000000 2:4081bf0000000000 3:c077820000000000 4:c0884a0000000000 5:c0884a0000000000 6:c065340000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2,zone=z1 ; 2:c080a40000000000 3:c080a40000000000 4:402a400000000000 5:4052300000000000 6:406c200000000000 +result __name__=a,instance=i1,job=x ; 0:c03f000000000000 1:c03a600000000000 2:408ecc0000000000 3:408ecc0000000000 4:c081b10000000000 5:c0772c0000000000 6:c0772c0000000000 +result __name__=a,instance=i1,job=y ; 0:c082280000000000 1:4081bf0000000000 2:4081bf0000000000 3:c077820000000000 4:c0884a0000000000 5:c0884a0000000000 6:c065340000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2,zone=z1 ; 2:c080a40000000000 3:c080a40000000000 4:402a400000000000 5:4052300000000000 6:406c200000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=x,version=base ; 0:c083bb0000000000 1:c061bc0000000000 2:c061bc0000000000 3:c01a800000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:c08acd0000000000 1:c0741e0000000000 2:40759c0000000000 3:40759c0000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 1:c07efe0000000000 2:c07efe0000000000 3:c05cc80000000000 +base __name__=a,instance=i2 ; 1:c07c620000000000 2:c07c620000000000 3:c07c620000000000 +base __name__=a,instance=i2,job=x ; 0:406bf00000000000 1:406bf00000000000 2:406bf00000000000 3:40800c0000000000 +result __name__=a,instance=i1,job=x,version=base ; 0:c083bb0000000000 1:c061bc0000000000 2:c061bc0000000000 3:c01a800000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:c08acd0000000000 1:c0741e0000000000 2:40759c0000000000 3:40759c0000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 1:c07efe0000000000 2:c07efe0000000000 3:c05cc80000000000 +result __name__=a,instance=i2 ; 1:c07c620000000000 2:c07c620000000000 3:c07c620000000000 +result __name__=a,instance=i2,job=x ; 0:406bf00000000000 1:406bf00000000000 2:406bf00000000000 3:40800c0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 10 +base __name__=a,instance=i1,version=base,zone=z1 ; 0:c08d2b0000000000 1:c077c20000000000 2:c083c50000000000 3:c049b00000000000 4:c049b00000000000 5:405cb80000000000 6:c060100000000000 7:c04bd00000000000 8:c085440000000000 9:c076760000000000 +base __name__=a,instance=i2,job=x ; 1:4078ce0000000000 2:4078ce0000000000 3:4067a80000000000 4:4067a80000000000 5:c07a420000000000 6:c08e2a0000000000 7:c08e2a0000000000 8:c08b010000000000 9:c08b010000000000 +base __name__=a,job=y,zone=z2 ; 2:c08d510000000000 3:407f2e0000000000 4:407f2e0000000000 5:c063c80000000000 6:407d2e0000000000 7:c06ac80000000000 8:408c020000000000 9:c08bcf0000000000 +info __name__=target_info,job=x,k8s_cluster=d1,version=v2 ; 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=build_info,instance=i1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +result __name__=a,instance=i1,version=base,zone=z1 ; 1:c077c20000000000 2:c083c50000000000 3:c049b00000000000 4:c049b00000000000 5:405cb80000000000 7:c04bd00000000000 8:c085440000000000 9:c076760000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1 ; 0:407eba0000000000 1:c08f1e0000000000 2:c005000000000000 +base __name__=a,instance=i1,job=x ; 0:40671c0000000000 1:4061f40000000000 2:408bc90000000000 +base __name__=a,instance=i1,job=y ; 0:c076fc0000000000 1:4088940000000000 2:c0864c0000000000 +base __name__=a,instance=i2,job=x ; 1:407b300000000000 2:c0825a0000000000 +base __name__=a,job=x,zone=z1 ; 0:c070400000000000 1:4056b00000000000 2:c073c00000000000 +info __name__=target_info,job=y,k8s_cluster=d1,version=v1 ; 2:40fd4c0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 +result __name__=a,instance=i1 ; 0:407eba0000000000 +result __name__=a,instance=i1,job=x ; 0:40671c0000000000 1:4061f40000000000 2:408bc90000000000 +result __name__=a,instance=i1,job=y ; 0:c076fc0000000000 1:4088940000000000 2:c0864c0000000000 +result __name__=a,instance=i1,k8s_cluster=c2 ; 1:c08f1e0000000000 2:c005000000000000 +result __name__=a,instance=i2,job=x ; 1:407b300000000000 2:c0825a0000000000 +result __name__=a,job=x,zone=z1 ; 0:c070400000000000 1:4056b00000000000 2:c073c00000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 7 +base __name__=a ; 0:c086d60000000000 1:4042c00000000000 2:406f7c0000000000 3:c0859f0000000000 4:c0859f0000000000 5:4026c00000000000 6:407f160000000000 +base __name__=a,instance=i1 ; 0:40770a0000000000 1:40770a0000000000 2:4082f80000000000 3:c07dc80000000000 4:405d880000000000 5:c02d800000000000 6:c082f70000000000 +base __name__=a,instance=i1,job=x ; 0:408cf00000000000 1:408cf00000000000 2:c05e180000000000 3:c058180000000000 4:4084570000000000 5:4084570000000000 6:4075c80000000000 +base __name__=a,instance=i1,zone=z2 ; 1:c012000000000000 2:c012000000000000 3:c083160000000000 4:4081230000000000 5:c0743c0000000000 6:c08d080000000000 +base __name__=a,job=x ; 1:c0604c0000000000 2:406c880000000000 3:406c880000000000 4:406c880000000000 6:c085e20000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=y ; 0:c08a610000000000 1:c08a610000000000 2:c08a610000000000 3:408a540000000000 4:404df00000000000 5:404df00000000000 +base __name__=a,instance=i2,job=x ; 0:4073c20000000000 1:4033e00000000000 2:4033e00000000000 3:4033e00000000000 5:4053100000000000 +base __name__=a,job=y,zone=z2 ; 0:407d5a0000000000 1:c086600000000000 2:c07d400000000000 3:407b0a0000000000 4:407b0a0000000000 5:c06c580000000000 +base __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:403ac00000000000 1:403ac00000000000 2:403ac00000000000 5:c06d480000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:c05ee80000000000 1:c05ee80000000000 2:c05ee80000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:408aa00000000000 2:408aa00000000000 3:408aa00000000000 5:c0890d0000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 5:408a1b0000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 0:c087180000000000 1:c087180000000000 2:c087180000000000 4:4078a00000000000 5:4089ef0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 5:41024f8000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 +result __name__=a,instance=i1,job=y ; 0:c08a610000000000 1:c08a610000000000 2:c08a610000000000 3:408a540000000000 4:404df00000000000 5:404df00000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:4073c20000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=d1 ; 1:4033e00000000000 2:4033e00000000000 3:4033e00000000000 5:4053100000000000 +result __name__=a,job=y,zone=z2 ; 0:407d5a0000000000 1:c086600000000000 2:c07d400000000000 3:407b0a0000000000 4:407b0a0000000000 5:c06c580000000000 +result __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:403ac00000000000 1:403ac00000000000 2:403ac00000000000 5:c06d480000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:c05ee80000000000 1:c05ee80000000000 2:c05ee80000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 1:408aa00000000000 2:408aa00000000000 3:408aa00000000000 5:c0890d0000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 5:408a1b0000000000 +result __name__=target_info,job=x,k8s_cluster=d1 ; 0:c087180000000000 1:c087180000000000 2:c087180000000000 4:4078a00000000000 5:4089ef0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1 ; 1:4084950000000000 +base __name__=a,instance=i1,job=x,version=base ; 0:c0671c0000000000 1:c0671c0000000000 +info __name__=build_info,job=x,version=v1 ; +info __name__=build_info,instance=i1,job=y,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=build_info,job=x,version=v2,zone=z1 ; 0:40f86a0000000000 1:40fadb0000000000 +result __name__=a,instance=i1 ; 1:4084950000000000 +result __name__=a,instance=i1,job=x,version=base ; 0:c0671c0000000000 1:c0671c0000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1 ; 2:c032a00000000000 3:c032a00000000000 4:c032a00000000000 5:4082830000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 0:407f360000000000 1:4051e00000000000 2:4051e00000000000 3:4051e00000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:406b300000000000 1:406b300000000000 2:406b300000000000 5:40858b0000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 0:c071d80000000000 1:c0841d0000000000 2:c06ec40000000000 3:c089d10000000000 4:c089d10000000000 5:c089d10000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 +result __name__=a,instance=i1 ; 2:c032a00000000000 3:c032a00000000000 4:c032a00000000000 5:4082830000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 0:407f360000000000 1:4051e00000000000 2:4051e00000000000 3:4051e00000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:406b300000000000 1:406b300000000000 2:406b300000000000 5:40858b0000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 0:c071d80000000000 1:c0841d0000000000 2:c06ec40000000000 3:c089d10000000000 4:c089d10000000000 5:c089d10000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=y ; 1:c0877a0000000000 2:c089430000000000 3:c089430000000000 4:c089430000000000 5:4055c00000000000 6:c0871b0000000000 7:40857b0000000000 8:c076260000000000 +base __name__=a,instance=i2 ; 0:c087b70000000000 1:40721c0000000000 2:408e6a0000000000 3:408e6a0000000000 4:4082f50000000000 5:4082f50000000000 6:c07d520000000000 7:c07d520000000000 8:c07d520000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c071d20000000000 1:c071d20000000000 2:c071d20000000000 5:c068900000000000 6:408e9c0000000000 7:408e9c0000000000 8:c050380000000000 +base __name__=a,instance=i2,job=y ; 1:c05e500000000000 2:c05e500000000000 3:407b800000000000 4:c083cb0000000000 5:c083cb0000000000 6:4067780000000000 7:4082f80000000000 8:4082f80000000000 +base __name__=a,job=x,zone=z1 ; 0:40808d0000000000 1:c079f80000000000 2:4070b20000000000 3:40822d0000000000 4:40783e0000000000 5:402c400000000000 6:c020400000000000 7:c086880000000000 8:4083530000000000 +base __name__=a,zone=z1 ; 1:c0842e0000000000 2:c0842e0000000000 3:4085550000000000 4:407d400000000000 5:407d400000000000 6:407d400000000000 8:4083fb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 8:4105f90000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +result __name__=a,instance=i1,job=y ; 1:c0877a0000000000 2:c089430000000000 3:c089430000000000 4:c089430000000000 5:4055c00000000000 6:c0871b0000000000 7:40857b0000000000 8:c076260000000000 +result __name__=a,instance=i2 ; 0:c087b70000000000 7:c07d520000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:c071d20000000000 1:c071d20000000000 2:c071d20000000000 5:c068900000000000 6:408e9c0000000000 7:408e9c0000000000 8:c050380000000000 +result __name__=a,instance=i2,job=y ; 1:c05e500000000000 2:c05e500000000000 3:407b800000000000 4:c083cb0000000000 5:c083cb0000000000 6:4067780000000000 7:4082f80000000000 8:4082f80000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 1:40721c0000000000 2:408e6a0000000000 3:408e6a0000000000 4:4082f50000000000 5:4082f50000000000 6:c07d520000000000 8:c07d520000000000 +result __name__=a,job=x,k8s_cluster=c1,zone=z1 ; 0:40808d0000000000 1:c079f80000000000 2:4070b20000000000 3:40822d0000000000 4:40783e0000000000 5:402c400000000000 6:c020400000000000 7:c086880000000000 8:4083530000000000 +result __name__=a,zone=z1 ; 1:c0842e0000000000 2:c0842e0000000000 3:4085550000000000 4:407d400000000000 5:407d400000000000 6:407d400000000000 8:4083fb0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i2,job=x ; 0:4070a80000000000 1:c086330000000000 2:c086330000000000 3:c086330000000000 +base __name__=a,instance=i2,job=y ; 0:4089100000000000 1:c08d110000000000 2:c08d110000000000 3:4089a40000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:4085220000000000 1:4016800000000000 2:c085480000000000 3:4072900000000000 +base __name__=a,k8s_cluster=c2 ; 0:406cb00000000000 1:406cb00000000000 2:407d580000000000 3:407d580000000000 +info __name__=build_info,job=x,version=v1,zone=z2 ; 3:40ffbd0000000000 +info __name__=build_info,instance=i1,job=x,version=v2,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 +result __name__=a,instance=i2,job=x ; 0:4070a80000000000 1:c086330000000000 2:c086330000000000 3:c086330000000000 +result __name__=a,instance=i2,job=y ; 0:4089100000000000 1:c08d110000000000 2:c08d110000000000 3:4089a40000000000 +result __name__=a,instance=i2,job=y,zone=z1 ; 0:4085220000000000 1:4016800000000000 2:c085480000000000 3:4072900000000000 +result __name__=a,k8s_cluster=c2 ; 0:406cb00000000000 1:406cb00000000000 2:407d580000000000 3:407d580000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 1:c083d50000000000 2:c078760000000000 3:c078760000000000 +base __name__=a,instance=i2,job=y ; 0:4068680000000000 1:c08e110000000000 2:c08cd00000000000 3:c08cd00000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 2:4072580000000000 3:4088780000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 1:c085490000000000 2:c085490000000000 3:407a0a0000000000 +base __name__=a,instance=i2,zone=z1 ; 2:c086050000000000 3:4069b40000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v2 ; +end +case version false __name__=~".+_info" +expr info({__name__=~"a|target_info"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 0:4066e80000000000 1:40797a0000000000 2:40797a0000000000 3:40874f0000000000 4:40874f0000000000 5:c06ccc0000000000 6:4084ef0000000000 7:406ecc0000000000 8:c032e00000000000 +base __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 0:c085250000000000 1:40608c0000000000 2:40608c0000000000 3:c085cc0000000000 4:c085cc0000000000 5:4088b70000000000 6:4088b70000000000 7:c086510000000000 8:c086510000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 3:c062dc0000000000 4:4074fc0000000000 5:4074fc0000000000 6:4074fc0000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=build_info,instance=i2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=build_info,instance=i1,job=x,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 +info __name__=build_info,instance=i2,version=v2,zone=z2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 +result __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 0:c085250000000000 1:40608c0000000000 2:40608c0000000000 3:c085cc0000000000 4:c085cc0000000000 5:4088b70000000000 6:4088b70000000000 7:c086510000000000 8:c086510000000000 +result __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 3:c062dc0000000000 4:4074fc0000000000 5:4074fc0000000000 6:4074fc0000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 6 +base __name__=a,instance=i2,job=x ; 0:4068ec0000000000 1:4068ec0000000000 2:406d040000000000 3:c087b80000000000 4:c083a40000000000 5:408cb90000000000 +base __name__=a,instance=i2,job=x,version=base ; 1:c07c200000000000 2:c08d2e0000000000 3:401c000000000000 4:c076e60000000000 5:407d8a0000000000 +base __name__=a,instance=i2,job=y ; 3:c087810000000000 4:c087810000000000 5:c08c130000000000 +base __name__=a,job=y ; 0:408de50000000000 1:c08c370000000000 2:c0671c0000000000 3:4086bd0000000000 4:c08b120000000000 5:4081190000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 4:c07d200000000000 5:c07d200000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 2:4082ee0000000000 3:c086e90000000000 4:c086e90000000000 5:c072520000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:406e3c0000000000 2:406e3c0000000000 3:406e3c0000000000 4:c081340000000000 5:c081340000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i2,job=x ; 0:4068ec0000000000 1:4068ec0000000000 2:406d040000000000 3:c087b80000000000 4:c083a40000000000 5:408cb90000000000 +result __name__=a,instance=i2,job=x,version=base ; 1:c07c200000000000 2:c08d2e0000000000 3:401c000000000000 4:c076e60000000000 5:407d8a0000000000 +result __name__=a,instance=i2,job=y ; 3:c087810000000000 4:c087810000000000 5:c08c130000000000 +result __name__=a,job=y ; 0:408de50000000000 1:c08c370000000000 2:c0671c0000000000 3:4086bd0000000000 4:c08b120000000000 5:4081190000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 4:c07d200000000000 5:c07d200000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 2:4082ee0000000000 3:c086e90000000000 4:c086e90000000000 5:c072520000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:406e3c0000000000 2:406e3c0000000000 3:406e3c0000000000 4:c081340000000000 5:c081340000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i2,job=x ; 0:c08a870000000000 1:c067900000000000 2:4082600000000000 +base __name__=a,instance=i2,k8s_cluster=c1 ; 0:c086600000000000 1:c078760000000000 2:4085f90000000000 +base __name__=a,version=base ; 2:40702c0000000000 +info __name__=build_info,instance=i2,job=x,version=v2,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; +result __name__=a,instance=i2,job=x,version=v2,zone=z1 ; 0:c08a870000000000 1:c067900000000000 2:4082600000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 0:c086600000000000 1:c078760000000000 2:4085f90000000000 +result __name__=a,version=base ; 2:40702c0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:405a680000000000 +base __name__=a,job=y,k8s_cluster=c2,zone=z2 ; 0:406ea80000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v2 ; +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; +result __name__=a,instance=i2,job=x,zone=z2 ; 0:405a680000000000 +result __name__=a,job=y,k8s_cluster=c2,zone=z2 ; 0:406ea80000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a,job=x ; 1:c0813d0000000000 2:405da00000000000 3:c04cd00000000000 4:c04cd00000000000 5:c07e7e0000000000 6:40826b0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 10 +base __name__=a,instance=i1 ; 0:4084060000000000 1:408dd10000000000 2:408dd10000000000 3:408dd10000000000 4:40660c0000000000 5:406aa40000000000 6:c0856f0000000000 7:c080ab0000000000 8:408be40000000000 9:408be40000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1,zone=z1 ; 0:c083e80000000000 1:c083e80000000000 2:c050b80000000000 3:405c600000000000 4:4085ae0000000000 5:4085ae0000000000 6:c076b80000000000 7:c083800000000000 8:4061780000000000 9:4061780000000000 +base __name__=a,instance=i2,job=x ; 1:4082630000000000 2:406bd40000000000 3:406bd40000000000 4:c078500000000000 5:c078500000000000 6:406eec0000000000 7:406eec0000000000 8:4075780000000000 9:c089d70000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:4070dc0000000000 1:c07af60000000000 2:c078480000000000 3:c078480000000000 4:c078480000000000 5:c069080000000000 6:c067e40000000000 7:c067e40000000000 8:c07bce0000000000 9:c084340000000000 +base __name__=a,job=x ; 0:c075ec0000000000 1:408e720000000000 2:4083c40000000000 3:4086000000000000 4:4086000000000000 5:4068bc0000000000 6:4068bc0000000000 7:4068bc0000000000 8:407f020000000000 9:407f020000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4104c08000000000 9:4107318000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4104c08000000000 9:4107318000000000 +result __name__=a,instance=i1,version=v1 ; 4:40660c0000000000 5:406aa40000000000 6:c0856f0000000000 7:c080ab0000000000 8:408be40000000000 9:408be40000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:c07c8c0000000000 1:4063840000000000 2:c08bab0000000000 3:c082370000000000 4:408de20000000000 5:408de20000000000 6:408de20000000000 7:407e4c0000000000 8:40634c0000000000 9:40634c0000000000 +base __name__=a,instance=i2,zone=z1 ; 0:408c9b0000000000 1:4083d60000000000 2:4058800000000000 3:4058800000000000 4:4058800000000000 5:408bed0000000000 6:408bed0000000000 7:408bed0000000000 8:4057c80000000000 9:4057c80000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=x,version=base ; 0:40803f0000000000 +base __name__=a,instance=i1,version=base ; 0:c07b0a0000000000 +base __name__=a,job=x ; 0:c08ea40000000000 +base __name__=a,job=x,k8s_cluster=c2,version=base ; 0:c086980000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=x,version=base ; 0:4065c00000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:408bad0000000000 +base __name__=a,instance=i2,zone=z2 ; 0:c069d40000000000 +info __name__=target_info,job=x,k8s_cluster=d1 ; +result __name__=a,instance=i2,job=x,version=base ; 0:4065c00000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:408bad0000000000 +result __name__=a,instance=i2,zone=z2 ; 0:c069d40000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=y,version=base ; 1:4081490000000000 2:4085ca0000000000 3:406e0c0000000000 4:4040500000000000 5:c08cd70000000000 6:c088480000000000 7:c088480000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c08c320000000000 1:c06f400000000000 2:c06f400000000000 3:4069400000000000 4:4069400000000000 5:c08c980000000000 6:406dd80000000000 7:40826d0000000000 +base __name__=a,instance=i2,zone=z2 ; 0:4088920000000000 1:c079240000000000 2:4065f00000000000 3:403f400000000000 4:4065800000000000 5:4065800000000000 6:4065800000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v1 ; 3:c062540000000000 4:c0738a0000000000 5:c0738a0000000000 6:c0738a0000000000 7:c08a720000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 1:407e4c0000000000 2:c06b780000000000 3:c06b780000000000 4:c06b780000000000 5:c08b310000000000 6:c08b310000000000 7:4087e30000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 2:c070c00000000000 3:c070c00000000000 4:4081960000000000 5:c08dd60000000000 6:c08dd60000000000 7:4065f40000000000 +base __name__=target_info,instance=i2,k8s_cluster=d1 ; 0:408cd10000000000 1:408cd10000000000 2:4081210000000000 3:4081210000000000 4:c053e80000000000 5:c080920000000000 6:c080920000000000 7:4081ea0000000000 +info __name__=build_info,job=y,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 6:4103880000000000 7:4104c08000000000 +info __name__=build_info,instance=i2,job=y,version=v2,zone=z2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=build_info,job=x,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4103880000000000 +result __name__=a,instance=i1,job=y,version=base ; 1:4081490000000000 2:4085ca0000000000 3:406e0c0000000000 4:4040500000000000 5:c08cd70000000000 6:c088480000000000 7:c088480000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:c08c320000000000 1:c06f400000000000 2:c06f400000000000 3:4069400000000000 4:4069400000000000 5:c08c980000000000 6:406dd80000000000 7:40826d0000000000 +result __name__=a,instance=i2,zone=z2 ; 0:4088920000000000 1:c079240000000000 2:4065f00000000000 3:403f400000000000 4:4065800000000000 5:4065800000000000 6:4065800000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v1 ; 3:c062540000000000 4:c0738a0000000000 5:c0738a0000000000 6:c0738a0000000000 7:c08a720000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 1:407e4c0000000000 5:c08b310000000000 6:c08b310000000000 7:4087e30000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2,zone=z2 ; 2:c06b780000000000 3:c06b780000000000 4:c06b780000000000 +result __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 2:c070c00000000000 3:c070c00000000000 4:4081960000000000 5:c08dd60000000000 6:c08dd60000000000 7:4065f40000000000 +result __name__=target_info,instance=i2,k8s_cluster=d1 ; 0:408cd10000000000 1:408cd10000000000 2:4081210000000000 3:4081210000000000 4:c053e80000000000 5:c080920000000000 6:c080920000000000 7:4081ea0000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 5 +base __name__=a ; 1:c08a8d0000000000 2:c08afe0000000000 3:408e5f0000000000 4:408e5f0000000000 +base __name__=a,instance=i1,job=y ; 0:407d2a0000000000 1:40829b0000000000 2:40829b0000000000 3:c078100000000000 4:c0718c0000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2,zone=z2 ; 0:4071420000000000 1:404a100000000000 2:404a100000000000 3:4083a50000000000 4:4083a50000000000 +base __name__=a,job=y,version=base ; 0:c08ba80000000000 1:c08ba80000000000 2:4062680000000000 3:4062680000000000 4:c05cb00000000000 +result __name__=a ; 1:c08a8d0000000000 2:c08afe0000000000 3:408e5f0000000000 4:408e5f0000000000 +result __name__=a,instance=i1,job=y ; 0:407d2a0000000000 1:40829b0000000000 2:40829b0000000000 3:c078100000000000 4:c0718c0000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2,zone=z2 ; 0:4071420000000000 1:404a100000000000 2:404a100000000000 3:4083a50000000000 4:4083a50000000000 +result __name__=a,job=y,version=base ; 0:c08ba80000000000 1:c08ba80000000000 2:4062680000000000 3:4062680000000000 4:c05cb00000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=y ; 1:c08df10000000000 2:4081410000000000 3:4081410000000000 4:c08ac40000000000 5:4075fc0000000000 6:4074c80000000000 7:c081720000000000 8:c067f80000000000 9:c087b30000000000 +base __name__=a,instance=i2,zone=z1 ; 0:408a7f0000000000 1:408a7f0000000000 2:c07a4e0000000000 3:c07a4e0000000000 4:c075f40000000000 5:c0638c0000000000 6:c06e700000000000 7:4025000000000000 8:4071ee0000000000 9:c082aa0000000000 +base __name__=a,k8s_cluster=c2 ; 0:c07f420000000000 1:c07cb20000000000 2:c07cb20000000000 3:4074be0000000000 4:4074be0000000000 5:c0862b0000000000 6:c0753c0000000000 7:c0753c0000000000 8:c089660000000000 9:c089660000000000 +base __name__=a,zone=z2 ; 0:4063440000000000 1:406c100000000000 2:406c100000000000 3:40709a0000000000 4:40709a0000000000 5:4088260000000000 6:406a680000000000 7:406a680000000000 8:c017000000000000 9:4051380000000000 +info __name__=target_info,job=x,k8s_cluster=c2,version=v2 ; 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4107318000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4105f90000000000 9:4107318000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4105f90000000000 9:4105f90000000000 +error found duplicate series for info metric: existing {__name__="target_info", instance="i2", k8s_cluster="c1"} @ 170000, new {__name__="target_info", instance="i2", k8s_cluster="c2"} @ 170000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:c04c100000000000 1:c04c100000000000 2:c06b040000000000 3:c064200000000000 4:c064200000000000 +base __name__=a,instance=i1,zone=z1 ; 2:4077140000000000 3:c05d100000000000 4:c05d100000000000 +base __name__=a,job=y ; 0:c08af70000000000 1:c07f3e0000000000 2:408ed20000000000 3:408ed20000000000 4:408ed20000000000 +base __name__=a,job=y,version=base ; 0:407d4c0000000000 1:c0731c0000000000 2:c08b0f0000000000 3:c08b0f0000000000 4:c08b0f0000000000 +result __name__=a,instance=i1,job=x,zone=z2 ; 0:c04c100000000000 1:c04c100000000000 2:c06b040000000000 3:c064200000000000 4:c064200000000000 +result __name__=a,instance=i1,zone=z1 ; 2:4077140000000000 3:c05d100000000000 4:c05d100000000000 +result __name__=a,job=y ; 0:c08af70000000000 1:c07f3e0000000000 2:408ed20000000000 3:408ed20000000000 4:408ed20000000000 +result __name__=a,job=y,version=base ; 0:407d4c0000000000 1:c0731c0000000000 2:c08b0f0000000000 3:c08b0f0000000000 4:c08b0f0000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 8 +base __name__=a,instance=i2 ; 0:4083230000000000 1:c0637c0000000000 2:4060b00000000000 3:4084210000000000 4:c055100000000000 5:c055100000000000 6:4079820000000000 7:4079820000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1,zone=z2 ; 0:4089180000000000 1:4089180000000000 2:c069ec0000000000 3:408e170000000000 4:c0876a0000000000 5:c08eb40000000000 6:c08eb40000000000 7:c064680000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:c06bc80000000000 1:c042500000000000 2:c08ca80000000000 3:c0834a0000000000 4:c0834a0000000000 5:c08b0c0000000000 6:c075e40000000000 7:c075e40000000000 +base __name__=a,instance=i2,k8s_cluster=c2,zone=z2 ; 2:c07ffc0000000000 3:c07ffc0000000000 4:c07ffc0000000000 6:c061300000000000 7:4062c00000000000 +base __name__=a,job=y ; 1:402c400000000000 2:402c400000000000 3:402c400000000000 4:c0810d0000000000 5:c081c30000000000 6:c086710000000000 7:c086710000000000 +base __name__=a,version=base ; 0:4087d00000000000 1:c057c80000000000 2:4085c10000000000 3:4085c10000000000 4:c07a240000000000 5:407bdc0000000000 6:c074320000000000 7:c054480000000000 +base __name__=target_info,job=x,k8s_cluster=c2 ; 4:c071e00000000000 5:4080fa0000000000 6:4080fa0000000000 7:4080fa0000000000 +result __name__=target_info,job=x,k8s_cluster=c2 ; 4:c071e00000000000 5:4080fa0000000000 6:4080fa0000000000 7:4080fa0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 10 +base __name__=a,job=x ; 0:40809b0000000000 1:c084a20000000000 2:c084a20000000000 3:c084a20000000000 4:c07c900000000000 5:c07c900000000000 6:4084860000000000 7:408b4f0000000000 8:408b4f0000000000 9:c08c520000000000 +base __name__=a,zone=z2 ; 0:c06c800000000000 1:c06c800000000000 2:406ce80000000000 3:406ce80000000000 4:c055f00000000000 5:c055f00000000000 6:405b100000000000 7:c077660000000000 8:c077660000000000 9:c059d00000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=y ; 0:c043e00000000000 1:c088ad0000000000 2:c088ad0000000000 3:4062f00000000000 4:4062f00000000000 5:c085a90000000000 6:c08d310000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 1:c08cda0000000000 2:408b390000000000 3:408b390000000000 4:c07e720000000000 5:4081a80000000000 6:408b5e0000000000 +base __name__=a,job=x ; 0:c07c1c0000000000 1:406b300000000000 2:c085020000000000 3:c085020000000000 4:c065080000000000 5:4066200000000000 6:c07fd80000000000 +base __name__=a,job=x,version=base ; 0:403b000000000000 1:c082670000000000 2:c082670000000000 3:c082670000000000 5:40721a0000000000 6:40721a0000000000 +base __name__=a,job=y ; 0:c08b0b0000000000 1:408db60000000000 2:c07e7a0000000000 3:c086760000000000 4:4081290000000000 5:c08aed0000000000 6:407d720000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 2:4078ce0000000000 3:c07a960000000000 4:c081190000000000 5:4083fb0000000000 6:c08afb0000000000 +base __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:c08bcf0000000000 2:c08bcf0000000000 3:4075be0000000000 4:c08a8b0000000000 5:c076f80000000000 6:4085fa0000000000 +base __name__=target_info,job=y,k8s_cluster=c1 ; 0:c087fe0000000000 1:c087fe0000000000 2:c06fe80000000000 3:c06fe80000000000 4:c06fe80000000000 6:4074200000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 +result __name__=a,instance=i1,job=y ; 0:c043e00000000000 1:c088ad0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 2:c088ad0000000000 3:4062f00000000000 4:4062f00000000000 5:c085a90000000000 6:c08d310000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 1:c08cda0000000000 2:408b390000000000 3:408b390000000000 4:c07e720000000000 5:4081a80000000000 6:408b5e0000000000 +result __name__=a,job=x ; 0:c07c1c0000000000 1:406b300000000000 2:c085020000000000 3:c085020000000000 4:c065080000000000 5:4066200000000000 6:c07fd80000000000 +result __name__=a,job=x,version=base ; 0:403b000000000000 1:c082670000000000 2:c082670000000000 3:c082670000000000 5:40721a0000000000 6:40721a0000000000 +result __name__=a,job=y ; 5:c08aed0000000000 +result __name__=a,job=y,k8s_cluster=c1 ; 0:c08b0b0000000000 1:408db60000000000 2:c07e7a0000000000 3:c086760000000000 4:4081290000000000 6:407d720000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 2:4078ce0000000000 3:c07a960000000000 4:c081190000000000 5:4083fb0000000000 6:c08afb0000000000 +result __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:c08bcf0000000000 2:c08bcf0000000000 3:4075be0000000000 4:c08a8b0000000000 5:c076f80000000000 6:4085fa0000000000 +result __name__=target_info,job=y,k8s_cluster=c1 ; 0:c087fe0000000000 1:c087fe0000000000 2:c06fe80000000000 3:c06fe80000000000 4:c06fe80000000000 6:4074200000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 6 +base __name__=a,job=y,zone=z1 ; 0:405ab00000000000 1:4074f60000000000 2:40824c0000000000 3:c086360000000000 4:40872e0000000000 5:40677c0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:4081030000000000 1:4081030000000000 2:4081610000000000 3:c0815b0000000000 +base __name__=a,instance=i1,job=x ; 0:c063ec0000000000 1:4082d00000000000 2:c080970000000000 3:c074740000000000 +base __name__=a,instance=i1,zone=z1 ; 0:c083310000000000 1:4077360000000000 2:4077360000000000 3:c051f00000000000 +base __name__=a,instance=i2 ; 0:c08c890000000000 1:40832d0000000000 2:4089010000000000 3:c088d80000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:4084f90000000000 1:4084f90000000000 2:4084f90000000000 3:c046000000000000 +base __name__=a,job=x,k8s_cluster=c1,zone=z2 ; 0:40783a0000000000 1:c084700000000000 2:c084700000000000 3:c088610000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 0:4082670000000000 1:4082670000000000 2:c086940000000000 3:c0829a0000000000 +base __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 1:408c6c0000000000 2:408c6c0000000000 3:c067f40000000000 +info __name__=build_info,instance=i1,version=v2 ; +info __name__=build_info,instance=i1,job=y,version=v1,zone=z2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=build_info,job=x,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 +result __name__=a,instance=i1 ; 0:4081030000000000 1:4081030000000000 2:4081610000000000 3:c0815b0000000000 +result __name__=a,instance=i1,job=x ; 0:c063ec0000000000 1:4082d00000000000 2:c080970000000000 3:c074740000000000 +result __name__=a,instance=i1,zone=z1 ; 0:c083310000000000 1:4077360000000000 2:4077360000000000 3:c051f00000000000 +result __name__=a,instance=i2 ; 0:c08c890000000000 1:40832d0000000000 2:4089010000000000 3:c088d80000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 0:4084f90000000000 1:4084f90000000000 2:4084f90000000000 3:c046000000000000 +result __name__=a,job=x,k8s_cluster=c1,version=v2,zone=z2 ; 2:c084700000000000 3:c088610000000000 +result __name__=a,job=x,k8s_cluster=c1,zone=z2 ; 0:40783a0000000000 1:c084700000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 0:4082670000000000 1:4082670000000000 2:c086940000000000 3:c0829a0000000000 +result __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 1:408c6c0000000000 2:408c6c0000000000 3:c067f40000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 2 +base __name__=a,instance=i1,zone=z1 ; 0:404bc00000000000 1:c043000000000000 +base __name__=a,k8s_cluster=c1,zone=z1 ; 1:c0875a0000000000 +base __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 1:4078120000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 +result __name__=a,instance=i1,version=v1,zone=z1 ; 1:c043000000000000 +result __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 1:4078120000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 10 +base __name__=a,instance=i2,job=y ; 0:c07a100000000000 1:c07a100000000000 2:c07a100000000000 3:40802f0000000000 4:c07f2e0000000000 5:c07f2e0000000000 6:c07f2e0000000000 7:40787e0000000000 8:40787e0000000000 9:c03a200000000000 +base __name__=a,job=x ; 0:40884a0000000000 1:40884a0000000000 2:40884a0000000000 5:c072de0000000000 6:c0747c0000000000 7:c0747c0000000000 8:c0747c0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,version=base ; 0:40829c0000000000 +base __name__=a,instance=i2,version=base ; 0:4059280000000000 +info __name__=target_info,k8s_cluster=c1 ; +info __name__=target_info,job=x,k8s_cluster=d1,version=v2 ; +result __name__=a,instance=i2,job=y,k8s_cluster=c2,version=base ; 0:40829c0000000000 +result __name__=a,instance=i2,version=base ; 0:4059280000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i2,job=y ; 0:c08be30000000000 1:4081cb0000000000 2:4081cb0000000000 3:4081cb0000000000 4:c071340000000000 5:4074340000000000 6:4074340000000000 7:c04fc00000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:c078700000000000 2:c078700000000000 3:4080b00000000000 4:4077d40000000000 5:4085470000000000 6:4085470000000000 7:4063f80000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:4081eb0000000000 2:4081eb0000000000 3:c083370000000000 4:c0694c0000000000 5:c0694c0000000000 6:c07e400000000000 7:c07e400000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c07dd80000000000 1:c07dd80000000000 2:4086d00000000000 3:c06a740000000000 4:405d700000000000 5:40848c0000000000 6:40848c0000000000 7:c07d5c0000000000 +base __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:4068700000000000 2:408a800000000000 3:c05b300000000000 4:c05b300000000000 5:407a4a0000000000 6:407a4a0000000000 7:4086900000000000 +base __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 1:c0863b0000000000 2:c0863b0000000000 3:c0863b0000000000 4:c080e30000000000 5:c080e30000000000 6:c080e30000000000 +base __name__=target_info,job=y,k8s_cluster=d1 ; 4:4087b80000000000 5:4087b80000000000 6:4087b80000000000 7:40714e0000000000 +base __name__=target_info,job=y,k8s_cluster=d1,version=v1 ; 0:408b5a0000000000 1:bffc000000000000 2:bffc000000000000 3:c053e80000000000 4:c053e80000000000 5:c053e80000000000 6:c082a10000000000 7:c082a10000000000 +info __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +info __name__=target_info,job=y,k8s_cluster=d1 ; 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 +info __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,job=y,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 +result __name__=a,instance=i2,job=y ; 0:c08be30000000000 1:4081cb0000000000 2:4081cb0000000000 3:4081cb0000000000 4:c071340000000000 5:4074340000000000 6:4074340000000000 7:c04fc00000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:c078700000000000 2:c078700000000000 3:4080b00000000000 4:4077d40000000000 5:4085470000000000 6:4085470000000000 7:4063f80000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 1:4081eb0000000000 2:4081eb0000000000 3:c083370000000000 4:c0694c0000000000 5:c0694c0000000000 6:c07e400000000000 7:c07e400000000000 +result __name__=a,instance=i2,zone=z1 ; 0:c07dd80000000000 1:c07dd80000000000 2:4086d00000000000 3:c06a740000000000 4:405d700000000000 5:40848c0000000000 6:40848c0000000000 7:c07d5c0000000000 +result __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; 1:4068700000000000 2:408a800000000000 3:c05b300000000000 4:c05b300000000000 5:407a4a0000000000 6:407a4a0000000000 7:4086900000000000 +result __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 1:c0863b0000000000 2:c0863b0000000000 3:c0863b0000000000 4:c080e30000000000 5:c080e30000000000 6:c080e30000000000 +result __name__=target_info,job=y,k8s_cluster=d1 ; 4:4087b80000000000 5:4087b80000000000 6:4087b80000000000 7:40714e0000000000 +result __name__=target_info,job=y,k8s_cluster=d1,version=v1 ; 0:408b5a0000000000 1:bffc000000000000 2:bffc000000000000 3:c053e80000000000 4:c053e80000000000 5:c053e80000000000 6:c082a10000000000 7:c082a10000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 10 +base __name__=a,instance=i1,zone=z1 ; 0:c06f540000000000 1:c081ce0000000000 2:c081ce0000000000 3:4086b70000000000 4:4086b70000000000 5:4086b70000000000 6:4080880000000000 7:4080880000000000 8:408c660000000000 9:4081030000000000 +base __name__=a,instance=i2,job=x ; 0:406d6c0000000000 1:c08a6a0000000000 2:408c710000000000 3:408c710000000000 4:4078c80000000000 5:c073fa0000000000 6:40829f0000000000 7:40791e0000000000 8:c072a60000000000 9:c072a60000000000 +base __name__=a,instance=i2,job=y ; 0:4087a10000000000 1:4070360000000000 2:c08e9a0000000000 3:c0636c0000000000 4:4081550000000000 5:4085ac0000000000 6:4075680000000000 7:40824a0000000000 8:c032e00000000000 9:c086c80000000000 +base __name__=a,k8s_cluster=c2 ; 1:4085d00000000000 2:c07f880000000000 3:c07f880000000000 4:c07f880000000000 5:c042b00000000000 6:4057100000000000 7:c065980000000000 8:c020800000000000 9:4070480000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=x ; 0:407f860000000000 1:c06dd40000000000 2:4074b80000000000 3:4054300000000000 4:4054300000000000 5:406e240000000000 6:406e240000000000 7:c076de0000000000 8:c081aa0000000000 9:c081aa0000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c1,version=base,zone=z1 ; 0:c084590000000000 1:c069500000000000 2:c085570000000000 3:40819f0000000000 4:c084880000000000 5:4084060000000000 6:c04fd00000000000 7:c070820000000000 8:c070820000000000 9:c072000000000000 +base __name__=a,instance=i2 ; 1:c07cc40000000000 2:c07cc40000000000 3:40774c0000000000 4:c065440000000000 5:4086d70000000000 6:40817e0000000000 7:40817e0000000000 8:4078dc0000000000 9:4080fa0000000000 +base __name__=a,instance=i2,job=x ; 0:c067ac0000000000 1:c088c20000000000 2:c088c20000000000 3:4087600000000000 4:40892a0000000000 5:40892a0000000000 6:c076340000000000 7:c08f310000000000 8:408e250000000000 9:408f270000000000 +base __name__=a,job=y ; 0:c0770a0000000000 1:c075e40000000000 2:406f380000000000 3:406f400000000000 4:40869a0000000000 5:408ac70000000000 6:4070340000000000 7:c067380000000000 8:c067380000000000 9:c067380000000000 +info __name__=build_info,instance=i2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=build_info,job=y,version=v2,zone=z2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4107318000000000 +info __name__=build_info,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 9:4107318000000000 +result __name__=a,instance=i1,job=x ; 0:407f860000000000 1:c06dd40000000000 2:4074b80000000000 3:4054300000000000 4:4054300000000000 5:406e240000000000 6:406e240000000000 7:c076de0000000000 8:c081aa0000000000 9:c081aa0000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1,version=base,zone=z1 ; 0:c084590000000000 1:c069500000000000 2:c085570000000000 3:40819f0000000000 4:c084880000000000 5:4084060000000000 6:c04fd00000000000 7:c070820000000000 8:c070820000000000 9:c072000000000000 +result __name__=a,instance=i2 ; 3:40774c0000000000 4:c065440000000000 5:4086d70000000000 6:40817e0000000000 7:40817e0000000000 +result __name__=a,instance=i2,job=x ; 0:c067ac0000000000 1:c088c20000000000 2:c088c20000000000 3:4087600000000000 4:40892a0000000000 5:40892a0000000000 6:c076340000000000 7:c08f310000000000 8:408e250000000000 9:408f270000000000 +result __name__=a,instance=i2,version=v1 ; 1:c07cc40000000000 2:c07cc40000000000 8:4078dc0000000000 9:4080fa0000000000 +result __name__=a,job=y ; 0:c0770a0000000000 +result __name__=a,job=y,version=v2,zone=z2 ; 1:c075e40000000000 2:406f380000000000 3:406f400000000000 4:40869a0000000000 5:408ac70000000000 6:4070340000000000 7:c067380000000000 8:c067380000000000 9:c067380000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 5 +base __name__=a,instance=i1,zone=z2 ; 1:4070e40000000000 2:c067d80000000000 3:4071680000000000 4:c084760000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1,version=base ; 0:407eac0000000000 1:c06ca40000000000 2:c06ca40000000000 3:c06ca40000000000 4:c086090000000000 5:c088b60000000000 +base __name__=a,instance=i2,job=x ; 0:407c2a0000000000 1:407c2a0000000000 2:4083690000000000 3:4065fc0000000000 4:c0640c0000000000 5:408e590000000000 +base __name__=a,job=x ; 0:c06be00000000000 1:406e980000000000 2:406e980000000000 3:c080a00000000000 4:c080a00000000000 5:c080a00000000000 +base __name__=a,zone=z1 ; 0:c073a40000000000 1:c073a40000000000 2:c089e70000000000 3:c0802f0000000000 4:c087040000000000 5:c0754e0000000000 +info __name__=build_info,instance=i1,job=y,version=v1,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i1,version=base ; 0:407eac0000000000 1:c06ca40000000000 2:c06ca40000000000 3:c06ca40000000000 4:c086090000000000 5:c088b60000000000 +result __name__=a,instance=i2,job=x ; 0:407c2a0000000000 1:407c2a0000000000 2:4083690000000000 3:4065fc0000000000 4:c0640c0000000000 5:408e590000000000 +result __name__=a,job=x ; 0:c06be00000000000 1:406e980000000000 2:406e980000000000 3:c080a00000000000 4:c080a00000000000 5:c080a00000000000 +result __name__=a,zone=z1 ; 0:c073a40000000000 1:c073a40000000000 2:c089e70000000000 3:c0802f0000000000 4:c087040000000000 5:c0754e0000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 1:4087e30000000000 2:4087e30000000000 3:4087e30000000000 5:c0813c0000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 1:c0849a0000000000 2:c08bd20000000000 3:c08e290000000000 4:c0793a0000000000 5:c0793a0000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c07dda0000000000 1:4080fb0000000000 2:4080fb0000000000 3:407a6c0000000000 4:40899f0000000000 5:406aa00000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 5:4080530000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 2:c08ae50000000000 3:c08ae50000000000 4:c040a00000000000 5:40707e0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 5:41024f8000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 1:4087e30000000000 2:4087e30000000000 3:4087e30000000000 5:c0813c0000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 1:c0849a0000000000 2:c08bd20000000000 3:c08e290000000000 4:c0793a0000000000 5:c0793a0000000000 +result __name__=a,instance=i2,zone=z1 ; 0:c07dda0000000000 1:4080fb0000000000 2:4080fb0000000000 3:407a6c0000000000 4:40899f0000000000 5:406aa00000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 5:4080530000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; 2:c08ae50000000000 3:c08ae50000000000 4:c040a00000000000 5:40707e0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 5 +base __name__=a,instance=i2,job=x,k8s_cluster=c2,zone=z2 ; 0:c07e500000000000 1:4086350000000000 2:c074e60000000000 3:407d6e0000000000 4:408e100000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 4:4101170000000000 +info __name__=target_info,k8s_cluster=c2 ; +info __name__=target_info,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1 ; 3:40ffbd0000000000 4:4101170000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2,zone=z2 ; 0:c07e500000000000 1:4086350000000000 2:c074e60000000000 3:407d6e0000000000 4:408e100000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 1 +base __name__=a,instance=i1 ; 0:c066200000000000 +base __name__=a,instance=i1,job=x ; 0:c02d400000000000 +base __name__=a,instance=i2 ; 0:40889c0000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:4084f60000000000 +base __name__=a,instance=i2,version=base,zone=z2 ; 0:4086330000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; +result __name__=a,instance=i1 ; 0:c066200000000000 +result __name__=a,instance=i1,job=x ; 0:c02d400000000000 +result __name__=a,instance=i2 ; 0:40889c0000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:4084f60000000000 +result __name__=a,instance=i2,version=base,zone=z2 ; 0:4086330000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:4088ed0000000000 +base __name__=a,instance=i2,zone=z2 ; 0:4073ee0000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:4088ed0000000000 +result __name__=a,instance=i2,zone=z2 ; 0:4073ee0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 1:c087120000000000 2:c087120000000000 3:c034e00000000000 4:406f100000000000 5:406f100000000000 6:c08bcf0000000000 7:407ce00000000000 8:c044700000000000 +base __name__=a,job=x ; 0:4071e60000000000 1:4071e60000000000 2:c02f000000000000 3:c05e600000000000 4:c0891e0000000000 5:c0891e0000000000 6:408b520000000000 7:408b520000000000 8:4054800000000000 +base __name__=a,job=y ; 0:4085a00000000000 1:4043100000000000 2:4079040000000000 3:c08ab00000000000 4:408b6e0000000000 5:c06d200000000000 6:c06d200000000000 7:c070140000000000 8:c0848f0000000000 +base __name__=a,version=base ; 0:4078040000000000 1:c073040000000000 2:4030c00000000000 3:4030c00000000000 4:c082a60000000000 5:c082a60000000000 6:405e300000000000 7:c06ccc0000000000 8:407efc0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 8:4105f90000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 6:4103880000000000 7:4103880000000000 8:4105f90000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 10 +base __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:c067240000000000 1:c069280000000000 2:404e000000000000 3:408bdf0000000000 4:408f070000000000 5:4078420000000000 6:407fc20000000000 7:4080370000000000 8:408d700000000000 9:c062380000000000 +base __name__=a,job=x,version=base ; 0:c072a80000000000 1:c072a80000000000 2:c087a00000000000 3:c087a00000000000 4:4085a20000000000 5:407a680000000000 6:407a680000000000 7:c083040000000000 8:40858b0000000000 9:40858b0000000000 +base __name__=a,job=x,zone=z2 ; 0:4083460000000000 1:407cee0000000000 2:c07d440000000000 3:c07d440000000000 4:408a440000000000 5:c04d800000000000 6:4067c80000000000 7:408cde0000000000 8:4046c00000000000 9:4082770000000000 +base __name__=a,job=y ; 0:c085df0000000000 1:40642c0000000000 2:4089980000000000 3:408c980000000000 4:4064180000000000 5:c07ecc0000000000 6:4089a60000000000 7:4080800000000000 8:4080800000000000 9:4061b80000000000 +base __name__=a,job=y,version=base,zone=z1 ; 1:40800d0000000000 2:c0652c0000000000 3:c0652c0000000000 4:c08d500000000000 5:c08c490000000000 6:c08f1b0000000000 7:408bf20000000000 8:c077120000000000 9:c065f00000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 6 +base __name__=a,instance=i1,version=base ; 0:407a760000000000 1:407bd80000000000 2:407bd80000000000 3:40763c0000000000 4:c06bf40000000000 5:c087af0000000000 +base __name__=a,instance=i2 ; 1:c074680000000000 2:c07efa0000000000 3:406cac0000000000 4:406b9c0000000000 5:c085a30000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c07b960000000000 1:c070860000000000 2:c070860000000000 3:4076880000000000 4:c065000000000000 5:4071a80000000000 +base __name__=a,job=y,version=base,zone=z1 ; 1:c0690c0000000000 2:c0690c0000000000 3:c0690c0000000000 5:4070ae0000000000 +base __name__=a,job=y,zone=z1 ; 4:c0723c0000000000 5:4085e20000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 4:4101170000000000 5:41024f8000000000 +result __name__=a,job=y,k8s_cluster=c1,version=base,zone=z1 ; 5:4070ae0000000000 +result __name__=a,job=y,k8s_cluster=c1,zone=z1 ; 4:c0723c0000000000 5:4085e20000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 9 +base __name__=a,instance=i1 ; 0:c079de0000000000 1:c079de0000000000 2:c079de0000000000 4:4044e00000000000 5:4044e00000000000 6:4073a20000000000 7:c055b80000000000 8:c071460000000000 +base __name__=a,instance=i1,zone=z1 ; 0:c079fe0000000000 1:408e0e0000000000 2:408e0e0000000000 3:c041600000000000 4:c070f60000000000 5:c07cc40000000000 6:c05c080000000000 7:c08db00000000000 8:c089570000000000 +base __name__=a,instance=i2 ; 2:c06c9c0000000000 3:c06c9c0000000000 4:c06c9c0000000000 7:406df00000000000 8:c061b00000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1,zone=z1 ; 2:c0846d0000000000 3:c07ac80000000000 4:4087040000000000 5:c089000000000000 6:c08a530000000000 7:4084c70000000000 8:c03ee00000000000 +base __name__=a,job=y,k8s_cluster=c2,version=base ; 1:c07d720000000000 2:c07d720000000000 3:40757a0000000000 4:40757a0000000000 5:c07ebe0000000000 6:c07ebe0000000000 7:c066a00000000000 8:4055e80000000000 +base __name__=a,zone=z1 ; 0:406bd80000000000 1:406bd80000000000 2:c08f0a0000000000 3:407a900000000000 4:407a900000000000 5:407a900000000000 6:c06b180000000000 7:c088da0000000000 8:c08b610000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 0:4086b90000000000 1:c088f50000000000 2:c0897e0000000000 3:4076680000000000 4:408e0c0000000000 5:408e0c0000000000 6:408e0c0000000000 +base __name__=target_info,job=y,k8s_cluster=c1 ; 0:c0752a0000000000 1:c0752a0000000000 2:c0752a0000000000 5:407cfe0000000000 6:405a000000000000 7:405a000000000000 8:405a000000000000 +base __name__=target_info,job=y,k8s_cluster=c2 ; 4:c08e200000000000 5:c085c30000000000 6:c085c30000000000 7:c07e6e0000000000 8:c07e6e0000000000 +info __name__=target_info,job=y,k8s_cluster=c2 ; 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +error found duplicate series for info metric: existing {__name__="target_info", job="y", k8s_cluster="c2"} @ 150000, new {__name__="target_info", job="y", k8s_cluster="c1"} @ 150000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 1:c083120000000000 2:c08c200000000000 3:c07f260000000000 +base __name__=a,instance=i2,zone=z2 ; 1:c070e80000000000 2:c070e80000000000 3:c070f60000000000 +base __name__=a,job=x ; 1:4082eb0000000000 2:4082eb0000000000 3:4082eb0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 1:c083120000000000 2:c08c200000000000 3:c07f260000000000 +result __name__=a,instance=i2,zone=z2 ; 1:c070e80000000000 2:c070e80000000000 3:c070f60000000000 +result __name__=a,job=x ; 1:4082eb0000000000 2:4082eb0000000000 3:4082eb0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 2 +base __name__=a,instance=i2,job=y,zone=z1 ; 1:c08dcb0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,job=y,k8s_cluster=d1 ; +result __name__=a,instance=i2,job=y,zone=z1 ; 1:c08dcb0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 8 +base __name__=a,instance=i1,version=base ; 2:c0896a0000000000 3:c0896a0000000000 4:c0896a0000000000 6:c055400000000000 7:c061740000000000 +base __name__=a,instance=i2,job=x ; 0:4088390000000000 1:408a000000000000 2:c081bc0000000000 3:c08d200000000000 4:c08d200000000000 5:c0882d0000000000 6:408d280000000000 7:408d280000000000 +end +case version false __name__=~".+_info" +expr info({__name__=~"a|target_info"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 5 +base __name__=a ; 0:40798e0000000000 1:406c780000000000 2:40849b0000000000 3:407f520000000000 4:4080280000000000 +base __name__=a,instance=i1 ; 0:c063b40000000000 1:4085460000000000 2:c054f80000000000 3:406f700000000000 4:406f700000000000 +base __name__=a,instance=i2,job=y ; 1:408eac0000000000 2:408eac0000000000 3:4073da0000000000 4:4073da0000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:c07ff20000000000 2:4085180000000000 3:40854e0000000000 4:406e0c0000000000 +base __name__=target_info,k8s_cluster=c1 ; 0:c077520000000000 1:c077520000000000 2:c077520000000000 3:c0888f0000000000 4:4085e10000000000 +base __name__=target_info,k8s_cluster=c2 ; 0:4089c70000000000 1:c083320000000000 2:c08aca0000000000 3:c08aca0000000000 4:c08aca0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=build_info,job=x,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 +info __name__=build_info,instance=i1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 +info __name__=build_info,job=y,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 +result __name__=a,instance=i1,version=v2 ; 0:c063b40000000000 1:4085460000000000 2:c054f80000000000 3:406f700000000000 4:406f700000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 1:c07ff20000000000 2:4085180000000000 3:40854e0000000000 4:406e0c0000000000 +result __name__=target_info,k8s_cluster=c1 ; 0:c077520000000000 1:c077520000000000 2:c077520000000000 3:c0888f0000000000 4:4085e10000000000 +result __name__=target_info,k8s_cluster=c2 ; 0:4089c70000000000 1:c083320000000000 2:c08aca0000000000 3:c08aca0000000000 4:c08aca0000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 1:4084d10000000000 2:408d320000000000 3:c075380000000000 4:c08b6d0000000000 +base __name__=a,instance=i1,zone=z2 ; 1:c08d040000000000 2:c08d040000000000 3:c08d6a0000000000 4:c088f70000000000 +base __name__=a,instance=i2,job=x,version=base,zone=z2 ; 0:c07d140000000000 1:c08ca60000000000 2:c08ca60000000000 3:c080210000000000 4:c08ee80000000000 +base __name__=a,k8s_cluster=c2,zone=z1 ; 1:4086b40000000000 2:4071820000000000 3:4071820000000000 4:4082c60000000000 +base __name__=a,zone=z1 ; 0:4083290000000000 1:408b4b0000000000 2:405b900000000000 3:c055a00000000000 4:c055a00000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:406e840000000000 1:406e840000000000 2:406e840000000000 3:c074b20000000000 4:c089c80000000000 5:c087bf0000000000 6:c08a220000000000 7:c056600000000000 8:4083020000000000 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:4083c00000000000 1:4083c00000000000 2:407f120000000000 3:c07d020000000000 4:c07d020000000000 5:4071720000000000 6:408aac0000000000 7:405be80000000000 8:c053400000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:c032c00000000000 1:c07dec0000000000 2:c07dec0000000000 3:c07dec0000000000 4:4041f00000000000 5:407f460000000000 6:407f460000000000 7:c04ff00000000000 8:4083500000000000 +base __name__=a,instance=i2 ; 0:4085db0000000000 1:4065c80000000000 2:4065c80000000000 3:4065c80000000000 4:c08c9b0000000000 5:c08c9b0000000000 6:c067f00000000000 7:406f740000000000 8:406f740000000000 +base __name__=a,job=x ; 2:c081c00000000000 3:c081c00000000000 4:40857e0000000000 5:c088ec0000000000 6:c088ec0000000000 7:c085590000000000 8:c08d910000000000 +base __name__=a,zone=z2 ; 0:c08dc90000000000 1:c08dc90000000000 2:c08e120000000000 3:c08e120000000000 4:c08e120000000000 5:4072420000000000 6:4072420000000000 7:c088130000000000 8:c077f20000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 8:4105f90000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:406e840000000000 1:406e840000000000 2:406e840000000000 3:c074b20000000000 4:c089c80000000000 5:c087bf0000000000 6:c08a220000000000 7:c056600000000000 8:4083020000000000 +result __name__=a,instance=i1,job=x,zone=z1 ; 0:4083c00000000000 1:4083c00000000000 2:407f120000000000 3:c07d020000000000 4:c07d020000000000 5:4071720000000000 6:408aac0000000000 7:405be80000000000 8:c053400000000000 +result __name__=a,instance=i1,job=x,zone=z2 ; 0:c032c00000000000 1:c07dec0000000000 2:c07dec0000000000 3:c07dec0000000000 4:4041f00000000000 5:407f460000000000 6:407f460000000000 7:c04ff00000000000 8:4083500000000000 +result __name__=a,instance=i2 ; 0:4085db0000000000 1:4065c80000000000 2:4065c80000000000 3:4065c80000000000 4:c08c9b0000000000 5:c08c9b0000000000 6:c067f00000000000 7:406f740000000000 8:406f740000000000 +result __name__=a,job=x ; 2:c081c00000000000 3:c081c00000000000 4:40857e0000000000 5:c088ec0000000000 6:c088ec0000000000 7:c085590000000000 8:c08d910000000000 +result __name__=a,zone=z2 ; 0:c08dc90000000000 1:c08dc90000000000 2:c08e120000000000 3:c08e120000000000 4:c08e120000000000 5:4072420000000000 6:4072420000000000 7:c088130000000000 8:c077f20000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,version=base ; 0:c07cd60000000000 1:c07cd60000000000 2:4086a00000000000 +base __name__=a,zone=z1 ; 0:40865d0000000000 1:40865d0000000000 2:40865d0000000000 +info __name__=target_info,job=x,k8s_cluster=d1 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,job=y,k8s_cluster=d1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,instance=i1,version=base ; 0:c07cd60000000000 1:c07cd60000000000 2:4086a00000000000 +result __name__=a,zone=z1 ; 0:40865d0000000000 1:40865d0000000000 2:40865d0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 4 +base __name__=a,instance=i2,job=x ; 0:c082910000000000 1:c08cbf0000000000 2:c08b7d0000000000 3:c07d4e0000000000 +result __name__=a,instance=i2,job=x ; 0:c082910000000000 1:c08cbf0000000000 2:c08b7d0000000000 3:c07d4e0000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y ; 1:c0813b0000000000 2:c0813b0000000000 +result __name__=a,instance=i1,job=y ; 1:c0813b0000000000 2:c0813b0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 1 +base __name__=a,instance=i1 ; 0:c07a500000000000 +base __name__=a,instance=i2,version=base ; 0:c086720000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c08d110000000000 +base __name__=a,zone=z2 ; 0:408f0f0000000000 +info __name__=target_info,job=y,k8s_cluster=d1,version=v1 ; +info __name__=build_info,instance=i2,job=y,version=v2 ; 0:40f86a0000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 0:40f86a0000000000 +info __name__=build_info,instance=i2,job=y,version=v2,zone=z2 ; 0:40f86a0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 7 +base __name__=a,instance=i1,zone=z2 ; 1:4073ee0000000000 2:c050c80000000000 3:408ac60000000000 4:408ac60000000000 5:c08e200000000000 6:c08e200000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:c077ee0000000000 1:40824c0000000000 2:c0818c0000000000 3:c0818c0000000000 4:c0818c0000000000 +base __name__=a,instance=i2,version=base,zone=z2 ; 0:c0828d0000000000 1:4078920000000000 2:c072180000000000 3:40882e0000000000 4:40882e0000000000 5:4089160000000000 6:4089160000000000 +base __name__=a,k8s_cluster=c2 ; 0:c0840d0000000000 1:405bf80000000000 2:c057400000000000 3:c089520000000000 4:c089520000000000 5:c070200000000000 6:c085380000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i1,zone=z2 ; 1:4073ee0000000000 2:c050c80000000000 3:408ac60000000000 4:408ac60000000000 5:c08e200000000000 6:c08e200000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:c077ee0000000000 1:40824c0000000000 2:c0818c0000000000 3:c0818c0000000000 4:c0818c0000000000 +result __name__=a,instance=i2,version=base,zone=z2 ; 0:c0828d0000000000 1:4078920000000000 2:c072180000000000 3:40882e0000000000 4:40882e0000000000 5:4089160000000000 6:4089160000000000 +result __name__=a,k8s_cluster=c2 ; 0:c0840d0000000000 1:405bf80000000000 2:c057400000000000 3:c089520000000000 4:c089520000000000 5:c070200000000000 6:c085380000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 6 +base __name__=a ; 0:40720e0000000000 1:40720e0000000000 2:4078b60000000000 3:40693c0000000000 4:c08e1c0000000000 5:c08e1c0000000000 +base __name__=a,instance=i1 ; 0:c08e630000000000 1:c088fc0000000000 2:c06a880000000000 3:c075100000000000 4:c075100000000000 5:c08a870000000000 +base __name__=a,instance=i1,zone=z1 ; 0:c07eaa0000000000 1:c046400000000000 2:407c280000000000 3:407c280000000000 4:408c470000000000 5:c071660000000000 +base __name__=a,instance=i2,version=base,zone=z1 ; 1:4044300000000000 2:4044300000000000 3:4067f80000000000 4:4067f80000000000 5:c015000000000000 +base __name__=a,job=x ; 0:c08be50000000000 1:408c0d0000000000 2:408c0d0000000000 3:408c0d0000000000 4:4055f80000000000 5:408ba00000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:4101170000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=x,version=base ; 0:c07fb00000000000 1:c07fb00000000000 2:4082b10000000000 3:4082b10000000000 4:4079d60000000000 5:4073700000000000 6:c064d80000000000 7:c081a60000000000 +base __name__=a,instance=i1,job=y ; 0:c086b50000000000 1:c086b50000000000 2:405c980000000000 3:c034600000000000 4:c07c100000000000 5:c059680000000000 6:407ffa0000000000 7:c07a5e0000000000 +base __name__=a,instance=i2,job=y ; 0:c075ba0000000000 1:c083b40000000000 2:c08be90000000000 3:c08be90000000000 4:c080000000000000 5:c080000000000000 6:408a4e0000000000 7:c08d7b0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:c088cc0000000000 1:c088cc0000000000 2:c088cc0000000000 3:c061440000000000 4:c060580000000000 5:407cb00000000000 6:408dc80000000000 7:408dc80000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 0:40841f0000000000 1:408c350000000000 2:408c350000000000 3:c0722c0000000000 4:c08b1c0000000000 5:4075aa0000000000 6:4075aa0000000000 7:4075aa0000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 +result __name__=a,instance=i1,job=x,version=base ; 0:c07fb00000000000 1:c07fb00000000000 2:4082b10000000000 3:4082b10000000000 4:4079d60000000000 5:4073700000000000 6:c064d80000000000 7:c081a60000000000 +result __name__=a,instance=i1,job=y ; 0:c086b50000000000 1:c086b50000000000 2:405c980000000000 3:c034600000000000 4:c07c100000000000 5:c059680000000000 6:407ffa0000000000 7:c07a5e0000000000 +result __name__=a,instance=i2,job=y ; 0:c075ba0000000000 1:c083b40000000000 2:c08be90000000000 3:c08be90000000000 4:c080000000000000 5:c080000000000000 6:408a4e0000000000 7:c08d7b0000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 0:c088cc0000000000 1:c088cc0000000000 2:c088cc0000000000 3:c061440000000000 4:c060580000000000 5:407cb00000000000 6:408dc80000000000 7:408dc80000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 0:40841f0000000000 1:408c350000000000 2:408c350000000000 3:c0722c0000000000 4:c08b1c0000000000 5:4075aa0000000000 6:4075aa0000000000 7:4075aa0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=y ; 0:c080fa0000000000 1:4089da0000000000 2:c0889f0000000000 3:c062180000000000 4:c07d680000000000 5:408c900000000000 6:4089350000000000 7:c08b080000000000 8:c07afa0000000000 9:c07afa0000000000 +info __name__=build_info,instance=i2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 9:4107318000000000 +result __name__=a,instance=i1,job=y ; 0:c080fa0000000000 4:c07d680000000000 5:408c900000000000 6:4089350000000000 7:c08b080000000000 8:c07afa0000000000 +result __name__=a,instance=i1,job=y,version=v2 ; 1:4089da0000000000 2:c0889f0000000000 3:c062180000000000 9:c07afa0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:408b360000000000 1:404cb00000000000 2:406a500000000000 3:c050a00000000000 +base __name__=a,instance=i1,job=x ; 0:c082df0000000000 1:c083640000000000 2:c083640000000000 3:c071220000000000 +base __name__=a,instance=i1,job=y ; 0:4084cc0000000000 1:403b800000000000 2:403b800000000000 3:4081240000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 3:40ffbd0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 3:40ffbd0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 +result __name__=a,instance=i1 ; 0:408b360000000000 1:404cb00000000000 2:406a500000000000 3:c050a00000000000 +result __name__=a,instance=i1,job=x ; 0:c082df0000000000 1:c083640000000000 2:c083640000000000 3:c071220000000000 +result __name__=a,instance=i1,job=y ; 0:4084cc0000000000 1:403b800000000000 2:403b800000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 3:4081240000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x,version=base,zone=z1 ; 0:c072940000000000 1:c072940000000000 2:408c440000000000 3:c06ab80000000000 4:c089f50000000000 5:4070300000000000 +base __name__=a,instance=i2,job=y ; 0:40716a0000000000 1:c08a690000000000 2:c08a690000000000 3:c07adc0000000000 4:c029c00000000000 5:4061a80000000000 +base __name__=a,job=x ; 0:40865d0000000000 1:40865d0000000000 2:c06cc40000000000 3:40854e0000000000 4:c083fa0000000000 5:c075d80000000000 +base __name__=a,job=y ; 2:4082b20000000000 3:4082b20000000000 4:4082b20000000000 5:408b0c0000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 0:c05ea80000000000 1:40847e0000000000 2:4072d40000000000 3:c073220000000000 4:404a000000000000 5:c088630000000000 +base __name__=a,k8s_cluster=c2,zone=z1 ; 1:4070680000000000 2:40878c0000000000 3:408d230000000000 4:c0783e0000000000 5:c037400000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2,version=base,zone=z1 ; 1:c072940000000000 2:408c440000000000 3:c06ab80000000000 +result __name__=a,instance=i1,job=x,version=base,zone=z1 ; 0:c072940000000000 4:c089f50000000000 5:4070300000000000 +result __name__=a,instance=i2,job=y ; 0:40716a0000000000 1:c08a690000000000 2:c08a690000000000 3:c07adc0000000000 4:c029c00000000000 5:4061a80000000000 +result __name__=a,job=x ; 0:40865d0000000000 1:40865d0000000000 2:c06cc40000000000 3:40854e0000000000 4:c083fa0000000000 5:c075d80000000000 +result __name__=a,job=y ; 2:4082b20000000000 3:4082b20000000000 4:4082b20000000000 5:408b0c0000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 0:c05ea80000000000 1:40847e0000000000 2:4072d40000000000 3:c073220000000000 4:404a000000000000 5:c088630000000000 +result __name__=a,k8s_cluster=c2,zone=z1 ; 1:4070680000000000 2:40878c0000000000 3:408d230000000000 4:c0783e0000000000 5:c037400000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 7 +base __name__=a,instance=i2 ; 0:408a8a0000000000 1:4079cc0000000000 2:4079cc0000000000 3:4079cc0000000000 4:c05d080000000000 5:408c370000000000 6:c084120000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 0:4064400000000000 1:407b320000000000 2:c08c7c0000000000 3:c08c7c0000000000 4:c08c7c0000000000 5:c075920000000000 6:c0799c0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 +result __name__=a,instance=i2,k8s_cluster=d1,version=v2 ; 0:408a8a0000000000 1:4079cc0000000000 2:4079cc0000000000 3:4079cc0000000000 4:c05d080000000000 5:408c370000000000 6:c084120000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 0:4064400000000000 1:407b320000000000 2:c08c7c0000000000 3:c08c7c0000000000 4:c08c7c0000000000 5:c075920000000000 6:c0799c0000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 6 +base __name__=a,instance=i1 ; 0:4082e10000000000 1:4088df0000000000 2:4083bd0000000000 3:4083bd0000000000 4:c0869a0000000000 5:c05d980000000000 +base __name__=a,job=x,version=base ; 0:c080e10000000000 1:c080e10000000000 2:408ea60000000000 3:4065d40000000000 4:c08f360000000000 5:c082c20000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 0:c076400000000000 1:c076400000000000 2:c076400000000000 5:c053f80000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:c037400000000000 1:c037400000000000 2:4060840000000000 3:4071760000000000 4:4071760000000000 5:4037800000000000 +base __name__=target_info,k8s_cluster=c1 ; 1:4076e20000000000 2:4076e20000000000 3:404e400000000000 4:c07cb80000000000 5:407cac0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 +info __name__=target_info,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 0:c076400000000000 1:c076400000000000 2:c076400000000000 5:c053f80000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:c037400000000000 1:c037400000000000 2:4060840000000000 3:4071760000000000 4:4071760000000000 5:4037800000000000 +result __name__=target_info,k8s_cluster=c1 ; 1:4076e20000000000 2:4076e20000000000 3:404e400000000000 4:c07cb80000000000 5:407cac0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 9 +base __name__=a,instance=i1,version=base ; 0:c08c6c0000000000 1:c08c6c0000000000 2:c077e60000000000 3:c077e60000000000 4:4075280000000000 5:4075280000000000 6:c08b4e0000000000 7:4049100000000000 8:c06d300000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 7:4104c08000000000 8:4105f90000000000 +info __name__=build_info,instance=i2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 8 +base __name__=a,instance=i1,k8s_cluster=c1,version=base,zone=z2 ; 0:4048f00000000000 1:4048f00000000000 2:4078840000000000 3:4068dc0000000000 4:405aa80000000000 5:405aa80000000000 6:c068180000000000 7:c059400000000000 +base __name__=a,instance=i1,zone=z2 ; 2:4074600000000000 3:4074600000000000 4:408e740000000000 5:4079020000000000 6:407f880000000000 7:408e1b0000000000 +base __name__=a,instance=i2,k8s_cluster=c1,zone=z2 ; 0:c06bd80000000000 1:c039600000000000 2:4072960000000000 3:4072960000000000 4:c084420000000000 5:c084420000000000 6:c08ca70000000000 7:4082390000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a ; 0:c07c300000000000 1:c08cfa0000000000 +base __name__=a,instance=i2,job=x,zone=z2 ; 0:4088520000000000 1:4088520000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:407dd60000000000 1:c0848b0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 1:4072ee0000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 1:4073d80000000000 +base __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 0:407cee0000000000 1:407cee0000000000 +base __name__=target_info,job=y,k8s_cluster=d1 ; 0:c07a040000000000 1:c07a040000000000 +info __name__=build_info,job=y,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=build_info,instance=i2,version=v1 ; +info __name__=build_info,instance=i1,job=y,version=v2 ; +result __name__=a ; 0:c07c300000000000 1:c08cfa0000000000 +result __name__=a,instance=i2,job=x,zone=z2 ; 0:4088520000000000 1:4088520000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:407dd60000000000 1:c0848b0000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 1:4072ee0000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 1:4073d80000000000 +result __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 0:407cee0000000000 1:407cee0000000000 +result __name__=target_info,job=y,k8s_cluster=d1,version=v1 ; 0:c07a040000000000 1:c07a040000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:c07f240000000000 1:c07f240000000000 2:c07f240000000000 3:4084f60000000000 +base __name__=a,instance=i2,job=y,version=base ; 0:407cac0000000000 1:c061c40000000000 2:c061c40000000000 3:408cc00000000000 +base __name__=a,job=x,zone=z1 ; 1:c0898f0000000000 2:c0898f0000000000 3:40884d0000000000 +base __name__=a,job=y,k8s_cluster=c2,version=base ; 0:408be60000000000 1:408be60000000000 2:c085400000000000 3:4086f40000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 1:c079f20000000000 2:c079f20000000000 3:c079f20000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 2:4084a40000000000 3:4084a40000000000 +base __name__=target_info,instance=i2,k8s_cluster=c2 ; 0:c08d070000000000 1:c08d070000000000 2:c07b140000000000 3:c07b140000000000 +base __name__=target_info,job=y,k8s_cluster=d1 ; 0:4083fe0000000000 1:4083fe0000000000 2:4083fe0000000000 3:c080d10000000000 +result __name__=a,instance=i1 ; 0:c07f240000000000 1:c07f240000000000 2:c07f240000000000 3:4084f60000000000 +result __name__=a,instance=i2,job=y,version=base ; 0:407cac0000000000 1:c061c40000000000 2:c061c40000000000 3:408cc00000000000 +result __name__=a,job=x,zone=z1 ; 1:c0898f0000000000 2:c0898f0000000000 3:40884d0000000000 +result __name__=a,job=y,k8s_cluster=c2,version=base ; 0:408be60000000000 1:408be60000000000 2:c085400000000000 3:4086f40000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 1:c079f20000000000 2:c079f20000000000 3:c079f20000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 2:4084a40000000000 3:4084a40000000000 +result __name__=target_info,instance=i2,k8s_cluster=c2 ; 0:c08d070000000000 1:c08d070000000000 2:c07b140000000000 3:c07b140000000000 +result __name__=target_info,job=y,k8s_cluster=d1 ; 0:4083fe0000000000 1:4083fe0000000000 2:4083fe0000000000 3:c080d10000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=y,version=base ; 0:408b520000000000 1:4066380000000000 2:c081160000000000 3:c07d060000000000 4:c08e230000000000 5:c081070000000000 6:4074480000000000 +base __name__=a,instance=i2,job=x ; 0:40743c0000000000 1:407be40000000000 2:c085cc0000000000 3:c089330000000000 4:c070d00000000000 5:c070d00000000000 6:c07bd00000000000 +base __name__=a,instance=i2,job=y ; 1:c08c8c0000000000 2:c080240000000000 3:c080240000000000 4:c0805d0000000000 5:4072a80000000000 6:408b4a0000000000 +base __name__=a,job=y ; 0:4074220000000000 1:c086c10000000000 2:408cfc0000000000 3:408cfc0000000000 4:c08b070000000000 5:c071620000000000 6:406bc80000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:408b520000000000 1:4066380000000000 2:c081160000000000 3:c07d060000000000 4:c08e230000000000 5:c081070000000000 6:4074480000000000 +result __name__=a,instance=i2,job=x ; 0:40743c0000000000 1:407be40000000000 2:c085cc0000000000 3:c089330000000000 4:c070d00000000000 5:c070d00000000000 6:c07bd00000000000 +result __name__=a,instance=i2,job=y ; 1:c08c8c0000000000 2:c080240000000000 3:c080240000000000 4:c0805d0000000000 5:4072a80000000000 6:408b4a0000000000 +result __name__=a,job=y ; 0:4074220000000000 1:c086c10000000000 2:408cfc0000000000 3:408cfc0000000000 4:c08b070000000000 5:c071620000000000 6:406bc80000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:407bba0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:4060ec0000000000 +base __name__=a,job=y ; 0:408ec70000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 0:c052e80000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:c07a620000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z2 ; 0:4060ec0000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 0:c052e80000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:c07a620000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 2 +base __name__=a ; 1:c05c580000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:c082020000000000 1:c082020000000000 +base __name__=a,instance=i2 ; 0:4041b00000000000 1:c00d000000000000 +base __name__=a,job=y,zone=z2 ; 0:c0708e0000000000 1:406bd00000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v1 ; +result __name__=a ; 1:c05c580000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 0:c082020000000000 1:c082020000000000 +result __name__=a,instance=i2 ; 0:4041b00000000000 1:c00d000000000000 +result __name__=a,job=y,zone=z2 ; 0:c0708e0000000000 1:406bd00000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a ; 1:c078be0000000000 2:c078be0000000000 3:c078be0000000000 6:4077f80000000000 7:4077f80000000000 8:408aa50000000000 9:408aa50000000000 +base __name__=a,instance=i2 ; 0:c070a20000000000 1:4072fa0000000000 2:c088220000000000 3:c088220000000000 4:c043200000000000 5:c08cc20000000000 6:404d700000000000 7:c0862e0000000000 8:c070120000000000 9:40894d0000000000 +base __name__=a,instance=i2,job=y ; 0:4076a60000000000 1:4076a60000000000 2:c085930000000000 3:c085930000000000 4:c081060000000000 5:c082410000000000 6:40810b0000000000 7:40810b0000000000 8:c06ecc0000000000 9:c06ecc0000000000 +base __name__=a,job=y ; 0:c080aa0000000000 1:4078040000000000 2:4078040000000000 3:407d160000000000 4:c077580000000000 5:4084ac0000000000 6:405c380000000000 7:4077a60000000000 8:4077a60000000000 9:4077a60000000000 +result __name__=a ; 1:c078be0000000000 2:c078be0000000000 3:c078be0000000000 6:4077f80000000000 7:4077f80000000000 8:408aa50000000000 9:408aa50000000000 +result __name__=a,instance=i2 ; 0:c070a20000000000 1:4072fa0000000000 2:c088220000000000 3:c088220000000000 4:c043200000000000 5:c08cc20000000000 6:404d700000000000 7:c0862e0000000000 8:c070120000000000 9:40894d0000000000 +result __name__=a,instance=i2,job=y ; 0:4076a60000000000 1:4076a60000000000 2:c085930000000000 3:c085930000000000 4:c081060000000000 5:c082410000000000 6:40810b0000000000 7:40810b0000000000 8:c06ecc0000000000 9:c06ecc0000000000 +result __name__=a,job=y ; 0:c080aa0000000000 1:4078040000000000 2:4078040000000000 3:407d160000000000 4:c077580000000000 5:4084ac0000000000 6:405c380000000000 7:4077a60000000000 8:4077a60000000000 9:4077a60000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 10 +base __name__=a,job=x,k8s_cluster=c2,zone=z1 ; 0:c077b80000000000 1:4079c20000000000 2:407d7c0000000000 3:407d7c0000000000 4:407d7c0000000000 5:4083550000000000 6:c082940000000000 7:c082940000000000 8:40785e0000000000 9:c0739e0000000000 +result __name__=a,job=x,k8s_cluster=c2,zone=z1 ; 0:c077b80000000000 1:4079c20000000000 2:407d7c0000000000 3:407d7c0000000000 4:407d7c0000000000 5:4083550000000000 6:c082940000000000 7:c082940000000000 8:40785e0000000000 9:c0739e0000000000 +end +case k8s_cluster true - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 9 +base __name__=a,instance=i1 ; 0:c085bb0000000000 1:407c1c0000000000 2:408b880000000000 3:c07f1c0000000000 4:c07f1c0000000000 5:406e780000000000 6:406e780000000000 7:c077200000000000 8:c089d90000000000 +base __name__=a,instance=i1,job=x ; 0:c088f10000000000 1:c088f10000000000 2:c072c40000000000 3:c07a540000000000 4:408c460000000000 5:c08dd50000000000 6:c038e00000000000 7:40679c0000000000 8:c074960000000000 +base __name__=a,instance=i1,job=y ; 1:407dc60000000000 2:4048a00000000000 3:4048a00000000000 4:c086880000000000 5:c086880000000000 6:c0745c0000000000 7:c06edc0000000000 8:4068280000000000 +base __name__=a,instance=i2,job=y ; 0:40629c0000000000 1:4081100000000000 2:c08b370000000000 3:c088a20000000000 4:c088a20000000000 5:4078f00000000000 6:c08cf60000000000 7:c08cf60000000000 8:c084f80000000000 +base __name__=a,job=x ; 0:407af80000000000 1:c0613c0000000000 2:4088d70000000000 3:c075620000000000 4:408e490000000000 5:c086440000000000 6:c067a40000000000 7:40755c0000000000 8:c0827e0000000000 +base __name__=a,job=x,version=base ; 1:408c3a0000000000 2:4078a80000000000 3:4078a80000000000 4:c070460000000000 5:40810d0000000000 6:40832e0000000000 7:40868a0000000000 8:40868a0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 4:402f000000000000 5:402f000000000000 6:406c180000000000 7:406c180000000000 8:406c180000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:4076420000000000 1:4076420000000000 2:4065f80000000000 3:405d400000000000 4:405d400000000000 5:4063f00000000000 6:4063f00000000000 7:4063f00000000000 8:c08e160000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 0:c058700000000000 1:c058700000000000 2:c058700000000000 7:40822b0000000000 8:404fd00000000000 +result __name__=a,instance=i1 ; 0:c085bb0000000000 1:407c1c0000000000 2:408b880000000000 3:c07f1c0000000000 4:c07f1c0000000000 5:406e780000000000 6:406e780000000000 7:c077200000000000 8:c089d90000000000 +result __name__=a,instance=i1,job=x ; 0:c088f10000000000 1:c088f10000000000 2:c072c40000000000 3:c07a540000000000 4:408c460000000000 5:c08dd50000000000 6:c038e00000000000 7:40679c0000000000 8:c074960000000000 +result __name__=a,instance=i1,job=y ; 1:407dc60000000000 2:4048a00000000000 3:4048a00000000000 4:c086880000000000 5:c086880000000000 6:c0745c0000000000 7:c06edc0000000000 8:4068280000000000 +result __name__=a,instance=i2,job=y ; 0:40629c0000000000 1:4081100000000000 2:c08b370000000000 3:c088a20000000000 4:c088a20000000000 5:4078f00000000000 6:c08cf60000000000 7:c08cf60000000000 8:c084f80000000000 +result __name__=a,job=x ; 0:407af80000000000 1:c0613c0000000000 2:4088d70000000000 3:c075620000000000 4:408e490000000000 5:c086440000000000 6:c067a40000000000 7:40755c0000000000 8:c0827e0000000000 +result __name__=a,job=x,version=base ; 1:408c3a0000000000 2:4078a80000000000 3:4078a80000000000 4:c070460000000000 5:40810d0000000000 6:40832e0000000000 7:40868a0000000000 8:40868a0000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 4:402f000000000000 5:402f000000000000 6:406c180000000000 7:406c180000000000 8:406c180000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:4076420000000000 1:4076420000000000 2:4065f80000000000 3:405d400000000000 4:405d400000000000 5:4063f00000000000 6:4063f00000000000 7:4063f00000000000 8:c08e160000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v2 ; 0:c058700000000000 1:c058700000000000 2:c058700000000000 7:40822b0000000000 8:404fd00000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 9 +base __name__=a ; 0:c07c5e0000000000 1:c08c330000000000 2:c04a400000000000 3:4083770000000000 4:407f280000000000 5:4089d90000000000 6:4082f20000000000 7:c069240000000000 8:407d000000000000 +base __name__=a,instance=i2,job=x ; 1:c0792c0000000000 2:c0867c0000000000 3:c0867c0000000000 4:c0867c0000000000 5:c08aee0000000000 6:40889d0000000000 7:c08e670000000000 8:c08e670000000000 +base __name__=a,instance=i2,zone=z1 ; 0:c044b00000000000 1:4074c80000000000 2:4074c80000000000 3:c07d8e0000000000 4:406a200000000000 5:406a200000000000 6:406a200000000000 7:c08d340000000000 8:c083ab0000000000 +base __name__=a,instance=i2,zone=z2 ; 1:c08e730000000000 2:c074c00000000000 3:c080480000000000 4:c080480000000000 5:c08f2e0000000000 6:405b300000000000 7:405b300000000000 8:c083fb0000000000 +base __name__=a,job=x,zone=z2 ; 1:c0724a0000000000 2:c0724a0000000000 3:40730c0000000000 4:40730c0000000000 5:c070960000000000 6:4080030000000000 7:c087730000000000 8:4081040000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 8:4105f90000000000 +result __name__=a ; 0:c07c5e0000000000 1:c08c330000000000 2:c04a400000000000 3:4083770000000000 4:407f280000000000 5:4089d90000000000 6:4082f20000000000 7:c069240000000000 8:407d000000000000 +result __name__=a,instance=i2,job=x ; 5:c08aee0000000000 6:40889d0000000000 7:c08e670000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 1:c0792c0000000000 2:c0867c0000000000 3:c0867c0000000000 4:c0867c0000000000 8:c08e670000000000 +result __name__=a,instance=i2,zone=z1 ; 0:c044b00000000000 1:4074c80000000000 2:4074c80000000000 3:c07d8e0000000000 4:406a200000000000 5:406a200000000000 6:406a200000000000 7:c08d340000000000 8:c083ab0000000000 +result __name__=a,instance=i2,zone=z2 ; 1:c08e730000000000 2:c074c00000000000 3:c080480000000000 4:c080480000000000 5:c08f2e0000000000 6:405b300000000000 7:405b300000000000 8:c083fb0000000000 +result __name__=a,job=x,zone=z2 ; 1:c0724a0000000000 2:c0724a0000000000 3:40730c0000000000 4:40730c0000000000 5:c070960000000000 6:4080030000000000 7:c087730000000000 8:4081040000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:40891e0000000000 +base __name__=a,instance=i1,job=y,version=base,zone=z1 ; 0:c0716c0000000000 +base __name__=a,k8s_cluster=c1 ; 0:c039000000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 0:40891e0000000000 +result __name__=a,instance=i1,job=y,version=base,zone=z1 ; 0:c0716c0000000000 +result __name__=a,k8s_cluster=c1 ; 0:c039000000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 9 +base __name__=a,instance=i1,k8s_cluster=c2 ; 0:c075720000000000 1:4087990000000000 2:4087990000000000 3:4087990000000000 5:406e540000000000 6:c023800000000000 7:408efe0000000000 8:408efe0000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1,zone=z1 ; 0:4033a00000000000 1:c0882b0000000000 2:c0882b0000000000 3:c06b4c0000000000 4:403c800000000000 5:4087bd0000000000 6:c08cdb0000000000 7:402d400000000000 8:c06bf40000000000 +base __name__=a,instance=i2,k8s_cluster=c1,zone=z2 ; 0:40895e0000000000 1:c084880000000000 2:4072a20000000000 3:c088c50000000000 4:408e800000000000 5:4084140000000000 6:40820a0000000000 7:c070ec0000000000 8:c070ec0000000000 +base __name__=a,k8s_cluster=c2 ; 3:4079920000000000 4:4058400000000000 5:4058400000000000 6:4058400000000000 8:c0828b0000000000 +base __name__=a,zone=z2 ; 1:408cc80000000000 2:c080f70000000000 3:c07d760000000000 4:c0662c0000000000 5:c07c220000000000 6:c0836b0000000000 7:c084670000000000 8:c084670000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1,zone=z1 ; 0:4033a00000000000 1:c0882b0000000000 2:c0882b0000000000 3:c06b4c0000000000 5:4087bd0000000000 6:c08cdb0000000000 7:402d400000000000 8:c06bf40000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=y ; 0:407ea00000000000 1:4076760000000000 2:40795a0000000000 3:40872c0000000000 4:c083e10000000000 5:408e000000000000 6:4079ac0000000000 7:4074260000000000 8:4074260000000000 9:c069b00000000000 +base __name__=a,instance=i1,zone=z2 ; 0:c07a7c0000000000 1:c075bc0000000000 2:c081300000000000 3:c01e000000000000 4:407b7e0000000000 5:407b7e0000000000 6:4072fa0000000000 7:4055000000000000 8:c07f2c0000000000 9:408ec20000000000 +base __name__=a,job=x ; 2:407cee0000000000 3:c050100000000000 4:c073ec0000000000 5:c073ec0000000000 6:4056700000000000 7:408d6c0000000000 8:408ca30000000000 9:408ca30000000000 +base __name__=a,job=x,zone=z2 ; 0:c07e820000000000 1:c08a6a0000000000 2:408d890000000000 3:c089050000000000 4:408c9e0000000000 5:c088060000000000 6:c088060000000000 7:c0702e0000000000 8:c06a580000000000 9:c077560000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a ; 1:4043c00000000000 2:4054600000000000 3:408c630000000000 4:408c630000000000 5:c08e760000000000 6:c049c00000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 1:4075420000000000 2:40832f0000000000 3:4088950000000000 4:c07d120000000000 5:c07d120000000000 6:c088220000000000 +base __name__=a,instance=i2,k8s_cluster=c2,version=base,zone=z1 ; 0:4023400000000000 1:4023400000000000 2:c07b160000000000 3:c082eb0000000000 4:c074760000000000 5:407e3c0000000000 6:407e3c0000000000 +base __name__=a,job=y,zone=z2 ; 0:c08d420000000000 1:c07ffe0000000000 2:c035c00000000000 3:c035c00000000000 4:c079980000000000 5:c079980000000000 6:c081850000000000 +base __name__=a,zone=z1 ; 0:c08b690000000000 1:4086ad0000000000 2:4086ad0000000000 3:4086ad0000000000 5:c082610000000000 6:c082610000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z1 ; 1:4075420000000000 2:40832f0000000000 3:4088950000000000 4:c07d120000000000 5:c07d120000000000 6:c088220000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 7 +base __name__=a,instance=i1,zone=z2 ; 0:c08efc0000000000 1:4083b70000000000 2:405f880000000000 3:c08e940000000000 4:4072be0000000000 5:c06cd00000000000 6:c06cd00000000000 +base __name__=a,instance=i2 ; 0:c07cca0000000000 1:406b340000000000 2:405b380000000000 3:c0673c0000000000 4:bfec000000000000 5:bfec000000000000 6:bfec000000000000 +base __name__=a,job=y ; 0:c080ef0000000000 1:4055e80000000000 2:c04d400000000000 3:407bd40000000000 4:c08a7e0000000000 5:c077f20000000000 6:c077f20000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 4:4101170000000000 5:4101170000000000 6:4101170000000000 +result __name__=a,instance=i2,k8s_cluster=c1 ; 0:c07cca0000000000 1:406b340000000000 2:405b380000000000 3:c0673c0000000000 4:bfec000000000000 5:bfec000000000000 +result __name__=a,job=y,k8s_cluster=c1 ; 1:4055e80000000000 2:c04d400000000000 3:407bd40000000000 4:c08a7e0000000000 6:c077f20000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=y ; 0:4088000000000000 1:408db80000000000 2:408d3e0000000000 3:c08dcb0000000000 4:40874f0000000000 5:c08d330000000000 6:c08eea0000000000 7:c08db80000000000 8:c07f660000000000 +base __name__=a,job=x,zone=z1 ; 1:c069a80000000000 2:c069a80000000000 3:4047a00000000000 4:4047a00000000000 5:4087cb0000000000 6:4067140000000000 7:c035800000000000 8:406ee40000000000 +base __name__=a,job=y ; 1:40711a0000000000 2:4079d60000000000 3:4079d60000000000 4:c059e00000000000 5:c059e00000000000 6:4064780000000000 7:408e920000000000 8:40777e0000000000 +info __name__=build_info,instance=i2,job=y,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a,instance=i2,job=y ; 8:c07f660000000000 +result __name__=a,instance=i2,job=y,version=v2 ; 0:4088000000000000 1:408db80000000000 2:408d3e0000000000 3:c08dcb0000000000 4:40874f0000000000 5:c08d330000000000 6:c08eea0000000000 7:c08db80000000000 +result __name__=a,job=x,zone=z1 ; 1:c069a80000000000 2:c069a80000000000 3:4047a00000000000 4:4047a00000000000 5:4087cb0000000000 6:4067140000000000 7:c035800000000000 8:406ee40000000000 +result __name__=a,job=y ; 1:40711a0000000000 2:4079d60000000000 3:4079d60000000000 4:c059e00000000000 5:c059e00000000000 6:4064780000000000 7:408e920000000000 8:40777e0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 5 +base __name__=a,version=base ; 2:c08df50000000000 3:c08dd70000000000 4:4085be0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i1,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +result __name__=a,version=base ; 2:c08df50000000000 3:c08dd70000000000 4:4085be0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 7 +base __name__=a,instance=i1,zone=z2 ; 0:408f380000000000 1:4073680000000000 2:4073680000000000 3:c072220000000000 4:c08cdc0000000000 5:c08cdc0000000000 6:c08cdc0000000000 +base __name__=a,instance=i2,job=x,version=base,zone=z1 ; 0:c05e400000000000 1:c07c320000000000 2:4061840000000000 3:c08ace0000000000 4:c082380000000000 5:40696c0000000000 6:c082bf0000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 2:c073200000000000 3:4046700000000000 4:4046700000000000 5:c07fd40000000000 6:c0831a0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:406bbc0000000000 1:406bbc0000000000 2:4073460000000000 3:c083080000000000 4:c088990000000000 5:408b8a0000000000 6:408b8a0000000000 +base __name__=a,job=x ; 0:c074f80000000000 1:c03a400000000000 2:c03a400000000000 3:c03a400000000000 4:c073160000000000 5:4073a40000000000 6:c087ef0000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:c0882c0000000000 1:407e480000000000 2:407b920000000000 3:c081340000000000 4:c042500000000000 5:c042500000000000 6:408bd80000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:41024f8000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i1,zone=z2 ; 0:408f380000000000 1:4073680000000000 2:4073680000000000 3:c072220000000000 4:c08cdc0000000000 5:c08cdc0000000000 6:c08cdc0000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1,version=base,zone=z1 ; 0:c05e400000000000 1:c07c320000000000 2:4061840000000000 3:c08ace0000000000 4:c082380000000000 5:40696c0000000000 6:c082bf0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,zone=z2 ; 2:c073200000000000 3:4046700000000000 4:4046700000000000 5:c07fd40000000000 6:c0831a0000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 0:406bbc0000000000 1:406bbc0000000000 2:4073460000000000 3:c083080000000000 4:c088990000000000 5:408b8a0000000000 6:408b8a0000000000 +result __name__=a,job=x ; 0:c074f80000000000 1:c03a400000000000 2:c03a400000000000 3:c03a400000000000 4:c073160000000000 5:4073a40000000000 6:c087ef0000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 0:c0882c0000000000 1:407e480000000000 2:407b920000000000 3:c081340000000000 4:c042500000000000 5:c042500000000000 6:408bd80000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 1 +base __name__=a ; 0:c087880000000000 +base __name__=a,instance=i1,job=x,version=base ; 0:408b010000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v1 ; 0:c079e00000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 +result __name__=a ; 0:c087880000000000 +result __name__=a,instance=i1,job=x,version=base ; 0:408b010000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v1 ; 0:c079e00000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:408d900000000000 1:c085d10000000000 2:c085c80000000000 3:c085c80000000000 4:40701c0000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 0:408f370000000000 1:c0854e0000000000 2:c0854e0000000000 3:c0854e0000000000 4:40853a0000000000 +result __name__=a,instance=i1,job=y,zone=z2 ; 0:408d900000000000 1:c085d10000000000 2:c085c80000000000 3:c085c80000000000 4:40701c0000000000 +result __name__=a,job=x,k8s_cluster=c1 ; 0:408f370000000000 1:c0854e0000000000 2:c0854e0000000000 3:c0854e0000000000 4:40853a0000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=y ; 0:408a120000000000 1:408a120000000000 2:c08ae30000000000 3:c08ae30000000000 4:c08ae30000000000 +base __name__=a,instance=i2,job=x ; 0:c085300000000000 1:c085300000000000 2:c0861e0000000000 3:408ab70000000000 4:c07d700000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 0:c089a00000000000 1:c089a00000000000 2:4070360000000000 3:4070360000000000 4:4070360000000000 +base __name__=target_info,k8s_cluster=c1 ; 4:c054400000000000 +info __name__=target_info,k8s_cluster=c1 ; 4:4101170000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +result __name__=a,instance=i1,job=y ; 0:408a120000000000 1:408a120000000000 2:c08ae30000000000 3:c08ae30000000000 4:c08ae30000000000 +result __name__=a,instance=i2,job=x ; 0:c085300000000000 1:c085300000000000 2:c0861e0000000000 3:408ab70000000000 4:c07d700000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 0:c089a00000000000 1:c089a00000000000 2:4070360000000000 3:4070360000000000 4:4070360000000000 +result __name__=target_info,k8s_cluster=c1 ; 4:c054400000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=x ; 1:c081940000000000 2:4065880000000000 3:c080fa0000000000 +base __name__=a,instance=i1,zone=z2 ; 0:4051a80000000000 1:4051a80000000000 2:c06c180000000000 3:c06c180000000000 +base __name__=a,job=y ; 0:4063080000000000 1:c056100000000000 2:406b1c0000000000 3:406b1c0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 6 +base __name__=a,job=y ; 0:c08b9f0000000000 1:408be30000000000 2:407c480000000000 3:c078280000000000 4:c087ca0000000000 5:4082dd0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=y,k8s_cluster=c1,zone=z1 ; 1:4075300000000000 2:4075300000000000 3:4075300000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:408f040000000000 1:408f040000000000 2:c051c00000000000 3:c0822b0000000000 +base __name__=a,job=x,version=base ; 1:c07dc80000000000 2:c08d610000000000 3:4080910000000000 +base __name__=a,zone=z2 ; 1:c064a40000000000 2:c071700000000000 3:c089cf0000000000 +info __name__=build_info,instance=i2,job=y,version=v2 ; +result __name__=a,instance=i1,job=y,k8s_cluster=c1,zone=z1 ; 1:4075300000000000 2:4075300000000000 3:4075300000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 0:408f040000000000 1:408f040000000000 2:c051c00000000000 3:c0822b0000000000 +result __name__=a,job=x,version=base ; 1:c07dc80000000000 2:c08d610000000000 3:4080910000000000 +result __name__=a,zone=z2 ; 1:c064a40000000000 2:c071700000000000 3:c089cf0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 5 +base __name__=a,instance=i2 ; 0:4083420000000000 1:c067c00000000000 2:406cc00000000000 3:c078b00000000000 4:c078b00000000000 +base __name__=a,job=y,version=base ; 0:c0640c0000000000 1:c0640c0000000000 2:c0640c0000000000 3:4083c80000000000 4:402d000000000000 +info __name__=target_info,job=y,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 +info __name__=build_info,instance=i2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=build_info,job=x,version=v2,zone=z2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 +info __name__=build_info,job=x,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 +result __name__=a,instance=i2,version=v2 ; 1:c067c00000000000 2:406cc00000000000 3:c078b00000000000 4:c078b00000000000 +result __name__=a,job=y,version=base ; 1:c0640c0000000000 2:c0640c0000000000 3:4083c80000000000 4:402d000000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 5 +base __name__=a,instance=i1,job=x,k8s_cluster=c1,version=base ; 2:40869b0000000000 3:40869b0000000000 4:40869b0000000000 +base __name__=a,instance=i1,job=x,version=base ; 0:407b740000000000 1:407b740000000000 2:c084450000000000 3:4063000000000000 4:408df40000000000 +base __name__=a,instance=i1,zone=z1 ; 3:c08e520000000000 4:c08cf80000000000 +base __name__=a,instance=i2 ; 0:407c260000000000 1:407bbc0000000000 2:407bbc0000000000 3:c079c60000000000 4:c06dac0000000000 +base __name__=a,job=y,k8s_cluster=c1,zone=z1 ; 0:4053a00000000000 1:4053a00000000000 2:c08f080000000000 3:c08f080000000000 4:4060540000000000 +base __name__=a,job=y,zone=z1 ; 0:4050980000000000 1:4078360000000000 2:4078360000000000 3:4078360000000000 4:40896b0000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 +result __name__=a,job=y,k8s_cluster=c1,version=v1,zone=z1 ; 0:4053a00000000000 1:4053a00000000000 2:c08f080000000000 4:4060540000000000 +result __name__=a,job=y,version=v1,zone=z1 ; 0:4050980000000000 1:4078360000000000 2:4078360000000000 4:40896b0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:c08e810000000000 2:4064dc0000000000 3:4087e20000000000 4:c08f1b0000000000 5:c08f1b0000000000 6:c08f1b0000000000 7:c068180000000000 8:c07c440000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v2 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 8:4105f90000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1 ; 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:c08e810000000000 2:4064dc0000000000 3:4087e20000000000 4:c08f1b0000000000 5:c08f1b0000000000 6:c08f1b0000000000 7:c068180000000000 8:c07c440000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 5 +base __name__=a ; 1:406a980000000000 2:406a980000000000 3:407bea0000000000 4:407bea0000000000 +base __name__=a,instance=i1,job=x ; 1:c040700000000000 2:c081e90000000000 3:4060f00000000000 4:c04f600000000000 +base __name__=a,instance=i1,job=y,version=base,zone=z2 ; 1:c042600000000000 2:c042600000000000 3:c042600000000000 4:c08e360000000000 +base __name__=a,instance=i1,zone=z2 ; 0:408c9a0000000000 1:408c9a0000000000 2:4087930000000000 3:c082e20000000000 4:c082e20000000000 +base __name__=a,instance=i2,version=base ; 0:c04be00000000000 1:c08df00000000000 2:c08df00000000000 3:4081e80000000000 4:c068ec0000000000 +base __name__=a,job=x,version=base ; 0:4082960000000000 1:4082960000000000 2:c0855e0000000000 3:c0855e0000000000 4:40808a0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +result __name__=a,instance=i1,job=x,version=v1 ; 1:c040700000000000 2:c081e90000000000 3:4060f00000000000 4:c04f600000000000 +result __name__=a,job=x,version=base ; 2:c0855e0000000000 3:c0855e0000000000 4:40808a0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 6 +base __name__=a,instance=i1 ; 2:4079680000000000 3:408f0e0000000000 4:c07d6c0000000000 5:c086710000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 0:4085970000000000 1:4085970000000000 2:4085970000000000 3:408b6d0000000000 4:407a360000000000 5:407a360000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:406a380000000000 1:40817e0000000000 2:40817e0000000000 3:408b320000000000 4:4052a00000000000 5:c0800e0000000000 +base __name__=a,instance=i2 ; 2:404eb00000000000 3:404eb00000000000 4:c0848f0000000000 5:4075e80000000000 +base __name__=a,instance=i2,job=y ; 0:c082370000000000 1:c0838a0000000000 2:4073dc0000000000 3:406d000000000000 4:408efd0000000000 5:408efd0000000000 +base __name__=a,job=y,version=base,zone=z2 ; 0:40889a0000000000 1:40889a0000000000 2:c08bd80000000000 3:c08bd80000000000 4:c08bd80000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:4101170000000000 +result __name__=a,instance=i1 ; 2:4079680000000000 3:408f0e0000000000 4:c07d6c0000000000 5:c086710000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 3:408b6d0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 0:4085970000000000 1:4085970000000000 2:4085970000000000 4:407a360000000000 5:407a360000000000 +result __name__=a,instance=i1,job=y,version=v2,zone=z1 ; 0:406a380000000000 1:40817e0000000000 2:40817e0000000000 4:4052a00000000000 5:c0800e0000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 3:408b320000000000 +result __name__=a,instance=i2 ; 2:404eb00000000000 3:404eb00000000000 4:c0848f0000000000 5:4075e80000000000 +result __name__=a,instance=i2,job=y ; 0:c082370000000000 1:c0838a0000000000 2:4073dc0000000000 3:406d000000000000 4:408efd0000000000 5:408efd0000000000 +result __name__=a,job=y,version=base,zone=z2 ; 0:40889a0000000000 1:40889a0000000000 2:c08bd80000000000 3:c08bd80000000000 4:c08bd80000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x ; 0:c086a70000000000 1:40885b0000000000 2:c0888b0000000000 3:4053b00000000000 4:c087200000000000 5:c05cb80000000000 6:4089280000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:c08a490000000000 2:4077240000000000 3:4082960000000000 4:4062380000000000 5:40813c0000000000 6:4086850000000000 +base __name__=a,job=y,zone=z2 ; 0:c076b80000000000 1:c083fc0000000000 2:c058600000000000 3:c058600000000000 4:c058600000000000 5:c081f60000000000 6:c081f60000000000 +info __name__=target_info,job=y,k8s_cluster=d1 ; 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 6:4103880000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i1,job=x ; 3:4053b00000000000 4:c087200000000000 5:c05cb80000000000 6:4089280000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2 ; 0:c086a70000000000 1:40885b0000000000 2:c0888b0000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 1:c08a490000000000 2:4077240000000000 3:4082960000000000 4:4062380000000000 5:40813c0000000000 6:4086850000000000 +result __name__=a,job=y,k8s_cluster=d1,zone=z2 ; 4:c058600000000000 5:c081f60000000000 6:c081f60000000000 +result __name__=a,job=y,zone=z2 ; 0:c076b80000000000 1:c083fc0000000000 2:c058600000000000 3:c058600000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=x ; 2:c08f290000000000 3:c060a00000000000 4:40869b0000000000 5:c071500000000000 6:c071500000000000 7:c051080000000000 8:407e220000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 2:c06d240000000000 3:c08e110000000000 4:c07a8e0000000000 5:c07a8e0000000000 6:c07fb40000000000 7:c080160000000000 8:c080640000000000 +base __name__=a,instance=i2,job=x ; 0:4089f10000000000 1:c0629c0000000000 2:4022400000000000 3:4022400000000000 4:4074580000000000 5:4074580000000000 6:c0774e0000000000 7:c08ddf0000000000 8:c07e9e0000000000 +base __name__=a,instance=i2,job=y ; 0:4063e80000000000 1:c073fe0000000000 2:c088560000000000 3:c077340000000000 4:4080560000000000 5:407bd00000000000 6:407bd00000000000 7:c088bd0000000000 8:c079920000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +result __name__=a,instance=i1,job=x ; 2:c08f290000000000 3:c060a00000000000 4:40869b0000000000 5:c071500000000000 6:c071500000000000 7:c051080000000000 8:407e220000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 2:c06d240000000000 3:c08e110000000000 4:c07a8e0000000000 5:c07a8e0000000000 6:c07fb40000000000 7:c080160000000000 8:c080640000000000 +result __name__=a,instance=i2,job=x ; 0:4089f10000000000 1:c0629c0000000000 2:4022400000000000 3:4022400000000000 4:4074580000000000 5:4074580000000000 6:c0774e0000000000 7:c08ddf0000000000 8:c07e9e0000000000 +result __name__=a,instance=i2,job=y ; 6:407bd00000000000 7:c088bd0000000000 8:c079920000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 0:4063e80000000000 1:c073fe0000000000 2:c088560000000000 3:c077340000000000 4:4080560000000000 5:407bd00000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a,job=x,version=base ; 1:4071a60000000000 +base __name__=a,job=y ; 0:c07c2c0000000000 1:c0834f0000000000 +info __name__=target_info,k8s_cluster=c1,version=v1 ; +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=build_info,instance=i1,version=v2,zone=z1 ; +info __name__=build_info,instance=i2,job=y,version=v2,zone=z2 ; 1:40fadb0000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:c08e410000000000 1:c08e410000000000 2:4088420000000000 3:4088420000000000 +base __name__=a,job=x,version=base ; 3:4080c00000000000 +base __name__=target_info,instance=i1,k8s_cluster=d1 ; 0:c088ed0000000000 1:4075700000000000 2:4074c00000000000 3:4074c00000000000 +base __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:4072a40000000000 1:4072a40000000000 2:4072a40000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 0:4076820000000000 1:c084e70000000000 2:c084e70000000000 3:c082c20000000000 +result __name__=target_info,instance=i1,k8s_cluster=d1 ; 0:c088ed0000000000 1:4075700000000000 2:4074c00000000000 3:4074c00000000000 +result __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:4072a40000000000 1:4072a40000000000 2:4072a40000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 0:4076820000000000 1:c084e70000000000 2:c084e70000000000 3:c082c20000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1 ; 1:c083670000000000 2:40779c0000000000 3:40779c0000000000 4:c088280000000000 5:c071f60000000000 6:c0721a0000000000 7:c07ea40000000000 8:408cfb0000000000 9:c081e60000000000 +base __name__=a,instance=i1,job=x ; 1:4044d00000000000 2:4044d00000000000 3:4044d00000000000 5:40784e0000000000 6:c0659c0000000000 7:c08e400000000000 8:4072360000000000 9:4077d00000000000 +base __name__=a,job=x ; 0:407d520000000000 1:c08cca0000000000 2:4084cb0000000000 3:c073360000000000 4:408a190000000000 5:c055f80000000000 6:4078100000000000 7:407c000000000000 8:407c000000000000 9:407c000000000000 +base __name__=a,k8s_cluster=c1,zone=z2 ; 0:c05e480000000000 1:c05e480000000000 2:408c110000000000 3:c0880c0000000000 4:405d780000000000 5:4076fc0000000000 6:c05e000000000000 7:c05e000000000000 8:c05e000000000000 9:4056780000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v2 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 9:4107318000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 +result __name__=a,instance=i1 ; 1:c083670000000000 2:40779c0000000000 6:c0721a0000000000 7:c07ea40000000000 8:408cfb0000000000 +result __name__=a,instance=i1,job=x ; 1:4044d00000000000 2:4044d00000000000 3:4044d00000000000 5:40784e0000000000 6:c0659c0000000000 7:c08e400000000000 8:4072360000000000 9:4077d00000000000 +result __name__=a,instance=i1,k8s_cluster=c2,version=v2 ; 3:40779c0000000000 4:c088280000000000 5:c071f60000000000 9:c081e60000000000 +result __name__=a,job=x ; 5:c055f80000000000 6:4078100000000000 7:407c000000000000 8:407c000000000000 9:407c000000000000 +result __name__=a,job=x,k8s_cluster=c1,version=v2 ; 0:407d520000000000 1:c08cca0000000000 2:4084cb0000000000 3:c073360000000000 4:408a190000000000 +result __name__=a,k8s_cluster=c1,zone=z2 ; 0:c05e480000000000 1:c05e480000000000 2:408c110000000000 3:c0880c0000000000 4:405d780000000000 5:4076fc0000000000 6:c05e000000000000 7:c05e000000000000 8:c05e000000000000 9:4056780000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y,zone=z2 ; 2:4086fe0000000000 +base __name__=a,instance=i2,job=x ; 2:4085f00000000000 +base __name__=a,job=x ; 0:40843e0000000000 1:c08e9f0000000000 2:c08e9f0000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 1 +base __name__=a ; 0:c08a670000000000 +base __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:c0705c0000000000 +base __name__=target_info,k8s_cluster=c2 ; 0:c08a770000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; +info __name__=target_info,k8s_cluster=c2 ; 0:40f86a0000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:40f86a0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2 ; +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; +result __name__=a ; 0:c08a670000000000 +result __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:c0705c0000000000 +result __name__=target_info,k8s_cluster=c2 ; 0:c08a770000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 7 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:4033e00000000000 1:408e170000000000 2:4077ac0000000000 3:c07da80000000000 4:c072b00000000000 5:c072b00000000000 6:4079160000000000 +base __name__=a,instance=i1,job=y,version=base ; 0:c0731c0000000000 1:c0731c0000000000 2:4088910000000000 3:4088910000000000 4:4088910000000000 6:40880c0000000000 +base __name__=a,job=x ; 0:4070e80000000000 1:4070e80000000000 2:408e370000000000 3:4079a80000000000 4:c08b4d0000000000 5:40852e0000000000 6:c0893f0000000000 +base __name__=a,job=y,k8s_cluster=c2 ; 1:40817d0000000000 2:4070fe0000000000 3:4087b30000000000 4:40856f0000000000 5:c087400000000000 6:c07c180000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:c0701a0000000000 1:c0701a0000000000 2:c0701a0000000000 3:c0810c0000000000 4:c0810c0000000000 5:4083ae0000000000 6:4083ae0000000000 +base __name__=target_info,instance=i1,k8s_cluster=c2 ; 5:c074580000000000 6:40768e0000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 2:c0734e0000000000 3:c0734e0000000000 4:40870a0000000000 5:40870a0000000000 6:40870a0000000000 +base __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 4:40861c0000000000 5:40861c0000000000 6:4081ef0000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 +info __name__=build_info,instance=i1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 +result __name__=a,instance=i1,job=x,zone=z2 ; 0:4033e00000000000 1:408e170000000000 2:4077ac0000000000 3:c07da80000000000 4:c072b00000000000 5:c072b00000000000 6:4079160000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:c0731c0000000000 1:c0731c0000000000 2:4088910000000000 3:4088910000000000 4:4088910000000000 6:40880c0000000000 +result __name__=a,job=x ; 0:4070e80000000000 1:4070e80000000000 2:408e370000000000 3:4079a80000000000 4:c08b4d0000000000 5:40852e0000000000 6:c0893f0000000000 +result __name__=a,job=y,k8s_cluster=c2 ; 1:40817d0000000000 2:4070fe0000000000 3:4087b30000000000 4:40856f0000000000 5:c087400000000000 6:c07c180000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:c0701a0000000000 1:c0701a0000000000 2:c0701a0000000000 3:c0810c0000000000 4:c0810c0000000000 5:4083ae0000000000 6:4083ae0000000000 +result __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 5:c074580000000000 6:40768e0000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 2:c0734e0000000000 3:c0734e0000000000 4:40870a0000000000 5:40870a0000000000 6:40870a0000000000 +result __name__=target_info,instance=i2,k8s_cluster=c1,version=v2 ; 4:40861c0000000000 5:40861c0000000000 6:4081ef0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 3 +base __name__=a ; 0:c089670000000000 1:c083060000000000 2:c083060000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:4080e90000000000 1:408d0c0000000000 2:408d0c0000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 0:c022000000000000 1:4086930000000000 2:4086930000000000 +base __name__=a,job=y ; 0:c080ff0000000000 1:c080ff0000000000 2:4086f40000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 1:4086930000000000 2:4086930000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 9 +base __name__=a,instance=i2,job=x,version=base ; 0:4083ec0000000000 1:c079340000000000 2:c079340000000000 3:c075180000000000 4:408c940000000000 5:40829b0000000000 6:4041100000000000 7:4041100000000000 8:c08f150000000000 +base __name__=a,job=y ; 0:c07b1e0000000000 1:4069880000000000 2:4084fe0000000000 3:408d980000000000 4:405f980000000000 5:c083320000000000 6:407f260000000000 7:407f260000000000 8:c08ab00000000000 +base __name__=a,version=base ; 1:c087030000000000 2:408ad20000000000 3:408ad20000000000 4:408ad20000000000 5:c084190000000000 6:c08dbc0000000000 7:c084130000000000 8:c089760000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v1 ; 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; 4:4101170000000000 5:4101170000000000 6:4101170000000000 +info __name__=build_info,instance=i1,job=y,version=v2,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 +result __name__=a,instance=i2,job=x,version=base ; 4:408c940000000000 5:40829b0000000000 6:4041100000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x ; 1:c0890c0000000000 2:c0890c0000000000 +base __name__=a,job=x,k8s_cluster=c2,version=base,zone=z1 ; 0:4085a30000000000 1:c084310000000000 2:406c780000000000 +base __name__=a,job=x,zone=z2 ; 1:c06d140000000000 2:c07bf60000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 0:407f880000000000 1:4041c00000000000 2:4041c00000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:40828f0000000000 2:408c9f0000000000 +base __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 0:4081350000000000 1:4088fe0000000000 2:4088fe0000000000 +base __name__=target_info,job=y,k8s_cluster=d1 ; 0:4054b80000000000 1:4054b80000000000 2:4054b80000000000 +base __name__=target_info,k8s_cluster=c2,version=v2 ; 0:c086430000000000 1:c086430000000000 2:c070700000000000 +info __name__=target_info,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 +info __name__=target_info,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 +result __name__=a,instance=i1,job=x ; 1:c0890c0000000000 2:c0890c0000000000 +result __name__=a,job=x,k8s_cluster=c2,version=base,zone=z1 ; 0:4085a30000000000 1:c084310000000000 2:406c780000000000 +result __name__=a,job=x,zone=z2 ; 1:c06d140000000000 2:c07bf60000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=d1,version=v2 ; 0:407f880000000000 1:4041c00000000000 2:4041c00000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:40828f0000000000 2:408c9f0000000000 +result __name__=target_info,instance=i2,k8s_cluster=d1,version=v2 ; 0:4081350000000000 1:4088fe0000000000 2:4088fe0000000000 +result __name__=target_info,job=y,k8s_cluster=d1 ; 0:4054b80000000000 1:4054b80000000000 2:4054b80000000000 +result __name__=target_info,k8s_cluster=c2,version=v2 ; 0:c086430000000000 1:c086430000000000 2:c070700000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 6 +base __name__=a,instance=i1,k8s_cluster=c2,zone=z1 ; 1:408e980000000000 2:c06e8c0000000000 3:c08e4a0000000000 4:4051700000000000 5:4057800000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v2 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 5:41024f8000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,k8s_cluster=c2,version=base ; 1:4065b00000000000 2:4080480000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; 2:40fd4c0000000000 +result __name__=a,instance=i1,k8s_cluster=c2,version=base ; 1:4065b00000000000 2:4080480000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 9 +base __name__=a ; 0:4071720000000000 1:c059c00000000000 2:407a980000000000 3:c067200000000000 4:c08d890000000000 5:c08d890000000000 6:c059b00000000000 7:c059b00000000000 8:c059b00000000000 +base __name__=a,instance=i2,job=x ; 0:4053100000000000 1:4053100000000000 2:4085240000000000 3:c06a780000000000 4:c06a780000000000 5:40893f0000000000 6:40893f0000000000 7:4079920000000000 8:c081c30000000000 +base __name__=a,instance=i2,job=y ; 1:c084230000000000 2:c083780000000000 3:c058a00000000000 4:c058a00000000000 5:c058a00000000000 +base __name__=a,instance=i2,version=base ; 0:c07d0e0000000000 1:40875f0000000000 2:406c780000000000 3:406fd80000000000 4:406fd80000000000 5:c074200000000000 6:c074200000000000 7:c074200000000000 8:4081470000000000 +base __name__=a,job=x,zone=z2 ; 0:4080300000000000 1:4085fe0000000000 2:c0892a0000000000 3:4080420000000000 4:c077d80000000000 5:c082d60000000000 6:4089d70000000000 7:4040c00000000000 8:4044100000000000 +base __name__=a,job=y,zone=z2 ; 1:4072480000000000 2:c08ec70000000000 3:406ba00000000000 4:c07dee0000000000 5:c07dee0000000000 6:c087d70000000000 7:4083290000000000 8:4083290000000000 +base __name__=target_info,job=x,k8s_cluster=c1 ; 1:c04cc00000000000 2:c04cc00000000000 3:c04cc00000000000 7:40878a0000000000 8:40878a0000000000 +base __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 0:c0885e0000000000 1:c0885e0000000000 2:c0885e0000000000 4:4084d60000000000 5:4084d60000000000 6:4084d60000000000 7:4084c20000000000 8:4084c20000000000 +info __name__=build_info,instance=i1,job=y,version=v1,zone=z1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=a ; 0:4071720000000000 1:c059c00000000000 2:407a980000000000 3:c067200000000000 4:c08d890000000000 5:c08d890000000000 6:c059b00000000000 7:c059b00000000000 8:c059b00000000000 +result __name__=a,instance=i2,job=x ; 0:4053100000000000 1:4053100000000000 2:4085240000000000 3:c06a780000000000 4:c06a780000000000 5:40893f0000000000 6:40893f0000000000 7:4079920000000000 8:c081c30000000000 +result __name__=a,instance=i2,job=y ; 1:c084230000000000 2:c083780000000000 3:c058a00000000000 4:c058a00000000000 5:c058a00000000000 +result __name__=a,instance=i2,version=base ; 0:c07d0e0000000000 1:40875f0000000000 2:406c780000000000 3:406fd80000000000 4:406fd80000000000 5:c074200000000000 6:c074200000000000 7:c074200000000000 8:4081470000000000 +result __name__=a,job=x,zone=z2 ; 0:4080300000000000 1:4085fe0000000000 2:c0892a0000000000 3:4080420000000000 4:c077d80000000000 5:c082d60000000000 6:4089d70000000000 7:4040c00000000000 8:4044100000000000 +result __name__=a,job=y,zone=z2 ; 1:4072480000000000 2:c08ec70000000000 3:406ba00000000000 4:c07dee0000000000 5:c07dee0000000000 6:c087d70000000000 7:4083290000000000 8:4083290000000000 +result __name__=target_info,job=x,k8s_cluster=c1 ; 1:c04cc00000000000 2:c04cc00000000000 3:c04cc00000000000 7:40878a0000000000 8:40878a0000000000 +result __name__=target_info,job=y,k8s_cluster=c2,version=v2 ; 0:c0885e0000000000 1:c0885e0000000000 2:c0885e0000000000 4:4084d60000000000 5:4084d60000000000 6:4084d60000000000 7:4084c20000000000 8:4084c20000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 9 +base __name__=a ; 0:c07cd60000000000 1:c080890000000000 2:c080890000000000 3:c08e520000000000 4:40871e0000000000 5:c0712c0000000000 6:c085b90000000000 7:c072e20000000000 8:c06c000000000000 +base __name__=a,instance=i2,job=y ; 0:c07c0e0000000000 1:c07c0e0000000000 2:406ddc0000000000 3:4039e00000000000 4:4039e00000000000 5:c051580000000000 6:c051580000000000 7:c07a2e0000000000 8:c07a2e0000000000 +base __name__=a,job=y,version=base ; 0:c063dc0000000000 1:4084130000000000 2:c0721c0000000000 3:4075500000000000 4:4083fa0000000000 5:4083fa0000000000 6:4083fa0000000000 7:406ce00000000000 8:4076060000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 8:4105f90000000000 +info __name__=build_info,instance=i2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4105f90000000000 +result __name__=a,instance=i2,job=y,version=v1 ; 5:c051580000000000 6:c051580000000000 7:c07a2e0000000000 8:c07a2e0000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1 ; 1:406b000000000000 2:4084ec0000000000 3:c080a60000000000 4:c055000000000000 5:c055000000000000 6:c083950000000000 7:c083950000000000 8:405d280000000000 9:c057080000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:c078a40000000000 1:c078a40000000000 2:c088140000000000 3:c084ff0000000000 4:c084ff0000000000 5:c082210000000000 6:c082210000000000 7:c0835b0000000000 8:c0835b0000000000 9:4052d00000000000 +base __name__=a,instance=i2 ; 0:4070140000000000 1:c05a600000000000 2:c05a600000000000 3:4069c40000000000 4:4089e70000000000 5:4089e70000000000 6:40643c0000000000 7:40643c0000000000 8:40881d0000000000 9:408bcf0000000000 +base __name__=a,instance=i2,job=y ; 1:c0882a0000000000 2:c0882a0000000000 3:c0882a0000000000 4:c05c100000000000 5:40822a0000000000 6:c076980000000000 7:c087400000000000 8:c087400000000000 9:c087400000000000 +base __name__=a,job=x,version=base ; 0:4075e80000000000 1:4075e80000000000 2:4075e80000000000 7:c082930000000000 8:405de80000000000 9:4080b30000000000 +base __name__=a,zone=z1 ; 1:4081890000000000 2:407c720000000000 3:407c720000000000 4:4081920000000000 5:4081920000000000 6:c0678c0000000000 7:408bfd0000000000 8:408bfd0000000000 9:40826f0000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:c07a140000000000 1:c07a140000000000 2:c07a140000000000 5:4024000000000000 6:c069f40000000000 7:c069f40000000000 8:c069f40000000000 9:4081880000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:4080b60000000000 1:c086d60000000000 2:4088600000000000 3:4088600000000000 4:4088600000000000 5:c0816e0000000000 6:c0816e0000000000 7:c0816e0000000000 8:c08f180000000000 9:c07edc0000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:c0858e0000000000 1:c0858e0000000000 2:c0858e0000000000 4:c084c80000000000 5:c084c80000000000 6:c084c80000000000 7:40778c0000000000 8:4088920000000000 9:4088920000000000 +base __name__=target_info,k8s_cluster=c2,version=v1 ; 4:407d540000000000 5:407d540000000000 6:4084710000000000 7:c0825f0000000000 8:c0825f0000000000 9:c0825f0000000000 +base __name__=target_info,k8s_cluster=d1 ; 0:40877a0000000000 1:40877a0000000000 2:c082070000000000 3:c082070000000000 4:c023c00000000000 5:408ac00000000000 6:c0889e0000000000 7:c065000000000000 8:c065000000000000 9:c065000000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 9:4107318000000000 +info __name__=target_info,k8s_cluster=c2,version=v1 ; 4:4101170000000000 5:4101170000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=target_info,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4105f90000000000 9:4105f90000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 9:4107318000000000 +result __name__=a,instance=i1 ; 1:406b000000000000 2:4084ec0000000000 3:c080a60000000000 4:c055000000000000 5:c055000000000000 6:c083950000000000 7:c083950000000000 8:405d280000000000 9:c057080000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 0:c078a40000000000 1:c078a40000000000 2:c088140000000000 3:c084ff0000000000 4:c084ff0000000000 5:c082210000000000 6:c082210000000000 7:c0835b0000000000 8:c0835b0000000000 9:4052d00000000000 +result __name__=a,instance=i2 ; 0:4070140000000000 1:c05a600000000000 2:c05a600000000000 3:4069c40000000000 4:4089e70000000000 5:4089e70000000000 6:40643c0000000000 7:40643c0000000000 8:40881d0000000000 9:408bcf0000000000 +result __name__=a,instance=i2,job=y ; 3:c0882a0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 1:c0882a0000000000 2:c0882a0000000000 4:c05c100000000000 5:40822a0000000000 6:c076980000000000 7:c087400000000000 8:c087400000000000 9:c087400000000000 +result __name__=a,job=x,version=base ; 0:4075e80000000000 1:4075e80000000000 2:4075e80000000000 7:c082930000000000 8:405de80000000000 9:4080b30000000000 +result __name__=a,zone=z1 ; 1:4081890000000000 2:407c720000000000 3:407c720000000000 4:4081920000000000 5:4081920000000000 6:c0678c0000000000 7:408bfd0000000000 8:408bfd0000000000 9:40826f0000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1 ; 0:c07a140000000000 1:c07a140000000000 2:c07a140000000000 5:4024000000000000 6:c069f40000000000 7:c069f40000000000 8:c069f40000000000 9:4081880000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:4080b60000000000 1:c086d60000000000 2:4088600000000000 3:4088600000000000 4:4088600000000000 5:c0816e0000000000 6:c0816e0000000000 7:c0816e0000000000 8:c08f180000000000 9:c07edc0000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 0:c0858e0000000000 1:c0858e0000000000 2:c0858e0000000000 4:c084c80000000000 5:c084c80000000000 6:c084c80000000000 7:40778c0000000000 8:4088920000000000 9:4088920000000000 +result __name__=target_info,k8s_cluster=c2,version=v1 ; 4:407d540000000000 5:407d540000000000 6:4084710000000000 7:c0825f0000000000 8:c0825f0000000000 9:c0825f0000000000 +result __name__=target_info,k8s_cluster=d1 ; 0:40877a0000000000 1:40877a0000000000 2:c082070000000000 3:c082070000000000 4:c023c00000000000 5:408ac00000000000 6:c0889e0000000000 7:c065000000000000 8:c065000000000000 9:c065000000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1,zone=z2 ; 1:c076720000000000 2:c089420000000000 3:c0843a0000000000 4:4060d00000000000 +base __name__=a,instance=i2 ; 0:c087e00000000000 1:c08d410000000000 2:c074200000000000 3:c074200000000000 4:c073d40000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 3:407e0a0000000000 4:407e0a0000000000 +info __name__=build_info,job=x,version=v1,zone=z1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=build_info,instance=i1,job=y,version=v2,zone=z1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 +result __name__=a,instance=i1,zone=z2 ; 1:c076720000000000 2:c089420000000000 3:c0843a0000000000 4:4060d00000000000 +result __name__=a,instance=i2 ; 0:c087e00000000000 1:c08d410000000000 2:c074200000000000 3:c074200000000000 4:c073d40000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 3:407e0a0000000000 4:407e0a0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x ; 0:4083420000000000 1:4074980000000000 2:408d1a0000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 1:c08c9b0000000000 2:c086040000000000 +base __name__=a,instance=i2 ; 0:c076020000000000 1:c043100000000000 2:c043100000000000 +base __name__=a,job=x ; 0:4071640000000000 1:4071640000000000 2:4072da0000000000 +base __name__=a,job=y,version=base,zone=z2 ; 0:c03e800000000000 1:c03e800000000000 2:c03e800000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 5 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:c08c210000000000 1:406aac0000000000 2:406aac0000000000 3:4076940000000000 4:4076940000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 5 +base __name__=a,version=base ; 0:c089710000000000 1:408da70000000000 2:408da70000000000 3:c089600000000000 4:c08dc30000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 +result __name__=a,version=base ; 0:c089710000000000 1:408da70000000000 2:408da70000000000 3:c089600000000000 4:c08dc30000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=y,zone=z2 ; 3:c060180000000000 4:c081410000000000 5:c081410000000000 6:c081410000000000 7:4073660000000000 8:4068680000000000 9:c088010000000000 +base __name__=a,instance=i2 ; 0:c0724a0000000000 1:c0724a0000000000 2:c060080000000000 3:c088250000000000 4:c088250000000000 5:c07d9a0000000000 6:c07d9a0000000000 7:408eec0000000000 8:408eec0000000000 9:4064a40000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c084800000000000 1:c08ad90000000000 2:c083100000000000 3:c017800000000000 4:c06cc40000000000 5:c084d90000000000 6:c05c300000000000 7:407a240000000000 8:406a880000000000 9:40834f0000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:407e380000000000 1:407e380000000000 2:407e380000000000 3:4032400000000000 4:c08c090000000000 5:4060b40000000000 6:c081460000000000 7:c0888e0000000000 8:c08e220000000000 9:c0836a0000000000 +info __name__=build_info,instance=i1,job=x,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=build_info,instance=i2,job=x,version=v2,zone=z2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +result __name__=a,instance=i1,job=y,zone=z2 ; 3:c060180000000000 4:c081410000000000 5:c081410000000000 6:c081410000000000 7:4073660000000000 8:4068680000000000 9:c088010000000000 +result __name__=a,instance=i2 ; 0:c0724a0000000000 1:c0724a0000000000 2:c060080000000000 3:c088250000000000 4:c088250000000000 5:c07d9a0000000000 6:c07d9a0000000000 7:408eec0000000000 8:408eec0000000000 9:4064a40000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c084800000000000 1:c08ad90000000000 2:c083100000000000 3:c017800000000000 4:c06cc40000000000 5:c084d90000000000 6:c05c300000000000 7:407a240000000000 8:406a880000000000 9:40834f0000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 0:407e380000000000 1:407e380000000000 2:407e380000000000 3:4032400000000000 4:c08c090000000000 5:4060b40000000000 6:c081460000000000 7:c0888e0000000000 8:c08e220000000000 9:c0836a0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 7 +base __name__=a,instance=i2,job=y ; 1:c0748a0000000000 2:408ec50000000000 3:408b360000000000 4:408b360000000000 5:408b360000000000 +info __name__=build_info,instance=i2,job=y,version=v2,zone=z2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 +result __name__=a,instance=i2,job=y,version=v2 ; 1:c0748a0000000000 2:408ec50000000000 4:408b360000000000 5:408b360000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:c075de0000000000 1:4086640000000000 2:c0844e0000000000 3:c089040000000000 +base __name__=a,instance=i1,zone=z2 ; 1:c07c280000000000 2:c07c280000000000 3:c080bb0000000000 +base __name__=a,instance=i2 ; 1:c086230000000000 2:4080700000000000 3:408b2b0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:4089050000000000 1:c0859f0000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:407b4a0000000000 1:407b4a0000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=build_info,instance=i2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 +result __name__=a,instance=i1,job=y,zone=z1 ; 0:4089050000000000 1:c0859f0000000000 +result __name__=a,instance=i2,job=x,version=v2,zone=z1 ; 0:407b4a0000000000 1:407b4a0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=y ; 0:c066780000000000 1:405eb00000000000 2:4032e00000000000 3:4032e00000000000 4:4081310000000000 5:c0776e0000000000 6:4078700000000000 7:4078700000000000 8:4078860000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1,version=base ; 0:c087340000000000 1:4084cd0000000000 2:406c800000000000 3:c063600000000000 4:c063600000000000 5:c063600000000000 6:c054700000000000 7:c07ce40000000000 8:c06cd00000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x ; 0:c0750e0000000000 1:40897b0000000000 2:4067e80000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 2:4078020000000000 +base __name__=a,instance=i2,version=base ; 0:4065ac0000000000 1:4065ac0000000000 2:4065ac0000000000 +base __name__=a,job=x ; 1:c08c270000000000 2:c080400000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c1,version=v1 ; +info __name__=target_info,k8s_cluster=c2,version=v2 ; +info __name__=build_info,instance=i2,job=y,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=build_info,instance=i1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:c06bf00000000000 1:40787c0000000000 2:40787c0000000000 3:408cb30000000000 4:405b100000000000 5:c082400000000000 6:c082400000000000 7:4083ce0000000000 +base __name__=a,instance=i2 ; 0:c08b850000000000 1:4088ff0000000000 2:4088ff0000000000 3:c083da0000000000 4:405bd80000000000 5:408c0c0000000000 6:408c0c0000000000 7:4077d00000000000 +base __name__=a,instance=i2,zone=z1 ; 0:408efd0000000000 1:4076d20000000000 2:4077320000000000 3:4077320000000000 4:40700c0000000000 5:c0727e0000000000 6:c083830000000000 7:c01b800000000000 +base __name__=a,job=x ; 1:40727c0000000000 2:40727c0000000000 3:c086f80000000000 4:c07c660000000000 5:c0701c0000000000 6:c0701c0000000000 7:c070480000000000 +base __name__=a,job=y,k8s_cluster=c1 ; 0:4078ca0000000000 1:408c610000000000 2:403f600000000000 3:407a480000000000 4:c071d40000000000 5:c08b350000000000 6:4089e70000000000 7:4089e70000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 6:4103880000000000 7:4104c08000000000 +info __name__=target_info,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=target_info,instance=i1,k8s_cluster=d1,version=v2 ; 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 7:4104c08000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z1 ; 0:c06bf00000000000 1:40787c0000000000 2:40787c0000000000 3:408cb30000000000 4:405b100000000000 6:c082400000000000 7:4083ce0000000000 +result __name__=a,instance=i1,job=x,zone=z1 ; 5:c082400000000000 +result __name__=a,instance=i2 ; 0:c08b850000000000 1:4088ff0000000000 2:4088ff0000000000 3:c083da0000000000 4:405bd80000000000 5:408c0c0000000000 6:408c0c0000000000 7:4077d00000000000 +result __name__=a,instance=i2,zone=z1 ; 0:408efd0000000000 1:4076d20000000000 2:4077320000000000 3:4077320000000000 4:40700c0000000000 5:c0727e0000000000 6:c083830000000000 7:c01b800000000000 +result __name__=a,job=x ; 1:40727c0000000000 2:40727c0000000000 3:c086f80000000000 4:c07c660000000000 5:c0701c0000000000 6:c0701c0000000000 7:c070480000000000 +result __name__=a,job=y,k8s_cluster=c1 ; 0:4078ca0000000000 1:408c610000000000 2:403f600000000000 3:407a480000000000 4:c071d40000000000 5:c08b350000000000 6:4089e70000000000 7:4089e70000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 8 +base __name__=a,instance=i1,version=base ; 0:c08ea70000000000 1:c08ea70000000000 2:406c380000000000 3:c069dc0000000000 4:c07a240000000000 5:40735a0000000000 6:4080ae0000000000 7:402b000000000000 +base __name__=a,instance=i2 ; 0:c056480000000000 1:c084e80000000000 2:c084e80000000000 3:4089b80000000000 4:c04cc00000000000 5:c084f10000000000 6:c084f10000000000 7:c084f10000000000 +base __name__=a,instance=i2,job=y,version=base ; 2:405e980000000000 3:c08c490000000000 4:c08c490000000000 5:c08c490000000000 6:c086e00000000000 7:402bc00000000000 +base __name__=a,k8s_cluster=c2 ; 0:407be60000000000 1:408a880000000000 2:c080ec0000000000 3:c04f100000000000 4:c087f30000000000 5:c08ef90000000000 6:c057b80000000000 7:c057b80000000000 +result __name__=a,instance=i1,version=base ; 0:c08ea70000000000 1:c08ea70000000000 2:406c380000000000 3:c069dc0000000000 4:c07a240000000000 5:40735a0000000000 6:4080ae0000000000 7:402b000000000000 +result __name__=a,instance=i2 ; 0:c056480000000000 1:c084e80000000000 2:c084e80000000000 3:4089b80000000000 4:c04cc00000000000 5:c084f10000000000 6:c084f10000000000 7:c084f10000000000 +result __name__=a,instance=i2,job=y,version=base ; 2:405e980000000000 3:c08c490000000000 4:c08c490000000000 5:c08c490000000000 6:c086e00000000000 7:402bc00000000000 +result __name__=a,k8s_cluster=c2 ; 0:407be60000000000 1:408a880000000000 2:c080ec0000000000 3:c04f100000000000 4:c087f30000000000 5:c08ef90000000000 6:c057b80000000000 7:c057b80000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 7 +base __name__=a,version=base ; 1:c04c900000000000 2:406e880000000000 3:406e880000000000 4:406e880000000000 5:c076a80000000000 6:406a0c0000000000 +base __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 1:c062c00000000000 2:c062c00000000000 3:c062c00000000000 6:c0720a0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 6:4103880000000000 +result __name__=a,version=base ; 1:c04c900000000000 2:406e880000000000 3:406e880000000000 4:406e880000000000 5:c076a80000000000 6:406a0c0000000000 +result __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 1:c062c00000000000 2:c062c00000000000 3:c062c00000000000 6:c0720a0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 1 +base __name__=a,instance=i2,job=x ; 0:4074b80000000000 +base __name__=a,job=y ; 0:c08cf40000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,version=base,zone=z2 ; 0:c07e5e0000000000 1:c08d780000000000 2:c086720000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1 ; 2:40fd4c0000000000 +result __name__=a,instance=i1,version=base,zone=z2 ; 0:c07e5e0000000000 1:c08d780000000000 2:c086720000000000 +end +case k8s_cluster true - +expr info({__name__="a"}, {k8s_cluster=~"c1|"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:c088600000000000 1:c087130000000000 2:c078000000000000 3:c078000000000000 4:c072700000000000 5:4085a60000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:407a620000000000 1:c0818d0000000000 2:c0818d0000000000 3:408ce20000000000 4:408ce20000000000 5:c07a060000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c1 ; 0:c088600000000000 1:c087130000000000 2:c078000000000000 3:c078000000000000 4:c072700000000000 5:4085a60000000000 +result __name__=a,instance=i1,k8s_cluster=c1 ; 0:407a620000000000 1:c0818d0000000000 2:c0818d0000000000 3:408ce20000000000 4:408ce20000000000 5:c07a060000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 5 +base __name__=a,instance=i1 ; 1:40852b0000000000 2:40852b0000000000 3:4080480000000000 4:4080480000000000 +base __name__=a,instance=i1,job=y ; 0:c08f040000000000 1:c076780000000000 2:c084670000000000 3:408c680000000000 4:c07fb40000000000 +base __name__=a,instance=i1,k8s_cluster=c2 ; 1:c087f10000000000 2:c07ece0000000000 3:4070320000000000 4:4070320000000000 +base __name__=a,instance=i1,zone=z1 ; 2:407ce60000000000 3:407b380000000000 4:c081830000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:4089b90000000000 2:c08c1c0000000000 3:c08c1c0000000000 4:c08c1c0000000000 +base __name__=a,instance=i2,version=base,zone=z2 ; 0:c07a8c0000000000 1:c089360000000000 2:c089360000000000 3:c0800a0000000000 4:c0800a0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +result __name__=a,instance=i1 ; 1:40852b0000000000 2:40852b0000000000 3:4080480000000000 4:4080480000000000 +result __name__=a,instance=i1,job=y ; 4:c07fb40000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:c08f040000000000 1:c076780000000000 2:c084670000000000 3:408c680000000000 +result __name__=a,instance=i1,k8s_cluster=c2 ; 1:c087f10000000000 2:c07ece0000000000 3:4070320000000000 4:4070320000000000 +result __name__=a,instance=i1,zone=z1 ; 2:407ce60000000000 3:407b380000000000 4:c081830000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 1:4089b90000000000 2:c08c1c0000000000 3:c08c1c0000000000 4:c08c1c0000000000 +result __name__=a,instance=i2,version=base,zone=z2 ; 0:c07a8c0000000000 1:c089360000000000 2:c089360000000000 3:c0800a0000000000 4:c0800a0000000000 +end +case version false __name__=~".+_info" +expr info({__name__=~"a|target_info"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=x ; 1:4083270000000000 2:c06c140000000000 3:c0821a0000000000 4:4082270000000000 5:4082270000000000 6:4082270000000000 7:c0793e0000000000 8:408d2e0000000000 +base __name__=a,instance=i1,k8s_cluster=c2,zone=z2 ; 0:c0858c0000000000 1:c0858c0000000000 2:c086620000000000 3:c086620000000000 4:408c120000000000 5:408c120000000000 6:408d640000000000 7:c052780000000000 8:c052780000000000 +base __name__=a,instance=i2,job=y ; 0:408ab70000000000 1:408ab70000000000 2:408ab70000000000 4:405a180000000000 5:405a180000000000 6:405a180000000000 7:c066940000000000 8:4052d80000000000 +base __name__=a,job=x ; 0:405e800000000000 1:4083eb0000000000 2:407cf20000000000 3:4035e00000000000 4:4089f00000000000 5:4089f00000000000 6:4089f00000000000 7:c08b730000000000 8:c087650000000000 +base __name__=a,job=y ; 2:c08ae60000000000 3:c08ae60000000000 4:c08ae60000000000 5:4057500000000000 6:4057500000000000 7:c07acc0000000000 8:c086a50000000000 +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 4 +base __name__=a ; 0:4081e70000000000 1:4066140000000000 2:4078b20000000000 3:c06b780000000000 +base __name__=a,instance=i1,job=x ; 2:40859d0000000000 3:40859d0000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z2 ; 2:408e2e0000000000 3:c079d60000000000 +base __name__=a,instance=i1,k8s_cluster=c2,zone=z2 ; 1:4088600000000000 2:4088600000000000 3:4088600000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z2 ; 0:40716a0000000000 1:40832e0000000000 2:40832e0000000000 3:40832e0000000000 +result __name__=a ; 0:4081e70000000000 1:4066140000000000 2:4078b20000000000 3:c06b780000000000 +result __name__=a,instance=i1,job=x ; 2:40859d0000000000 3:40859d0000000000 +result __name__=a,instance=i1,job=x,k8s_cluster=c2,zone=z2 ; 2:408e2e0000000000 3:c079d60000000000 +result __name__=a,instance=i1,k8s_cluster=c2,zone=z2 ; 1:4088600000000000 2:4088600000000000 3:4088600000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z2 ; 0:40716a0000000000 1:40832e0000000000 2:40832e0000000000 3:40832e0000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a ; 0:c079d20000000000 1:c0666c0000000000 2:408e630000000000 3:408e630000000000 +base __name__=a,job=y,version=base ; 0:c08c4a0000000000 1:c08c4a0000000000 2:c066bc0000000000 3:c0750a0000000000 +result __name__=a ; 0:c079d20000000000 1:c0666c0000000000 2:408e630000000000 3:408e630000000000 +result __name__=a,job=y,version=base ; 0:c08c4a0000000000 1:c08c4a0000000000 2:c066bc0000000000 3:c0750a0000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 9 +base __name__=a,instance=i1,job=y,k8s_cluster=c2 ; 1:c06b2c0000000000 2:c06b2c0000000000 3:c066580000000000 4:c070c40000000000 5:c076380000000000 6:c076380000000000 7:c076380000000000 8:c07e220000000000 +base __name__=a,instance=i1,k8s_cluster=c2 ; 0:408f300000000000 1:4067f40000000000 2:4045d00000000000 3:408ebf0000000000 4:40783e0000000000 5:c07f860000000000 6:c088e80000000000 7:c088e80000000000 8:4088a50000000000 +base __name__=a,instance=i1,zone=z1 ; 0:c0735a0000000000 1:c0735a0000000000 2:4088510000000000 3:4071ce0000000000 4:c08ed90000000000 5:c08ed90000000000 6:408e540000000000 7:408e540000000000 8:c0852b0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 6:4103880000000000 7:4103880000000000 8:4105f90000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:4101170000000000 6:4101170000000000 7:4104c08000000000 8:4104c08000000000 +info __name__=build_info,instance=i1,job=x,version=v2 ; 5:41024f8000000000 6:4103880000000000 7:4103880000000000 8:4103880000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=x ; 0:4088320000000000 1:4088320000000000 +base __name__=a,instance=i1,job=x,zone=z1 ; 0:4084b80000000000 1:4086050000000000 +base __name__=a,instance=i2,job=x ; 0:407f5a0000000000 1:407f5a0000000000 +info __name__=target_info,job=x,k8s_cluster=d1,version=v1 ; +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v2 ; +info __name__=build_info,instance=i1,version=v2 ; +info __name__=build_info,instance=i1,job=x,version=v2,zone=z2 ; +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=x,version=base ; 1:40892f0000000000 2:c08d220000000000 3:c08d220000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 1:406acc0000000000 2:c089420000000000 3:408eca0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2,version=v2 ; 2:40fd4c0000000000 3:40fd4c0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 3 +base __name__=a,instance=i2 ; 0:4056500000000000 1:4056500000000000 2:40838c0000000000 +base __name__=a,instance=i2,job=y ; 0:c071b60000000000 1:c0730a0000000000 2:c08d1c0000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 1:4073fe0000000000 2:c089290000000000 +base __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:c074aa0000000000 1:c074aa0000000000 2:c074aa0000000000 +base __name__=target_info,job=x,k8s_cluster=c2 ; 0:4077fa0000000000 1:c0731a0000000000 2:c0731a0000000000 +base __name__=target_info,job=y,k8s_cluster=c2 ; 0:4023800000000000 1:4023800000000000 2:4023800000000000 +base __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 1:c07b7a0000000000 2:c07b7a0000000000 +base __name__=target_info,k8s_cluster=d1,version=v2 ; 1:c076820000000000 2:4087860000000000 +info __name__=target_info,job=y,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,instance=i2,k8s_cluster=c2 ; 0:4056500000000000 1:4056500000000000 2:40838c0000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 1:4073fe0000000000 2:c089290000000000 +result __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:c074aa0000000000 1:c074aa0000000000 2:c074aa0000000000 +result __name__=target_info,job=x,k8s_cluster=c2 ; 0:4077fa0000000000 1:c0731a0000000000 2:c0731a0000000000 +result __name__=target_info,job=y,k8s_cluster=c2 ; 0:4023800000000000 1:4023800000000000 2:4023800000000000 +result __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 1:c07b7a0000000000 2:c07b7a0000000000 +result __name__=target_info,k8s_cluster=d1,version=v2 ; 1:c076820000000000 2:4087860000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 1 +base __name__=a,instance=i2 ; 0:c011000000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 0:c080b70000000000 +base __name__=a,job=x,zone=z2 ; 0:c0801b0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; +end +case - true - +expr info({__name__=~"a|target_info"}) +grid 100000 10000 5 +base __name__=a,instance=i2 ; 0:c07aa20000000000 1:c069e80000000000 2:c069e80000000000 3:c07b520000000000 4:c07b520000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:c0733c0000000000 2:c0733c0000000000 3:c053080000000000 4:c053080000000000 +base __name__=target_info,k8s_cluster=c2 ; 2:4055700000000000 3:4055700000000000 4:4055700000000000 +base __name__=target_info,k8s_cluster=d1 ; 1:4071c20000000000 2:4052480000000000 3:4052480000000000 4:408ec70000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:40ffbd0000000000 +info __name__=target_info,k8s_cluster=c2 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 +info __name__=target_info,k8s_cluster=d1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 +result __name__=a,instance=i2 ; 0:c07aa20000000000 1:c069e80000000000 2:c069e80000000000 3:c07b520000000000 4:c07b520000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:c0733c0000000000 2:c0733c0000000000 3:c053080000000000 4:c053080000000000 +result __name__=target_info,k8s_cluster=c2 ; 2:4055700000000000 3:4055700000000000 4:4055700000000000 +result __name__=target_info,k8s_cluster=d1 ; 1:4071c20000000000 2:4052480000000000 3:4052480000000000 4:408ec70000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=y ; 0:c075580000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:408c5b0000000000 +base __name__=a,instance=i2,job=y ; 0:c082120000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 0:4085b00000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:408d630000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; +result __name__=a,instance=i1,job=y ; 0:c075580000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c1 ; 0:408c5b0000000000 +result __name__=a,instance=i2,job=y ; 0:c082120000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 0:4085b00000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 0:408d630000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 5 +base __name__=a ; 1:c07ce20000000000 2:c07ce20000000000 3:407fa60000000000 4:4085be0000000000 +base __name__=a,instance=i1,job=x,k8s_cluster=c1,zone=z2 ; 0:c08cf00000000000 1:408c300000000000 2:c085070000000000 3:408ed30000000000 4:408ed30000000000 +base __name__=a,instance=i2,job=y ; 0:c077140000000000 1:c077140000000000 2:c077140000000000 4:4089b90000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:c0863e0000000000 1:c0863e0000000000 2:c0863e0000000000 3:c08e2a0000000000 4:c08e2a0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 4:4101170000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1 ; 0:c077140000000000 1:c077140000000000 2:c077140000000000 4:4089b90000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y ; 1:c083830000000000 +base __name__=a,instance=i2,job=x ; 1:40893d0000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:406adc0000000000 1:4076a60000000000 +base __name__=a,instance=i2,job=y ; 1:c077da0000000000 +base __name__=a,job=x,k8s_cluster=c1,version=base,zone=z2 ; 0:4074b20000000000 1:40721c0000000000 +info __name__=target_info,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v1 ; +result __name__=a,instance=i1,job=y,version=v1 ; 1:c083830000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y ; 0:c088e90000000000 1:c088be0000000000 2:c088be0000000000 +base __name__=a,instance=i1,k8s_cluster=c1 ; 0:c0862d0000000000 1:c08d530000000000 2:c08d530000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:c0873b0000000000 1:c08de50000000000 2:c07a8a0000000000 +base __name__=a,job=y,version=base,zone=z2 ; 1:c0668c0000000000 2:c08a9a0000000000 +info __name__=build_info,instance=i1,job=y,version=v1,zone=z2 ; +info __name__=build_info,version=v2 ; 2:40fd4c0000000000 +info __name__=build_info,job=y,version=v2 ; 2:40fd4c0000000000 +result __name__=a,job=y,version=base,zone=z2 ; 2:c08a9a0000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y,version=base ; 0:4080a70000000000 1:c076080000000000 2:c076080000000000 +base __name__=a,instance=i2,job=y ; 1:4038600000000000 2:407a220000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 0:c082ff0000000000 1:c068540000000000 2:c068540000000000 +info __name__=target_info,instance=i2,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 +result __name__=a,instance=i1,job=y,version=base ; 0:4080a70000000000 1:c076080000000000 2:c076080000000000 +result __name__=a,instance=i2,job=y ; 1:4038600000000000 2:407a220000000000 +result __name__=a,job=x,k8s_cluster=c1 ; 0:c082ff0000000000 1:c068540000000000 2:c068540000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 2 +base __name__=a ; 0:c08b020000000000 1:404e300000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 1:c0871e0000000000 +base __name__=a,instance=i1,k8s_cluster=c1,version=base,zone=z1 ; 0:c07c980000000000 1:c07e620000000000 +base __name__=a,job=x ; 0:4056c00000000000 1:4089dc0000000000 +base __name__=a,job=y ; 1:c07e540000000000 +base __name__=a,k8s_cluster=c2 ; 0:c085880000000000 1:c078d60000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 1:40fadb0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 2 +base __name__=a,instance=i2,job=y ; 0:3ff0000000000000 1:3ff0000000000000 +base __name__=a,job=y ; 0:4042700000000000 1:4042700000000000 +info __name__=target_info,k8s_cluster=c1 ; +info __name__=target_info,instance=i1,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; +info __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 +result __name__=a,instance=i2,job=y ; 0:3ff0000000000000 1:3ff0000000000000 +result __name__=a,job=y ; 0:4042700000000000 1:4042700000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 6 +base __name__=a,instance=i1,job=y ; 0:c084af0000000000 1:c08b430000000000 2:c08b430000000000 3:4068580000000000 4:40860c0000000000 5:c08d760000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:4076120000000000 1:408ac50000000000 2:c0818b0000000000 3:c07ca60000000000 4:408dcd0000000000 5:c082380000000000 +base __name__=a,instance=i2,job=y ; 0:c082020000000000 1:c07a4a0000000000 2:c07a4a0000000000 3:c0857e0000000000 4:4063f00000000000 5:bffc000000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 2:4082c30000000000 3:c07a1c0000000000 4:c07a1c0000000000 5:408d910000000000 +base __name__=a,job=y,zone=z1 ; 0:4076360000000000 1:407b540000000000 2:c0751e0000000000 3:408a670000000000 4:4079c60000000000 5:c067600000000000 +end +case k8s_cluster false - +expr info({__name__=~"a|target_info"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 8 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:4078720000000000 1:c0662c0000000000 2:c0662c0000000000 3:4062bc0000000000 4:407c020000000000 5:40884c0000000000 6:c0796e0000000000 7:c0796e0000000000 +base __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v2 ; 0:407a9a0000000000 1:4080670000000000 2:4080670000000000 3:4080670000000000 4:c0820a0000000000 5:c0820a0000000000 6:c04a100000000000 7:c04a100000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; 0:4082a80000000000 1:4082a80000000000 2:4082a80000000000 6:c06ecc0000000000 7:c06ecc0000000000 +base __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:c081a80000000000 2:c081a80000000000 3:c081a80000000000 4:408a480000000000 5:c0867e0000000000 6:c0867e0000000000 7:c0867e0000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 2:4084cb0000000000 3:4084cb0000000000 4:4084cb0000000000 6:c08afa0000000000 7:c08afa0000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +result __name__=target_info,instance=i1,job=x,k8s_cluster=d1,version=v2 ; 0:407a9a0000000000 1:4080670000000000 2:4080670000000000 3:4080670000000000 4:c0820a0000000000 5:c0820a0000000000 6:c04a100000000000 7:c04a100000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; 0:4082a80000000000 1:4082a80000000000 2:4082a80000000000 6:c06ecc0000000000 7:c06ecc0000000000 +result __name__=target_info,job=x,k8s_cluster=c1,version=v1 ; 1:c081a80000000000 2:c081a80000000000 3:c081a80000000000 4:408a480000000000 5:c0867e0000000000 6:c0867e0000000000 7:c0867e0000000000 +result __name__=target_info,job=x,k8s_cluster=d1 ; 2:4084cb0000000000 3:4084cb0000000000 4:4084cb0000000000 6:c08afa0000000000 7:c08afa0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 1 +base __name__=a ; 0:c08d900000000000 +base __name__=a,instance=i1,job=y ; 0:c083840000000000 +base __name__=a,instance=i2,zone=z1 ; 0:408ea50000000000 +base __name__=a,job=x,version=base,zone=z2 ; 0:c074a60000000000 +info __name__=target_info,instance=i1,k8s_cluster=c1 ; 0:40f86a0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:c088d40000000000 1:c088d40000000000 2:c088d40000000000 3:408d2e0000000000 4:408d2e0000000000 5:c036a00000000000 6:407eee0000000000 7:407eee0000000000 8:407eee0000000000 9:c081650000000000 +base __name__=a,instance=i2,job=y ; 1:407b1e0000000000 2:4071160000000000 3:c0800e0000000000 4:408f3b0000000000 5:408f3b0000000000 6:408f3b0000000000 7:4083d10000000000 8:4083d10000000000 9:4083d10000000000 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:4081440000000000 2:4081440000000000 3:408daa0000000000 4:408daa0000000000 5:4080e10000000000 6:c0800c0000000000 7:4086970000000000 8:408a5c0000000000 9:407e980000000000 +base __name__=a,job=y,version=base ; 0:c07f1a0000000000 1:c088310000000000 2:c065440000000000 3:c0819b0000000000 4:c0819b0000000000 5:4080b60000000000 6:4080b60000000000 7:c050a80000000000 8:40782e0000000000 9:4086270000000000 +info __name__=target_info,instance=i1,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:4103880000000000 7:4104c08000000000 8:4104c08000000000 9:4107318000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 3 +base __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c077cc0000000000 1:c0752c0000000000 2:4086150000000000 +info __name__=target_info,k8s_cluster=d1,version=v1 ; 2:40fd4c0000000000 +info __name__=target_info,job=x,k8s_cluster=d1,version=v2 ; +result __name__=a,instance=i2,job=y,k8s_cluster=c2 ; 0:c077cc0000000000 1:c0752c0000000000 2:4086150000000000 +end +case version false __name__=~".+_info" +expr info({__name__="a"}, {__name__=~".+_info", version!=""}) +grid 100000 10000 4 +base __name__=a,instance=i1,job=y ; 0:c064e00000000000 1:c0861e0000000000 2:c0861e0000000000 3:c068fc0000000000 +base __name__=a,instance=i1,job=y,k8s_cluster=c1 ; 1:4074140000000000 2:4074140000000000 3:c056900000000000 +base __name__=a,instance=i2 ; 0:c064440000000000 1:408b0f0000000000 2:c0878f0000000000 3:c080390000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z1 ; 0:c07a1e0000000000 1:c07a1e0000000000 2:4084170000000000 3:c089280000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=c1,version=v2 ; 1:4074140000000000 2:4074140000000000 +result __name__=a,instance=i1,job=y,version=v2 ; 0:c064e00000000000 1:c0861e0000000000 2:c0861e0000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1,version=v2,zone=z1 ; 1:c07a1e0000000000 2:4084170000000000 3:c089280000000000 +end +case - true __name__="build_info" +expr info({__name__=~"a|target_info"}, {__name__="build_info"}) +grid 100000 10000 4 +base __name__=a ; 1:c080300000000000 2:c080300000000000 3:c080300000000000 +base __name__=a,instance=i1 ; 0:4080110000000000 1:4080110000000000 2:4084460000000000 3:c056600000000000 +base __name__=a,instance=i2,job=x ; 0:4079300000000000 1:4060480000000000 2:c050c80000000000 3:c0730c0000000000 +base __name__=a,instance=i2,job=y ; 0:4079e80000000000 1:c089940000000000 2:4081800000000000 3:4081800000000000 +base __name__=a,job=y ; 0:c081c00000000000 1:c08b0f0000000000 2:4076900000000000 3:c08e970000000000 +base __name__=a,k8s_cluster=c2 ; 0:c0614c0000000000 1:4076800000000000 2:4076800000000000 3:4076800000000000 +base __name__=target_info,instance=i1,k8s_cluster=c1,version=v1 ; 0:4050400000000000 1:c085a50000000000 2:c085a50000000000 3:c085a50000000000 +base __name__=target_info,instance=i2,job=x,k8s_cluster=d1 ; 2:c050980000000000 3:c050980000000000 +base __name__=target_info,instance=i2,k8s_cluster=d1 ; 1:c081960000000000 2:c081960000000000 3:c081960000000000 +base __name__=target_info,job=x,k8s_cluster=d1 ; 0:4087dc0000000000 1:4087dc0000000000 2:4085ab0000000000 3:c07eec0000000000 +base __name__=target_info,k8s_cluster=d1,version=v2 ; 0:405c180000000000 1:405c180000000000 2:c08b5e0000000000 3:c088e20000000000 +info __name__=build_info,job=x,version=v1 ; +info __name__=build_info,instance=i2,job=x,version=v2,zone=z2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +result __name__=a ; 1:c080300000000000 2:c080300000000000 3:c080300000000000 +result __name__=a,instance=i1 ; 0:4080110000000000 1:4080110000000000 2:4084460000000000 3:c056600000000000 +result __name__=a,instance=i2,job=x ; 0:4079300000000000 +result __name__=a,instance=i2,job=x,version=v2,zone=z2 ; 1:4060480000000000 2:c050c80000000000 3:c0730c0000000000 +result __name__=a,instance=i2,job=y ; 0:4079e80000000000 1:c089940000000000 2:4081800000000000 3:4081800000000000 +result __name__=a,job=y ; 0:c081c00000000000 1:c08b0f0000000000 2:4076900000000000 3:c08e970000000000 +result __name__=a,k8s_cluster=c2 ; 0:c0614c0000000000 1:4076800000000000 2:4076800000000000 3:4076800000000000 +result __name__=target_info,instance=i1,k8s_cluster=c1,version=v1 ; 0:4050400000000000 1:c085a50000000000 2:c085a50000000000 3:c085a50000000000 +result __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v2,zone=z2 ; 2:c050980000000000 3:c050980000000000 +result __name__=target_info,instance=i2,k8s_cluster=d1 ; 1:c081960000000000 2:c081960000000000 3:c081960000000000 +result __name__=target_info,job=x,k8s_cluster=d1 ; 0:4087dc0000000000 1:4087dc0000000000 2:4085ab0000000000 3:c07eec0000000000 +result __name__=target_info,k8s_cluster=d1,version=v2 ; 0:405c180000000000 1:405c180000000000 2:c08b5e0000000000 3:c088e20000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i1 ; 0:407c880000000000 +base __name__=a,instance=i1,job=y,zone=z1 ; 0:c07dc60000000000 +base __name__=a,instance=i2 ; 0:4077980000000000 +base __name__=a,job=y,zone=z2 ; 0:c058500000000000 +info __name__=target_info,k8s_cluster=c2,version=v1 ; +info __name__=target_info,job=x,k8s_cluster=c2,version=v1 ; +info __name__=target_info,instance=i2,job=x,k8s_cluster=d1,version=v1 ; +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i1,job=y ; 1:404c300000000000 +base __name__=a,job=x,k8s_cluster=c2,zone=z1 ; 0:c086b90000000000 1:c082570000000000 +result __name__=a,instance=i1,job=y ; 1:404c300000000000 +result __name__=a,job=x,k8s_cluster=c2,zone=z1 ; 0:c086b90000000000 1:c082570000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 0:4074540000000000 1:4040b00000000000 2:4086400000000000 3:c07e660000000000 +base __name__=a,instance=i2 ; 0:c0681c0000000000 1:4089010000000000 2:4084ab0000000000 3:c07cb40000000000 +base __name__=a,instance=i2,job=y,zone=z1 ; 0:4061980000000000 1:4061980000000000 2:c08b010000000000 3:c08b010000000000 +base __name__=a,job=y,zone=z1 ; 0:407a360000000000 1:c082300000000000 2:c082300000000000 3:c08ba40000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 2:40fd4c0000000000 3:40fd4c0000000000 +result __name__=a,instance=i1 ; 0:4074540000000000 1:4040b00000000000 2:4086400000000000 3:c07e660000000000 +result __name__=a,instance=i2 ; 0:c0681c0000000000 1:4089010000000000 2:4084ab0000000000 3:c07cb40000000000 +result __name__=a,instance=i2,job=y,zone=z1 ; 0:4061980000000000 1:4061980000000000 2:c08b010000000000 3:c08b010000000000 +result __name__=a,job=y,zone=z1 ; 0:407a360000000000 1:c082300000000000 2:c082300000000000 3:c08ba40000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 6 +base __name__=a,instance=i2 ; 0:c068480000000000 1:c086be0000000000 2:c086be0000000000 3:c086be0000000000 4:40790e0000000000 5:c078ec0000000000 +base __name__=a,instance=i2,job=x ; 1:4086980000000000 2:c074740000000000 3:c062700000000000 4:c062700000000000 5:c08f060000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 0:4032200000000000 1:4086d80000000000 2:4086d80000000000 3:4086d80000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:408d9e0000000000 1:405b100000000000 2:c065c00000000000 3:408b740000000000 4:4084d10000000000 5:c079f60000000000 +base __name__=a,job=y ; 0:4088950000000000 1:4088950000000000 2:4088950000000000 5:407ffc0000000000 +base __name__=a,job=y,k8s_cluster=c1,version=base ; 0:4087d10000000000 1:4087d10000000000 2:4081f30000000000 3:4071ae0000000000 4:4023800000000000 5:407cc20000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 3 +base __name__=a,instance=i2 ; 0:c08e050000000000 1:c07cb20000000000 2:c073760000000000 +base __name__=a,instance=i2,job=x ; 0:408e850000000000 1:4073ec0000000000 2:406d180000000000 +info __name__=target_info,job=y,k8s_cluster=d1 ; +info __name__=target_info,job=y,k8s_cluster=c2,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=c2,version=v1 ; 2:40fd4c0000000000 +info __name__=target_info,job=y,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fadb0000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 +result __name__=a,instance=i2 ; 0:c08e050000000000 1:c07cb20000000000 2:c073760000000000 +result __name__=a,instance=i2,job=x ; 0:408e850000000000 1:4073ec0000000000 2:406d180000000000 +end +case version false - +expr info({__name__=~"a|target_info"}, {version="v1"}) +grid 100000 10000 1 +base __name__=a,instance=i1,job=x ; 0:c070400000000000 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:408f2c0000000000 +base __name__=a,instance=i2,job=x,zone=z1 ; 0:407cd40000000000 +base __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:c066c00000000000 +result __name__=target_info,instance=i1,job=y,k8s_cluster=c2,version=v2 ; 0:c066c00000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 6 +base __name__=a ; 0:4070fe0000000000 1:4070fe0000000000 2:4070fe0000000000 5:c08f290000000000 +base __name__=a,job=y ; 0:408a520000000000 1:40830f0000000000 2:c07ca80000000000 3:4075660000000000 4:4075660000000000 5:c08b340000000000 +base __name__=a,job=y,zone=z1 ; 1:c05b880000000000 2:c07c700000000000 3:407ae60000000000 4:407ae60000000000 5:4021400000000000 +result __name__=a ; 0:4070fe0000000000 1:4070fe0000000000 2:4070fe0000000000 5:c08f290000000000 +result __name__=a,job=y ; 0:408a520000000000 1:40830f0000000000 2:c07ca80000000000 3:4075660000000000 4:4075660000000000 5:c08b340000000000 +result __name__=a,job=y,zone=z1 ; 1:c05b880000000000 2:c07c700000000000 3:407ae60000000000 4:407ae60000000000 5:4021400000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 10 +base __name__=a,instance=i1,job=x ; 0:40826a0000000000 1:c08a1f0000000000 2:c085e30000000000 3:c0703c0000000000 4:4076d60000000000 5:c07dc80000000000 6:c08c190000000000 7:40875a0000000000 8:4040d00000000000 9:c01c800000000000 +base __name__=a,job=y,zone=z2 ; 0:c06ef80000000000 1:c06ef80000000000 2:4005000000000000 3:c074660000000000 4:c08bf80000000000 5:c087710000000000 6:c08e4c0000000000 7:4068940000000000 8:408b520000000000 9:408b520000000000 +info __name__=build_info,instance=i2,job=y,version=v1 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 7:4104c08000000000 8:4104c08000000000 9:4104c08000000000 +info __name__=build_info,instance=i1,job=y,version=v2 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:40fd4c0000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 8:4105f90000000000 9:4107318000000000 +result __name__=a,instance=i1,job=x ; 0:40826a0000000000 1:c08a1f0000000000 2:c085e30000000000 3:c0703c0000000000 4:4076d60000000000 5:c07dc80000000000 6:c08c190000000000 7:40875a0000000000 8:4040d00000000000 9:c01c800000000000 +result __name__=a,job=y,zone=z2 ; 0:c06ef80000000000 1:c06ef80000000000 2:4005000000000000 3:c074660000000000 4:c08bf80000000000 5:c087710000000000 6:c08e4c0000000000 7:4068940000000000 8:408b520000000000 9:408b520000000000 +end +case - true __name__!="build_info" +expr info({__name__="a"}, {__name__!="build_info"}) +grid 100000 10000 8 +base __name__=a,job=x ; 0:4085920000000000 1:4071b40000000000 2:c08d4b0000000000 3:c053280000000000 4:c069c00000000000 5:c079900000000000 6:405bc80000000000 7:405bc80000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 1:c05d780000000000 2:c05d780000000000 3:c0864a0000000000 4:406e300000000000 5:4067480000000000 6:4067480000000000 7:4089e10000000000 +base __name__=a,job=y ; 0:c08f180000000000 1:4088040000000000 2:4088040000000000 3:407f9a0000000000 4:c08d3d0000000000 5:c062f00000000000 6:c08e7d0000000000 7:406a3c0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1 ; 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 7:4104c08000000000 +info __name__=target_info,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:41024f8000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2,version=v2 ; +info __name__=target_info,instance=i1,k8s_cluster=c1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,job=x ; 0:4085920000000000 1:4071b40000000000 2:c08d4b0000000000 3:c053280000000000 4:c069c00000000000 5:c079900000000000 6:405bc80000000000 7:405bc80000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 1:c05d780000000000 2:c05d780000000000 3:c0864a0000000000 4:406e300000000000 5:4067480000000000 6:4067480000000000 7:4089e10000000000 +result __name__=a,job=y ; 0:c08f180000000000 1:4088040000000000 2:4088040000000000 3:407f9a0000000000 4:c08d3d0000000000 5:c062f00000000000 6:c08e7d0000000000 7:406a3c0000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 6 +base __name__=a ; 0:4070220000000000 1:c076640000000000 2:407f660000000000 3:c081c30000000000 4:4070460000000000 5:c07c480000000000 +base __name__=a,instance=i1,job=y ; 1:c082570000000000 2:c08e740000000000 3:c075500000000000 4:c05b400000000000 5:c05b400000000000 +base __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z2 ; 0:407cd20000000000 1:c075f00000000000 2:c075f00000000000 3:4056900000000000 4:40805d0000000000 5:40805d0000000000 +base __name__=a,job=x,k8s_cluster=c2 ; 0:c0634c0000000000 1:c035000000000000 2:4047d00000000000 3:407cb60000000000 4:c054780000000000 5:4070de0000000000 +base __name__=a,version=base,zone=z1 ; 1:4085ba0000000000 2:4085ba0000000000 3:c063fc0000000000 4:4063580000000000 5:40705e0000000000 +info __name__=target_info,instance=i2,job=x,k8s_cluster=c1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 3:40ffbd0000000000 4:40ffbd0000000000 5:40ffbd0000000000 +result __name__=a ; 0:4070220000000000 1:c076640000000000 2:407f660000000000 3:c081c30000000000 4:4070460000000000 5:c07c480000000000 +result __name__=a,instance=i1,job=y ; 1:c082570000000000 2:c08e740000000000 3:c075500000000000 4:c05b400000000000 5:c05b400000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=c1,zone=z2 ; 0:407cd20000000000 1:c075f00000000000 2:c075f00000000000 3:4056900000000000 4:40805d0000000000 5:40805d0000000000 +result __name__=a,job=x,k8s_cluster=c2 ; 0:c0634c0000000000 1:c035000000000000 2:4047d00000000000 3:407cb60000000000 4:c054780000000000 5:4070de0000000000 +result __name__=a,version=base,zone=z1 ; 1:4085ba0000000000 2:4085ba0000000000 3:c063fc0000000000 4:4063580000000000 5:40705e0000000000 +end +case version false - +expr info({__name__="a"}, {version="v1"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=x,zone=z2 ; 0:c087c20000000000 1:4078540000000000 2:c08aae0000000000 +base __name__=a,instance=i1,job=y,version=base ; 0:c054280000000000 1:c0870a0000000000 2:4084b90000000000 +info __name__=target_info,job=y,k8s_cluster=d1,version=v1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +end +case - true __name__!="build_info" +expr info({__name__=~"a|target_info"}, {__name__!="build_info"}) +grid 100000 10000 4 +base __name__=a,instance=i1 ; 1:c068040000000000 2:c068040000000000 3:408d1f0000000000 +base __name__=a,instance=i2,job=y ; 0:c071840000000000 1:4070100000000000 2:4070100000000000 3:4081a70000000000 +base __name__=a,job=x,version=base,zone=z2 ; 0:c08cac0000000000 1:c08cac0000000000 2:c0767a0000000000 3:c0898c0000000000 +base __name__=a,job=y ; 0:c06a540000000000 1:c05f900000000000 2:c05f900000000000 3:408f310000000000 +base __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:c08e360000000000 2:406e580000000000 3:406e580000000000 +base __name__=target_info,k8s_cluster=d1,version=v2 ; 1:c08a1e0000000000 2:c08a1e0000000000 3:c079c20000000000 +info __name__=target_info,k8s_cluster=d1,version=v2 ; 1:40fadb0000000000 2:40fadb0000000000 3:40ffbd0000000000 +info __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:40fadb0000000000 2:40fd4c0000000000 3:40fd4c0000000000 +result __name__=a,instance=i1 ; 1:c068040000000000 2:c068040000000000 3:408d1f0000000000 +result __name__=a,instance=i2,job=y ; 0:c071840000000000 +result __name__=a,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:4070100000000000 2:4070100000000000 3:4081a70000000000 +result __name__=a,job=x,version=base,zone=z2 ; 0:c08cac0000000000 1:c08cac0000000000 2:c0767a0000000000 3:c0898c0000000000 +result __name__=a,job=y ; 0:c06a540000000000 1:c05f900000000000 2:c05f900000000000 3:408f310000000000 +result __name__=target_info,instance=i2,job=y,k8s_cluster=d1,version=v1 ; 1:c08e360000000000 2:406e580000000000 3:406e580000000000 +result __name__=target_info,k8s_cluster=d1,version=v2 ; 1:c08a1e0000000000 2:c08a1e0000000000 3:c079c20000000000 +end +case - true __name__="build_info" +expr info({__name__="a"}, {__name__="build_info"}) +grid 100000 10000 2 +base __name__=a,instance=i2,job=y,zone=z2 ; 1:c076860000000000 +base __name__=a,job=x,zone=z1 ; 0:406e2c0000000000 1:406e2c0000000000 +info __name__=build_info,instance=i2,job=x,version=v2 ; 0:40f86a0000000000 1:40fadb0000000000 +info __name__=build_info,instance=i2,job=x,version=v1 ; 0:40f86a0000000000 1:40fadb0000000000 +result __name__=a,instance=i2,job=y,zone=z2 ; 1:c076860000000000 +result __name__=a,job=x,zone=z1 ; 0:406e2c0000000000 1:406e2c0000000000 +end +case k8s_cluster false - +expr info({__name__="a"}, {k8s_cluster=~"c.*"}) +grid 100000 10000 8 +base __name__=a,instance=i2,job=x,version=base,zone=z2 ; 0:40827e0000000000 1:40776e0000000000 2:40776e0000000000 3:c06b640000000000 4:4063180000000000 5:4063180000000000 6:c08e570000000000 7:c069140000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 3:40ffbd0000000000 4:4101170000000000 5:41024f8000000000 6:41024f8000000000 7:4104c08000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 3 +base __name__=a,instance=i1,job=y,zone=z1 ; 2:c082540000000000 +base __name__=a,instance=i1,job=y,zone=z2 ; 0:406b480000000000 1:406b480000000000 2:4035e00000000000 +base __name__=a,instance=i2 ; 0:c08cde0000000000 1:c087650000000000 2:c087650000000000 +base __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:4085f90000000000 1:408e2f0000000000 2:4056c00000000000 +info __name__=target_info,instance=i1,job=y,k8s_cluster=d1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 +info __name__=target_info,job=x,k8s_cluster=d1 ; 2:40fd4c0000000000 +info __name__=target_info,job=x,k8s_cluster=c1,version=v2 ; +info __name__=target_info,k8s_cluster=d1,version=v2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40fd4c0000000000 +info __name__=target_info,instance=i2,k8s_cluster=c2 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=d1,zone=z1 ; 2:c082540000000000 +result __name__=a,instance=i1,job=y,k8s_cluster=d1,zone=z2 ; 0:406b480000000000 1:406b480000000000 2:4035e00000000000 +result __name__=a,instance=i2,job=x,k8s_cluster=c2 ; 0:4085f90000000000 1:408e2f0000000000 2:4056c00000000000 +result __name__=a,instance=i2,k8s_cluster=c2 ; 0:c08cde0000000000 1:c087650000000000 2:c087650000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 2 +base __name__=a,job=x ; 0:3ff0000000000000 1:4000000000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 1:4000000000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40fadb0000000000 +error vector cannot contain metrics with the same labelset +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 4 +base __name__=a,job=x ; 0:3ff0000000000000 1:3ff0000000000000 2:3ff0000000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 3:40ffbd0000000000 +info __name__=target_info,job=x,k8s_cluster=c2 ; 3:40ffbd0000000000 +result __name__=a,job=x ; 0:3ff0000000000000 1:3ff0000000000000 2:3ff0000000000000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 2 +base __name__=a,job=x ; 1:4000000000000000 +info __name__=target_info,job=x,k8s_cluster=a ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=b ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=c ; 1:40fadb0000000000 +error found duplicate series for info metric: existing {__name__="target_info", job="x", k8s_cluster="a"} @ 100000, new {__name__="target_info", job="x", k8s_cluster="b"} @ 100000 +end +case - true - +expr info({__name__="a"}) +grid 100000 10000 2 +base __name__=a,job=x ; 1:4000000000000000 +info __name__=target_info,job=x,k8s_cluster=c ; 1:40fadb0000000000 +info __name__=target_info,job=x,k8s_cluster=a ; 0:40f86a0000000000 1:40f86a0000000000 +info __name__=target_info,job=x,k8s_cluster=b ; 0:40f86a0000000000 1:40f86a0000000000 +result __name__=a,job=x,k8s_cluster=c ; 1:4000000000000000 +end +case - true __name__=~"target_info|build_info" +expr info({__name__="a"}, {__name__=~"target_info|build_info"}) +grid 100000 10000 4 +base __name__=a,job=x ; 1:4000000000000000 2:4000000000000000 3:4010000000000000 +base __name__=a,job=x,k8s_cluster=c1 ; 1:4000000000000000 2:4000000000000000 3:4000000000000000 +info __name__=target_info,job=x,k8s_cluster=c1 ; 1:40fadb0000000000 2:40fadb0000000000 3:40fadb0000000000 +info __name__=build_info,job=x,k8s_cluster=c2 ; 3:40ffbd0000000000 +error vector cannot contain metrics with the same labelset +end +case - true __name__!~"build_.*" +expr info(a * 2, {__name__!~"build_.*"}) +grid 100000 10000 3 +base instance=i1,job=x ; 0:4000000000000000 1:4010000000000000 2:4018000000000000 +base job=y ; 0:4000000000000000 1:4000000000000000 2:4018000000000000 +info __name__=target_info,instance=i1,job=x,k8s_cluster=c1 ; 0:40f86a0000000000 1:40f86a0000000000 2:40f86a0000000000 +result instance=i1,job=x,k8s_cluster=c1 ; 0:4000000000000000 1:4010000000000000 2:4018000000000000 +result job=y ; 0:4000000000000000 1:4000000000000000 2:4018000000000000 +end +case - true __name__=~"build_.*" +expr info(a * 2, {__name__=~"build_.*"}) +grid 100000 10000 3 +base job=y ; 0:4000000000000000 1:4000000000000000 2:4018000000000000 +info __name__=build_info,job=y,version=v1 ; 2:40fd4c0000000000 +result job=y ; 0:4000000000000000 1:4000000000000000 +result job=y,version=v1 ; 2:4018000000000000 +end diff --git a/src/promql/src/info/tests.rs b/src/promql/src/info/tests.rs new file mode 100644 index 00000000000..0215fceaecb --- /dev/null +++ b/src/promql/src/info/tests.rs @@ -0,0 +1,267 @@ +// Copyright 2023 Greptime Team +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +use std::collections::BTreeMap; +use std::sync::Arc; + +use datatypes::series::samples::{FieldSpec, SampleRef, Series, SeriesSchema}; +use datatypes::series::time::{EvalGrid, GridSpec}; + +use crate::grid_series::reference::{ + Labels, OwnedHistogram, Points, labels_of, metric_of, points_of, sparse_series, +}; +use crate::grid_series::{GridSample, GridSeriesBuilder}; +use crate::histogram_eval::float_histogram::FloatHistogram; +use crate::info::{InfoSelector, info}; +use crate::select::MatchOp; + +fn parse_labels(text: &str) -> Labels { + text.split(',') + .filter(|pair| *pair != "-") + .map(|pair| { + let (name, value) = pair.split_once('=').unwrap(); + (name.to_string(), value.to_string()) + }) + .collect() +} + +fn parse_points(text: &str) -> Points { + text.split_whitespace() + .map(|point| { + let (index, bits) = point.split_once(':').unwrap(); + ( + index.parse().unwrap(), + u64::from_str_radix(bits, 16).unwrap(), + ) + }) + .collect() +} + +fn list(text: &str) -> Vec<&str> { + text.split(';').filter(|item| *item != "-").collect() +} + +fn name_matcher(text: &str) -> (MatchOp, Arc) { + let rest = text.strip_prefix("__name__").unwrap(); + let (op, value) = [ + ("=~", MatchOp::Regex), + ("!~", MatchOp::NotRegex), + ("!=", MatchOp::NotEqual), + ("=", MatchOp::Equal), + ] + .into_iter() + .find_map(|(prefix, op)| rest.strip_prefix(prefix).map(|value| (op, value))) + .unwrap(); + (op, Arc::from(value.trim_matches('"'))) +} + +/// `info` evaluated by the Prometheus v3.15.0 engine; see the header of `prometheus_cases.txt`. +#[test] +fn info_matches_prometheus() { + let (mut matched, mut failed) = (0, 0); + for case in include_str!("prometheus_cases.txt") + .split("end\n") + .filter(|case| case.contains("case ")) + { + let lines: Vec<&str> = case.lines().filter(|line| !line.starts_with('#')).collect(); + let spec: Vec<&str> = lines[0].split_whitespace().skip(1).collect(); + let selector = InfoSelector { + data_labels: list(spec[0]).into_iter().map(Arc::from).collect(), + keep_unmatched: spec[1] == "true", + name_matchers: list(spec[2]).into_iter().map(name_matcher).collect(), + }; + let points: u64 = lines[2].split_whitespace().nth(3).unwrap().parse().unwrap(); + let schema = Arc::new(SeriesSchema { + fields: vec![FieldSpec { + name: Arc::from("value"), + }] + .into(), + eval_grid: Some(Arc::new( + EvalGrid::try_new(GridSpec::try_new(100_000, 10_000, points).unwrap()).unwrap(), + )), + }); + let (mut base, mut infos) = (Vec::new(), Vec::new()); + let mut expected: BTreeMap = BTreeMap::new(); + let mut error = None; + for line in &lines[3..] { + if let Some(message) = line.strip_prefix("error ") { + error = Some(message.to_string()); + continue; + } + let (kind, rest) = line.split_once(' ').unwrap(); + let (labels, values) = rest.split_once(" ;").unwrap(); + let (labels, values) = (parse_labels(labels), parse_points(values)); + match kind { + "base" => base.extend(sparse_series(&schema, &labels, &values)), + "info" => infos.extend(sparse_series(&schema, &labels, &values)), + "result" => { + expected.insert(labels, values); + } + other => panic!("unexpected line {other}"), + } + } + match (info(&schema, &base, &infos, &selector), error) { + (Ok(actual), None) => { + let mut folded: BTreeMap = BTreeMap::new(); + for series in &actual { + folded + .entry(labels_of(&series.metric)) + .or_default() + .extend(points_of(series)); + } + assert_eq!(folded, expected, "{case}"); + matched += 1; + } + (Err(actual), Some(expected)) => { + let class = |message: &str| { + [ + "found duplicate series for info metric", + "conflicting label", + "same labelset", + ] + .into_iter() + .find(|class| message.contains(class)) + }; + assert_eq!(class(&actual.to_string()), class(&expected), "{case}"); + failed += 1; + } + (actual, expected) => panic!("{case}\ngot {actual:?}, expected error {expected:?}"), + } + } + assert!( + matched > 200 && failed > 5, + "{matched} matched, {failed} failed" + ); +} + +fn grid_schema(fields: usize) -> Arc { + Arc::new(SeriesSchema { + fields: (0..fields) + .map(|field| FieldSpec { + name: Arc::from(format!("f{field}")), + }) + .collect::>() + .into(), + eval_grid: Some(Arc::new( + EvalGrid::try_new(GridSpec::try_new(0, 10_000, 1).unwrap()).unwrap(), + )), + }) +} + +fn one_point( + schema: &Arc, + labels: &[(&str, &str)], + row: Vec>, +) -> Series { + let labels: Labels = labels + .iter() + .map(|(name, value)| (name.to_string(), value.to_string())) + .collect(); + let mut builder = GridSeriesBuilder::try_new(schema.clone()).unwrap(); + builder.push_samples(0, &row).unwrap(); + builder.finish(metric_of(&labels)).unwrap().unwrap() +} + +fn target_info() -> Series { + one_point( + &grid_schema(1), + &[ + ("__name__", "target_info"), + ("job", "x"), + ("k8s_cluster", "c1"), + ], + vec![Some(GridSample::Float(0.0))], + ) +} + +fn all_labels() -> InfoSelector { + InfoSelector { + name_matchers: Vec::new(), + data_labels: Vec::new(), + keep_unmatched: true, + } +} + +/// Each field is a series of its own: two base series that end up with one label set merge where +/// they hold different fields, and collide only where both hold the same field. +#[test] +fn results_with_one_label_set_merge_by_field() { + let schema = grid_schema(2); + let float = |value| Some(GridSample::Float(value)); + let enriched = one_point( + &schema, + &[("__name__", "a"), ("job", "x")], + vec![float(1.0), None], + ); + let labelled = |row| { + one_point( + &schema, + &[("__name__", "a"), ("job", "x"), ("k8s_cluster", "c1")], + row, + ) + }; + let merged = info( + &schema, + &[enriched.clone(), labelled(vec![None, float(2.0)])], + &[target_info()], + &all_labels(), + ) + .unwrap(); + assert_eq!(merged.len(), 1); + let fields: Vec<_> = merged[0] + .fields + .iter() + .map(|field| match field.sample(0) { + SampleRef::Float(value) => Some(value), + _ => None, + }) + .collect(); + assert_eq!(fields, [Some(1.0), Some(2.0)]); + + let error = info( + &schema, + &[enriched, labelled(vec![float(3.0), None])], + &[target_info()], + &all_labels(), + ) + .unwrap_err(); + assert!(error.to_string().contains("same labelset"), "{error}"); +} + +/// A native histogram base sample is enriched like a float one. +#[test] +fn histogram_base_samples_are_enriched() { + let schema = grid_schema(1); + let histogram = + OwnedHistogram::parse("0/0/0/3ff0000000000000/3ff0000000000000/0/1_1/3ff0000000000000///"); + let base = one_point( + &schema, + &[("__name__", "a"), ("job", "x")], + vec![Some(GridSample::Histogram(Box::new( + FloatHistogram::try_from_view(&histogram.view()).unwrap(), + )))], + ); + let output = info(&schema, &[base], &[target_info()], &all_labels()).unwrap(); + assert_eq!(output.len(), 1); + assert_eq!( + labels_of(&output[0].metric) + .get("k8s_cluster") + .map(String::as_str), + Some("c1") + ); + assert!(matches!( + output[0].fields.as_slice()[0].sample(0), + SampleRef::Histogram(_) + )); +} diff --git a/src/promql/src/lib.rs b/src/promql/src/lib.rs index c9ee89ff62c..bd533720e55 100644 --- a/src/promql/src/lib.rs +++ b/src/promql/src/lib.rs @@ -22,6 +22,7 @@ mod go_sort; mod golden; pub mod grid_series; pub mod histogram_eval; +pub mod info; pub mod instant_eval; pub mod map; pub mod map_label; diff --git a/src/promql/src/map.rs b/src/promql/src/map.rs index cb3c3cc6f80..122003e84bf 100644 --- a/src/promql/src/map.rs +++ b/src/promql/src/map.rs @@ -23,6 +23,7 @@ mod go_math; #[cfg(test)] mod tests; +pub(crate) use broadcast::validate_scalar; pub use broadcast::{ ScalarFunction, ScalarSeriesOperand, map_arithmetic_series, map_compare_series, map_scalar_function, diff --git a/src/promql/src/map/broadcast.rs b/src/promql/src/map/broadcast.rs index b6b1a4c161b..a9f46d3a471 100644 --- a/src/promql/src/map/broadcast.rs +++ b/src/promql/src/map/broadcast.rs @@ -179,7 +179,10 @@ fn map_grid_scalar( builder.finish(metric) } -fn validate_scalar<'a>(schema: &SeriesSchema, scalar: &'a Series) -> Result<&'a TimeAxis> { +pub(crate) fn validate_scalar<'a>( + schema: &SeriesSchema, + scalar: &'a Series, +) -> Result<&'a TimeAxis> { if scalar.metric.name().is_some() || !scalar.metric.tags().is_empty() { return Err(DataFusionError::Execution( "grid scalar must be unlabelled".into(), diff --git a/src/promql/src/native/execute.rs b/src/promql/src/native/execute.rs index 25e2c4a3c94..7684ee2aa2b 100644 --- a/src/promql/src/native/execute.rs +++ b/src/promql/src/native/execute.rs @@ -30,6 +30,18 @@ //! outer window reads the inner result as the samples it is, not as something to be resampled onto //! the outer grid first. //! +//! An instant selection owns no evaluator, because [`select_instants`] takes a complete source +//! axis: the node buffers the chunks of the series it is selecting until the chunk that carries +//! `is_last`, selects the last sample at or before each grid point of it, and hands the series over +//! as one chunk addressed on its own grid. Nothing is decided for a series before it ends, which is +//! the price of the kernel taking one axis rather than a chunk of one. +//! +//! A vector–vector binary node is the one kind that reads two inputs: it retains the chunks of both +//! operands and runs the matching kernel once the input has ended, because the operation pairs two +//! whole vectors point by point and nothing is decided for a point until both sides are complete. +//! The chunks of one logical series are assembled into the single series the kernel matches before it +//! runs, so a series that arrived in many chunks is one candidate, not one per chunk. +//! //! A node kind this runtime does not execute yet is rejected when the execution is built, naming //! the kind and its position. An unsupported tree therefore never starts, rather than answering //! half a query or panicking halfway through one. @@ -61,28 +73,34 @@ //! collects the root's chunks and merges them with the same helper. use std::collections::hash_map::Entry; -use std::collections::{HashMap, VecDeque}; +use std::collections::{HashMap, HashSet, VecDeque}; use std::sync::Arc; use datafusion::error::{DataFusionError, Result}; use datafusion::execution::memory_pool::{MemoryConsumer, MemoryPool, MemoryReservation}; use datafusion::physical_plan::metrics::ExecutionPlanMetricsSet; use datatypes::arrow::array::{Array, Float64Array}; -use datatypes::arrow::buffer::Buffer; -use datatypes::series::histogram::HistogramBatch; -use datatypes::series::raw::RawSeriesChunk; +use datatypes::arrow::buffer::{Buffer, ScalarBuffer}; +use datatypes::series::histogram::{HistogramBatch, HistogramView}; +use datatypes::series::raw::{RawSeriesChunk, RawTimestamps}; use datatypes::series::samples::{ - DenseSamplesRef, SampleRef, Samples, Series, SeriesFields, SeriesSchema, + DenseSamplesRef, RowCursor, SampleRef, Samples, Series, SeriesFields, SeriesSchema, }; -use datatypes::series::time::{GridRange, TimeAxis}; +use datatypes::series::time::{EvalGrid, GridRange, GridSpan, GridSpec, TimeAxis}; use datatypes::series::{MetricName, SeriesOrdering}; -use crate::grid_series::{LabelSet, label_set, merge_same_labelset}; +use crate::grid_series::{ + GridSample, GridSeriesBuilder, LabelSet, label_set, merge_same_labelset, owned, +}; +use crate::instant_eval::select_instants; use crate::map::{MathOp, drop_metric_name, map_math}; use crate::native::batch::EvaluatedChunk; use crate::native::metrics::{NodeMetrics, NodePath}; -use crate::native::plan::{NativeExpr, NativeTree}; +use crate::native::plan::{BoundInstant, NativeExpr, NativeNode, NativeTree}; use crate::range_eval::RangeEvaluator; +use crate::vector_match::{ + BinaryMatching, binary_vectors_with_reservation, validate_binary_operand, +}; #[cfg(test)] mod tests; @@ -180,6 +198,98 @@ fn series_bytes(series: &Series) -> usize { .saturating_add(metric_bytes(&series.metric)) } +/// The bytes one chunk a binary operand retains holds on its own. +/// +/// It is [`series_bytes`] with the samples a chunk's rows occupy in place of the allocations they +/// are slices of: a series delivered in a thousand chunks holds a thousand slices of one buffer, so +/// counting that buffer once per chunk would make the operand's figure grow with the number of +/// chunks rather than with the data in them. The slices of one series add up to the allocation they +/// share, which is the figure a deduplication across the chunks would arrive at. +/// +/// The histogram tables a chunk's segments reference are not part of the figure: a table is one +/// allocation however many chunks index into it, so it is not a per-chunk cost at all. Dropping it +/// here is therefore only half the story -- it must not become a figure the operand never charges. +/// [`unbilled_tables`] is the other half, and the operand bills each table once through it. +fn operand_chunk_bytes(series: &Series) -> usize { + series_bytes(series) + .saturating_sub(fields_bytes(&series.fields)) + .saturating_add(sample_slice_bytes(&series.fields)) +} + +/// The bytes the samples of one series' fields take as the slices they are. +/// +/// A dense segment is counted by the rows it holds -- not by the buffer its slice belongs to -- and a +/// field of native histograms by its column of indices, because the table those indices point into +/// is one allocation the chunks of the series share. A nested segment holds rows of its own in the +/// chunks it is made of, so it is left to them. +fn sample_slice_bytes(fields: &SeriesFields) -> usize { + fields + .iter() + .flat_map(|field| field.segments()) + .map(|segment| match segment.dense() { + Some(DenseSamplesRef::Float(values)) => { + values.len().saturating_mul(std::mem::size_of::()) + } + Some(DenseSamplesRef::Histogram(histograms)) => histograms + .indices() + .len() + .saturating_mul(std::mem::size_of::()), + Some(DenseSamplesRef::Mixed(mixed)) => mixed + .floats() + .len() + .saturating_mul(std::mem::size_of::()) + .saturating_add( + mixed + .histograms() + .indices() + .len() + .saturating_mul(std::mem::size_of::()), + ), + // `segments` hands out dense segments only, so a nested chunk never reaches here. + None => 0, + }) + .fold(0usize, usize::saturating_add) +} + +/// The histogram tables `series` is the first to reference, and the bytes they hold. +/// +/// A table is one allocation the chunks of a series share, so it is neither a per-chunk cost -- +/// counting it per chunk would make a series delivered in a thousand chunks cost a thousand tables +/// -- nor no cost at all, which is what leaving it out of every chunk leaves the figure at. What it +/// is, is a cost of the operand that first retains a chunk referencing it: the identities it returns +/// are the tables `billed` does not hold yet, and the figure is what those tables hold +/// ([`table_bytes`]). The caller bills the figure as it stands and adds the identities to `billed` +/// once the chunk is retained, which is what makes the two halves of the figure agree. +/// +/// The identity is the address of the allocation behind the `Arc`. It names one table for as long as +/// it is remembered, because a chunk referencing a table keeps it alive and no later allocation can +/// be given the same address. A table two segments or two fields of the one chunk reference is +/// listed once. Each identity is also one slot in the set that remembers it, which is charged as it +/// is written -- one entry at a time, like the boundary list's, and not from the capacity the set +/// grows to -- so remembering a table is paid for beside the table itself. +fn unbilled_tables(series: &Series, billed: &HashSet) -> (Vec, usize) { + let mut fresh: Vec = Vec::new(); + let mut bytes = 0usize; + for field in series.fields.iter() { + for segment in field.segments() { + let table = match segment.dense() { + Some(DenseSamplesRef::Histogram(histograms)) => histograms.batch(), + Some(DenseSamplesRef::Mixed(mixed)) => mixed.histograms().batch(), + _ => continue, + }; + let identity = Arc::as_ptr(table) as usize; + if billed.contains(&identity) || fresh.contains(&identity) { + continue; + } + fresh.push(identity); + bytes = bytes + .saturating_add(table_bytes(table)) + .saturating_add(std::mem::size_of::()); + } + } + (fresh, bytes) +} + /// A rough workspace estimate for merging fragments that hold `rows` rows between them. /// /// It allows for sorted row indices, readers, sample descriptors and output headers. Like the @@ -261,10 +371,14 @@ fn buffer_bytes(buffer: &Buffer) -> usize { enum NodeTag { /// Forwards the chunks it is given. Input, + /// Buffers one series and selects the last sample at or before each of its grid points. + Instant, /// Feeds its input to its own [`RangeEvaluator`]. Window, /// Applies point-wise operations to its input chunks. Map, + /// Matches two evaluated vectors and applies one operation to every matched pair of series. + Binary, } impl NodeTag { @@ -272,8 +386,10 @@ impl NodeTag { fn describe(self) -> &'static str { match self { Self::Input => "input", + Self::Instant => "instant selection", Self::Window => "window", Self::Map => "map", + Self::Binary => "binary", } } } @@ -282,7 +398,8 @@ impl NodeTag { #[derive(Clone, Copy, Debug)] struct NodeSpec { tag: NodeTag, - /// The index of this node's input, which is the node the build pass reaches next. + /// The index of this node's input, which is the node the build pass reaches next: the one + /// input of a unary node, the left operand of a binary node, and none for an input node. input: Option, } @@ -836,21 +953,945 @@ struct MapRuntime { schema: Arc, } +/// What an instant node holds: the chunks of the one series it is selecting, until that series ends. +/// +/// [`select_instants`] takes a complete source axis, so this node cannot decide a grid point from +/// the samples one chunk carries the way a window decides a range from what it has retained: it +/// buffers a whole series and hands one chunk over for it. What it holds is therefore the series' +/// own bytes, not a fixed window of them, and the reservation follows the buffer. +struct InstantRuntime { + /// The bound selection: how far back it reads, the offset it reads at, and the grid its values + /// are addressed on. + selection: BoundInstant, + /// The layout the chunk it hands out is addressed on: its input's fields on that grid. + schema: Arc, + /// Where the rows the selection picked are gathered, one series at a time. + output: GridSeriesBuilder, + /// The chunks of the series being selected, in arrival order; empty while no series is open. + chunks: Vec, + /// What `chunks` hold, added as each chunk arrives and given back when the series is gathered. + /// + /// Each chunk is measured once, with the estimate a queued chunk is charged with: an allocation + /// two chunks of the series share is counted once per chunk, which is the over-count a figure + /// that keeps no state across chunks accepts. + held: usize, +} + +impl InstantRuntime { + /// The run-time state of the instant selection `op`, reading the samples of `input`. + fn try_new(input: &SeriesSchema, op: &BoundInstant) -> Result { + // The chunk this node hands out is addressed on the selection's own grid, so the grid the + // rows are gathered on is the binding's rather than a copy of it. + let schema = Arc::new(SeriesSchema { + fields: Arc::clone(&input.fields), + eval_grid: Some(Arc::clone(&op.output_grid)), + }); + Ok(Self { + selection: op.clone(), + output: GridSeriesBuilder::try_new(Arc::clone(&schema))?, + schema, + chunks: Vec::new(), + held: 0, + }) + } + + /// The bytes the buffered chunks of the open series hold. + fn buffered_bytes(&self) -> usize { + self.held + } + + /// The bytes gathering the series `closing` ends is about to allocate beside its chunks. + /// + /// An upper bound derived from what the selection has in hand rather than a measurement: the + /// rows the series holds once `closing` has joined it, the fields it carries, the points the + /// selection can decide for it, and, per field, the largest histogram a row of it can carry. + /// Each term is one thing the gather allocates: + /// + /// - The concatenated axis ([`buffered_time`]): one `i64` per row, reserved by the row count. + /// - The descriptors that read it ([`buffered_fields`]): one [`Samples`] per (chunk, field) for + /// the per-field vectors, three per segment for the vector [`Samples::try_from_chunks`] + /// flattens them into -- the segment it came from, the vector it is flattened into and the + /// `Arc<[Samples]>` the result is copied into -- and one `Vec` header per field. + /// - The two arrays [`select_instants`] returns: a `u64` source row index and an `i64` + /// evaluation timestamp per point, reserved by the count they can reach at most. + /// - The rows [`GridSeriesBuilder`] keeps: one `usize` grid index, one `f64` per field and a + /// validity byte per (row, field). A field of native histograms adds one `Option` index + /// per row and the payload of the histogram that index names, charged at the largest one the + /// field holds and per *point* rather than per row: one source row can be selected by every + /// point the selection decides, so the point count is what that payload is multiplied by. + /// - The row the selection fills, one [`GridSample`] slot per field, and one [`RowCursor`] per + /// field to read the axis with. + /// - Doubling: every column the builder keeps is a `Vec` that grows by doubling, so each is + /// charged twice what it ends up holding, which bounds its capacity rather than its length. + /// + /// Left out, deliberately: the headers and Arrow buffers behind the buffered chunks (the + /// node's own reservation already holds them, allocation by allocation), the `Vec` headers the + /// gather drops before it returns, `Series`' own header and the runs [`GridSeriesBuilder`] + /// hands the output over with, which the output chunk is charged for by whoever reads it, and + /// the temporaries [`FloatHistogram::push_to`] builds for one row. None of those is + /// proportional to the points the selection decides, which is the amplification the pool has to + /// be asked for, and all of them are constant per gather or already counted row by row. + /// + /// The estimate applies to every gather: nothing refuses one before it allocates, so the points + /// the series can be decided at are reserved for whatever their number is. + /// + /// [`FloatHistogram::push_to`]: crate::histogram_eval::float_histogram::FloatHistogram::push_to + fn gather_bytes(&self, closing: &RawSeriesChunk) -> usize { + // The points the selection decides, not the points the grid plans: the gather clips its + // scan to the series it holds, so a figure over the whole grid would charge the pool for + // rows this series can never produce. + let points = self.selected_points(closing); + let chunks = self.chunks.len().saturating_add(1); + let rows = self + .chunks + .iter() + .chain(std::iter::once(closing)) + .map(|chunk| chunk.time.len()) + .fold(0usize, usize::saturating_add); + let fields = self.schema.fields.len(); + let descriptor = std::mem::size_of::(); + let segments = self + .chunks + .iter() + .chain(std::iter::once(closing)) + .flat_map(|chunk| chunk.fields.as_slice()) + .map(|field| field.segments().len()) + .fold(0usize, usize::saturating_add); + let axis = rows.saturating_mul(std::mem::size_of::()); + let layout = chunks + .saturating_mul(fields) + .saturating_mul(descriptor) + .saturating_add(segments.saturating_mul(3).saturating_mul(descriptor)) + .saturating_add(fields.saturating_mul(std::mem::size_of::>())); + let selection = + points.saturating_mul(std::mem::size_of::() + std::mem::size_of::()); + let mut rows_of_points = points.saturating_mul( + std::mem::size_of::() + fields.saturating_mul(std::mem::size_of::() + 1), + ); + for largest in self.largest_histograms(closing).iter().flatten() { + rows_of_points = rows_of_points.saturating_add( + points.saturating_mul(std::mem::size_of::>().saturating_add(*largest)), + ); + } + let row = fields.saturating_mul( + std::mem::size_of::>() + std::mem::size_of::>(), + ); + axis.saturating_add(layout) + .saturating_add(selection) + .saturating_add(row) + .saturating_add(rows_of_points.saturating_mul(2)) + } + + /// The number of grid points [`select_instants`] clips the buffered series to. + /// + /// The gather clips its scan to the series it holds instead of reading the whole planned grid: + /// the candidate points run from the first sample's instant to the last sample's plus the + /// lookback, aligned to the grid and held inside the query range. A workspace is charged per + /// point, so the count has to be the clipped one -- charging the planned grid charges the pool + /// for rows a short series can never produce, and a pool sized for what the series costs then + /// refuses the gather. The clipping below is [`select_instants`]' own, repeated rather than + /// approximated: an estimate that disagrees with the kernel is a bug here rather than a + /// conservative bound. It is the kernel's own candidate count -- the one it sizes its arrays + /// with -- so it bounds the rows it can report even though a candidate at the lookback edge + /// itself selects nothing. Both ends come from chunks the node already holds, so the count + /// reads two timestamps rather than the rows. + fn selected_points(&self, closing: &RawSeriesChunk) -> usize { + let spec = self.selection.output_grid.spec(); + // The selection refuses these itself, before it can decide anything. + if spec.step_ms <= 0 || self.selection.lookback_ms < 0 { + return 0; + } + let query_start = i128::from(spec.start_ms); + let query_end = i128::from(grid_end_ms(spec)); + if query_end < query_start { + return 0; + } + let series = || self.chunks.iter().chain(std::iter::once(closing)); + let (Some(first), Some(last)) = ( + series().find_map(|chunk| chunk.time.as_buffer().first().copied()), + series() + .rev() + .find_map(|chunk| chunk.time.as_buffer().last().copied()), + ) else { + // A series of no sample decides no point. + return 0; + }; + let offset = i128::from(self.selection.offset_ms); + let lookback = i128::from(self.selection.lookback_ms); + let first = i128::from(first) + offset; + let last = i128::from(last) + offset; + let useful_last = if lookback == 0 { + last + } else { + last + lookback - 1 + }; + let max_start = first.max(query_start); + let min_end = useful_last.min(query_end); + if max_start > min_end { + return 0; + } + let step = i128::from(spec.step_ms); + let aligned_start = query_start + (max_start - query_start) / step * step; + let aligned_end = query_end - (query_end - min_end) / step * step; + let points = (aligned_end - aligned_start) / step + 1; + usize::try_from(points).unwrap_or(usize::MAX) + } + + /// The largest histogram a row of each field can carry, `None` for a field of floats. + /// + /// A row of native histograms is copied into the builder once per grid point that selects it, + /// so what such a field costs is one histogram per point: the largest row is the one to charge, + /// because any row can be the one every decided point picks. + fn largest_histograms(&self, closing: &RawSeriesChunk) -> Vec> { + let mut largest = vec![None; self.schema.fields.len()]; + for chunk in self.chunks.iter().chain(std::iter::once(closing)) { + for (slot, field) in largest.iter_mut().zip(chunk.fields.as_slice()) { + if let Some(bytes) = histogram_row_bytes(field) { + *slot = Some(slot.unwrap_or(0).max(bytes)); + } + } + } + largest + } + + /// Buffers one chunk of the series being selected, and gathers that series when it ends. + /// + /// `None` means the series is still open: the selection reads one whole axis, so nothing is + /// decided for a series until the chunk carrying `is_last` arrives. + fn push(&mut self, path: &NodePath, chunk: RawSeriesChunk) -> Result> { + if let Some(open) = self.chunks.first() + && (open.primary_key.as_slice() != chunk.primary_key.as_slice() + || open.metric != chunk.metric) + { + // One axis is gathered before the kernel reads any of it, so a chunk of another series + // has nowhere to go: it would be selected as though its samples were the open series'. + return Err(series_changed(path)); + } + let closing = chunk.is_last; + self.held = self.held.saturating_add(raw_bytes(&chunk)); + self.chunks.push(chunk); + if !closing { + return Ok(None); + } + self.gather(path).map(Some) + } + + /// Selects the instants of the buffered series, hands it over closed, and drops the buffer. + fn gather(&mut self, path: &NodePath) -> Result { + let chunk = self.select(path)?; + // The selection copied what it needed out of the buffered chunks, so a series that has been + // answered must not keep charging the pool for them. + self.chunks.clear(); + self.chunks.shrink_to_fit(); + self.held = 0; + Ok(chunk) + } + + /// The last sample at or before each grid point of the buffered series, as one chunk. + fn select(&mut self, path: &NodePath) -> Result { + let Some(first) = self.chunks.first() else { + return Err(DataFusionError::Execution(format!( + "the instant selection at {path} holds no series to select" + ))); + }; + let metric = first.metric.clone().ok_or_else(|| no_labels(path))?; + // The buffered chunks are one series, so they are read as the one axis the selection takes. + let time = buffered_time(&self.chunks)?; + let fields = buffered_fields(&self.chunks, self.schema.fields.len())?; + let grid = Arc::clone(&self.selection.output_grid); + let spec = grid.spec(); + // The grid's own points are what the selection decides, so the range and the step it is + // asked for are the grid's: `start..=start + (len - 1) * step`, step by step. + let (indices, timestamps) = select_instants( + &time, + &fields, + spec.start_ms..=grid_end_ms(spec), + spec.step_ms, + self.selection.lookback_ms, + self.selection.offset_ms, + )?; + self.output.begin_series(); + // One cursor per field, so a row is read as the field holds it rather than by walking the + // chunks of a field from its start once per row. + let mut cursors: Vec> = fields.iter().map(Samples::cursor).collect(); + // `GridSample` is not `Clone`, so the row is filled slot by slot rather than from one value. + let mut row: Vec> = (0..fields.len()).map(|_| None).collect(); + let mut read: Option = None; + for (index, timestamp) in indices.iter().zip(×tamps) { + let index = *index as usize; + // The selection steps the grid's range by its step, so every timestamp it reports is a + // point of the grid and the position is the point's index in it. + let position = grid_position(&grid, *timestamp)?; + // Two grid points can select one source row, and the row is read once for both. + if read != Some(index) { + for (slot, cursor) in row.iter_mut().zip(&mut cursors) { + let sample = cursor.at(index).ok_or_else(|| missing_row(path, index))?; + *slot = owned(sample)?; + } + read = Some(index); + } + // A position no field holds a value at is not a row: the builder drops it, which is + // what keeps a hole in the grid out of the result instead of padding it. + self.output.push_samples(position, &row)?; + } + // The rows the selection picked are the rows this series holds, and the whole series is + // decided at once, so this one chunk closes it. + match self.output.finish(metric.clone())? { + Some(series) => EvaluatedChunk::try_new(series, true), + None => no_row_chunk(&self.schema, metric), + } + } +} + +/// One operand of a binary node, chunk by chunk, until it ends. +/// +/// What is kept is the series each chunk carries, not a concatenation of them: a chunk is retained +/// as it arrives and nothing is copied on the way in, because the chunks of a series can share an +/// allocation and the figure the operand charges for is the data it holds rather than a running copy +/// of it. +/// +/// The kernel matches whole series by label set, so the chunks are assembled into one series per +/// logical series once the input has ended: a series that arrived in a thousand chunks is otherwise +/// a thousand candidates on this side for every candidate of the other, and its own rows would be +/// paired a chunk at a time. +#[derive(Default)] +struct BinaryOperand { + /// The series whose last chunk did not close it, with the position after its last row. + /// + /// `None` when no series is open: nothing has arrived yet, or the last series closed. A label + /// set may be closed more than once -- a node that rewrites labels can make two series one -- + /// so a chunk that starts a series again is not an error, only one that starts it before the + /// series already open ended, or names another series while it is open. + open: Option<(MetricName, usize)>, + /// The chunks this operand handed over, in arrival order. + series: Vec, + /// The chunk count at which each logical series closed, exclusive, in arrival order. + /// + /// The chunks `start..end` of one entry are one logical series: a label set that closes and + /// starts again is two of them, so a list of ends is what keeps the two apart where a label set + /// alone would read them as one. Only a chunk carrying `is_last` records an end, and it does so + /// whether or not it carries a row. + ends: Vec, + /// The histogram tables the chunks this operand holds index into, by the address of the + /// allocation behind their `Arc`. + /// + /// A table is one allocation however many chunks of a series index into it, so it is billed + /// once -- by the first chunk that references it -- rather than once per chunk, and the tables + /// this set names are the ones already billed. That is what keeps a series delivered in a + /// thousand chunks from costing a thousand tables, and what keeps a table from costing nothing: + /// a chunk's own figure leaves its tables out ([`operand_chunk_bytes`]), so a table billed by + /// neither this operand nor this set is a table no reservation covers. One slot per billed + /// table is charged with it, so the set's own storage is not a figure no reservation covers + /// either. + tables: HashSet, + /// The bytes `series` and `ends` hold, folded in as chunks arrive. + /// + /// Each chunk is measured once, with the figure of what it holds on its own + /// ([`operand_chunk_bytes`]): the samples its rows occupy and the descriptors it keeps, not the + /// allocation those samples are slices of, so a series delivered in many chunks is charged the + /// data it holds rather than the same buffer once per chunk. The histogram tables the chunks + /// reference are the other half of that figure: one allocation the chunks share, billed once -- + /// with the one slot that remembers it -- the first time a chunk referencing it arrives + /// ([`unbilled_tables`]). + held: usize, +} + +impl BinaryOperand { + /// The bytes `chunk` would add to what this operand holds, read without retaining it. + /// + /// It is what [`Self::enqueue`] adds for the same chunk: what the chunk holds on its own, the + /// histogram tables it is the first to reference, and the one entry a chunk that closes its + /// series records in the boundary list. The boundary list holds one `usize` per closed series and + /// is charged one entry at a time as it is written, rather than from the capacity it grows to -- + /// following that `Vec`'s first-four-then-double policy would be a second copy of it to keep in + /// step, and one entry within a factor of two is the granularity the accounting aims at. The + /// figure is what a caller reserves before it retains the chunk, so the pool admits it before + /// the operand holds it. + fn pending(&self, chunk: &EvaluatedChunk) -> usize { + let end = if chunk.is_last { + std::mem::size_of::() + } else { + 0 + }; + let (_, tables) = unbilled_tables(&chunk.series, &self.tables); + tables + .saturating_add(operand_chunk_bytes(&chunk.series)) + .saturating_add(end) + } + + /// Retains one chunk, folding the estimate it is charged with into what the operand holds. + fn enqueue(&mut self, chunk: EvaluatedChunk) { + let closing = chunk.is_last; + // The tables this chunk is the first to reference, read before they are recorded: the same + // figure `pending` billed, so what is reserved for the chunk and what it grows the operand + // by are one. + let (tables, bytes) = unbilled_tables(&chunk.series, &self.tables); + // The boundary list is storage the operand keeps, and it grows before the chunk is recorded + // in it: an end is charged for before it exists, the same figure `pending` reported. + self.held = self + .held + .saturating_add(if closing { + std::mem::size_of::() + } else { + 0 + }) + .saturating_add(operand_chunk_bytes(&chunk.series)) + .saturating_add(bytes); + // From here the operand keeps those tables alive itself, so a chunk arriving later that + // references one is charged its own slices and not the table again. + self.tables.extend(tables); + self.series.push(chunk.series); + if closing { + self.ends.push(self.series.len()); + } + } + + /// The chunk ranges of the logical series this operand closed, in arrival order. + /// + /// Read after the input ended: a series that is still open has no end, and + /// [`BinaryRuntime::closed`] refuses such an input before anything is assembled. + fn boundaries(&self) -> impl Iterator> + '_ { + self.ends.iter().scan(0, |start, &end| { + let range = *start..end; + *start = end; + Some(range) + }) + } + + /// The bytes assembling this operand's chunks into logical series allocate, before they do. + /// + /// One series per closed logical series, on `schema`'s grid, and nothing that copies a sample: + /// the descriptors the chunks' fields are made of are collected and shared. What is counted is + /// therefore metadata only, and it is a rough figure per field, per segment and per run rather + /// than a model of the containers the work builds: + /// + /// - per series, the assembled entry and the field list ([`SeriesFields`] takes a one-field list + /// out of its vector and boxes a wider one, so neither copies); + /// - per chunk and field, the descriptor collected out of it; + /// - per segment, three descriptors: the one the flatten copies out, the slot the `Arc<[Samples]>` + /// it is copied into holds, and the doubling of the vector it is copied out of; + /// - per run the boundary covers, the span [`Self::assemble`] collects and the span and + /// row-offset arrays [`TimeAxis::from_grid_spans`] copies them into. + /// + /// No term follows how a `Vec` happens to grow -- there is no branch on a capacity here and no + /// first-allocation floor -- so a change to the flatten's growth policy cannot make this figure + /// wrong. What it is instead is a rough per-field, per-segment and per-run estimate, within a + /// small factor of what the assembly holds at its peak, which is the granularity a reservation + /// is made at. + fn assembly_bytes(&self, schema: &SeriesSchema) -> Option { + let samples = std::mem::size_of::(); + let grids = std::mem::size_of::(); + let width = schema.fields.len(); + let mut bytes = 0usize; + for boundary in self.boundaries() { + let chunks = &self.series[boundary]; + // The runs the boundary covers, and the segments its fields hold: a chunk's field can + // itself be chunked, and flattening it copies one descriptor per segment. + let mut runs = 0usize; + let mut segments = 0usize; + for chunk in chunks { + runs = runs.checked_add(chunk.time.runs().count())?; + for field in chunk.fields.iter() { + segments = segments.checked_add(field.segments().len())?; + } + } + // The descriptors of a field's chunks, the flatten's descriptors and the `Arc` they are + // copied into; a field with no segment still builds an empty `Samples`, which is one + // descriptor. + let descriptors = chunks + .len() + .checked_mul(width)? + .checked_add(segments.checked_mul(3)?.checked_add(width)?)?; + // The axis: the spans collected, and the span and offset arrays a run layout copies + // them into. + let axis = runs.checked_mul( + grids + .checked_mul(2)? + .checked_add(std::mem::size_of::())?, + )?; + bytes = bytes + .checked_add(std::mem::size_of::())? + .checked_add(width.checked_mul(samples)?)? + .checked_add(descriptors.checked_mul(samples)?)? + .checked_add(axis)?; + } + Some(bytes) + } + + /// The logical series this operand closed, each as one series on `schema`'s grid. + /// + /// The chunks of a logical series are collected, not concatenated: the fields keep one + /// descriptor per segment of every chunk, the axis keeps the runs the chunks cover, and the + /// buffers behind both are shared with the chunks this operand still holds. The series is what + /// the kernel matches and reads, so it must be on the schema's grid and hold as many rows as its + /// axis places, which is what [`Series::try_new`] checks. What it allocates is + /// [`Self::assembly_bytes`], which a caller reserves before this runs. + fn assemble(&self, schema: &SeriesSchema, path: &NodePath, side: usize) -> Result> { + let grid = schema.eval_grid.clone().ok_or_else(|| { + DataFusionError::Execution(format!( + "the binary node at {path} assembles its {} operand on an evaluation grid, and the \ + operand's schema names none", + side_name(side) + )) + })?; + let mut assembled = Vec::with_capacity(self.ends.len()); + for boundary in self.boundaries() { + let chunks = &self.series[boundary]; + let metric = chunks.first().map(|chunk| chunk.metric.clone()).ok_or_else(|| { + DataFusionError::Execution(format!( + "the binary node at {path} closed a logical series of its {} operand without a \ + chunk to assemble", + side_name(side) + )) + })?; + let runs = chunks + .iter() + .map(|chunk| chunk.time.runs().count()) + .fold(0usize, usize::saturating_add); + let mut spans = Vec::with_capacity(runs); + for chunk in chunks { + for run in chunk.time.runs() { + spans.push(GridSpan::new(run.position, run.len)); + } + } + let mut fields = Vec::with_capacity(schema.fields.len()); + for index in 0..schema.fields.len() { + let mut segments = Vec::with_capacity(chunks.len()); + for chunk in chunks { + let field = chunk.fields.get(index).ok_or_else(|| { + DataFusionError::Execution(format!( + "the binary node at {path} cannot assemble its {} operand: a chunk of \ + it carries {} fields, not {}", + side_name(side), + chunk.fields.len(), + schema.fields.len() + )) + })?; + segments.push(field.clone()); + } + fields.push(Samples::try_from_chunks(segments).map_err(series_error)?); + } + let fields = SeriesFields::try_from_vec(fields).map_err(series_error)?; + let time = TimeAxis::from_grid_spans(grid.clone(), spans).map_err(series_error)?; + assembled.push(Series::try_new(schema, metric, time, fields).map_err(series_error)?); + } + Ok(assembled) + } + + /// Drops the retained chunks, giving back what they hold. + fn release(&mut self) { + self.open = None; + self.series.clear(); + self.series.shrink_to_fit(); + self.ends.clear(); + self.ends.shrink_to_fit(); + // The tables the cleared chunks were keeping alive are gone with them, so their addresses + // name nothing this operand holds any more. + self.tables.clear(); + self.tables.shrink_to_fit(); + self.held = 0; + } +} + +/// What a binary node holds: both operands until they end. +/// +/// The operation pairs two whole vectors point by point, so this node cannot answer from the chunks +/// in hand the way a map does: it retains every chunk each operand hands over, assembles the chunks +/// of each logical series into the one series the kernel matches, and runs the kernel once, after the +/// input has ended and both operands closed. The chunks it produces are queued in the node's own +/// output queue and handed over from there. +struct BinaryRuntime { + /// The operation and its modifiers, bound by the compiler. + matching: Arc, + /// The layout each operand is bound to, what a chunk of it is checked against: `0` is the left + /// operand and `1` the right one, the order the tree declares them in. + schemas: [Arc; 2], + /// The retained chunks of each operand, in the same order. + operands: [BinaryOperand; 2], + /// Whether the kernel has run. It runs at most once: the operands it read are gone afterwards. + computed: bool, +} + +/// What side `index` is called in an error. +fn side_name(index: usize) -> &'static str { + match index { + 0 => "left", + _ => "right", + } +} + +impl BinaryRuntime { + /// The run-time state of the binary operation `matching` over its two operands. + fn new(matching: Arc, schemas: [Arc; 2]) -> Self { + Self { + matching, + schemas, + operands: [BinaryOperand::default(), BinaryOperand::default()], + computed: false, + } + } + + /// The bytes the retained operands hold. + fn retained_bytes(&self) -> usize { + self.operands + .iter() + .map(|operand| operand.held) + .fold(0usize, usize::saturating_add) + } + + /// The bytes assembling both operands into logical series allocates, before it does. + fn assembly_bytes(&self) -> Option { + let [left, right] = &self.operands; + let [left_schema, right_schema] = &self.schemas; + left.assembly_bytes(left_schema)? + .checked_add(right.assembly_bytes(right_schema)?) + } + + /// The logical series both operands closed, ready for the kernel to match. + fn assemble(&self, path: &NodePath) -> Result<[Vec; 2]> { + let [left, right] = &self.operands; + let [left_schema, right_schema] = &self.schemas; + Ok([ + left.assemble(left_schema, path, 0)?, + right.assemble(right_schema, path, 1)?, + ]) + } + + /// The bytes the chunk of `side` would add to that operand's retention. + /// + /// It is read from the operand before the chunk is retained, so the figure is the one the + /// operand grows by: what the chunk holds on its own and the room its end takes in the operand's + /// boundary list. + fn pending(&self, path: &NodePath, side: usize, chunk: &EvaluatedChunk) -> Result { + self.operands + .get(side) + .map(|operand| operand.pending(chunk)) + .ok_or_else(|| no_binary(path)) + } + + /// Reports an operand that ended inside a series. + /// + /// A side hands over one series at a time, so the only series that can be open is the last one + /// it handed over: a chunk that did not say `is_last` leaves it open, and nothing came after it + /// to close it. The kernel is not run over such an operand: it would answer the pairs of a + /// series whose remaining rows were never read. + fn closed(&self, path: &NodePath) -> Result<()> { + for (side, operand) in self.operands.iter().enumerate() { + let Some((metric, _)) = &operand.open else { + continue; + }; + return Err(DataFusionError::Execution(format!( + "the input of the binary node at {path} ended before the last chunk of a series: \ + its {} operand handed over {metric:?} without the chunk that closes it", + side_name(side) + ))); + } + Ok(()) + } + + /// Retains one chunk of the operand at `side`, checking it against that operand's binding. + fn retain(&mut self, path: &NodePath, side: usize, chunk: EvaluatedChunk) -> Result<()> { + // What a bound tree says an operand produces is not proof of what a chunk carries: a + // `Series` keeps its fields public, so a chunk built by struct literal can carry another + // number of fields, or fewer samples than its axis places rows. The kernel's own check is + // run here, before the chunk enters the buffer, and the position and side are added to what + // it reports. + let Some(schema) = self.schemas.get(side) else { + return Err(no_binary(path)); + }; + validate_binary_operand(schema.as_ref(), std::slice::from_ref(&chunk.series)).map_err( + |error| { + DataFusionError::Execution(format!( + "the binary node at {path} rejected its {} operand: {error}", + side_name(side) + )) + }, + )?; + // An empty chunk closes a series without holding a row, so it says nothing about where that + // series ended: only a chunk that carries rows can be read as going backwards. + let (first, last) = ( + chunk.series.time.first_position(), + chunk.series.time.last_position(), + ); + let metric = chunk.series.metric.clone(); + let Some(operand) = self.operands.get_mut(side) else { + return Err(no_binary(path)); + }; + // The position a chunk of the open series may start at: the row after the last one that + // series handed over. Nothing is open after a series closed, so the next one starts over. + let end = operand.open.as_ref().map_or(0, |(_, end)| *end); + if let Some((open, _)) = &operand.open + && *open != metric + { + return Err(DataFusionError::Execution(format!( + "the binary node at {path} combines whole series, and its {} operand handed over \ + {metric:?} before {open:?} ended", + side_name(side) + ))); + } + if let Some(first) = first + && first < end + { + return Err(DataFusionError::Execution(format!( + "the chunks of {metric:?} handed to the {} operand of the binary node at {path} do \ + not continue each other: one starts at position {first}, after the series already \ + reached {end}", + side_name(side) + ))); + } + operand.open = (!chunk.is_last).then(|| (metric, last.map_or(end, |last| last + 1))); + operand.enqueue(chunk); + Ok(()) + } + + /// Runs the kernel over both operands and returns the series it produced. + /// + /// The chunks of each operand are assembled into the logical series they make up first, because + /// the kernel matches whole series by label set: a series that arrived in many chunks would + /// otherwise be a candidate per chunk on its own side and be paired with every candidate of the + /// other, which is quadratic in the chunk count of one series rather than in the series count. + /// + /// The reservation covers the retained chunks, the assembled series the kernel reads and the + /// kernel's own live workspace, and it is what the pool admits before each of them allocates. + /// The kernel reports that workspace coarsely -- where a long-lived result buffer grows, once per + /// phase of its walk, and in the blocks a growing output buffer is reserved in -- rather than per + /// grid point, and the total is resized as a phase's storage is released. It keeps covering the + /// returned results until the caller queues them. + fn compute(&mut self, path: &NodePath, buffer: &mut NodeBuffer) -> Result>> { + // The kernel reads the operands once and drops them, so a second call has nothing to read + // and nothing left to produce: what it produced the first time is in the node's queue, and + // the reservation is already the queue's. + if self.computed { + return Ok(None); + } + self.closed(path)?; + let [left_schema, right_schema] = &self.schemas; + let retained = self.retained_bytes(); + // The assembled series are live while the kernel reads them and share the buffers the + // retained chunks hold, so what they add is metadata, and it is reserved before it exists: + // the assembly allocates as it goes, and a figure read from it afterwards would be a figure + // the pool never admitted. + let assembly = self + .assembly_bytes() + .ok_or_else(|| reservation_overflow(path))?; + buffer.grow(assembly)?; + let assembled = match self.assemble(path) { + Ok(assembled) => assembled, + Err(error) => { + // Nothing the assembly allocated outlives this call, so the node falls back to what + // it still holds. A failure of that resize is the pool's to report; the driver stops + // the execution either way and releases every node. + buffer.resize(retained)?; + return Err(error); + } + }; + let [left, right] = &assembled; + // The operands are still held while the kernel runs, so what this node holds is the operands, + // the assembled series and the workspace the kernel reports; the callback resizes the + // reservation to that sum as the live workspace changes. + let metrics = Arc::clone(&buffer.metrics); + let output = { + // The timer covers this node's own work only: it is dropped before the driver polls + // the input again. + let _timer = metrics.timer(); + binary_vectors_with_reservation( + &self.matching, + left_schema, + left, + right_schema, + right, + &mut |workspace| { + let bytes = retained + .checked_add(assembly) + .and_then(|held| held.checked_add(workspace)) + .ok_or_else(|| reservation_overflow(path))?; + buffer.resize(bytes) + }, + ) + }; + // The operands and the assembled series have been handed to the kernel and the reservation + // covers the workspace it allocated past them, so a failure is the driver's to release: it + // stops the execution and every node with it. + let output = output?; + // The assembled series were the kernel's input and are read by nothing after it, so they go + // before the chunks they share their buffers with: what this node holds from here on is what + // the kernel returned, and the pool is not charged for a vector nothing reads again. + drop(assembled); + for operand in &mut self.operands { + operand.release(); + } + self.computed = true; + Ok(Some(output)) + } +} + +/// The buffered chunks as the one source axis they make up: their timestamps in arrival order. +/// +/// The axis type validates the result as strictly increasing, which is also what refuses a series +/// whose chunks do not continue each other. +fn buffered_time(chunks: &[RawSeriesChunk]) -> Result { + let len = chunks.iter().map(|chunk| chunk.time.len()).sum(); + let mut timestamps: Vec = Vec::with_capacity(len); + for chunk in chunks { + timestamps.extend_from_slice(chunk.time.as_buffer()); + } + RawTimestamps::try_new(ScalarBuffer::from(timestamps)).map_err(series_error) +} + +/// The buffered chunks as one axis: per field, the chunks' samples in arrival order. +/// +/// A field retains the chunks it arrived in instead of copying them out, so the axis costs one +/// descriptor per chunk and the selection reads the values where they already are. +fn buffered_fields(chunks: &[RawSeriesChunk], fields: usize) -> Result { + let mut per_field: Vec> = vec![Vec::with_capacity(chunks.len()); fields]; + for chunk in chunks { + for (field, slot) in chunk.fields.iter().zip(&mut per_field) { + slot.push(field.clone()); + } + } + let fields = per_field + .into_iter() + .map(|chunks| Samples::try_from_chunks(chunks).map_err(series_error)) + .collect::>>()?; + SeriesFields::try_from_vec(fields).map_err(series_error) +} + +/// The bytes the builder's table holds for one row of the field, `None` for a field of floats. +/// +/// The largest row of the field rather than its total: every grid point that selects one source row +/// copies that row, so the widest histogram the field holds is what a point can cost. +fn histogram_row_bytes(field: &Samples) -> Option { + let holds_histograms = field.segments().iter().any(|segment| { + matches!( + segment.dense(), + Some(DenseSamplesRef::Histogram(_) | DenseSamplesRef::Mixed(_)) + ) + }); + if !holds_histograms { + return None; + } + Some( + field + .iter() + .filter_map(|sample| match sample { + SampleRef::Histogram(view) => Some(histogram_bytes(&view)), + _ => None, + }) + .fold(0, usize::max), + ) +} + +/// The bytes the histogram table holds for one row of `view`. +/// +/// The row `HistogramBatchBuilder::push` writes: its scalar columns, the offset each of the seven +/// bucket lists pays for it, and the values those lists hold -- the custom bounds, and each side's +/// bucket counts with the span offsets and lengths that place them. The spans are the view's own, +/// because a histogram handed on unchanged keeps its layout through +/// [`crate::histogram_eval::float_histogram::FloatHistogram::push_to`]. +fn histogram_bytes(view: &HistogramView<'_>) -> usize { + // Schema, zero threshold, sum, count, zero count, reset hint and start timestamp, the narrow + // columns counted at the width of the widest. + let scalars = 7 * std::mem::size_of::(); + // One offset per list column: custom bounds, two span columns and one bucket column per side. + let list_offsets = 7 * std::mem::size_of::(); + let custom = view + .custom_values + .len() + .saturating_mul(std::mem::size_of::()); + let sides = [view.positive, view.negative] + .iter() + .map(|side| { + side.span_offsets + .len() + .saturating_mul(2) + .saturating_mul(std::mem::size_of::()) + .saturating_add( + side.buckets + .len() + .saturating_mul(std::mem::size_of::()), + ) + }) + .fold(0usize, usize::saturating_add); + scalars + .saturating_add(list_offsets) + .saturating_add(custom) + .saturating_add(sides) +} + +/// The last timestamp of `spec`, which is inclusive: its `len` points step from its start. +/// +/// [`GridSpec::try_new`] checked that the point fits `i64`, so widening it here cannot overflow. +fn grid_end_ms(spec: GridSpec) -> i64 { + (i128::from(spec.start_ms) + i128::from(spec.step_ms) * (i128::from(spec.len) - 1)) as i64 +} + +/// The position of the grid point at `timestamp`, which the selection reported as one of its own. +/// +/// The selection steps the range it is given by the step it is given, so every timestamp it reports +/// is `start_ms + position * step_ms` for one position of the grid: subtracting the start and +/// dividing by the step gives that position back. A timestamp off that lattice, or one past the end +/// of the grid, is a disagreement between the selection and its binding rather than a sample to +/// skip, so it is reported instead of dropped. +fn grid_position(grid: &EvalGrid, timestamp: i64) -> Result { + let spec = grid.spec(); + let offset = i128::from(timestamp) - i128::from(spec.start_ms); + let step = i128::from(spec.step_ms); + let position = offset.div_euclid(step); + if offset.rem_euclid(step) != 0 || position < 0 || position >= i128::from(spec.len) { + return Err(DataFusionError::Execution(format!( + "the instant selection reported the timestamp {timestamp}ms, which is not a point of \ + its grid {spec:?}" + ))); + } + Ok(position as usize) +} + +/// A closing chunk carrying `metric` and no row at all. +/// +/// A series whose selection picked no source row still closes exactly once, on a chunk that holds +/// nothing: the labels say which series closed, and the address says it closed before its first +/// point, as the empty chunk a window hands out for such a series does. +fn no_row_chunk(schema: &SeriesSchema, metric: MetricName) -> Result { + let grid = schema.eval_grid.clone().ok_or_else(|| { + DataFusionError::Execution( + "an instant selection produces an evaluated chunk, which is addressed on a grid" + .to_string(), + ) + })?; + let empty = Samples::from_float(Float64Array::from(Vec::::new())); + let fields = + SeriesFields::try_from_vec(vec![empty; schema.fields.len()]).map_err(series_error)?; + let time = GridRange::try_new(grid, 0, 0).map_err(series_error)?; + let series = + Series::try_new(schema, metric, TimeAxis::Grid(time), fields).map_err(series_error)?; + EvaluatedChunk::try_new(series, true) +} + /// The per-node run-time state of a node. struct NodeRuntime { buffer: NodeBuffer, /// The chunks this node holds for its consumer, each with the estimate it was queued with. /// - /// An input node's queue is filled by the caller, and a window's by the chunks it computed while - /// flushing its collected input; no node uses it for both. A chunk is measured once, as it - /// enters, and the figure it was queued with is given back as it leaves, so neither the queue - /// nor the handover walks it. + /// An input node's queue is filled by the caller, a window's by the chunks it computed while + /// flushing its collected input, and a binary node's by the results its kernel produced; no node + /// uses it for both. A chunk is measured once, as it enters, and the figure it was queued with + /// is given back as it leaves, so neither the queue nor the handover walks it. queued: VecDeque<(NativeChunk, usize)>, + /// What an instant node holds: the chunks of the series it is selecting, and, while it gathers + /// that series, the workspace the gather reserved for. `None` for every other kind of node. + instant: Option, /// A window node's evaluator, with its own input and output grid; `None` before it is built and /// once it is closed. window: Option, /// What a map node applies. map: Option, + /// What a binary node holds. + binary: Option, + /// The layout the caller's chunks of an input node are checked against. + /// + /// A tree with a binary node reads two inputs, and each of them is bound to its own layout, so + /// the binding is kept per input rather than once for the tree. + source_schema: Option>, /// What this node has already handed out under each output label set, for a node that rewrites /// labels: a window drops the metric name and the empty-valued labels, a map drops the name. emitted: Option, @@ -892,12 +1933,14 @@ impl NodeRuntime { Ok(()) } - /// Hands over the next queued source chunk, if there is one. + /// Hands over the next queued chunk, if there is one, giving back what it was queued with. /// - /// The handover is what [`Self::open_source_series`] follows: after this call the flag says - /// whether the series the consumer just received a chunk of is still open, which is what closing - /// the execution reads to tell a truncated input from one that ended cleanly. - fn pop_source(&mut self) -> Result> { + /// It is the one way a chunk leaves this node's queue: an input node hands over what the caller + /// queued, and a binary node hands over what its kernel produced. `values` is how that node + /// counts the values it hands over, because the two do not count the same thing: an input's + /// figure has always been its positions, while a binary result holds one value per field and a + /// field may have none at a position it decided. + fn pop_queued(&mut self, values: fn(&NativeChunk) -> usize) -> Result> { let Some((chunk, bytes)) = self.queued.pop_front() else { return Ok(None); }; @@ -909,17 +1952,31 @@ impl NodeRuntime { let _timer = metrics.timer(); self.buffer.shrink(bytes)?; } - metrics.record_output(1, chunk.positions()); - // An evaluated source is already addressed on its grid, so its decided positions are grid - // points; a raw source carries timestamps, which are not positions on any grid. + metrics.record_output(1, values(&chunk)); + // An evaluated chunk is addressed on its grid, so its decided positions are grid points; a + // raw source carries timestamps, which are not positions on any grid. if let NativeChunk::Evaluated(chunk) = &chunk { metrics.record_grid_points(chunk.series.time.len()); } + Ok(Some(chunk)) + } + + /// Hands over the next queued source chunk, if there is one. + /// + /// The handover is what [`Self::open_source_series`] follows: after this call the flag says + /// whether the series the consumer just received a chunk of is still open, which is what closing + /// the execution reads to tell a truncated input from one that ended cleanly. Only an input node + /// follows that flag, so only it reads the handover this way: a binary node's queue holds the + /// results of series that already closed on their way in. + fn pop_source(&mut self) -> Result> { + let Some(chunk) = self.pop_queued(NativeChunk::positions)? else { + return Ok(None); + }; // Assigned rather than only set: a chunk that closes its series is what says no series is // open any more, so the flag follows the handover and not the history of handovers. self.open_source_series = !chunk.is_last(); if chunk.is_last() { - metrics.record_completed_series(1); + self.buffer.metrics.record_completed_series(1); } Ok(Some(chunk)) } @@ -1029,6 +2086,171 @@ impl NodeRuntime { Ok(output) } + /// Retains one operand chunk of this node's binary operation. + /// + /// Nothing is decided for a point yet: the kernel needs both operands whole, so a chunk is only + /// kept until the input ends. What the node holds is the estimate of every chunk it retained, + /// and the reservation is set to that figure once the chunk is in: the operand's own total is + /// what the node keeps, so a second chunk does not have to be admitted beside the first one's + /// estimate again. + /// + /// The chunk is reserved for before it is retained, by the figure the operand reports for it, so + /// the pool admits the memory before the node holds it and a refused chunk leaves the operand + /// where it was. + fn retain_binary(&mut self, path: &NodePath, side: usize, chunk: NativeChunk) -> Result<()> { + let NativeChunk::Evaluated(chunk) = chunk else { + return Err(DataFusionError::Execution(format!( + "the binary node at {path} consumes evaluated chunks, not raw samples" + ))); + }; + // The figure is read before the chunk is retained, because reserving after the fact would be + // reserving for memory the node already holds. + let pending = self + .binary + .as_ref() + .ok_or_else(|| no_binary(path))? + .pending(path, side, &chunk)?; + let positions = chunk.series.time.len(); + self.buffer.grow(pending)?; + let metrics = Arc::clone(&self.buffer.metrics); + { + let _timer = metrics.timer(); + let binary = self.binary.as_mut().ok_or_else(|| no_binary(path))?; + binary.retain(path, side, chunk)?; + let retained = binary.retained_bytes(); + self.buffer.resize(retained)?; + } + metrics.record_input(1, positions); + Ok(()) + } + + /// Runs this node's binary kernel and queues the chunks it produced. + fn compute_binary(&mut self, path: &NodePath) -> Result<()> { + let output = { + let binary = self.binary.as_mut().ok_or_else(|| no_binary(path))?; + binary.compute(path, &mut self.buffer)? + }; + // A kernel that already ran has moved its result into the queue, which the handover below + // charges for: leaving the reservation alone here is what keeps a queued result covered. + let Some(output) = output else { + return Ok(()); + }; + // The results are queued the way a node that produces a chunk per input queues what it + // hands on: the queue is the one source of chunk order and of the bytes queued chunks hold. + let mut closed = 0usize; + for series in output { + // The kernel decided every point of a result series at once, so the one chunk it is + // handed over as closes it. + let chunk = NativeChunk::Evaluated(EvaluatedChunk::try_new(series, true)?); + // The result is already admitted: the kernel kept it inside the workspace its callback + // reserved. What the queue keeps is the estimate of the chunk that holds it. + let bytes = chunk.bytes(); + self.queued.push_back((chunk, bytes)); + closed += 1; + } + // This node's own accounting of closed series is the results it closed, one per matched + // series: an operand chunk that closed its input series is a closure of the node below, and + // counting it here as well would report the same work twice. + self.buffer.metrics.record_completed_series(closed); + // The operands the reservation covered are gone and the queue holds what the kernel + // returned, so the reservation settles on the queue: what a queued result is given back + // with as it leaves is exactly the figure it is held for here. + let queued = self + .queued + .iter() + .fold(0usize, |total, (_, bytes)| total.saturating_add(*bytes)); + self.buffer.resize(queued) + } + + /// Feeds one chunk to this node's instant selection. + /// + /// `None` means the series this chunk belongs to has not ended: the selection reads one whole + /// axis, so it decides nothing until the chunk carrying `is_last` arrives. + fn instant(&mut self, path: &NodePath, chunk: NativeChunk) -> Result> { + let NativeChunk::Raw(chunk) = chunk else { + return Err(DataFusionError::Execution(format!( + "the instant selection at {path} consumes raw samples, not an evaluated chunk" + ))); + }; + let (positions, closing) = (chunk.time.len(), chunk.is_last); + // The chunk is held from here on: a selection keeps every chunk of a series until the one + // that closes it, so what this node reserves for is the series it has buffered. + self.buffer.grow(raw_bytes(&chunk))?; + // The chunk that closes the series gathers it in one go, and the gather allocates a + // workspace of its own beside the buffered chunks: the axis it concatenates, the descriptors + // that read it, the two arrays the selection returns and the rows the builder keeps. That + // workspace is reserved here, before it exists, so a pool too small for it refuses the + // gather instead of learning about it afterwards. Without this the reservation would fall + // back to the buffered chunks alone -- nothing at all, on the chunk that ends the series -- + // and a selection over a million grid points would take its tens of megabytes without + // asking. [`InstantRuntime::gather_bytes`] derives the figure, because the chunks it counts + // are that node's. + let Some(instant) = self.instant.as_ref() else { + return Err(DataFusionError::Execution(format!( + "the node at {path} holds no instant selection" + ))); + }; + let scratch = if closing { + instant.gather_bytes(&chunk) + } else { + 0 + }; + self.buffer.grow(scratch)?; + let metrics = Arc::clone(&self.buffer.metrics); + let outcome = { + // The timer covers this node's own work only: it is dropped before the driver polls + // the input again. + let _timer = metrics.timer(); + match self.instant.as_mut() { + Some(instant) => instant.push(path, chunk), + // Rejected when the state was built, since a selection reads raw samples; kept as + // an error rather than a panic so an impossible tree cannot take the process down. + None => Err(DataFusionError::Execution(format!( + "the node at {path} holds no instant selection" + ))), + } + }; + metrics.record_input(1, positions); + if closing { + // A series closes exactly once, on the chunk carrying `is_last`: the selection gathers + // the whole series on it, so it is counted here rather than on the chunk handed out. + metrics.record_completed_series(1); + } + // A failed gather gives its workspace back here rather than leaving it to the driver: the + // driver releases every node when the execution stops, but the workspace is this call's and + // not something the node keeps, so holding the pool's budget for it until the stopped + // executor is dropped would charge the pool for memory nothing reads any more. + let output = match outcome { + Ok(output) => output, + Err(error) => { + self.settle_buffered()?; + return Err(error); + } + }; + if let Some(output) = &output { + metrics.record_grid_points(output.series.time.len()); + metrics.record_output(1, valid_values(output)); + } + // What this node still holds is the chunks of the series it is selecting: a whole series is + // held until it ends, so the reservation is what those chunks hold rather than a figure + // that grows with the chunk count of anything already answered. The chunk just consumed and + // the workspace of the gather it closed are both gone, so this is what gives them back. + self.settle_buffered()?; + Ok(output) + } + + /// Sets this node's reservation to the chunks of the series it is still gathering. + /// + /// The chunk the node just consumed and the workspace of a gather it closed are not part of it: + /// the first has left the buffer and the second has been handed to the output. + fn settle_buffered(&mut self) -> Result<()> { + let buffered = self + .instant + .as_ref() + .map_or(0, InstantRuntime::buffered_bytes); + self.buffer.resize(buffered) + } + /// Keeps one fragment of this node's collected input, charged for as it arrives. /// /// The fragment is measured once, here, and its estimate stands until the flush that merges it @@ -1124,12 +2346,15 @@ impl NodeRuntime { /// Returns everything this node holds, including queued chunks. fn release(&mut self) { - // The window goes first: dropping the evaluator is what gives back the memory its - // reservation was taken for. Returning the reservation while the evaluator still held the - // samples would let the pool admit memory the process has not released, for as long as the - // caller keeps the stopped executor alive. The label sets this node handed out and the - // fragments it collected go with it. + // A node's own state goes first: dropping the evaluator and the buffered series is what + // gives back the memory their reservation was taken for. Returning the reservation while + // they still held the samples would let the pool admit memory the process has not released, + // for as long as the caller keeps the stopped executor alive. The label sets this node + // handed out and the fragments it collected go with it. self.window = None; + self.instant = None; + self.binary = None; + self.source_schema = None; self.emitted = None; self.merge = None; // A node that holds no chunk holds no series either, so nothing it handed over is still @@ -1156,10 +2381,13 @@ pub struct NativeExecutionState { paths: Vec, /// The per-node state, in the same order. runtimes: Vec, - /// The index of the tree's input node. - source: usize, - /// Whether the source hands over evaluated chunks rather than raw samples. - source_is_evaluated: bool, + /// The index of every node, so a caller names a node the way the metrics do. + by_path: HashMap, + /// The index of every input node, in traversal order: where a caller's chunks enter. + /// + /// A tree of unary nodes has one, and a binary node adds one per operand: a tree of nested + /// binary nodes has as many as it has leaves, and a queued chunk names the one it belongs to. + sources: Vec, } impl NativeExecutionState { @@ -1173,25 +2401,25 @@ impl NativeExecutionState { metrics_set: &ExecutionPlanMetricsSet, partition: usize, ) -> Result { - // One pass down the tree names and registers every node in the order + // One pass over the tree names and registers every node in the order // `crate::native::metrics::walk` gives it: the same rule `EXPLAIN` uses, so a node cannot be - // shown at one position and registered at another. Every node this runtime executes is - // unary, so that order is the chain from the root to the input, and a node's input is the - // next one the pass reaches. + // shown at one position and registered at another. That order reaches a node's left operand + // before its right one, so the input a spec names -- the one input of a unary node, the left + // operand of a binary node -- is the node the pass reaches next. let mut nodes: Vec = Vec::new(); let mut paths: Vec = Vec::new(); let mut runtimes: Vec = Vec::new(); // The bound expression of each node, in the same order: the pass below reads the node it // configures from here, so nothing about an operation is copied onto the node's spec. let mut exprs: Vec<&NativeExpr> = Vec::new(); - let mut source: Option<(usize, Arc)> = None; - let mut node = tree.root(); - let mut path = NodePath::root(); - loop { + // The nodes the pass has not reached yet, the next one last: a node pushes its inputs back + // to front, so the one popped next is the one its parent's spec names. + let mut pending: Vec<(&NativeNode, NodePath)> = vec![(tree.root(), NodePath::root())]; + while let Some((node, path)) = pending.pop() { let index = nodes.len(); let handles = Arc::new(NodeMetrics::default()); handles.register(&path, metrics_set, partition); - let (tag, child) = match &node.expr { + let tag = match &node.expr { NativeExpr::Input(bound) => { // Every node here reads one series at a time and assumes its chunks arrive // together: a window feeds a series to its evaluator up to the chunk carrying @@ -1205,37 +2433,54 @@ impl NativeExecutionState { if bound.ordering == SeriesOrdering::Interleaved { return Err(unsupported_ordering(bound.ordering, &path)); } - let samples = node.output.samples().cloned().ok_or_else(|| { - DataFusionError::Execution(format!( - "the input node at {path} does not produce samples" - )) - })?; - source = Some((index, samples)); - (NodeTag::Input, None) + NodeTag::Input } - NativeExpr::Window { input, .. } => (NodeTag::Window, Some(input.as_ref())), - NativeExpr::Map { input, .. } => (NodeTag::Map, Some(input.as_ref())), + NativeExpr::Instant { .. } => NodeTag::Instant, + NativeExpr::Window { .. } => NodeTag::Window, + NativeExpr::Map { .. } => NodeTag::Map, + // A binary node is built here and narrowed below: legality is a wider set of operand + // types than the kernel takes, so the shape is checked where the operands' layouts + // are read. + NativeExpr::Binary { .. } => NodeTag::Binary, // The kinds below are legal in a bound tree, and `validate` stays the authority on // that; this runtime simply does not execute them yet. Rejected before a single // chunk is read: a tree the runtime cannot execute must not start, because a // partial answer would be one the caller never asked for. NativeExpr::Scalar(_) => return Err(not_implemented("Scalar", &path)), - NativeExpr::Instant { .. } => return Err(not_implemented("Instant", &path)), NativeExpr::Aggregate { .. } => return Err(not_implemented("Aggregate", &path)), - NativeExpr::Binary { .. } => return Err(not_implemented("Binary", &path)), }; let buffer = NodeBuffer::new(&path, handles, &pool); let mut runtime = NodeRuntime { buffer, queued: VecDeque::new(), + instant: None, window: None, map: None, + binary: None, + source_schema: None, emitted: None, merge: None, open_source_series: false, }; match &node.expr { - NativeExpr::Input(_) => {} + NativeExpr::Input(_) => { + // What the caller's chunks of this input are checked against: a raw source + // carries timestamps, an evaluated one is addressed on a grid. + runtime.source_schema = node.output.samples().cloned(); + } + NativeExpr::Instant { input, op } => { + let input_schema = input.output.samples().ok_or_else(|| { + DataFusionError::Execution(format!( + "the instant selection at {path} consumes samples, but its input \ + produces none" + )) + })?; + runtime.instant = Some(InstantRuntime::try_new(input_schema, op)?); + // A selection keeps the labels of the series it reads, empty-valued ones + // included, so it is not one of the nodes that can turn two series into one + // label set and it keeps no table of what it handed out: the node that drops a + // label is the one that can collide, and it records its own. + } NativeExpr::Map { op, .. } => { let schema = node.output.samples().cloned().ok_or_else(|| { DataFusionError::Execution(format!( @@ -1270,27 +2515,64 @@ impl NativeExecutionState { // from two series. runtime.emitted = Some(Emitted::default()); } - NativeExpr::Scalar(_) - | NativeExpr::Instant { .. } - | NativeExpr::Aggregate { .. } - | NativeExpr::Binary { .. } => { + NativeExpr::Binary { + left, + right, + matching, + } => { + // The one shape this runtime executes is two evaluated vectors: a scalar side is + // a broadcast the kernel does not take, and a raw side has no positions to be + // matched at. Both are rejected as this node, before the pass reaches the + // operand that produced them, so the position named is the one that asked for + // them. + match (left.output.samples(), right.output.samples()) { + (Some(left), Some(right)) + if left.eval_grid.is_some() && right.eval_grid.is_some() => + { + // Each operand's layout is the one its own child produces, and the walk + // only built this node when both produce evaluated samples. + runtime.binary = Some(BinaryRuntime::new( + Arc::new(matching.clone()), + [Arc::clone(left), Arc::clone(right)], + )); + } + _ => return Err(not_implemented("Binary", &path)), + } + // A binary operation matches by label set, so a result label set may be + // produced at points that do not collide; the kernel groups and merges them + // itself, which is why this node keeps no ledger of what it handed out. + } + NativeExpr::Scalar(_) | NativeExpr::Aggregate { .. } => { // Rejected above, where the pass has the position to name. } } - // The input is the node the pass reaches next: the chain has no other node between - // this one and its input, and nothing is read off the positions afterwards. + // The inputs this node reads, in the order the tree declares them: a unary node's one + // input, a binary node's left and right operand, and none for an input node. They are + // pushed back to front, so the node the spec names is the one the pass reaches next and + // nothing but its own subtree lies between the two. + let reads_input = match &node.expr { + NativeExpr::Input(_) | NativeExpr::Scalar(_) | NativeExpr::Aggregate { .. } => { + false + } + NativeExpr::Instant { input, .. } + | NativeExpr::Window { input, .. } + | NativeExpr::Map { input, .. } => { + pending.push((input.as_ref(), path.input())); + true + } + NativeExpr::Binary { left, right, .. } => { + pending.push((right.as_ref(), path.right())); + pending.push((left.as_ref(), path.left())); + true + } + }; nodes.push(NodeSpec { tag, - input: child.map(|_| index + 1), + input: reads_input.then_some(index + 1), }); exprs.push(&node.expr); paths.push(path.clone()); runtimes.push(runtime); - let Some(child) = child else { - break; - }; - node = child; - path = path.input(); } // One reverse pass sets where a merge has to happen, from the input upwards: the pass above @@ -1321,7 +2603,26 @@ impl NativeExecutionState { nodes[index].input.is_some_and(|child| holds_shared[child]); match nodes[index].tag { NodeTag::Input => {} + NodeTag::Instant => { + // A selection keeps the labels it read, so it is not where two series + // become one label set and its own output carries its input's flag. Its + // input is the source -- `validate` binds a selection to raw samples, and + // no node above a source produces them -- and a source hands each series' + // chunks over together, so the flag is false there in every tree this + // runtime runs. Should the pass ever compute it true, the selection still + // needs no collected input: it reads one series at a time and refuses a + // chunk of another before it is buffered. + holds_shared[index] = input_holds_shared; + } NodeTag::Map => holds_shared[index] = true, + NodeTag::Binary => { + // The kernel matches its operands by label set and files one result row per + // label set and point, merging the rows of one set whatever piece they came + // from: what it hands out is one series per label set, so nothing above has + // to join pieces of a series. Its own operands are read whole -- it retains + // them until the input ends -- so its flag is false whatever theirs are. + holds_shared[index] = false; + } NodeTag::Window => { let (drops_metric_name, input_schema) = match expr { NativeExpr::Window { input, op } => ( @@ -1373,17 +2674,45 @@ impl NativeExecutionState { } } - // The supported nodes are unary, so a tree of them has exactly one input node; it is where - // the caller's chunks enter. - let (source, source_schema) = source.ok_or_else(|| { - DataFusionError::Execution("the native tree has no input node".to_string()) - })?; + // A caller names a node by the position the metrics give it, and a chunk it queues is bound + // to the input that position names, so every position is indexed once the pass has given the + // whole tree one. + let by_path: HashMap = paths + .iter() + .enumerate() + .map(|(index, path)| (path.clone(), index)) + .collect(); + // Every input node is where a caller's chunks can enter, and each of them is named by its + // own position when a caller queues a chunk. A tree of unary nodes has one input; a binary + // node adds one per operand, so a tree of nested binary nodes has as many as it has leaves. + let sources: Vec = nodes + .iter() + .enumerate() + .filter(|(_, node)| node.tag == NodeTag::Input) + .map(|(index, _)| index) + .collect(); + if sources.is_empty() { + return Err(DataFusionError::Execution( + "the native tree has no input node".to_string(), + )); + } + // A caller's chunks are samples: a source that hands over aggregate state is not something + // this runtime can be handed, and it is refused when the state is built rather than when the + // first chunk is queued at it. + for &source in &sources { + if runtimes[source].source_schema.is_none() { + return Err(DataFusionError::Execution(format!( + "the input node at {} does not produce samples", + paths[source] + ))); + } + } Ok(Self { nodes, paths, runtimes, - source, - source_is_evaluated: source_schema.eval_grid.is_some(), + by_path, + sources, }) } @@ -1393,6 +2722,20 @@ impl NativeExecutionState { Some(&self.runtimes[index].buffer.metrics) } + /// The position of the right operand of the binary node at `index`. + /// + /// A spec names one input, the node the build pass reaches next: a unary node's only input and a + /// binary node's left operand. The right operand is the one input a spec cannot name, so it is + /// read from the position the node itself sits at, which the pass resolved and indexed. + fn right_input(&self, index: usize) -> Result { + let path = &self.paths[index]; + self.by_path.get(&path.right()).copied().ok_or_else(|| { + DataFusionError::Execution(format!( + "the native tree has no node at the right input of {path}" + )) + }) + } + /// The bytes this execution currently reserves from the pool. pub fn reserved_bytes(&self) -> usize { self.runtimes @@ -1414,6 +2757,32 @@ impl NativeExecutionState { .count() } + /// How many nodes still hold the chunks of a series an instant selection was gathering. + /// + /// Test-only, and for the same reason as [`Self::nodes_holding_windows`]: the buffered chunks + /// have to be dropped, not only the bytes they were reserved for, and that is not observable + /// from the pool. + #[cfg(test)] + pub(crate) fn nodes_holding_instants(&self) -> usize { + self.runtimes + .iter() + .filter(|runtime| runtime.instant.is_some()) + .count() + } + + /// How many nodes still hold the operands a binary operation retained. + /// + /// Test-only, and for the same reason as [`Self::nodes_holding_windows`]: an execution that + /// stopped has to drop the vectors it retained, not only the number that says how many bytes + /// they were reserved for. + #[cfg(test)] + pub(crate) fn nodes_holding_binary(&self) -> usize { + self.runtimes + .iter() + .filter(|runtime| runtime.binary.is_some()) + .count() + } + /// The input that ended before its last chunk, if there is one. /// /// It is read before anything is merged: a window that collects its input closes every series @@ -1427,6 +2796,28 @@ impl NativeExecutionState { .map(|(path, _)| truncated_input(path)) } + /// Reports a stream that ended inside a series, without closing any node. + /// + /// Closing is destructive -- a window's evaluator takes itself apart -- and the binary nodes + /// still have to compute after this check, so what is read here is only the state that follows + /// what each node was handed: an input node reports the series it handed over without the chunk + /// that ends it, and a binary node reports an operand that is still open on either side. A + /// truncation is therefore refused before a binary kernel allocates its workspace, rather than + /// after one has already been computed on half a vector. + fn unclosed(&self) -> Result<()> { + // A source series that never ended is refused before anything is merged: the close a merge + // synthesises would make it look like one that did. + if let Some(error) = self.truncated() { + return Err(error); + } + for (path, runtime) in self.paths.iter().zip(&self.runtimes) { + if let Some(binary) = &runtime.binary { + binary.closed(path)?; + } + } + Ok(()) + } + /// Closes every node, reporting an input that ended mid-series. /// /// A drain finds nothing left to emit: a window reports its results on the chunk that closes @@ -1466,6 +2857,21 @@ impl NativeExecutionState { pub struct NativeExecutor { state: NativeExecutionState, phase: Phase, + /// Whether the caller ended the input. + /// + /// Until then a pull that finds nothing means nothing has settled yet, and a binary node + /// retains what its operands hand over without computing: the whole vector has to be there + /// before a point of it is answered. [`NativeExecutor::finish`] drains once, checks that every + /// stream closed, and only then sets this flag and drains again, which is what lets a binary + /// node answer its result -- and a binary node beneath another one do the same in turn. + inputs_finished: bool, + /// Whether the caller ended the input. + /// + /// Until then a pull that finds nothing means nothing has settled yet. After it, the same pull + /// runs the next stage of the ending -- the truncation check, a binary node's computation, the + /// merge a collecting window owes -- and only a pull that finds every stage done closes the + /// nodes and returns their reservations. + ended: bool, } /// Whether the execution can still produce chunks. @@ -1485,6 +2891,8 @@ impl NativeExecutor { Self { state, phase: Phase::Running, + inputs_finished: false, + ended: false, } } @@ -1493,21 +2901,40 @@ impl NativeExecutor { &self.state } - /// Queues one raw source chunk. + /// Queues one raw source chunk at the tree's only input. + /// + /// A tree with a binary node reads two inputs, and a chunk queued at "the input" would be one + /// the caller cannot say the source of: such a tree is refused here rather than answered from a + /// source the caller did not name, and [`Self::push_raw_at`] is what names one. pub fn push_raw(&mut self, chunk: RawSeriesChunk) -> Result<()> { - self.push_source(NativeChunk::Raw(chunk)) + self.push_source(None, NativeChunk::Raw(chunk)) } - /// Queues one evaluated source chunk. + /// Queues one evaluated source chunk at the tree's only input. pub fn push_evaluated(&mut self, chunk: EvaluatedChunk) -> Result<()> { - self.push_source(NativeChunk::Evaluated(chunk)) + self.push_source(None, NativeChunk::Evaluated(chunk)) + } + + /// Queues one raw source chunk at the input node at `path`. + /// + /// The path is the position the metrics and `EXPLAIN` name the node by, so a caller that reads + /// either can say which of the two inputs a chunk belongs to. + pub fn push_raw_at(&mut self, path: &NodePath, chunk: RawSeriesChunk) -> Result<()> { + self.push_source(Some(path), NativeChunk::Raw(chunk)) + } + + /// Queues one evaluated source chunk at the input node at `path`. + pub fn push_evaluated_at(&mut self, path: &NodePath, chunk: EvaluatedChunk) -> Result<()> { + self.push_source(Some(path), NativeChunk::Evaluated(chunk)) } /// The next chunk the root produces, or `None` when nothing has settled yet. /// - /// Every node takes whole chunks from its input, so a caller that keeps pushing and pulling - /// materialises nothing beyond the chunk in hand -- except below a window that collects its - /// input, which holds that input until [`Self::finish`]. + /// A window and a map take whole chunks from their input, so nothing beyond the chunk in hand + /// is materialised on their edge -- except below a window that collects its input, which holds + /// that input until [`Self::finish`]. A binary node is the other exception: it pairs two whole + /// vectors point by point, so it retains every chunk each operand hands over and reports `None` + /// until [`Self::finish`] ends the input, which is when it computes its result. /// /// A chunk's `is_last` says the series whose data it carries ended. It does not say its label /// set is finished: two source series whose labels were rewritten into one set are two pieces @@ -1517,97 +2944,202 @@ impl NativeExecutor { /// at the root hands over pieces, and a caller that needs one series per label set merges them. pub fn next_chunk(&mut self) -> Result> { self.check_running()?; - // The root is the node the state was built from, which the pass puts first. - let result = self.pull(0).and_then(|chunk| match chunk { - Some(NativeChunk::Evaluated(chunk)) => Ok(Some(chunk)), - // Rejected when the state was built; kept as an error rather than a panic so an - // impossible tree cannot take the process down. - Some(NativeChunk::Raw(_)) => Err(DataFusionError::Execution( - "the native runtime produces evaluated chunks, but its root produced raw samples" - .to_string(), - )), - None => Ok(None), - }); - if let Err(error) = &result { - self.stop(error); + // The end of the input is walked here rather than in one call, so a chunk is handed over as + // soon as the tree settles it: the caller pulls the answer instead of receiving it as one + // collected value, and what it has not pulled yet stays charged to the node holding it. + loop { + // The root is the node the state was built from, which the pass puts first. + let pulled: Option = match self.pull(0) { + Ok(Some(NativeChunk::Evaluated(chunk))) => return Ok(Some(chunk)), + // Rejected when the state was built; kept as an error rather than a panic so an + // impossible tree cannot take the process down. + Ok(Some(NativeChunk::Raw(_))) => { + let error = DataFusionError::Execution( + "the native runtime produces evaluated chunks, but its root produced raw \ + samples" + .to_string(), + ); + self.stop(&error); + return Err(error); + } + Ok(None) => None, + Err(error) => { + self.stop(&error); + return Err(error); + } + }; + let _ = pulled; + // Nothing has settled. While the caller is still pushing, that is a stall and the + // answer is simply not ready; once it has ended the input, each stage below runs on the + // first pull that finds the tree quiet, and the loop looks for what it produced. + if !self.ended { + return Ok(None); + } + if !self.inputs_finished { + // The source queues are empty and every node has consumed what it was given, so a + // series the caller never closed is still open here and nowhere else. It is + // refused before a binary node computes: half a vector is not a vector, so the + // kernel must not allocate a workspace to match one. + if let Err(error) = self.state.unclosed() { + self.stop(&error); + return Err(error); + } + self.inputs_finished = true; + continue; + } + // A window that collects its input answers only once its own input is finished, and + // what a binary node above it reads is that answer. Flushing the deepest ready window + // first is what keeps the two in order: the window produces, the pull that follows + // carries its output to whoever reads it, and only then can a binary node decide + // whether both of its operands are complete. + match self.flush_ready_merges() { + // A window answered: what it queued is pulled on the next turn, and that pull is + // also what carries its answer to a node above it. + Ok(true) => continue, + Ok(false) => {} + Err(error) => { + self.stop(&error); + return Err(error); + } + } + if self.any_merge_pending() { + // A window still holds collected input, so something below it has not finished: + // pulling again is what gives that node its turn. + continue; + } + // Every node has answered everything it can. Closing them is what hands back the + // reservations they were charged, so pulling to exhaustion leaves the pool as it found + // it. + return match self.state.close() { + Ok(()) => { + self.phase = Phase::Finished; + Ok(None) + } + Err(error) => { + self.stop(&error); + Err(error) + } + }; } - result } - /// Ends the input: drains what has settled, merges what the windows that collect their input - /// hold, closes every node and releases every reservation. + /// Ends the input, which is what tells the tree that nothing more will be pushed. /// - /// Every series must have closed by now, in every tree: a window's evaluator reports the series - /// it is still holding, and a tree with no window has its input node report one it handed over - /// without the chunk that ends it. An input that ends mid-series is an error here rather than a - /// series the caller never sees close, and it is refused before any collected input is merged: - /// merging closes what it merges. + /// It hands nothing over: [`Self::next_chunk`] runs the ending stage by stage as the caller + /// pulls, so a chunk reaches the caller as soon as it settles and the chunks not pulled yet + /// stay charged to the node holding them. A caller that wants the whole answer at once calls + /// [`Self::finish`] instead. + pub fn end_of_input(&mut self) -> Result<()> { + if self.ended { + return Err(DataFusionError::Execution( + "the native execution already ended its input".to_string(), + )); + } + self.ended = true; + Ok(()) + } + + /// Ends the input and collects everything the tree answers. /// - /// The merge comes next, deepest window first, and what it hands up is drained as it is - /// produced. What the root hands over is therefore a piece stream: a chunk's `is_last` says the - /// source series it carries ended, and two of them can share one label set. A caller that needs - /// one series per label set from the root merges them with - /// [`crate::grid_series::merge_same_labelset`] as well, exactly as this runtime merges the input - /// of the windows it collects for. + /// It is [`Self::end_of_input`] followed by a drain, kept for callers that want the whole + /// answer in one value. A caller that would rather stream it calls `end_of_input` and then + /// pulls with [`Self::next_chunk`] until it returns `None`, which is also when the execution + /// closes and returns its reservations. pub fn finish(&mut self) -> Result> { + self.end_of_input()?; + self.drain() + } + + /// Pulls what has settled until nothing is left. + fn drain(&mut self) -> Result> { let mut drained = Vec::new(); loop { match self.next_chunk() { Ok(Some(chunk)) => drained.push(chunk), - Ok(None) => break, + Ok(None) => return Ok(drained), Err(error) => return Err(error), } } - // A source series that never ended is refused before anything is merged: the close a merge - // synthesises would make it look like one that did. - if let Some(error) = self.state.truncated() { - self.stop(&error); - return Err(error); - } - if let Err(error) = self.flush_merges(&mut drained) { - self.stop(&error); - return Err(error); - } - match self.state.close() { - Ok(()) => { - self.phase = Phase::Finished; - Ok(drained) - } - Err(error) => { - self.stop(&error); - Err(error) - } - } } /// Merges the collected input of every window that collects it, and drains the root after each /// merged series. /// /// Deeper windows go first: a window above one of them collects the chunks the one below hands - /// up, so flushing the shallow one first would merge an input it has not received yet. The - /// queue of a flushed node is emptied by the root drain that follows each of its merged series, - /// so a chunk it produced never stands beside the fragments it was computed from. - fn flush_merges(&mut self, drained: &mut Vec) -> Result<()> { + /// up, so flushing the shallow one first would merge an input it has not received yet. What a + /// flush queues is handed up by the caller's own pulls, which is why nothing here collects the + /// answer into a value of its own. + fn flush_ready_merges(&mut self) -> Result { + let mut flushed = false; for index in (0..self.state.runtimes.len()).rev() { // A window that collects its input is the one node holding a [`MergeInput`], and the // flush takes it: the same node is not visited twice. if self.state.runtimes[index].merge.is_none() { continue; } - self.flush_merge(index, drained)?; + // Its input has to be finished before it is merged: a node below still holding collected + // input has not answered yet, and merging what it has not sent would answer a series + // from half of its contributions. + let Some(child) = self.state.nodes[index].input else { + continue; + }; + if !self.settled(child) { + continue; + } + self.flush_merge(index)?; + flushed = true; + } + Ok(flushed) + } + + /// Whether any window still holds collected input that has not been merged. + fn any_merge_pending(&self) -> bool { + self.state + .runtimes + .iter() + .any(|runtime| runtime.merge.is_some()) + } + + /// Whether the node at `index` has produced everything it ever will. + /// + /// A pull that finds nothing does not answer it: a collecting window reports nothing until it + /// is flushed, and a binary node reports nothing until both nodes it reads from are finished. + /// Each node therefore answers from its own state and from its children's, which is what keeps + /// a binary node from computing on an operand a window below it has not handed over yet. + fn settled(&self, index: usize) -> bool { + let runtime = &self.state.runtimes[index]; + if !runtime.queued.is_empty() || runtime.merge.is_some() { + return false; + } + match self.state.nodes[index].tag { + NodeTag::Input => true, + NodeTag::Map | NodeTag::Window | NodeTag::Instant => self.state.nodes[index] + .input + .is_none_or(|child| self.settled(child)), + NodeTag::Binary => { + runtime + .binary + .as_ref() + .is_some_and(|binary| binary.computed) + && self.state.nodes[index] + .input + .is_none_or(|child| self.settled(child)) + && self + .state + .right_input(index) + .is_ok_and(|right| self.settled(right)) + } } - Ok(()) } /// Merges the collected input of the node at `index` and evaluates it, one merged series at a /// time. /// /// Each merged series is a whole series: it is handed to the evaluator as one closing series, so - /// the window reports on it once, and its chunk is queued and drained up the tree before the - /// next one is evaluated. That is what keeps the reservation honest: the fragments and the - /// merge's workspace stay charged while the flush runs, and the queue of a node never holds an - /// earlier series beside the fragments of a later one. - fn flush_merge(&mut self, index: usize, drained: &mut Vec) -> Result<()> { + /// the window reports on it once, and its chunk waits in the node's queue at its own estimate. + /// The fragments and the merge's workspace stay charged for the whole flush and go back when it + /// ends; the queued answers stay charged until the caller pulls them. + fn flush_merge(&mut self, index: usize) -> Result<()> { let path = self.state.paths[index].clone(); let Some(merge) = self.state.runtimes[index].merge.take() else { return Ok(()); @@ -1615,7 +3147,7 @@ impl NativeExecutor { if merge.fragments.is_empty() { // Nothing arrived, so there is nothing to merge and nothing to answer: the window's // evaluator never read a series and the charge goes back. - return self.settle_merge(index); + return self.settle_merge(index, merge.bytes); } // The workspace the merge allocates is charged before it runs, from the rows, segments and // fields of the fragments as they were collected. @@ -1658,37 +3190,20 @@ impl NativeExecutor { .resize(retained.saturating_add(emitted).saturating_add(held))?; runtime.enqueue_output(output)?; } - self.drain_root(drained)?; } - self.settle_merge(index) + // The fragments and the merge's workspace go back, and whatever the flush produced stays + // charged in the node's queue until the caller pulls it. + self.settle_merge(index, held) } - /// Sets the reservation of the node at `index` to what it holds once its flush is over. - fn settle_merge(&mut self, index: usize) -> Result<()> { - let runtime = &mut self.state.runtimes[index]; - let retained = runtime - .window - .as_ref() - .map_or(0, RangeEvaluator::retained_bytes); - let emitted = runtime.emitted_bytes(); - runtime.buffer.resize(retained.saturating_add(emitted)) - } - - /// Hands the root's outputs to `drained` until the tree has nothing settled. - fn drain_root(&mut self, drained: &mut Vec) -> Result<()> { - loop { - match self.pull(0)? { - Some(NativeChunk::Evaluated(chunk)) => drained.push(chunk), - Some(NativeChunk::Raw(_)) => { - return Err(DataFusionError::Execution( - "the native runtime produces evaluated chunks, but its root produced raw \ - samples" - .to_string(), - )); - } - None => return Ok(()), - } - } + /// Gives back the `give_back` bytes the flush took, leaving the rest of the node's + /// reservation alone. + /// + /// It must not resize to a figure computed here: the chunks the flush queued are still charged + /// to this node, and they stay charged until the pull that hands each of them up returns its + /// estimate. + fn settle_merge(&mut self, index: usize, give_back: usize) -> Result<()> { + self.state.runtimes[index].buffer.shrink(give_back) } /// The next chunk of the node at `index`. @@ -1729,6 +3244,45 @@ impl NativeExecutor { } } } + NodeTag::Instant => { + let child = input.ok_or_else(|| missing_input(tag))?; + // A selection decides a whole series at once, so every chunk before the one that + // closes it yields nothing and the selection asks its input again. + loop { + let Some(chunk) = self.pull(child)? else { + return Ok(None); + }; + if let Some(output) = self.instant_node(index, chunk)? { + return Ok(Some(NativeChunk::Evaluated(output))); + } + } + } + NodeTag::Binary => { + // The spec names the left operand, the node the build pass reaches next; the right + // one is the input a spec of two fields would have had to carry. + let left = input.ok_or_else(|| missing_input(tag))?; + let right = self.state.right_input(index)?; + // Both operands are read to the end of what they hand over: before the input ends a + // binary node only retains the chunks, because a pair is not decided until both + // sides are whole, and after it ends this is the drain that empties the two. + for (side, child) in [left, right].into_iter().enumerate() { + while let Some(chunk) = self.pull(child)? { + let path = &self.state.paths[index]; + self.state.runtimes[index].retain_binary(path, side, chunk)?; + } + } + // Nothing has settled for a point that has an operand still arriving, and an + // operand below a collecting window has not arrived until that window is flushed. + if !self.inputs_finished || !self.settled(left) || !self.settled(right) { + return Ok(None); + } + let path = &self.state.paths[index]; + let runtime = &mut self.state.runtimes[index]; + runtime.compute_binary(path)?; + // A result holds one value per field, and a field may hold none where another + // does, so its values are counted rather than read as its positions. + runtime.pop_queued(evaluated_values) + } } } @@ -1752,31 +3306,79 @@ impl NativeExecutor { runtime.window(path, chunk) } - /// Queues a source chunk at the tree's input node. - fn push_source(&mut self, chunk: NativeChunk) -> Result<()> { + /// Feeds one chunk to the instant selection at `index`. + fn instant_node(&mut self, index: usize, chunk: NativeChunk) -> Result> { + let path = &self.state.paths[index]; + let runtime = &mut self.state.runtimes[index]; + runtime.instant(path, chunk) + } + + /// Queues a source chunk at the input node `path` names, or at the tree's only one. + fn push_source(&mut self, path: Option<&NodePath>, chunk: NativeChunk) -> Result<()> { self.check_running()?; - let evaluated = matches!(chunk, NativeChunk::Evaluated(_)); - if evaluated != self.state.source_is_evaluated { - let error = DataFusionError::Execution(format!( - "the native source is bound to {}, but an {} chunk was queued at it", - if self.state.source_is_evaluated { - "an evaluated series" - } else { - "raw samples" - }, - if evaluated { "evaluated" } else { "raw" }, - )); - self.stop(&error); - return Err(error); - } - let source = self.state.source; - let result = self.state.runtimes[source].enqueue(chunk); + let result = self.queue_source(path, chunk); if let Err(error) = &result { self.stop(error); } result } + /// Queues a source chunk at one input node, checking it against that input's binding. + fn queue_source(&mut self, path: Option<&NodePath>, chunk: NativeChunk) -> Result<()> { + let source = self.source_index(path)?; + let at = &self.state.paths[source]; + let Some(binding) = self.state.runtimes[source].source_schema.as_ref() else { + return Err(DataFusionError::Execution(format!( + "the input node at {at} does not produce samples" + ))); + }; + let bound = binding.eval_grid.is_some(); + let evaluated = matches!(chunk, NativeChunk::Evaluated(_)); + if evaluated != bound { + return Err(DataFusionError::Execution(format!( + "the native source at {at} is bound to {}, but {} chunk was queued at it", + if bound { + "an evaluated series" + } else { + "raw samples" + }, + if evaluated { "an evaluated" } else { "a raw" }, + ))); + } + self.state.runtimes[source].enqueue(chunk) + } + + /// The input node at `path`, or the tree's only input when the caller named none. + /// + /// A tree with a binary node has two inputs, and a chunk queued at "the input" of such a tree + /// cannot be assigned to either of them: the caller's chunks would be matched as the wrong + /// operand, so the ambiguity is refused instead of answered from the first input found. + fn source_index(&self, path: Option<&NodePath>) -> Result { + let Some(path) = path else { + return match self.state.sources.as_slice() { + [only] => Ok(*only), + _ => Err(DataFusionError::Execution(format!( + "the native execution has {} inputs, so a queued chunk has to name the input it \ + belongs to", + self.state.sources.len() + ))), + }; + }; + let index = *self.state.by_path.get(path).ok_or_else(|| { + DataFusionError::Execution(format!( + "the native tree has no node at {path} to queue a chunk at" + )) + })?; + let tag = self.state.nodes[index].tag; + if tag != NodeTag::Input { + return Err(DataFusionError::Execution(format!( + "the node at {path} is a {} node, and only an input node takes queued chunks", + tag.describe() + ))); + } + Ok(index) + } + /// Refuses to continue an execution that finished or stopped. fn check_running(&self) -> Result<()> { match &self.phase { @@ -1866,6 +3468,18 @@ fn valid_values(chunk: &EvaluatedChunk) -> usize { .sum() } +/// The values a chunk a binary node hands over holds. +/// +/// A binary result is an evaluated chunk, so this is [`valid_values`]: one value per field sample +/// that holds one. A raw chunk cannot reach a binary node's queue, and is answered as its positions +/// so an impossible queue cannot under-count. +fn evaluated_values(chunk: &NativeChunk) -> usize { + match chunk { + NativeChunk::Evaluated(chunk) => valid_values(chunk), + NativeChunk::Raw(chunk) => chunk.time.len(), + } +} + /// The rejection of a node kind this runtime does not execute yet. /// /// It names the kind and the node's position: the position is what the metrics and `EXPLAIN` call @@ -1881,6 +3495,39 @@ fn closed(path: &NodePath) -> DataFusionError { DataFusionError::Execution(format!("the window at {path} is already closed")) } +/// The error for a chunk of another series arriving while one is being selected. +/// +/// [`select_instants`] reads one whole axis, so the buffered chunks have to be one series: a chunk +/// of another series has nowhere to go, and appending it would select its samples as though they +/// were the open series'. +fn series_changed(path: &NodePath) -> DataFusionError { + DataFusionError::Execution(format!( + "the instant selection at {path} combines one series into one axis, and a chunk of another \ + series arrived before the first one ended" + )) +} + +/// The error for a series an instant selection has no labels to report it under. +/// +/// A source bound in label mode carries its identity encoded and no decoded labels, and a chunk +/// that is handed on has to name the series it holds. +fn no_labels(path: &NodePath) -> DataFusionError { + DataFusionError::Execution(format!( + "the instant selection at {path} requires materialized series labels" + )) +} + +/// The error for a source row the selection named but the series does not hold. +/// +/// The selection returns indices into the axis it was given, so a row outside it means the two +/// disagree rather than that a sample is missing. +fn missing_row(path: &NodePath, index: usize) -> DataFusionError { + DataFusionError::Execution(format!( + "the instant selection at {path} selected the source row {index}, which the series it read \ + does not hold" + )) +} + /// The rejection of an input ordering this runtime cannot execute. /// /// It names the input that declares the ordering and the ordering found, so a reader can tell a @@ -1924,6 +3571,24 @@ fn truncated_input(path: &NodePath) -> DataFusionError { )) } +/// The error for a node asked to compute without the runtime its kind holds. +fn no_binary(path: &NodePath) -> DataFusionError { + DataFusionError::Execution(format!("the node at {path} holds no binary operation")) +} + +/// The error for a reservation the platform cannot express. +/// +/// The binary node reserves its retained operands and the kernel's live workspace together, and +/// the kernel reports the second as a size of its own. A sum of the two that does not fit an +/// address space cannot be reserved, so the execution is refused rather than run with a figure +/// that wrapped. +fn reservation_overflow(path: &NodePath) -> DataFusionError { + DataFusionError::Execution(format!( + "the operands and the kernel's workspace of the binary node at {path} do not fit one \ + address space: the bytes it would reserve overflow" + )) +} + /// The error for a node the flattened tree lost its input for. fn missing_input(tag: NodeTag) -> DataFusionError { DataFusionError::Execution(format!( diff --git a/src/promql/src/native/execute/tests.rs b/src/promql/src/native/execute/tests.rs index 829e79b8802..f31cf86be64 100644 --- a/src/promql/src/native/execute/tests.rs +++ b/src/promql/src/native/execute/tests.rs @@ -21,24 +21,26 @@ use std::sync::Arc; use datafusion::error::DataFusionError; use datafusion::execution::memory_pool::{GreedyMemoryPool, MemoryPool}; use datafusion::physical_plan::metrics::{ExecutionPlanMetricsSet, MetricValue}; -use datatypes::arrow::array::{Float64Array, UInt32Array}; +use datatypes::arrow::array::{Array, Float64Array, UInt32Array}; use datatypes::arrow::buffer::{Buffer, ScalarBuffer}; use datatypes::series::histogram::{ BucketSideView, CounterResetHint, HistogramBatch, HistogramBatchBuilder, HistogramView, }; use datatypes::series::raw::{RawSeriesChunk, RawTimestamps}; use datatypes::series::samples::{ - FieldSpec, SampleRef, Samples, Series, SeriesFields, SeriesSchema, + DenseSamplesRef, FieldSpec, SampleRef, Samples, Series, SeriesFields, SeriesSchema, }; use datatypes::series::time::{EvalGrid, GridRange, GridSpan, GridSpec, TimeAxis}; use datatypes::series::{Label, MetricName, SeriesOrdering}; use super::{ - Emitted, NativeChunk, NativeExecutionState, NativeExecutor, NodeBuffer, NodeRuntime, - absorb_rebuilds, evaluated_bytes, map_chunk, raw_bytes, + BinaryRuntime, Emitted, NativeChunk, NativeExecutionState, NativeExecutor, NodeBuffer, + NodeRuntime, absorb_rebuilds, evaluated_bytes, grid_end_ms, map_chunk, operand_chunk_bytes, + raw_bytes, }; use crate::evaluated::EvaluatedChunk; use crate::grid_series::merge_same_labelset; +use crate::instant_eval::select_instants; use crate::map::MathOp; use crate::native::metrics::{NodeMetric, NodeMetrics, NodePath}; use crate::native::plan::{ @@ -46,7 +48,10 @@ use crate::native::plan::{ BoundWindow, Grouping, NativeExpr, NativeNode, NativeTree, NativeType, }; use crate::range_eval::{RangeEvaluator, RangeFunction, RangeWindow}; -use crate::vector_match::{BinaryMatching, BinaryOp, Cardinality, FillValues, MatchingLabels}; +use crate::vector_match::{ + BinaryMatching, BinaryOp, Cardinality, FillValues, MatchingLabels, reset_visited_pairs, + visited_pairs, +}; fn grid(start: i64, step: i64, len: u64) -> Arc { Arc::new(EvalGrid::try_new(GridSpec::try_new(start, step, len).unwrap()).unwrap()) @@ -93,11 +98,16 @@ fn metric() -> MetricName { /// The raw source every supported tree starts from. fn input() -> NativeNode { + raw_input_with_ordering(SeriesOrdering::KeyThenTime) +} + +/// The same raw source, declaring `ordering`. +fn raw_input_with_ordering(ordering: SeriesOrdering) -> NativeNode { let output = NativeType::Samples(raw_schema()); NativeNode { expr: NativeExpr::Input(BoundInput { output: output.clone(), - ordering: SeriesOrdering::KeyThenTime, + ordering, }), output, } @@ -193,6 +203,39 @@ fn window_over_fields(count: usize, output_grid: Arc) -> NativeNode { } } +/// A bare selector over `inner`: the last sample at or before each grid point, read within +/// `lookback_ms` and at `offset_ms`. +/// +/// The selection reports one value per input field, so its layout is the input's, just as the +/// compiler builds it. +fn instant( + inner: NativeNode, + lookback_ms: i64, + offset_ms: i64, + output_grid: Arc, +) -> NativeNode { + let fields = inner + .output + .samples() + .expect("a selection reads samples") + .fields + .clone(); + NativeNode { + expr: NativeExpr::Instant { + input: Box::new(inner), + op: BoundInstant { + lookback_ms, + offset_ms, + output_grid: Arc::clone(&output_grid), + }, + }, + output: NativeType::Samples(Arc::new(SeriesSchema { + fields, + eval_grid: Some(output_grid), + })), + } +} + fn map(inner: NativeNode, ops: Vec) -> NativeNode { let output = inner.output.grid().expect("a map needs a grid").clone(); NativeNode { @@ -265,6 +308,34 @@ fn raw_chunk_repeated( .unwrap() } +/// One raw chunk of `series-a` whose fields carry `columns`, one column per field. +/// +/// A `None` is a position that field holds no sample at, which is what a partially filled field +/// looks like at the source. +fn raw_chunk_columns( + schema: &SeriesSchema, + timestamps: &[i64], + columns: Vec>>, + is_last: bool, +) -> RawSeriesChunk { + let fields = SeriesFields::try_from_vec( + columns + .into_iter() + .map(|values| Samples::from_float(Float64Array::from(values))) + .collect(), + ) + .unwrap(); + RawSeriesChunk::try_new( + schema, + Buffer::from_slice_ref(b"series-a"), + Some(metric()), + RawTimestamps::try_new(ScalarBuffer::from(timestamps.to_vec())).unwrap(), + fields, + is_last, + ) + .unwrap() +} + /// Pushes one native histogram whose positive side is one span of `buckets` buckets of one count /// into `builder`, and returns the index it was filed under. fn push_histogram(builder: &mut HistogramBatchBuilder, buckets: i32) -> u32 { @@ -320,6 +391,59 @@ fn raw_histogram_chunk( .unwrap() } +/// One raw chunk of `series-a` whose one field holds a four-bucket native histogram at each of +/// `timestamps`, each carrying `start_timestamp` as the payload it was read from reports it. +fn raw_histogram_chunk_with_start( + schema: &SeriesSchema, + timestamps: &[i64], + start_timestamp: Option, + is_last: bool, +) -> RawSeriesChunk { + let mut builder = HistogramBatchBuilder::new(); + let offsets = [0]; + let lengths = [4]; + let counts = vec![1.0; 4]; + let indices: UInt32Array = timestamps + .iter() + .map(|_| { + Some( + builder + .push(HistogramView { + schema: 0, + zero_threshold: 0.0, + zero_count: 0.0, + count: 4.0, + sum: 4.0, + reset_hint: CounterResetHint::Unknown, + start_timestamp, + custom_values: &[], + positive: BucketSideView { + span_offsets: &offsets, + span_lengths: &lengths, + buckets: &counts, + }, + negative: BucketSideView { + span_offsets: &[], + span_lengths: &[], + buckets: &[], + }, + }) + .unwrap(), + ) + }) + .collect(); + let samples = Samples::try_from_histogram(indices, builder.finish().unwrap()).unwrap(); + RawSeriesChunk::try_new( + schema, + Buffer::from_slice_ref(b"series-a"), + Some(metric()), + RawTimestamps::try_new(ScalarBuffer::from(timestamps.to_vec())).unwrap(), + SeriesFields::one(samples), + is_last, + ) + .unwrap() +} + /// One raw chunk of `series-a` whose one field holds the histogram at `index` of `table`. /// /// Two chunks built this way share one `Arc`, which is what makes the allocation @@ -354,14 +478,64 @@ fn source_runtime(pool: &Arc) -> NodeRuntime { pool, ), queued: VecDeque::new(), + instant: None, window: None, map: None, + binary: None, + source_schema: None, emitted: None, merge: None, open_source_series: false, } } +/// A binary node's runtime: both operands bound to `schema` and the reservation they are held for. +fn binary_runtime(pool: &Arc, schema: &Arc) -> NodeRuntime { + NodeRuntime { + buffer: NodeBuffer::new(&NodePath::root(), Arc::new(NodeMetrics::default()), pool), + queued: VecDeque::new(), + instant: None, + window: None, + map: None, + binary: Some(BinaryRuntime::new( + Arc::new(binary_matching(BinaryOp::Add)), + [Arc::clone(schema), Arc::clone(schema)], + )), + source_schema: None, + emitted: None, + merge: None, + open_source_series: false, + } +} + +/// What a binary node holds once it retains `left` and `right`, and what assembling the retained +/// chunks into the series the kernel matches adds on top. +/// +/// Both are read from a runtime of its own, so a pool can be sized from them: the first is what the +/// node reserves for the operands it retains and the second its own bound, and neither is a figure +/// the pool reports. +fn binary_charge( + schema: &Arc, + left: &EvaluatedChunk, + right: &EvaluatedChunk, +) -> (usize, usize) { + let mut runtime = binary_runtime(&pool(), schema); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(left.clone())) + .unwrap(); + runtime + .retain_binary(&NodePath::root(), 1, NativeChunk::Evaluated(right.clone())) + .unwrap(); + let retained = runtime.buffer.reservation.size(); + let assembly = runtime + .binary + .as_ref() + .expect("the runtime holds a binary node") + .assembly_bytes() + .expect("the assembly bound does not overflow"); + (retained, assembly) +} + /// One evaluated chunk of an input series: `values` at `start` and onwards on `schema`'s grid. fn evaluated_chunk( schema: &SeriesSchema, @@ -389,7 +563,21 @@ fn evaluated_chunk_of( values: Vec>, is_last: bool, ) -> EvaluatedChunk { - let samples = Samples::from_float(Float64Array::from(values)); + evaluated_array_chunk_of(schema, metric, start, Float64Array::from(values), is_last) +} + +/// One evaluated chunk of the series `metric` whose one field holds `values`, addressed at `start`. +/// +/// The array is passed in rather than built here so that two chunks can hold sibling slices of one +/// Arrow allocation, which is what a source handing over the chunks of one batch does. +fn evaluated_array_chunk_of( + schema: &SeriesSchema, + metric: MetricName, + start: usize, + values: Float64Array, + is_last: bool, +) -> EvaluatedChunk { + let samples = Samples::from_float(values); let range = GridRange::try_new(schema.eval_grid.clone().unwrap(), start, samples.len()).unwrap(); let series = Series { @@ -400,6 +588,48 @@ fn evaluated_chunk_of( EvaluatedChunk::try_new(series, is_last).unwrap() } +/// One evaluated chunk of the series `metric` whose one field holds `indices` into `table`, +/// addressed at `start` on `schema`'s grid. +/// +/// Two chunks built with one `table` are two slices of one allocation; two built with tables of the +/// same shape hold two allocations of the same size. +fn evaluated_histogram_chunk_of( + schema: &SeriesSchema, + metric: MetricName, + start: usize, + indices: Vec>, + table: &Arc, + is_last: bool, +) -> EvaluatedChunk { + let samples = + Samples::try_from_histogram(UInt32Array::from(indices), Arc::clone(table)).unwrap(); + let range = + GridRange::try_new(schema.eval_grid.clone().unwrap(), start, samples.len()).unwrap(); + let series = Series { + metric, + time: TimeAxis::Grid(range), + fields: SeriesFields::try_from_vec(vec![samples]).unwrap(), + }; + EvaluatedChunk::try_new(series, is_last).unwrap() +} + +/// One histogram table of `histograms` histograms of `buckets` buckets each. +fn histogram_table(histograms: usize, buckets: i32) -> Arc { + let mut builder = HistogramBatchBuilder::new(); + for _ in 0..histograms { + push_histogram(&mut builder, buckets); + } + builder.finish().unwrap() +} + +/// What `table` holds: the batch struct and the arrays its columns view. +/// +/// Written out here rather than read from the runtime, so a test can size its expectations from the +/// table it built instead of from the figure it is checking. +fn histogram_table_bytes(table: &Arc) -> usize { + std::mem::size_of::() + table.as_arrow().get_array_memory_size() +} + /// The series `name{job="job"}`, so two series can share the label a map leaves behind. fn named_metric(name: &str, job: &str) -> MetricName { MetricName::try_new( @@ -458,11 +688,16 @@ fn run(executor: &mut NativeExecutor) -> Vec { } fn sample_values(chunk: &EvaluatedChunk) -> Vec> { + field_values(chunk, 0) +} + +/// The values field `index` carries, one per row the chunk holds. +fn field_values(chunk: &EvaluatedChunk, index: usize) -> Vec> { let field = chunk .series .fields - .get(0) - .expect("these series have one field"); + .get(index) + .unwrap_or_else(|| panic!("the chunk carries no field {index}")); field .iter() .map(|sample| match sample { @@ -472,6 +707,25 @@ fn sample_values(chunk: &EvaluatedChunk) -> Vec> { .collect() } +/// The start timestamp of the histogram at every position of a chunk, in grid order. +/// +/// It is read off the output's own histogram views rather than off a converted value, because the +/// figure under test is the one a later reader sees. +fn histogram_starts(chunk: &EvaluatedChunk) -> Vec> { + let mut cursor = chunk.series.fields.as_slice()[0].cursor(); + chunk + .series + .time + .positions() + .filter_map( + |(_, row)| match cursor.at(row).expect("the axis and the fields are aligned") { + SampleRef::Histogram(view) => Some(view.start_timestamp), + _ => None, + }, + ) + .collect() +} + fn series_start(chunk: &EvaluatedChunk) -> usize { chunk .series @@ -828,23 +1082,6 @@ fn an_unimplemented_node_is_reported_not_panicked() { let statement = || grid(0, 120_000, 2); let scalar_tree = scalar(1.0, statement()); - let instant_tree = { - let out = statement(); - map( - NativeNode { - expr: NativeExpr::Instant { - input: Box::new(input()), - op: BoundInstant { - lookback_ms: 300_000, - offset_ms: 0, - output_grid: Arc::clone(&out), - }, - }, - output: NativeType::Samples(evaluated_schema(out)), - }, - vec![MathOp::Abs], - ) - }; let aggregate_tree = { let out = statement(); NativeNode { @@ -879,7 +1116,6 @@ fn an_unimplemented_node_is_reported_not_panicked() { let cases = [ ("Scalar", "root", scalar_tree), - ("Instant", "root.input", instant_tree), ("Aggregate", "root", aggregate_tree), ("Binary", "root", binary_tree), ]; @@ -2464,6 +2700,68 @@ fn an_interleaved_input_is_refused_without_a_window() { assert!(message.contains("root.input"), "{message}"); } +/// A selection over an interleaved input is refused when the tree is bound, before it can run. +/// +/// The binding is where the ordering is known, and the plan's `Instant` arm refuses an input that +/// declares `Interleaved` for the reason the window arm does: a selection's consumer collects one +/// series' chunks into one buffer, so it reads a series to its last chunk before the next. Nothing +/// about an interleaved input is therefore left to the runtime along a selection, and the tree +/// never reaches [`NativeExecutionState::try_new`]. The ordering check there stays for the shape +/// the binding cannot see through: it only looks at a window's own input, so a window over a map +/// over the source still reads an interleaved stream, which is +/// [`a_window_over_an_interleaved_input_is_rejected`]. The shape with a map above the selection is +/// [`an_interleaved_input_is_refused_under_a_map_over_a_selection`]. +#[test] +fn an_interleaved_input_is_refused_under_a_selection() { + let out_grid = grid(0, 60_000, 2); + let error = NativeTree::try_new(instant( + raw_input_with_ordering(SeriesOrdering::Interleaved), + 60_000, + 0, + Arc::clone(&out_grid), + )) + .expect_err("a selection over an interleaved input must not bind"); + // A rejected tree is a compiler defect rather than a query error, so the binding reports it as + // `Internal`; what this pins is that the refusal names the ordering it came from, since the + // same check refuses a window over the same input. + assert!(matches!(error, DataFusionError::Internal(_)), "{error}"); + let message = error.to_string(); + assert!( + message.contains("interleaved chunks cannot be fed to it"), + "{message}" + ); +} + +/// The same refusal with a map above the selection. +/// +/// The tree here is `Input -> Instant -> Map`: the map sits above the selection, and the selection +/// reads the interleaved input directly. A map between the input and the selection is not a tree +/// this compiler can build at all -- a `Map` produces an evaluated vector while an instant +/// selection requires raw samples, and the plan's `Instant` arm rejects evaluated values -- so what +/// this test pins is the recursion: `validate` descends through the outer map to the selection +/// below it, whose own arm then refuses the input it reads, and the tree is refused at the same +/// point as [`an_interleaved_input_is_refused_under_a_selection`]. +#[test] +fn an_interleaved_input_is_refused_under_a_map_over_a_selection() { + let out_grid = grid(0, 60_000, 2); + let error = NativeTree::try_new(map( + instant( + raw_input_with_ordering(SeriesOrdering::Interleaved), + 60_000, + 0, + Arc::clone(&out_grid), + ), + vec![MathOp::Abs], + )) + .expect_err("a map over a selection over an interleaved input must not bind"); + assert!(matches!(error, DataFusionError::Internal(_)), "{error}"); + let message = error.to_string(); + assert!( + message.contains("interleaved chunks cannot be fed to it"), + "{message}" + ); +} + /// A series that produced values under a label set, followed by one that produced none under the /// same label set, is not a collision: the second contributes no sample, so the answer is just the /// first one's values. @@ -3186,3 +3484,2936 @@ fn a_sparse_series_that_moves_forward_is_appended_to_its_history() { "the merged history is not sorted, disjoint and joined: {runs:?}" ); } + +/// A bare selector stamps the last sample at or before each grid point onto its own grid. +/// +/// The chunk is addressed on the node's output grid, not on the source's timestamps; a grid point +/// may select a row an earlier point already did (the point after the last sample repeats it); and +/// the same samples delivered as one chunk and as three answer the same, because the selection reads +/// a whole axis rather than a chunk. +#[test] +fn a_bare_selector_selects_instants_onto_its_own_grid() { + let out_grid = grid(0, 60_000, 4); + let tree = NativeTree::try_new(instant(input(), 120_000, 0, Arc::clone(&out_grid))).unwrap(); + let schema = raw_schema(); + let whole = raw_chunk( + &schema, + &[0, 30_000, 90_000, 120_000, 200_000], + &[1.0, 2.0, 3.0, 4.0, 5.0], + true, + ); + // The same series as three chunks, so nothing about it is decided by a chunk boundary. + let split = [ + raw_chunk(&schema, &[0, 30_000], &[1.0, 2.0], false), + raw_chunk(&schema, &[90_000], &[3.0], false), + raw_chunk(&schema, &[120_000, 200_000], &[4.0, 5.0], true), + ]; + + let mut once = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + once.push_raw(whole).unwrap(); + let out = run(&mut once); + + let mut piecewise = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + let mut in_pieces = Vec::new(); + for chunk in split { + let closing = chunk.is_last; + piecewise.push_raw(chunk).unwrap(); + // Until the series ends nothing is decided for it, so only the closing chunk reports. + let pulled = piecewise.next_chunk().unwrap(); + assert_eq!( + pulled.is_some(), + closing, + "a series reported a chunk before its last one arrived" + ); + in_pieces.extend(pulled); + } + in_pieces.extend(piecewise.finish().unwrap()); + + assert_eq!(out.len(), 1, "one series is one chunk, however it arrived"); + let chunk = &out[0]; + assert!(chunk.is_last, "the only chunk of a series closes it"); + assert!( + Arc::ptr_eq(chunk.series.time.grid().expect("a grid chunk"), &out_grid), + "the chunk is addressed on a grid that is not the selection's output grid" + ); + // 0 -> 0, 60s -> 30s, 120s -> 120s, 180s -> 120s: the row at 90s is never the last one before a + // grid point, and the point past the last sample repeats the row before it. + assert_eq!( + decided(&out), + vec![ + (0, Some(1.0)), + (1, Some(2.0)), + (2, Some(4.0)), + (3, Some(4.0)), + ] + ); + // A selection keeps the labels it read, the metric name included: unlike a range function it + // does not rewrite what the selector named. + assert_eq!(chunk.series.metric, metric()); + assert_eq!( + decided(&in_pieces), + decided(&out), + "the same series split into chunks answered differently" + ); +} + +/// The lookback edge is exclusive: a sample exactly `lookback_ms` before a grid point is not +/// selected, one millisecond later is. +/// +/// This pins what the selection kernel does rather than what Prometheus' documentation suggests: a +/// sample at the point itself is always selected, and the window is `(point - lookback, point]`. +#[test] +fn a_sample_at_the_lookback_edge_is_not_selected() { + // The statement's grid is the single point 1000ms, and the lookback is 200ms. + let out_grid = grid(1000, 100, 1); + let schema = raw_schema(); + let selected = |timestamp: i64| { + let tree = NativeTree::try_new(instant(input(), 200, 0, Arc::clone(&out_grid))).unwrap(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_raw(raw_chunk(&schema, &[timestamp], &[1.0], true)) + .unwrap(); + run(&mut execution) + }; + + // 800 is exactly `1000 - 200`, so the edge itself selects nothing. + let edge = selected(800); + assert_eq!(edge.len(), 1, "the series still closes on one chunk"); + assert!(edge[0].is_last); + assert!( + decided(&edge).is_empty(), + "a sample exactly at the lookback edge was selected: {:?}", + decided(&edge) + ); + // One millisecond inside the window is selected; a sample after the grid point never is. + assert_eq!(decided(&selected(801)), vec![(0, Some(1.0))]); + assert!(decided(&selected(1001)).is_empty()); +} + +/// A positive offset reads earlier samples, and a negative one later samples. +#[test] +fn an_offset_reads_a_different_sample_at_each_grid_point() { + let out_grid = grid(0, 60_000, 2); + let schema = raw_schema(); + let values = |offset_ms: i64| { + let tree = NativeTree::try_new(instant(input(), 600_000, offset_ms, Arc::clone(&out_grid))) + .unwrap(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_raw(raw_chunk( + &schema, + &[-60_000, 0, 60_000], + &[1.0, 2.0, 3.0], + true, + )) + .unwrap(); + decided(&run(&mut execution)) + }; + + assert_eq!( + values(0), + vec![(0, Some(2.0)), (1, Some(3.0))], + "without an offset a point reads the sample at or before it" + ); + assert_eq!( + values(60_000), + vec![(0, Some(1.0)), (1, Some(2.0))], + "a minute of offset did not read the samples a minute earlier" + ); + // A negative offset reads samples the statement's own range does not reach: both points read + // the sample one minute after them. + assert_eq!( + values(-60_000), + vec![(0, Some(3.0)), (1, Some(3.0))], + "a negative offset did not read the samples a minute later" + ); +} + +/// A series that selects nothing still closes, exactly once, on a chunk that holds no row. +#[test] +fn a_series_with_no_selectable_sample_closes_once() { + // Every sample carries the stale marker, which suppresses the selection at every point. + let stale = f64::from_bits(common_query::prometheus::PROMETHEUS_STALE_NAN_BITS); + let out_grid = grid(0, 60_000, 3); + let tree = NativeTree::try_new(instant(input(), 300_000, 0, Arc::clone(&out_grid))).unwrap(); + let set = ExecutionPlanMetricsSet::new(); + let mut execution = executor(&tree, pool(), &set); + let schema = raw_schema(); + execution + .push_raw(raw_chunk(&schema, &[0, 60_000], &[stale, stale], true)) + .unwrap(); + let out = run(&mut execution); + + assert_eq!(out.len(), 1, "the series has to close exactly once"); + let chunk = &out[0]; + assert!(chunk.is_last); + assert!( + chunk.series.time.is_empty(), + "the closing chunk of a series that selected nothing holds a row" + ); + assert_eq!( + series_start(chunk), + 0, + "the empty chunk is not addressed on the grid" + ); + assert!( + Arc::ptr_eq(chunk.series.time.grid().expect("a grid chunk"), &out_grid), + "the empty chunk is addressed on a grid that is not the selection's output grid" + ); + assert_eq!( + chunk.series.metric, + metric(), + "the series lost its identity" + ); + assert_eq!( + count(&set, &NodePath::root(), NodeMetric::COMPLETED_SERIES), + 1, + "the series did not close exactly once" + ); +} + +/// A row one field fills and another misses stays one row, with a null where the field misses it. +#[test] +fn a_selected_row_keeps_the_fields_that_miss_it_null() { + let out_grid = grid(0, 60_000, 2); + let tree = + NativeTree::try_new(instant(raw_input_of(2), 60_000, 0, Arc::clone(&out_grid))).unwrap(); + let schema = raw_schema_of(field_count(2)); + // Each field holds a value at one of the two rows and none at the other. + let chunk = raw_chunk_columns( + &schema, + &[0, 60_000], + vec![vec![Some(1.0), None], vec![None, Some(4.0)]], + true, + ); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution.push_raw(chunk).unwrap(); + let out = run(&mut execution); + + assert_eq!(out.len(), 1); + let chunk = &out[0]; + assert_eq!( + chunk.series.time.len(), + 2, + "a row no field of which holds a value was written down" + ); + assert_eq!(field_values(chunk, 0), vec![Some(1.0), None]); + assert_eq!(field_values(chunk, 1), vec![None, Some(4.0)]); + assert_eq!( + chunk + .series + .time + .positions() + .map(|(position, _)| position) + .collect::>(), + vec![0, 1] + ); +} + +/// A grid position nobody fills is not a row, and a hole does not close the series early. +/// +/// The samples lie at the first and the last point of the grid with nothing in between, and the +/// lookback is too short to carry either one across: two rows, two runs, and no row per position +/// between them. +#[test] +fn a_position_no_field_fills_is_not_a_row() { + let out_grid = grid(0, 60_000, 5); + let tree = NativeTree::try_new(instant(input(), 1_000, 0, Arc::clone(&out_grid))).unwrap(); + let schema = raw_schema(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_raw(raw_chunk(&schema, &[0], &[1.0], false)) + .unwrap(); + // The hole between the two samples decides nothing, and it does not end the series. + assert!( + execution.next_chunk().unwrap().is_none(), + "a hole in the grid closed the series" + ); + assert!( + execution.state().reserved_bytes() > 0, + "the open series is not reserved for" + ); + execution + .push_raw(raw_chunk(&schema, &[240_000], &[5.0], true)) + .unwrap(); + let out = run(&mut execution); + + assert_eq!(out.len(), 1); + let chunk = &out[0]; + assert!(chunk.is_last); + assert_eq!( + chunk + .series + .time + .positions() + .map(|(position, _)| position) + .collect::>(), + vec![0, 4], + "the positions nobody fills were written down as rows" + ); + assert_eq!(decided(&out), vec![(0, Some(1.0)), (4, Some(5.0))]); + assert!( + chunk.range().is_none(), + "a chunk of two runs of positions was addressed as one range" + ); +} + +/// An instant selection selects: the histogram it picks keeps its start timestamp. +/// +/// The sample is read, converted into the histogram type the builder writes back, and written out +/// again, and that type used to have no start timestamp to write: a sample carrying +/// `start_timestamp = Some(1500)` at 2000ms came out `None`. It matters downstream -- a reader +/// detects a counter reset from a start timestamp that falls inside the range it reads -- and it is +/// the difference between selecting a sample and computing a value. +/// +/// One source sample is selected by three grid points here, which is the case a per-row conversion +/// can get wrong twice: applied once and forgotten on the second use, or applied to a value that no +/// longer carries the timestamp. +#[test] +fn a_selected_histogram_keeps_its_start_timestamp() { + let out_grid = grid(2000, 1, 3); + let tree = NativeTree::try_new(instant(input(), 60_000, 0, Arc::clone(&out_grid))).unwrap(); + let schema = raw_schema(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_raw(raw_histogram_chunk_with_start( + &schema, + &[2000], + Some(1500), + true, + )) + .unwrap(); + let out = run(&mut execution); + + assert_eq!(out.len(), 1); + assert_eq!( + histogram_starts(&out[0]), + vec![Some(1500), Some(1500), Some(1500)], + "the selected sample lost the start timestamp it was read with" + ); +} + +/// Two series that differ only in an empty-valued label are two series, and both are answered. +/// +/// The label set the runtime's occupancy table compares drops empty values, so a node that recorded +/// what it handed out under one would refuse the second series. A selection keeps the labels it +/// read, empty values included, so it keeps them apart and records nothing. +#[test] +fn two_series_differing_only_in_an_empty_label_are_both_answered() { + let out_grid = grid(0, 60_000, 1); + let tree = NativeTree::try_new(instant(input(), 300_000, 0, Arc::clone(&out_grid))).unwrap(); + let schema = raw_schema(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + // `zone=""` against an absent `zone`: one label set to everything that drops empty values. + execution + .push_raw(raw_chunk_of( + &schema, + b"a", + host_metric(Some("")), + &[0], + &[1.0], + true, + )) + .unwrap(); + execution + .push_raw(raw_chunk_of( + &schema, + b"b", + host_metric(None), + &[0], + &[2.0], + true, + )) + .unwrap(); + let out = run(&mut execution); + + assert_eq!(out.len(), 2, "one of the two series was not answered"); + assert_eq!(out[0].series.metric, host_metric(Some(""))); + assert_eq!(out[1].series.metric, host_metric(None)); + assert_eq!(decided(&out[..1]), vec![(0, Some(1.0))]); + assert_eq!(decided(&out[1..]), vec![(0, Some(2.0))]); +} + +/// What a selection reserves is the series it has buffered, measured chunk by chunk. +/// +/// The node holds a whole series, so its reservation grows with the chunks that series arrived in +/// and goes back when the series is answered. Each chunk is measured once, with the same estimate a +/// queued chunk is charged with: an allocation two chunks share is counted once per chunk, which is +/// the over-count a figure that keeps no state across chunks accepts. +/// +/// What this checks is the buffer alone. The workspace the gather of that buffer allocates -- the +/// axis, the selection's two arrays and the rows the builder keeps -- is reserved for while it is +/// live and is not part of this figure, so this test cannot see it, however many bytes it is: +/// [`an_instant_selection_reserves_the_workspace_it_gathers`] is the one that does. +#[test] +fn an_instant_selection_reserves_the_series_it_buffers() { + let out_grid = grid(0, 60_000, 4); + let tree = NativeTree::try_new(instant(input(), 300_000, 0, Arc::clone(&out_grid))).unwrap(); + let schema = raw_schema(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + let mut previous = 0; + for timestamps in [vec![0, 60_000], vec![120_000], vec![180_000]] { + let values = vec![1.0; timestamps.len()]; + let chunk = raw_chunk(&schema, ×tamps, &values, false); + let bytes = raw_bytes(&chunk); + execution.push_raw(chunk).unwrap(); + assert!( + execution.next_chunk().unwrap().is_none(), + "a series was reported before its last chunk arrived" + ); + let held = execution.state().reserved_bytes(); + assert_eq!( + held, + previous + bytes, + "the buffered series is not what is reserved for: {held} bytes held after {previous} \ + and a chunk of {bytes}" + ); + previous = held; + } + execution + .push_raw(raw_chunk(&schema, &[240_000], &[2.0], true)) + .unwrap(); + let out = run(&mut execution); + assert_eq!(out.len(), 1); + assert_eq!( + execution.state().reserved_bytes(), + 0, + "the series that was answered is still reserved for" + ); +} + +/// The workspace the gather allocates is reserved for before it exists. +/// +/// A selection decides the points of the grid it can be selected at, so its workspace is +/// proportional to those points rather than to the samples of the series: the axis it concatenates, +/// the source row and evaluation timestamp it reports per point, and the rows the builder keeps. +/// The lookback here reaches from the sample to the last point, so this series is decididable at +/// every one of the million points -- the clipped count equals the grid's -- and the two selection +/// arrays alone are 16 MB while the built rows are more, against a series the node holds of one +/// sample of a few hundred bytes. [`a_selection_reserves_the_points_it_decides`] is the other side +/// of the same figure: a series whose samples cover only the start of a long grid reserves for the +/// few points it can decide and is admitted by a pool this one is refused by. +/// +/// The pool here holds 8 KiB, which is enough for the buffered chunk and nothing near the +/// workspace, so the gather is refused instead of being performed. Nothing else refuses a million +/// points, so this is the reservation and not a point limit answering: without it the gather simply +/// runs. +#[test] +fn an_instant_selection_reserves_the_workspace_it_gathers() { + let out_grid = grid(0, 1, 1_000_000); + let tree = NativeTree::try_new(instant(input(), 1_000_000, 0, out_grid)).unwrap(); + let pool = bounded_pool(8 * 1024); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + let schema = raw_schema(); + execution + .push_raw(raw_chunk(&schema, &[0], &[1.0], true)) + .unwrap(); + + let error = execution.next_chunk().unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "the gather's workspace was taken without asking the pool: {error}" + ); + assert!( + !error.to_string().contains("exceed limit"), + "a point limit answered in the pool's place: {error}" + ); + assert_eq!( + pool.reserved(), + 0, + "the stopped execution still holds bytes" + ); + assert_eq!( + execution.state().reserved_bytes(), + 0, + "the workspace of the refused gather is still reserved for" + ); + assert_eq!( + execution.state().nodes_holding_instants(), + 0, + "the stopped execution still holds the buffered series" + ); + // A refused gather stops the execution rather than leaving it to be resumed. + let again = execution.next_chunk().unwrap_err(); + assert!( + again.to_string().contains("stopped after an earlier error"), + "{again}" + ); +} + +/// A selection reserves the points it can decide, not the points the grid plans. +/// +/// The review's shape: a seven-day grid at a one-minute step is 10,081 points, and one sample at +/// the start of the series read with a five-minute lookback is decided at five of them. The +/// grid-scaled terms of `InstantRuntime::gather_bytes` at the planned grid -- the selection's two +/// arrays and the doubled builder columns -- are about 504 KB, which the 64 KiB pool here is far +/// below; the handful of points really decided need a few hundred bytes, so this gather has to be +/// admitted. What it hands out is the rows `select_instants` reports for the same series, which is +/// the count the reservation has to agree with. +/// +/// The second half is the other direction: the same grid, the same pool, and a series that spans +/// the grid with a lookback long enough to cover it, so all 10,081 points can be decided. The +/// figure then exceeds the pool and the gather is refused, which is what keeps this from being a +/// reservation of nothing. +#[test] +fn a_selection_reserves_the_points_it_decides() { + let out_grid = grid(0, 60_000, 10_081); + let schema = raw_schema(); + let budget = 64 << 10; + // The two grid-scaled terms of `gather_bytes` at the planned grid: 10,081 points x 16 bytes for + // the selection's arrays, and 10,081 points x (8 + 8 + 1) x 2 for the doubled builder columns. + let full_grid = 10_081 * (8 + 8) + 10_081 * (8 + 8 + 1) * 2; + assert!( + full_grid > budget, + "the pool is not below what the full grid would be reserved: {full_grid} bytes" + ); + + // One sample at the start, read within five minutes: the kernel reports 0s..240s, and the + // candidate bound it sizes its arrays with is 0s..300s. + let tree = NativeTree::try_new(instant(input(), 300_000, 0, Arc::clone(&out_grid))).unwrap(); + let chunk = raw_chunk(&schema, &[0], &[1.0], true); + let (_, timestamps) = select_instants( + &chunk.time, + &chunk.fields, + out_grid.spec().start_ms..=grid_end_ms(out_grid.spec()), + out_grid.spec().step_ms, + 300_000, + 0, + ) + .unwrap(); + assert_eq!( + timestamps.len(), + 5, + "the clipping kernel decides another count" + ); + let mut execution = executor(&tree, bounded_pool(budget), &ExecutionPlanMetricsSet::new()); + execution.push_raw(chunk).unwrap(); + let out = run(&mut execution); + assert_eq!(out.len(), 1); + let expected: Vec<(usize, Option)> = timestamps + .iter() + .map(|timestamp| { + ( + usize::try_from((timestamp - out_grid.spec().start_ms) / out_grid.spec().step_ms) + .unwrap(), + Some(1.0), + ) + }) + .collect(); + assert_eq!( + decided(&out), + expected, + "the gather handed out another set of points than the clipping decides" + ); + + // The same series spans the grid with a lookback that covers it, so every point can be decided + // and the workspace no longer fits the same pool. + let tree = + NativeTree::try_new(instant(input(), 604_800_001, 0, Arc::clone(&out_grid))).unwrap(); + let pool = bounded_pool(budget); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_raw(raw_chunk(&schema, &[0, 604_800_000], &[1.0, 2.0], true)) + .unwrap(); + let error = execution.next_chunk().unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "a series covering the grid was gathered without asking the pool: {error}" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); +} + +/// A grid longer than any point limit is charged for, and the pool is what refuses it. +/// +/// `gather_bytes` used to return zero for a grid this long, so that a point limit inside the +/// kernel stayed the error reported and the workspace of a long gather was never reserved. The +/// estimate now applies to every gather, so the pool is asked before the kernel is and its refusal +/// is the one the caller sees — a bound in bytes, on the path that decides the points, rather than +/// a count that says nothing about what they cost. +#[test] +fn an_oversized_selection_is_refused_by_the_pool() { + // One million and two points over two samples: longer than the short circuit used to allow, + // so the estimate has to cover it rather than return zero. + let out_grid = grid(0, 1, 1_000_002); + let tree = NativeTree::try_new(instant(input(), 1_000_000, 0, out_grid)).unwrap(); + let pool = bounded_pool(8 * 1024); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + let schema = raw_schema(); + execution + .push_raw(raw_chunk(&schema, &[0, 1_000_001], &[1.0, 2.0], true)) + .unwrap(); + + let error = execution.next_chunk().unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "the gather's workspace was taken without asking the pool: {error}" + ); + assert!( + !error.to_string().contains("exceed limit"), + "a point limit answered in the pool's place: {error}" + ); + // Nothing is dropped silently: the execution stops and gives its reservation back. + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); + assert_eq!(execution.state().nodes_holding_instants(), 0); + let again = execution.next_chunk().unwrap_err(); + assert!( + again.to_string().contains("stopped after an earlier error"), + "{again}" + ); +} + +/// An input that ends inside a series is an error, not an empty answer. +/// +/// The selection holds the series and gathers it only on the chunk that closes it, so nothing is +/// answered for it. The node that notices is the input: the chunk it handed over did not say +/// `is_last`, and the tree's close reports that before any collected input is merged. +#[test] +fn an_input_that_ends_inside_a_series_is_reported() { + let tree = NativeTree::try_new(instant(input(), 300_000, 0, grid(0, 60_000, 2))).unwrap(); + let pool = pool(); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + let schema = raw_schema(); + execution + .push_raw(raw_chunk(&schema, &[0], &[1.0], false)) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + + let error = execution.finish().unwrap_err(); + assert!( + error.to_string().contains("ended before the last chunk"), + "{error}" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); + assert_eq!( + execution.state().nodes_holding_instants(), + 0, + "the stopped execution still holds the buffered series" + ); +} + +/// A selection combines one series into one axis, so a chunk of another series is refused. +/// +/// The buffered chunks are read as one axis, so a chunk of a second series has nowhere to go: it +/// would be selected as though its samples were the open series'. +#[test] +fn a_chunk_of_another_series_is_refused() { + let tree = NativeTree::try_new(instant(input(), 300_000, 0, grid(0, 60_000, 2))).unwrap(); + let schema = raw_schema(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_raw(raw_chunk(&schema, &[0], &[1.0], false)) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + // The second chunk carries another series' key. + execution + .push_raw(raw_chunk_of( + &schema, + b"series-b", + metric(), + &[60_000], + &[2.0], + true, + )) + .unwrap(); + + let error = execution.next_chunk().unwrap_err(); + assert!( + error + .to_string() + .contains("a chunk of another series arrived"), + "{error}" + ); + assert_eq!( + execution.state().reserved_bytes(), + 0, + "the refused series is still reserved for" + ); +} + +// --------------------------------------------------------------------------- +// Vector–vector binary operations, driven through `NativeExecutor`. +// --------------------------------------------------------------------------- + +/// The matching most tests here start from: no label list, one-to-one, no `bool`. +fn binary_matching(op: BinaryOp) -> BinaryMatching { + BinaryMatching { + op, + return_bool: false, + labels: MatchingLabels::Ignoring(Vec::new()), + cardinality: Cardinality::OneToOne, + fill: FillValues::default(), + } +} + +/// A binary node over `left` and `right`, bound the way the compiler binds it: the left side's +/// fields paired by position, on the grid both operands are evaluated on. +fn binary_of(left: NativeNode, right: NativeNode, matching: BinaryMatching) -> NativeNode { + let left_schema = left.output.samples().expect("binary reads samples").clone(); + let right_schema = right + .output + .samples() + .expect("binary reads samples") + .clone(); + let fields = field_count(left_schema.fields.len().min(right_schema.fields.len())); + NativeNode { + expr: NativeExpr::Binary { + left: Box::new(left), + right: Box::new(right), + matching, + }, + output: NativeType::Samples(Arc::new(SeriesSchema { + fields, + eval_grid: Some( + left_schema + .eval_grid + .clone() + .expect("binary reads evaluated samples"), + ), + })), + } +} + +/// A source of evaluated chunks over `count` float fields. +fn evaluated_input_of(count: usize, grid: Arc) -> NativeNode { + let output = NativeType::Samples(Arc::new(SeriesSchema { + fields: field_count(count), + eval_grid: Some(grid), + })); + NativeNode { + expr: NativeExpr::Input(BoundInput { + output: output.clone(), + ordering: SeriesOrdering::KeyThenTime, + }), + output, + } +} + +/// One evaluated chunk of `metric` whose fields carry `columns`, one column per field. +fn evaluated_columns( + schema: &SeriesSchema, + metric: MetricName, + start: usize, + columns: Vec>>, + is_last: bool, +) -> EvaluatedChunk { + let rows = columns.first().map_or(0, Vec::len); + evaluated_on(schema, metric, start, rows, columns, is_last) +} + +/// One evaluated chunk of `metric` addressed on `rows` positions from `start`, carrying `columns`. +/// +/// The axis and the columns are given independently so that a chunk whose two disagree can be built: +/// [`Series`] keeps its fields public, so nothing between a caller and a kernel refuses such a chunk +/// on its way in. +fn evaluated_on( + schema: &SeriesSchema, + metric: MetricName, + start: usize, + rows: usize, + columns: Vec>>, + is_last: bool, +) -> EvaluatedChunk { + let fields = SeriesFields::try_from_vec( + columns + .into_iter() + .map(|values| Samples::from_float(Float64Array::from(values))) + .collect(), + ) + .unwrap(); + let range = GridRange::try_new(schema.eval_grid.clone().unwrap(), start, rows).unwrap(); + EvaluatedChunk::try_new( + Series { + metric, + time: TimeAxis::Grid(range), + fields, + }, + is_last, + ) + .unwrap() +} + +/// One evaluated chunk of `metric` whose one field holds a `buckets`-wide histogram at each of +/// `len` positions from `start`. +fn evaluated_histograms( + schema: &SeriesSchema, + metric: MetricName, + start: usize, + buckets: i32, + len: usize, + is_last: bool, +) -> EvaluatedChunk { + let mut builder = HistogramBatchBuilder::new(); + let indices: UInt32Array = (0..len) + .map(|_| Some(push_histogram(&mut builder, buckets))) + .collect(); + let samples = Samples::try_from_histogram(indices, builder.finish().unwrap()).unwrap(); + let range = GridRange::try_new(schema.eval_grid.clone().unwrap(), start, len).unwrap(); + EvaluatedChunk::try_new( + Series { + metric, + time: TimeAxis::Grid(range), + fields: SeriesFields::one(samples), + }, + is_last, + ) + .unwrap() +} + +/// The `count` of the histogram at every carried row of a chunk. +fn histogram_counts(chunk: &EvaluatedChunk) -> Vec { + let mut cursor = chunk.series.fields.as_slice()[0].cursor(); + chunk + .series + .time + .positions() + .filter_map( + |(_, row)| match cursor.at(row).expect("the axis and the fields align") { + SampleRef::Histogram(view) => Some(view.count), + _ => None, + }, + ) + .collect() +} + +/// A source bound in label mode: `name{job="api",pod="a"}` and the other series here. +fn pod_metric(name: &str, job: &str, pod: &str) -> MetricName { + MetricName::try_new( + Some(name.into()), + vec![ + Label { + name: "job".into(), + value: job.into(), + }, + Label { + name: "pod".into(), + value: pod.into(), + }, + ], + ) + .unwrap() +} + +/// The one side of a `group_left` match: `one{job=...,instance=...}`. +fn one_metric(job: &str, instance: &str) -> MetricName { + MetricName::try_new( + Some("one".into()), + vec![ + Label { + name: "job".into(), + value: job.into(), + }, + Label { + name: "instance".into(), + value: instance.into(), + }, + ], + ) + .unwrap() +} + +/// A tree of two evaluated sources over `points` points under a binary node, with the two paths a +/// caller queues at. +fn binary_tree(op: BinaryOp, points: u64) -> (NativeTree, Arc, NodePath, NodePath) { + let grid = grid(0, 60_000, points); + let root = binary_of( + evaluated_input_of(1, Arc::clone(&grid)), + evaluated_input_of(1, Arc::clone(&grid)), + binary_matching(op), + ); + ( + NativeTree::try_new(root).unwrap(), + grid, + NodePath::root().left(), + NodePath::root().right(), + ) +} + +/// Two evaluated sources under a binary node add the series they match, point by point. +#[test] +fn a_binary_of_two_inputs_adds_the_matched_series() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(grid); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at( + &left, + evaluated_chunk(&schema, 0, vec![1.0, 2.0, 3.0, 4.0], true), + ) + .unwrap(); + execution + .push_evaluated_at( + &right, + evaluated_chunk(&schema, 0, vec![10.0, 20.0, 30.0, 40.0], true), + ) + .unwrap(); + assert_eq!( + addressed(&run(&mut execution)), + vec![(0, vec![Some(11.0), Some(22.0), Some(33.0), Some(44.0)])] + ); +} + +/// Neither the order the sides arrive in nor the chunk boundaries of one side change the result. +/// +/// A binary node matches whole series, so the two deliveries below are the same vector: one splits +/// the right side over two chunks, the other queues the right side first. `is_last` is the only +/// thing that ends a series, so a chunk boundary carries no meaning of its own. +#[test] +fn a_binary_result_does_not_depend_on_arrival_order_or_chunk_boundaries() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Sub, 4); + let schema = evaluated_schema(Arc::clone(&grid)); + let mut split = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + split + .push_evaluated_at( + &left, + evaluated_chunk(&schema, 0, vec![1.0, 2.0, 3.0, 4.0], true), + ) + .unwrap(); + split + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0, 20.0], false)) + .unwrap(); + split + .push_evaluated_at(&right, evaluated_chunk(&schema, 2, vec![30.0, 40.0], true)) + .unwrap(); + let split = decided(&run(&mut split)); + + let mut reversed = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + reversed + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0, 20.0], false)) + .unwrap(); + reversed + .push_evaluated_at( + &left, + evaluated_chunk(&schema, 0, vec![1.0, 2.0, 3.0, 4.0], true), + ) + .unwrap(); + reversed + .push_evaluated_at(&right, evaluated_chunk(&schema, 2, vec![30.0, 40.0], true)) + .unwrap(); + let reversed = decided(&run(&mut reversed)); + + let expected = vec![ + (0, Some(-9.0)), + (1, Some(-18.0)), + (2, Some(-27.0)), + (3, Some(-36.0)), + ]; + assert_eq!(split, expected); + assert_eq!(reversed, expected); +} + +/// Two series that arrive in separate chunks and hold a value at the same point are refused. +/// +/// Each chunk is a series of its own, closed by its own `is_last`, and the two claim one label set: +/// Prometheus reports the duplicate at the first point both are present at, which no chunk boundary +/// can resolve. Two such series whose positions do not meet are accepted instead, as +/// `a_sparse_binary_keeps_the_shared_positions` shows. +#[test] +fn a_cross_chunk_duplicate_on_one_side_is_refused() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(grid); + let pool = pool(); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + // The same label set twice on the right, each delivered in the chunk that closes it, and both + // holding values at positions 0 and 1. + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0, 20.0], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![30.0, 40.0], true)) + .unwrap(); + + let error = execution.finish().unwrap_err(); + assert!( + error + .to_string() + .contains("found duplicate series for the match group"), + "{error}" + ); + assert_eq!(pool.reserved(), 0, "the refused operands are still held"); + assert_eq!(execution.state().reserved_bytes(), 0); +} + +/// An operand that closes without a row contributes nothing, and pairing it is not an error. +#[test] +fn an_empty_side_yields_no_series() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + // A closing chunk with no row: the series ends before its first point. + execution + .push_evaluated_at( + &left, + evaluated_chunk_of(&schema, metric(), 0, Vec::new(), true), + ) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + assert!(run(&mut execution).is_empty()); +} + +/// An empty closing chunk after rows is not the series going backwards. +#[test] +fn an_empty_closing_chunk_does_not_rewind_a_series() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0], false)) + .unwrap(); + // The chunk that closes the series holds no row, so where it addresses says nothing. + execution + .push_evaluated_at( + &left, + evaluated_chunk_of(&schema, metric(), 0, Vec::new(), true), + ) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0, 20.0], true)) + .unwrap(); + assert_eq!(decided(&run(&mut execution)), vec![(0, Some(11.0))]); +} + +/// Two sparse operands meet at the positions both carry. +#[test] +fn a_sparse_binary_keeps_the_shared_positions() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(grid); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + // The left side decides positions 0 and 2 only, in two chunks. + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0], false)) + .unwrap(); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 2, vec![3.0], true)) + .unwrap(); + execution + .push_evaluated_at( + &right, + evaluated_chunk(&schema, 0, vec![10.0, 20.0, 30.0, 40.0], true), + ) + .unwrap(); + assert_eq!( + decided(&run(&mut execution)), + vec![(0, Some(11.0)), (2, Some(33.0))] + ); +} + +/// Fields are paired by position, and a field that misses a position keeps it null. +#[test] +fn a_binary_pairs_the_fields_of_each_operand() { + let grid = grid(0, 60_000, 2); + let root = binary_of( + evaluated_input_of(2, Arc::clone(&grid)), + evaluated_input_of(2, Arc::clone(&grid)), + binary_matching(BinaryOp::Add), + ); + let tree = NativeTree::try_new(root).unwrap(); + let schema = Arc::new(SeriesSchema { + fields: field_count(2), + eval_grid: Some(grid), + }); + let set = ExecutionPlanMetricsSet::new(); + let mut execution = executor(&tree, pool(), &set); + execution + .push_evaluated_at( + &NodePath::root().left(), + evaluated_columns( + &schema, + metric(), + 0, + vec![vec![Some(1.0), None], vec![Some(5.0), Some(6.0)]], + true, + ), + ) + .unwrap(); + execution + .push_evaluated_at( + &NodePath::root().right(), + evaluated_columns( + &schema, + metric(), + 0, + vec![vec![Some(10.0), Some(20.0)], vec![Some(7.0), Some(8.0)]], + true, + ), + ) + .unwrap(); + let out = run(&mut execution); + assert_eq!(out.len(), 1); + // Position 1 holds no left value of field 0, so that field keeps it null while field 1 has one. + assert_eq!(field_values(&out[0], 0), vec![Some(11.0), None]); + assert_eq!(field_values(&out[0], 1), vec![Some(12.0), Some(14.0)]); + // The result decided two positions and holds three values: the two positions are what the node + // evaluated, and a value is what a field sample holds, which is one fewer for the null. + let root_path = NodePath::root(); + assert_eq!( + count(&set, &root_path, NodeMetric::EVALUATED_GRID_POINTS), + 2 + ); + assert_eq!(count(&set, &root_path, NodeMetric::OUTPUT_VALUES), 3); +} + +/// A comparison without `bool` filters the points it does not hold at; with `bool` it reports both. +#[test] +fn a_comparison_filters_and_a_bool_comparison_reports_both_outcomes() { + let grid = grid(0, 60_000, 4); + let schema = evaluated_schema(Arc::clone(&grid)); + for (return_bool, expected) in [ + (false, vec![(2, Some(3.0)), (3, Some(4.0))]), + ( + true, + vec![ + (0, Some(0.0)), + (1, Some(0.0)), + (2, Some(1.0)), + (3, Some(1.0)), + ], + ), + ] { + let matching = BinaryMatching { + op: BinaryOp::Gt, + return_bool, + labels: MatchingLabels::Ignoring(Vec::new()), + cardinality: Cardinality::OneToOne, + fill: FillValues::default(), + }; + let root = binary_of( + evaluated_input_of(1, Arc::clone(&grid)), + evaluated_input_of(1, Arc::clone(&grid)), + matching, + ); + let tree = NativeTree::try_new(root).unwrap(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at( + &NodePath::root().left(), + evaluated_chunk(&schema, 0, vec![1.0, 2.0, 3.0, 4.0], true), + ) + .unwrap(); + execution + .push_evaluated_at( + &NodePath::root().right(), + evaluated_chunk(&schema, 0, vec![2.0, 2.0, 2.0, 2.0], true), + ) + .unwrap(); + assert_eq!( + decided(&run(&mut execution)), + expected, + "bool={return_bool}" + ); + } +} + +/// `group_left(instance)` keeps every many-side series and copies the label from its match. +#[test] +fn a_group_modifier_copies_the_one_side_label() { + let grid = grid(0, 60_000, 2); + let matching = BinaryMatching { + op: BinaryOp::Add, + return_bool: false, + labels: MatchingLabels::On(vec![Arc::from("job")]), + cardinality: Cardinality::ManyToOne(vec![Arc::from("instance")]), + fill: FillValues::default(), + }; + let root = binary_of( + evaluated_input_of(1, Arc::clone(&grid)), + evaluated_input_of(1, Arc::clone(&grid)), + matching, + ); + let tree = NativeTree::try_new(root).unwrap(); + let schema = evaluated_schema(Arc::clone(&grid)); + let (left, right) = (NodePath::root().left(), NodePath::root().right()); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + for (metric, values) in [ + (pod_metric("a", "api", "p1"), vec![Some(1.0), Some(2.0)]), + (pod_metric("b", "db", "p2"), vec![Some(3.0), Some(4.0)]), + ] { + execution + .push_evaluated_at(&left, evaluated_chunk_of(&schema, metric, 0, values, true)) + .unwrap(); + } + for (metric, values) in [ + (one_metric("api", "i1"), vec![Some(10.0), Some(20.0)]), + (one_metric("db", "i2"), vec![Some(100.0), Some(200.0)]), + ] { + execution + .push_evaluated_at(&right, evaluated_chunk_of(&schema, metric, 0, values, true)) + .unwrap(); + } + + // The result is compared as label sets, so the two series are sorted by the labels they carry: + // the value lists of `f64` have no total order, and none is needed here. + let mut results: Vec<_> = run(&mut execution) + .iter() + .map(|chunk| { + let mut tags: Vec<(String, String)> = chunk + .series + .metric + .tags() + .iter() + .map(|tag| (tag.name.to_string(), tag.value.to_string())) + .collect(); + tags.sort(); + (tags, sample_values(chunk)) + }) + .collect(); + results.sort_by(|left, right| left.0.cmp(&right.0)); + assert_eq!( + results, + vec![ + ( + vec![ + ("instance".to_string(), "i1".to_string()), + ("job".to_string(), "api".to_string()), + ("pod".to_string(), "p1".to_string()), + ], + vec![Some(11.0), Some(22.0)], + ), + ( + vec![ + ("instance".to_string(), "i2".to_string()), + ("job".to_string(), "db".to_string()), + ("pod".to_string(), "p2".to_string()), + ], + vec![Some(103.0), Some(204.0)], + ), + ] + ); +} + +/// Two native histograms are added bucket by bucket. +#[test] +fn a_binary_adds_the_native_histograms_of_both_sides() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at( + &left, + evaluated_histograms(&schema, metric(), 0, 4, 2, true), + ) + .unwrap(); + execution + .push_evaluated_at( + &right, + evaluated_histograms(&schema, metric(), 0, 4, 2, true), + ) + .unwrap(); + let out = run(&mut execution); + assert_eq!(out.len(), 1); + // Each side holds four buckets of one count at each point, so the sum counts eight. + assert_eq!(histogram_counts(&out[0]), vec![8.0, 8.0]); +} + +/// Nothing is decided before the input ends; `finish` is what hands the result over. +#[test] +fn a_binary_yields_nothing_until_the_input_finishes() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0, 20.0], true)) + .unwrap(); + assert!( + execution.next_chunk().unwrap().is_none(), + "a binary node answered before its input ended" + ); + assert_eq!( + addressed(&execution.finish().unwrap()), + vec![(0, vec![Some(11.0), Some(22.0)])] + ); +} + +/// A truncated operand is refused before the kernel is handed anything. +/// +/// The right side also carries a duplicate series, which the kernel would report: the truncation is +/// what comes back, so the kernel never ran over half a vector. +#[test] +fn a_truncated_operand_is_refused_before_the_kernel_runs() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(grid); + let pool = pool(); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + // The left side holds a duplicate the kernel would report if it were reached. + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![3.0, 4.0], true)) + .unwrap(); + // The right side never hands over the chunk that closes its series. + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0], false)) + .unwrap(); + + let error = execution.finish().unwrap_err(); + assert!( + error.to_string().contains("ended before the last chunk"), + "{error}" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().nodes_holding_binary(), 0); +} + +/// A workspace the pool cannot hold is refused, and what the node retained is given back with it. +#[test] +fn an_oversized_binary_workspace_is_refused_by_the_pool() { + let points = 100_000; + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, points); + let schema = evaluated_schema(grid); + // Enough for the two one-row operands, far less than the presence arrays the kernel builds. + let pool = bounded_pool(60_000); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0], true)) + .unwrap(); + let error = execution.finish().unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "a point limit answered in the pool's place: {error}" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); + assert_eq!(execution.state().nodes_holding_binary(), 0); +} + +/// A pool that cannot hold both operands refuses the second one, and the first is given back. +/// +/// Both chunks sit in their input's queue until the input ends, so the reservation covers them at +/// once: the second one is what the pool refuses, and stopping the execution returns what the first +/// one held. +#[test] +fn an_oversized_binary_operand_is_refused_by_the_pool() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 100_000); + let schema = evaluated_schema(grid); + let pool = bounded_pool(60_000); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0], true)) + .unwrap(); + let values: Vec = (0..50_000).map(f64::from).collect(); + let error = execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, values, true)) + .unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "an operand limit answered in the pool's place: {error}" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); +} + +/// A binary operand reserves each chunk it retains before it retains it, and holds exactly what +/// those chunks hold on their own. +/// +/// The figure of a retained chunk is what its rows occupy rather than the allocation they are slices +/// of, so a series delivered in sibling slices of one batch is charged the batch's data once instead +/// of once per chunk. What is refused here is a figure that disagrees with what the operand holds -- +/// a chunk reserved for on top of what the operand already keeps would be refused by a pool sized to +/// the total, and one reserved for less would leave the pool holding less than the node does. +#[test] +fn a_binary_operand_reserves_what_it_retains() { + let grid = grid(0, 60_000, 40_000); + let schema = evaluated_schema(Arc::clone(&grid)); + let batch = Float64Array::from((0..40_000).map(f64::from).collect::>()); + let first = evaluated_array_chunk_of(&schema, metric(), 0, batch.slice(0, 20_000), false); + let second = + evaluated_array_chunk_of(&schema, metric(), 20_000, batch.slice(20_000, 20_000), true); + + // What each chunk holds on its own, and the entry the closing chunk records in the operand's + // boundary list -- the list is storage the operand keeps, and it is charged one entry per closed + // series as it is written. + let boundaries = std::mem::size_of::(); + let (first_alone, second_alone) = ( + operand_chunk_bytes(&first.series), + operand_chunk_bytes(&second.series), + ); + let held = first_alone + second_alone + boundaries; + + // The budget is the figure the operand ends up holding, so a chunk reserved for on top of what + // the operand keeps would be refused and one reserved for less would leave the pool holding less + // than the node does. + let pool = bounded_pool(held); + let mut runtime = binary_runtime(&pool, &schema); + let before = runtime.buffer.reservation.size(); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(first)) + .unwrap(); + assert_eq!( + runtime.buffer.reservation.size() - before, + first_alone, + "the first chunk of the operand does not cost what it is estimated at" + ); + let before = runtime.buffer.reservation.size(); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(second)) + .unwrap(); + assert_eq!( + runtime.buffer.reservation.size() - before, + second_alone + boundaries, + "the closing chunk of the operand does not cost what it is estimated at, and the end it \ + records" + ); + assert_eq!( + runtime.buffer.reservation.size(), + held, + "the operand does not reserve what it holds" + ); + assert_eq!(pool.reserved(), held); + + // The figure a caller reserves for before retaining a chunk is the one the operand grows by: the + // estimate of the series it carries and the one entry the chunk's end records. + let own = evaluated_chunk(&schema, 0, vec![1.0, 2.0], true); + assert_eq!( + runtime + .binary + .as_ref() + .unwrap() + .pending(&NodePath::root(), 0, &own) + .unwrap(), + operand_chunk_bytes(&own.series) + std::mem::size_of::(), + "the figure reserved for a chunk is not what the operand grows by" + ); + + // Assembling the two chunks keeps the allocation they are slices of: the series the kernel reads + // is made of their descriptors, and no sample is copied into it. + let assembled = runtime + .binary + .as_ref() + .unwrap() + .assemble(&NodePath::root()) + .unwrap(); + assert_eq!( + assembled[0].len(), + 1, + "two chunks of one series are one series" + ); + let field = &assembled[0][0].fields.as_slice()[0]; + assert_eq!( + field.segments().len(), + 2, + "the assembled field is not the chunks it is built from" + ); + for segment in field.segments() { + let Some(DenseSamplesRef::Float(values)) = segment.dense() else { + panic!("a float chunk assembles into float segments"); + }; + assert_eq!( + values.values().inner().data_ptr(), + batch.values().inner().data_ptr(), + "the assembly copied samples instead of sharing the allocation they are slices of" + ); + } +} + +/// Two chunks that are first to reference a histogram table each are billed a table each. +/// +/// A histogram field's samples are a column of indices into a table, and the table is the bulk of +/// what such a chunk costs: the indices are four bytes a row where the table is thousands of bytes +/// of buckets. Two chunks of the same shape hold two tables, so each costs the other, and each +/// costs at least the table it holds -- a figure that charged the column of indices alone would +/// leave both tables outside everything the node reserves. +#[test] +fn a_binary_operand_bills_each_histogram_table_it_retains() { + const BUCKETS: i32 = 4_000; + let grid = grid(0, 60_000, 2); + let schema = evaluated_schema(Arc::clone(&grid)); + let table = histogram_table(2, BUCKETS); + let other = histogram_table(2, BUCKETS); + let bytes = histogram_table_bytes(&table); + assert_eq!( + bytes, + histogram_table_bytes(&other), + "the two tables are not the same shape, so the two chunks are not comparable" + ); + assert!( + bytes > 32 * 1024, + "a table of {bytes} bytes is no bigger than the descriptors of a one-row chunk, so nothing \ + here would tell a billed table from an unbilled one" + ); + let first = evaluated_histogram_chunk_of(&schema, metric(), 0, vec![Some(0)], &table, true); + let second = evaluated_histogram_chunk_of(&schema, metric(), 1, vec![Some(1)], &other, true); + + let pool = pool(); + let mut runtime = binary_runtime(&pool, &schema); + let before = runtime.buffer.reservation.size(); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(first)) + .unwrap(); + let first_cost = runtime.buffer.reservation.size() - before; + let before = runtime.buffer.reservation.size(); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(second)) + .unwrap(); + let second_cost = runtime.buffer.reservation.size() - before; + + assert_eq!( + first_cost, second_cost, + "two chunks of one shape and one table each cost different figures: {first_cost} and \ + {second_cost}" + ); + for (name, cost) in [("first", first_cost), ("second", second_cost)] { + assert!( + cost >= bytes, + "the {name} chunk costs {cost} bytes, less than the {bytes} its histogram table holds" + ); + assert!( + cost < 2 * bytes, + "the {name} chunk costs {cost} bytes, more than the {bytes} of its table and the rest \ + of a one-row chunk" + ); + } + assert_eq!( + runtime.buffer.reservation.size(), + first_cost + second_cost, + "the operand does not reserve what the two chunks it retains cost" + ); + assert_eq!(pool.reserved(), runtime.buffer.reservation.size()); +} + +/// Two chunks that index one histogram table are billed that table once. +/// +/// A table is one allocation however many chunks of a series index into it, so the second chunk is +/// charged the descriptor, the index and the end it records, and not the table again. The two +/// chunks here are the same shape, so what separates their figures is the table: the pair costs one +/// table plus both chunks' own descriptors, not one table per chunk and not no table at all. +#[test] +fn a_binary_operand_bills_a_shared_histogram_table_once() { + const BUCKETS: i32 = 4_000; + let grid = grid(0, 60_000, 2); + let schema = evaluated_schema(Arc::clone(&grid)); + let table = histogram_table(2, BUCKETS); + let bytes = histogram_table_bytes(&table); + assert!( + bytes > 32 * 1024, + "a table of {bytes} bytes is no bigger than the descriptors of a one-row chunk, so nothing \ + here would tell a shared table from a second one" + ); + let first = evaluated_histogram_chunk_of(&schema, metric(), 0, vec![Some(0)], &table, true); + let second = evaluated_histogram_chunk_of(&schema, metric(), 1, vec![Some(1)], &table, true); + + let pool = pool(); + let mut runtime = binary_runtime(&pool, &schema); + let before = runtime.buffer.reservation.size(); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(first)) + .unwrap(); + let first_cost = runtime.buffer.reservation.size() - before; + let before = runtime.buffer.reservation.size(); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(second)) + .unwrap(); + let second_cost = runtime.buffer.reservation.size() - before; + + assert!( + first_cost >= bytes, + "the chunk that first references the table costs {first_cost} bytes, less than the {bytes} \ + the table holds" + ); + // The two chunks are the same shape, so the second one is charged its own descriptors and not + // the table: it costs a small fraction of what the table holds, where a second table would cost + // the table again. + assert!( + second_cost * 8 < bytes, + "the second slice of one table costs {second_cost} bytes, comparable to the {bytes} the \ + table itself holds" + ); + // What the pair costs past the second chunk is the table the first one billed, and no more than + // the few bytes that remembering it takes. + let difference = first_cost.saturating_sub(second_cost); + assert!( + difference >= bytes, + "the pair costs {difference} bytes more than its second chunk, less than the {bytes} of the \ + one table between them" + ); + assert!( + difference <= bytes + 64, + "the pair costs {difference} bytes more than its second chunk, past the {bytes} of the one \ + table between them: the table is billed twice" + ); + assert!( + runtime.buffer.reservation.size() < bytes + 2 * second_cost + 64, + "the operand charges the one table of its two chunks twice: {} bytes for {} bytes of table", + runtime.buffer.reservation.size(), + bytes + ); + assert_eq!(pool.reserved(), runtime.buffer.reservation.size()); +} + +/// A pool with room for one histogram table admits one chunk of a table, refuses a second chunk +/// holding another table, and admits a second slice of the table it already holds. +/// +/// This is the figure the reservation is made for: a chunk that is the first to reference a table +/// costs that table, so two of them do not fit in room for one, while a chunk that indexes a table +/// the operand already holds costs its own slice and does. The room beside the first chunk is half a +/// table -- far more than the descriptors of a second chunk and far less than a second table -- and +/// the refused chunk leaves the operand where it was. +#[test] +fn a_pool_that_holds_one_histogram_table_refuses_a_second() { + const BUCKETS: i32 = 4_000; + let grid = grid(0, 60_000, 2); + let schema = evaluated_schema(Arc::clone(&grid)); + let table = histogram_table(2, BUCKETS); + let other = histogram_table(2, BUCKETS); + let bytes = histogram_table_bytes(&table); + assert!( + bytes > 32 * 1024, + "a table of {bytes} bytes is no bigger than the descriptors of a one-row chunk, so the room \ + beside one table would hold a second" + ); + let first = evaluated_histogram_chunk_of(&schema, metric(), 0, vec![Some(0)], &table, true); + let second_own = + evaluated_histogram_chunk_of(&schema, metric(), 0, vec![Some(0)], &other, true); + let second_shared = + evaluated_histogram_chunk_of(&schema, metric(), 1, vec![Some(1)], &table, true); + + // What the operand holds once it retains one chunk of a table, measured where the pool admits + // anything; the pool below is sized from it and half a table. + let mut probe = binary_runtime(&pool(), &schema); + probe + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(first.clone())) + .unwrap(); + let one_chunk = probe.buffer.reservation.size(); + let budget = one_chunk + bytes / 2; + + // A second chunk holding a table of its own does not fit: the pool refuses it and the operand + // keeps what it had. + let mut refused = binary_runtime(&bounded_pool(budget), &schema); + refused + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(first.clone())) + .unwrap(); + let error = refused + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(second_own)) + .unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "a second chunk holding a table of its own was admitted beside the first: {error}" + ); + assert_eq!( + refused.buffer.reservation.size(), + one_chunk, + "the refused chunk moved what the operand reserves" + ); + + // The second slice of the one table the operand holds does fit. + let mut shared = binary_runtime(&bounded_pool(budget), &schema); + shared + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(first)) + .unwrap(); + shared + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(second_shared)) + .unwrap(); + assert!( + shared.buffer.reservation.size() > one_chunk, + "the second slice of the table was admitted without being charged its own descriptors" + ); + assert!( + shared.buffer.reservation.size() <= budget, + "the operand reserves past the pool it was admitted in" + ); +} + +/// The executor's binary node holds no more than the operands it retains: the peak of its own +/// reservation is what every retained chunk holds on its own, not that plus a chunk it was handed +/// again. +/// +/// The source queue holds one chunk while the node retains the other, so what is read here is the +/// binary node's own figure rather than the pool's: the overlap of the two nodes is a charge of the +/// input and says nothing about what the operand costs. +#[test] +fn a_binary_beneath_the_executor_reserves_what_it_retains() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4_000); + let schema = evaluated_schema(Arc::clone(&grid)); + let batch = Float64Array::from(vec![1.0; 4_000]); + let first = evaluated_array_chunk_of(&schema, metric(), 0, batch.slice(0, 2_000), false); + let second = + evaluated_array_chunk_of(&schema, metric(), 2_000, batch.slice(2_000, 2_000), true); + // What the left operand holds once both chunks are retained: what each chunk holds on its own, + // and the boundary list the closing chunk adds one entry to. + let retained = std::mem::size_of::() + + [&first, &second] + .iter() + .map(|chunk| operand_chunk_bytes(&chunk.series)) + .fold(0usize, usize::saturating_add); + + let set = ExecutionPlanMetricsSet::new(); + let mut execution = executor(&tree, bounded_pool(1 << 22), &set); + execution.push_evaluated_at(&left, first).unwrap(); + execution.push_evaluated_at(&left, second).unwrap(); + // Nothing is queued on the right, so the pull retains both chunks of the left operand and + // nothing else: the kernel has not run and the node holds what it retains. + assert!(execution.next_chunk().unwrap().is_none()); + let peak = NodePath::root().partitioned_metric_name(NodeMetric::PEAK_RESERVED_BYTES, 0); + assert_eq!( + gauge(&set, &peak), + retained, + "the binary node reserved more than the operands it retains" + ); + + // The right operand matches the label set, so the operation answers every point of the grid. + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![2.0; 4_000], true)) + .unwrap(); + assert_eq!( + addressed(&run(&mut execution)), + vec![(0, vec![Some(3.0); 4_000])] + ); +} + +/// A query rooted at a binary node streams its answer after the input ends, one chunk per pull. +/// +/// The kernel needs both whole vectors before it answers anything, so nothing is settled until the +/// caller ends the input. From there the answer is not handed over as one collected value: each pull +/// takes the next chunk out of the node that holds it and gives back what that chunk was charged, +/// and the pull that finds nothing left is where the execution closes. A caller that stops pulling +/// early therefore still holds nothing it did not ask for, and the pool is empty when the last +/// `None` arrives. +#[test] +fn an_ended_input_streams_the_binary_answer_one_chunk_at_a_time() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(Arc::clone(&grid)); + let pool = bounded_pool(1 << 22); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0; 4], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![2.0; 4], true)) + .unwrap(); + // The operands are whole now, but the kernel has not run: the caller has not ended the input. + assert!(execution.next_chunk().unwrap().is_none()); + + execution + .end_of_input() + .expect("a closed input with two whole operands ends cleanly"); + // Ending the input runs the kernel and leaves its answer in the node that computed it, charged + // there until it is pulled; it does not collect the answer into a value of its own. + let mut chunks = Vec::new(); + while let Some(chunk) = execution.next_chunk().unwrap() { + chunks.push(chunk); + } + assert_eq!(addressed(&chunks), vec![(0, vec![Some(3.0); 4])]); + // The last pull closed the execution and returned everything it reserved. + assert_eq!(execution.state().reserved_bytes(), 0); + assert_eq!(pool.reserved(), 0); + // A finished execution is not pulled again. + let again = execution.next_chunk().unwrap_err(); + assert!(again.to_string().contains("already finished"), "{again}"); +} + +/// `finish` still answers the whole result in one value for a caller that wants it that way. +#[test] +fn finish_collects_what_the_streaming_contract_would_have_pulled() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(Arc::clone(&grid)); + let pool = bounded_pool(1 << 22); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0; 4], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![2.0; 4], true)) + .unwrap(); + let chunks = execution.finish().expect("the whole answer is collected"); + assert_eq!(addressed(&chunks), vec![(0, vec![Some(3.0); 4])]); + assert_eq!(execution.state().reserved_bytes(), 0); + assert_eq!(pool.reserved(), 0); +} + +/// A binary node reads an operand a collecting window below it produces only after that window +/// flushes. +/// +/// `Add(LastOverTime(Abs(a)), b)` puts a collecting window under a binary node: the window is above +/// a map, so it collects its whole input and answers at the end of it, while the binary node needs +/// both operands whole before it decides a point. Ending the input therefore has to finish the +/// subtree below each operand before the binary node computes -- flushing the window first and +/// letting the pull that follows carry its answer up. A binary node that computed on the empty +/// left operand would mark itself computed and answer nothing, and the value the window produced +/// afterwards would never be read. +#[test] +fn a_binary_reads_an_operand_a_collecting_window_flushes() { + let grid = grid(0, 60_000, 1); + let schema = evaluated_schema(Arc::clone(&grid)); + // The left operand is a window over a map: the map rewrites the label set, so the window + // collects its input and answers at the end of it. The right operand is a plain source. + let root = binary_of( + window_with( + map(evaluated_input(Arc::clone(&grid)), vec![MathOp::Abs]), + RangeFunction::LastOverTime, + 60_000, + Some(Arc::clone(&grid)), + Arc::clone(&grid), + ), + evaluated_input(Arc::clone(&grid)), + binary_matching(BinaryOp::Add), + ); + let tree = NativeTree::try_new(root).expect("the shape is legal"); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + // One point on each side, in one window: the left is -1, which `abs` makes 1, and the right is + // 10, so the sum is 11. + execution + .push_evaluated_at( + &NodePath::root().left().input().input(), + evaluated_chunk_of(&schema, metric(), 0, vec![Some(-1.0)], true), + ) + .unwrap(); + execution + .push_evaluated_at( + &NodePath::root().right(), + evaluated_chunk_of(&schema, metric(), 0, vec![Some(10.0)], true), + ) + .unwrap(); + + assert_eq!( + decided(&run(&mut execution)), + vec![(0, Some(11.0))], + "the binary node computed before the window below it answered" + ); +} + +/// A series that arrives in ten thousand one-point chunks is one candidate for the kernel, not ten +/// thousand. +/// +/// The kernel matches whole series, so the chunks of a logical series are assembled into the series +/// it reads before it runs: the pairing is over candidates, and a chunk that was a candidate of its +/// own would pair every chunk of one side with every chunk of the other. The same series delivered +/// whole must answer the same result, so the count of pairs the kernel actually visited is what +/// separates the two deliveries rather than their outcome. +#[test] +fn a_series_of_many_chunks_is_one_candidate_for_the_kernel() { + let points = 10_000usize; + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, points as u64); + let schema = evaluated_schema(grid); + let batch = Float64Array::from((0..points).map(|point| point as f64).collect::>()); + // One point per chunk, and only the last of them closes the series: the boundaries of the + // delivery say nothing about the series it carries. + let per_point: Vec = (0..points) + .map(|position| { + evaluated_array_chunk_of( + &schema, + metric(), + position, + batch.slice(position, 1), + position + 1 == points, + ) + }) + .collect(); + + reset_visited_pairs(); + let mut split = executor( + &tree, + bounded_pool(1 << 26), + &ExecutionPlanMetricsSet::new(), + ); + for (position, chunk) in per_point.iter().enumerate() { + split.push_evaluated_at(&left, chunk.clone()).unwrap(); + split.push_evaluated_at(&right, chunk.clone()).unwrap(); + assert!( + split.next_chunk().unwrap().is_none(), + "the binary node answered at position {position} before its input ended" + ); + } + let split = split.finish().unwrap(); + assert_eq!( + visited_pairs(), + 1, + "the chunks of one series were paired instead of the one series they make up" + ); + assert_eq!(split.len(), 1, "one matched label set answers one chunk"); + + reset_visited_pairs(); + let mut whole = executor( + &tree, + bounded_pool(1 << 26), + &ExecutionPlanMetricsSet::new(), + ); + let chunk = evaluated_array_chunk_of(&schema, metric(), 0, batch.clone(), true); + whole.push_evaluated_at(&left, chunk.clone()).unwrap(); + whole.push_evaluated_at(&right, chunk).unwrap(); + assert!(whole.next_chunk().unwrap().is_none()); + let whole = whole.finish().unwrap(); + assert_eq!( + visited_pairs(), + 1, + "a series delivered whole is one candidate as well" + ); + assert_eq!(whole.len(), 1, "one matched label set answers one chunk"); + + assert_eq!( + decided(&split), + decided(&whole), + "the delivery of a series changed the result" + ); + let expected: Vec<(usize, Option)> = (0..points) + .map(|position| (position, Some(2.0 * position as f64))) + .collect(); + assert_eq!(decided(&split), expected); +} + +/// The assembly of the operands into the series the kernel matches is reserved before it allocates. +/// +/// Assembling one series per closed series is metadata on top of the chunks the node retains -- the +/// descriptors the chunks' fields are collected into and the runs the axis is built from -- and the +/// pool is asked for that figure before it exists. A pool a byte short of it refuses the assembly, +/// and nothing of it is left charged: the node holds what it retained while the runtime is still +/// alive. +#[test] +fn an_assembly_the_pool_cannot_hold_is_refused_before_it_allocates() { + let grid = grid(0, 60_000, 2); + let schema = evaluated_schema(Arc::clone(&grid)); + let left = evaluated_chunk(&schema, 0, vec![1.0, 2.0], true); + let right = evaluated_chunk(&schema, 0, vec![10.0, 20.0], true); + let (retained, assembly) = binary_charge(&schema, &left, &right); + assert!( + assembly > 0, + "assembling the operands into series is not charged for" + ); + + // One byte short of the assembly: the assembly is refused rather than run over the budget. + let pool = bounded_pool(retained + assembly - 1); + let mut runtime = binary_runtime(&pool, &schema); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(left.clone())) + .unwrap(); + runtime + .retain_binary(&NodePath::root(), 1, NativeChunk::Evaluated(right.clone())) + .unwrap(); + assert_eq!(runtime.buffer.reservation.size(), retained); + let error = runtime.compute_binary(&NodePath::root()).unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "the assembly was not reserved before it allocated: {error}" + ); + // The assembly never ran, so its charge is gone: what the node holds is what it retained, and + // the pool holds no more than that while the runtime is still alive. + assert_eq!(runtime.buffer.reservation.size(), retained); + assert_eq!(pool.reserved(), retained); + assert_eq!( + runtime.binary.as_ref().unwrap().retained_bytes(), + retained, + "the refused assembly changed what the operand retains" + ); + + // The figure covers the assembly itself: with exactly that much more, the series are built and + // hold the rows the chunks carried. + let pool = bounded_pool(retained + assembly); + let mut runtime = binary_runtime(&pool, &schema); + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(left)) + .unwrap(); + runtime + .retain_binary(&NodePath::root(), 1, NativeChunk::Evaluated(right)) + .unwrap(); + let assembled = runtime + .binary + .as_ref() + .unwrap() + .assemble(&NodePath::root()) + .unwrap(); + assert_eq!(assembled[0].len(), 1, "one closed series is one series"); + assert_eq!(assembled[1].len(), 1, "one closed series is one series"); + let built = EvaluatedChunk::try_new(assembled[0][0].clone(), true).unwrap(); + assert_eq!(sample_values(&built), vec![Some(1.0), Some(2.0)]); +} + +/// An assembly the executor's pool cannot hold stops it and leaves it holding nothing. +/// +/// The pool is one byte short of what the node retains plus what assembling the retained chunks +/// allocates, so both operands are retained and the assembly is what the pool refuses. What a caller +/// sees afterwards is a stopped execution that holds nothing: the operand chunks are dropped and the +/// reservation is back at zero while the executor is still alive. +#[test] +fn an_assembly_the_executors_pool_cannot_hold_stops_it() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let (left_chunk, right_chunk) = ( + evaluated_chunk(&schema, 0, vec![1.0, 2.0], true), + evaluated_chunk(&schema, 0, vec![10.0, 20.0], true), + ); + let (retained, assembly) = binary_charge(&schema, &left_chunk, &right_chunk); + let pool = bounded_pool(retained + assembly - 1); + let set = ExecutionPlanMetricsSet::new(); + let mut execution = executor(&tree, Arc::clone(&pool), &set); + execution.push_evaluated_at(&left, left_chunk).unwrap(); + execution.push_evaluated_at(&right, right_chunk).unwrap(); + // Both operands are retained before anything is assembled, and nothing is answered: the refusal + // below is the assembly's and not a chunk's. + assert!(execution.next_chunk().unwrap().is_none()); + assert_eq!( + pool.reserved(), + retained, + "the operands are not what the pool holds" + ); + assert_eq!( + gauge( + &set, + &NodePath::root().partitioned_metric_name(NodeMetric::PEAK_RESERVED_BYTES, 0) + ), + retained, + "the binary node reserved past what it retains" + ); + + let error = execution.finish().unwrap_err(); + assert!( + matches!(error, DataFusionError::ResourcesExhausted(_)), + "the assembly was not reserved before it allocated: {error}" + ); + assert_eq!( + pool.reserved(), + 0, + "the stopped execution kept a reservation" + ); + assert_eq!(execution.state().reserved_bytes(), 0); + assert_eq!( + execution.state().nodes_holding_binary(), + 0, + "the stopped execution kept the operands it retained" + ); + let stopped = execution.next_chunk().unwrap_err(); + assert!( + stopped + .to_string() + .contains("stopped after an earlier error"), + "a stopped execution answered again: {stopped}" + ); +} + +/// The assembly bound covers the vector a field's descriptors are flattened into, on the shape that +/// grows it the most. +/// +/// One chunk's field can itself hold 1024 segments. Beside a second chunk's one, [`Samples::try_from_chunks`] +/// copies all 1025 descriptors into a vector that doubled to 2048 slots, and then into the +/// `Arc<[Samples]>` it returns, so 3073 slots are live at once: two slots per segment -- 2052 here -- +/// would reserve less than the assembly allocates. The segments are dense slices of one histogram +/// table, which the assembled field keeps sharing rather than copying. +#[test] +fn an_assembly_bound_covers_the_capacity_its_flatten_grows_to() { + let (segments, chunks) = (1025usize, 2usize); + let grid = grid(0, 60_000, segments as u64); + let schema = evaluated_schema(Arc::clone(&grid)); + // One table every segment indexes into, so the assembly has one allocation to share. + let mut builder = HistogramBatchBuilder::new(); + for _ in 0..segments { + push_histogram(&mut builder, 4); + } + let table = builder.finish().unwrap(); + let one = |index: usize| { + let index = u32::try_from(index).unwrap(); + Samples::try_from_histogram(UInt32Array::from(vec![Some(index)]), Arc::clone(&table)) + .unwrap() + }; + // The first chunk's field is itself chunked -- 1024 one-sample segments -- and the second holds + // one, so the two chunks of the one logical series hold 1025 segments in all. + let nested = Samples::try_from_chunks((0..1024).map(one).collect::>()).unwrap(); + assert_eq!( + nested.segments().len(), + 1024, + "the first field is not nested" + ); + let chunk_of = |start: usize, len: usize, samples: Samples, is_last: bool| { + EvaluatedChunk::try_new( + Series { + metric: metric(), + time: TimeAxis::Grid(GridRange::try_new(Arc::clone(&grid), start, len).unwrap()), + fields: SeriesFields::one(samples), + }, + is_last, + ) + .unwrap() + }; + let first = chunk_of(0, 1024, nested, false); + let second = chunk_of(1024, 1, one(1024), true); + + // What the flatten the assembly runs holds at its peak, measured with the operations it makes: + // a chunked field contributes its segments and a dense one contributes itself. + let mut flat: Vec = Vec::new(); + for chunk in [&first, &second] { + let field = &chunk.series.fields.as_slice()[0]; + if field.segments().len() > 1 { + flat.extend(field.segments().iter().cloned()); + } else { + flat.push(field.clone()); + } + } + // The `Arc<[Samples]>` holds one slot per descriptor while the vector they were copied out of is + // still alive, so the peak is that vector's capacity plus the descriptors it held. + let peak = flat.capacity() + flat.len(); + assert_eq!( + flat.len(), + segments, + "the flatten did not meet every segment" + ); + assert!( + flat.capacity() > flat.len(), + "the flatten grew to no more than its descriptors, so this shape proves nothing" + ); + // The bound the assembly is reserved for: one descriptor per chunk per field, three per segment, + // and the four slots a first push allocates. + let allowed = chunks + 3 * segments + 4; + assert!( + peak <= allowed, + "the flatten of {segments} segments in {chunks} chunks holds {peak} slots at its peak, past \ + the {allowed} the assembly bound allows" + ); + + let pool = pool(); + let mut runtime = binary_runtime(&pool, &schema); + for chunk in [first, second.clone()] { + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(chunk)) + .unwrap(); + } + runtime + .retain_binary(&NodePath::root(), 1, NativeChunk::Evaluated(second)) + .unwrap(); + let assembly = runtime.binary.as_ref().unwrap().assembly_bytes().unwrap(); + assert!( + peak * std::mem::size_of::() <= assembly, + "the {assembly} bytes reserved for the assembly do not cover the {peak} slots its flatten \ + holds" + ); + + // The assembled series keeps the segments and the one table they index into. + let assembled = runtime + .binary + .as_ref() + .unwrap() + .assemble(&NodePath::root()) + .unwrap(); + assert_eq!(assembled[0].len(), 1, "one closed series is one series"); + assert_eq!(assembled[0][0].time.len(), segments); + let field = &assembled[0][0].fields.as_slice()[0]; + assert_eq!(field.segments().len(), segments); + for segment in field.segments() { + let Some(DenseSamplesRef::Histogram(histograms)) = segment.dense() else { + panic!("a histogram chunk assembles into histogram segments"); + }; + assert!( + Arc::ptr_eq(histograms.batch(), &table), + "the assembly copied the histogram table instead of sharing it" + ); + } + let built = EvaluatedChunk::try_new(assembled[0][0].clone(), true).unwrap(); + assert_eq!(histogram_counts(&built), vec![4.0; segments]); +} + +/// A mixed operand delivered in two chunks over a sparse axis assembles into one series that keeps +/// its holes, both its fields and the allocations they are slices of. +/// +/// Field 0 holds native histograms and field 1 floats, both chunks index one table, and the +/// positions they decide are 0, 2 and 3 of a four-point grid. The assembly keeps one descriptor per +/// segment instead of copying a sample, so the assembled series reads the same table and the same +/// float buffers the chunks read, and the position neither chunk decided stays a hole. The kernel +/// then answers that series as one candidate, which is what the result below is computed from. +#[test] +fn a_mixed_nested_operand_assembles_into_one_series_with_its_holes() { + let grid = grid(0, 60_000, 4); + let schema = Arc::new(SeriesSchema { + fields: field_count(2), + eval_grid: Some(Arc::clone(&grid)), + }); + // One table both chunks index into. + let mut builder = HistogramBatchBuilder::new(); + for _ in 0..2 { + push_histogram(&mut builder, 4); + } + let table = builder.finish().unwrap(); + let chunk_of = |spans: &[(usize, usize)], + indices: Vec>, + floats: Vec>, + is_last: bool| { + let histograms = + Samples::try_from_histogram(UInt32Array::from(indices), Arc::clone(&table)).unwrap(); + let time = TimeAxis::from_grid_spans( + Arc::clone(&grid), + spans + .iter() + .map(|&(start, len)| GridSpan::new(start, len)) + .collect(), + ) + .unwrap(); + EvaluatedChunk::try_new( + Series { + metric: metric(), + time, + fields: SeriesFields::try_from_vec(vec![ + histograms, + Samples::from_float(Float64Array::from(floats)), + ]) + .unwrap(), + }, + is_last, + ) + .unwrap() + }; + let (left_a, left_b) = ( + chunk_of( + &[(0, 1), (2, 1)], + vec![Some(0), Some(0)], + vec![Some(1.0), None], + false, + ), + chunk_of(&[(3, 1)], vec![Some(1)], vec![Some(4.0)], true), + ); + let (right_a, right_b) = ( + chunk_of( + &[(0, 1), (2, 1)], + vec![Some(1), Some(1)], + vec![Some(10.0), Some(30.0)], + false, + ), + chunk_of(&[(3, 1)], vec![Some(0)], vec![Some(40.0)], true), + ); + + // The two chunks are collected into the one series the kernel matches. + let pool = pool(); + let mut runtime = binary_runtime(&pool, &schema); + for chunk in [&left_a, &left_b] { + runtime + .retain_binary(&NodePath::root(), 0, NativeChunk::Evaluated(chunk.clone())) + .unwrap(); + } + let assembled = runtime + .binary + .as_ref() + .unwrap() + .assemble(&NodePath::root()) + .unwrap(); + assert_eq!( + assembled[0].len(), + 1, + "two chunks of one series are not one series" + ); + let series = &assembled[0][0]; + assert_eq!(series.time.len(), 3); + assert_eq!(series.time.first_position(), Some(0)); + assert_eq!(series.time.last_position(), Some(3)); + assert_eq!( + series.time.runs().count(), + 3, + "the assembly filled the hole neither chunk decided" + ); + let histograms = &series.fields.as_slice()[0]; + assert_eq!( + histograms.segments().len(), + 2, + "the chunks' histograms were not collected" + ); + for segment in histograms.segments() { + let Some(DenseSamplesRef::Histogram(samples)) = segment.dense() else { + panic!("a histogram chunk assembles into histogram segments"); + }; + assert!( + Arc::ptr_eq(samples.batch(), &table), + "the assembly copied a histogram table instead of sharing it" + ); + } + let floats = &series.fields.as_slice()[1]; + assert_eq!( + floats.segments().len(), + 2, + "the chunks' floats were not collected" + ); + for (segment, chunk) in floats.segments().iter().zip([&left_a, &left_b]) { + let (Some(DenseSamplesRef::Float(values)), Some(DenseSamplesRef::Float(source))) = + (segment.dense(), chunk.series.fields.as_slice()[1].dense()) + else { + panic!("a float chunk assembles into float segments"); + }; + assert_eq!( + values.values().inner().data_ptr(), + source.values().inner().data_ptr(), + "the assembly copied floats instead of sharing the buffer they are slices of" + ); + } + + // The kernel reads the assembled series, over the two fields and the positions it holds. + let root = binary_of( + evaluated_input_of(2, Arc::clone(&grid)), + evaluated_input_of(2, Arc::clone(&grid)), + binary_matching(BinaryOp::Add), + ); + let tree = NativeTree::try_new(root).unwrap(); + let (left, right) = (NodePath::root().left(), NodePath::root().right()); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + for chunk in [left_a, left_b] { + execution.push_evaluated_at(&left, chunk).unwrap(); + } + for chunk in [right_a, right_b] { + execution.push_evaluated_at(&right, chunk).unwrap(); + } + let out = run(&mut execution); + assert_eq!(out.len(), 1, "one matched label set answers one chunk"); + assert_eq!( + field_values(&out[0], 1), + vec![Some(11.0), None, Some(44.0)], + "the floats of the two chunks are not added at the positions they hold" + ); + assert_eq!( + histogram_counts(&out[0]), + vec![8.0, 8.0, 8.0], + "the histograms of the two chunks are not added at the positions they hold" + ); +} + +/// A kernel error and dropping the execution both give back everything the node reserved. +#[test] +fn a_kernel_error_and_a_drop_release_the_binary_reservation() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let pool = pool(); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + // The same label set twice on the right, both holding a value at position 0. + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![1.0], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![2.0], true)) + .unwrap(); + let error = execution.finish().unwrap_err(); + assert!(error.to_string().contains("duplicate series"), "{error}"); + assert_eq!(pool.reserved(), 0, "the kernel error kept its reservation"); + assert_eq!(execution.state().reserved_bytes(), 0); + + // A dropped execution returns its reservation without being told to. + let mut dropped = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + dropped + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0], true)) + .unwrap(); + assert!(pool.reserved() > 0, "the operand reserved nothing"); + drop(dropped); + assert_eq!(pool.reserved(), 0); +} + +/// A queued chunk of a two-input tree has to name the input it belongs to. +#[test] +fn a_queued_chunk_names_its_input() { + let (tree, grid, left, _right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let chunk = evaluated_chunk(&schema, 0, vec![1.0, 2.0], true); + + // Unnamed: two inputs make "the input" ambiguous, so nothing is queued at either. + let mut ambiguous = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + let error = ambiguous.push_evaluated(chunk.clone()).unwrap_err(); + assert!(error.to_string().contains("has 2 inputs"), "{error}"); + + // A path that names the binary node rather than an input. + let mut wrong_node = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + let error = wrong_node + .push_evaluated_at(&NodePath::root(), chunk.clone()) + .unwrap_err(); + assert!(error.to_string().contains("only an input node"), "{error}"); + + // A path that names no node at all. + let mut missing = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + let error = missing + .push_evaluated_at(&NodePath::root().right().right(), chunk) + .unwrap_err(); + assert!( + error + .to_string() + .contains("has no node at root.right.right"), + "{error}" + ); + + // An input bound to evaluated samples refuses raw ones, naming the input it was queued at. + let mut fresh = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + let error = fresh + .push_raw_at(&left, raw_chunk(&raw_schema(), &[0], &[1.0], true)) + .unwrap_err(); + assert!( + error.to_string().contains(&format!( + "the native source at {left} is bound to an evaluated series" + )), + "{error}" + ); + assert_eq!(left, NodePath::root().left()); +} + +/// A map above a binary, and a window above a binary, pull its result through their own loops. +#[test] +fn a_binary_beneath_a_map_and_a_window_is_pulled_recursively() { + // A map over the binary result: the subtraction is mapped to its magnitude. + let inner_grid = grid(0, 60_000, 2); + let schema = evaluated_schema(Arc::clone(&inner_grid)); + // The map and the window below are the outermost nodes, so the binary node is one step down + // from the root and its two inputs one step below that: `root.input.left` and + // `root.input.right`, not `root.left` and `root.right`. + let (left, right) = ( + NodePath::root().input().left(), + NodePath::root().input().right(), + ); + let root = binary_of( + evaluated_input_of(1, Arc::clone(&inner_grid)), + evaluated_input_of(1, Arc::clone(&inner_grid)), + binary_matching(BinaryOp::Sub), + ); + let mapped = NativeTree::try_new(map(root, vec![MathOp::Abs])).unwrap(); + let mut execution = executor(&mapped, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![4.0, 5.0], true)) + .unwrap(); + assert_eq!( + decided(&run(&mut execution)), + vec![(0, Some(3.0)), (1, Some(3.0))] + ); + + // A window over the binary result, evaluated on its own outer grid. + let outer = grid(0, 60_000, 2); + let root = binary_of( + evaluated_input_of(1, Arc::clone(&inner_grid)), + evaluated_input_of(1, Arc::clone(&inner_grid)), + binary_matching(BinaryOp::Add), + ); + let windowed = NativeTree::try_new(window_with( + root, + RangeFunction::LastOverTime, + 120_000, + Some(Arc::clone(&inner_grid)), + Arc::clone(&outer), + )) + .unwrap(); + let mut execution = executor(&windowed, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0, 20.0], true)) + .unwrap(); + // The outer window decides each point from the binary result, on its own grid. + assert_eq!( + decided(&run(&mut execution)), + vec![(0, Some(11.0)), (1, Some(22.0))] + ); +} + +/// A binary over two windows reads what each window decided, and over two selections what each +/// selection picked. +#[test] +fn a_binary_over_two_windows_and_selections_is_executed() { + let inner = grid(0, 60_000, 2); + let schema = raw_schema(); + + let root = binary_of( + window_with( + input(), + RangeFunction::LastOverTime, + 60_000, + None, + Arc::clone(&inner), + ), + window_with( + input(), + RangeFunction::LastOverTime, + 60_000, + None, + Arc::clone(&inner), + ), + binary_matching(BinaryOp::Add), + ); + let tree = NativeTree::try_new(root).unwrap(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + for (path, key, values) in [ + ( + NodePath::root().left().input(), + b"series-a".as_slice(), + [1.0, 2.0], + ), + ( + NodePath::root().right().input(), + b"series-b".as_slice(), + [10.0, 20.0], + ), + ] { + execution + .push_raw_at( + &path, + raw_chunk_of(&schema, key, metric(), &[0, 60_000], &values, true), + ) + .unwrap(); + } + assert_eq!( + decided(&run(&mut execution)), + vec![(0, Some(11.0)), (1, Some(22.0))] + ); + + // The same two grid points, selected from raw samples on each side. + let root = binary_of( + instant(input(), 300_000, 0, Arc::clone(&inner)), + instant(input(), 300_000, 0, Arc::clone(&inner)), + binary_matching(BinaryOp::Add), + ); + let tree = NativeTree::try_new(root).unwrap(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + for (path, key, value) in [ + (NodePath::root().left().input(), b"series-a".as_slice(), 1.0), + ( + NodePath::root().right().input(), + b"series-b".as_slice(), + 10.0, + ), + ] { + execution + .push_raw_at( + &path, + raw_chunk_of(&schema, key, metric(), &[0], &[value], true), + ) + .unwrap(); + } + // The one sample of each side is the last at or before both grid points. + assert_eq!( + decided(&run(&mut execution)), + vec![(0, Some(11.0)), (1, Some(11.0))] + ); +} + +/// The chain Prometheus evaluates as `abs(instant - last_over_time)`, with the raw samples of each +/// side and the literal rows it decides. +/// +/// The left side is a selection reading back 1001 ms and the right side a 1000 ms window, on a grid +/// of 1000 ms steps: the two report different samples of the two raw series, which is what the +/// subtraction then pairs. +#[test] +fn a_binary_of_a_selection_and_a_window_matches_prometheus() { + let out = grid(0, 1_000, 4); + let left = instant(input(), 1_001, 0, Arc::clone(&out)); + let right = window_with( + input(), + RangeFunction::LastOverTime, + 1_000, + None, + Arc::clone(&out), + ); + let tree = NativeTree::try_new(map( + binary_of(left, right, binary_matching(BinaryOp::Sub)), + vec![MathOp::Abs], + )) + .unwrap(); + let schema = raw_schema(); + let mut execution = executor(&tree, pool(), &ExecutionPlanMetricsSet::new()); + execution + .push_raw_at( + &NodePath::root().input().left().input(), + raw_chunk_of( + &schema, + b"left_raw", + named_metric("left_raw", "x"), + &[0, 500, 2_000], + &[-2.0, -4.0, -8.0], + true, + ), + ) + .unwrap(); + execution + .push_raw_at( + &NodePath::root().input().right().input(), + raw_chunk_of( + &schema, + b"right_raw", + named_metric("right_raw", "x"), + &[0, 1_000, 2_000, 3_000], + &[1.0, 3.0, 2.0, 4.0], + true, + ), + ) + .unwrap(); + assert_eq!( + decided(&run(&mut execution)), + vec![ + (0, Some(3.0)), + (1, Some(7.0)), + (2, Some(10.0)), + (3, Some(12.0)), + ] + ); +} + +/// An operand chunk whose series changes before it ends is refused, naming the side and the node. +/// +/// A binary node matches whole series, so the pairs of a series that is still open cannot be +/// computed from a chunk of another one: the two are reported instead of being paired as though the +/// second were a continuation of the first. +#[test] +fn a_chunk_of_another_series_on_one_operand_is_refused() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(grid); + let pool = pool(); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at( + &right, + evaluated_chunk_of(&schema, named_metric("api", "x"), 0, vec![Some(1.0)], false), + ) + .unwrap(); + // The chunk that arrived while `api` is open names another series. + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0], true)) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + + execution + .push_evaluated_at( + &right, + evaluated_chunk_of(&schema, named_metric("db", "x"), 1, vec![Some(2.0)], true), + ) + .unwrap(); + let error = execution.next_chunk().unwrap_err(); + let message = error.to_string(); + assert!( + message.contains("the binary node at root") + && message.contains("its right operand") + && message.contains("before"), + "{message}" + ); + // The execution stopped rather than handing on the pairs it had, and it holds nothing. + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); + assert_eq!(execution.state().nodes_holding_binary(), 0); + let again = execution.next_chunk().unwrap_err(); + assert!( + again.to_string().contains("stopped after an earlier error"), + "{again}" + ); + // No partial answer surfaced through `finish` either. + assert!(execution.finish().is_err()); +} + +/// An operand chunk that starts behind the end of the open series is refused, values or not. +/// +/// The overlap is read off the axes, not off the samples they carry: a chunk whose every sample is +/// missing still occupies the positions its axis places, so a second chunk that reaches back into +/// them is a rewind rather than a continuation. +#[test] +fn an_operand_chunk_that_rewinds_is_refused_with_or_without_values() { + let (tree, grid, left, _right) = binary_tree(BinaryOp::Add, 4); + let schema = evaluated_schema(grid); + let pool = pool(); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + // Two positions that hold no value at all, and a series that did not close on them. + execution + .push_evaluated_at( + &left, + evaluated_chunk_of(&schema, metric(), 0, vec![None, None], false), + ) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + // Position 1 is one of the two the series already placed. + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 1, vec![1.0], true)) + .unwrap(); + + let error = execution.next_chunk().unwrap_err(); + let message = error.to_string(); + assert!( + message.contains("do not continue each other") + && message.contains("the left operand of the binary node at root") + && message.contains("after the series already reached 2"), + "{message}" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().nodes_holding_binary(), 0); +} + +/// A chunk that does not match the layout its operand is bound to is refused before the kernel. +/// +/// Each case is a chunk a caller can build: [`Series`] keeps its fields public, so an axis and the +/// fields beside it can disagree, and a chunk can be addressed on a grid no operand was bound to. +#[test] +fn a_chunk_that_does_not_match_its_operand_is_refused_before_the_kernel() { + let (tree, out_grid, left, _right) = binary_tree(BinaryOp::Add, 4); + let pool = pool(); + // What each operand of `binary_tree` is bound to: one float field on the tree's own grid. + let schema = evaluated_schema(Arc::clone(&out_grid)); + let two_fields = Arc::new(SeriesSchema { + fields: field_count(2), + eval_grid: Some(Arc::clone(&out_grid)), + }); + let elsewhere = grid(1, 60_000, 4); + + let cases: Vec<(&str, EvaluatedChunk)> = vec![ + ( + // An axis on another grid: one step from the one the operand is bound to. + "the other grid", + evaluated_on( + &evaluated_schema(Arc::clone(&elsewhere)), + metric(), + 0, + 2, + vec![vec![Some(1.0), Some(2.0)]], + true, + ), + ), + ( + // Two fields where the operand is bound to one. + "the field count", + evaluated_on( + &two_fields, + metric(), + 0, + 2, + vec![vec![Some(1.0), Some(2.0)], vec![Some(3.0), Some(4.0)]], + true, + ), + ), + ( + // Two rows of axis, one sample of the one field. + "the field length", + evaluated_on(&schema, metric(), 0, 2, vec![vec![Some(1.0)]], true), + ), + ]; + for (case, chunk) in cases { + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution.push_evaluated_at(&left, chunk).unwrap(); + let error = execution.next_chunk().unwrap_err(); + assert!( + error.to_string().contains("rejected its left operand"), + "{case}: {error}" + ); + assert_eq!( + pool.reserved(), + 0, + "{case}: the refused chunk is still held" + ); + assert_eq!(execution.state().reserved_bytes(), 0, "{case}"); + assert_eq!(execution.state().nodes_holding_binary(), 0, "{case}"); + } +} + +/// A series cannot be built with no field at all, which is what keeps a zero-field check honest. +/// +/// The validator's field-count check is not skipped by an empty field list because an empty one +/// cannot exist: [`SeriesFields`] refuses it, so every chunk any caller can build carries at least +/// one field. The boundary is the constructor's, and it is recorded here rather than loosened there. +#[test] +fn a_series_cannot_carry_no_fields() { + let error = + SeriesFields::try_from_vec(Vec::new()).expect_err("a series with no field was accepted"); + assert!(error.to_string().contains("must not be empty"), "{error}"); + // The one-field and many-field shapes a chunk can have are not empty either. + let one = SeriesFields::one(Samples::from_float(Float64Array::from(vec![1.0]))); + assert!(!one.is_empty()); + assert_eq!(one.len(), 1); +} + +/// A binary node with no chunk at all on either side answers nothing, and holds nothing. +/// +/// The input ending without a chunk is a stream that held no series, not a tree that never ran: the +/// kernel is asked about two empty vectors and reports none, so the answer is the empty one. +#[test] +fn an_absent_operand_yields_no_series() { + let (tree, grid, _left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let pool = pool(); + + // Neither side queued a chunk. + let mut empty = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + assert!(empty.finish().unwrap().is_empty()); + assert_eq!(pool.reserved(), 0); + assert_eq!(empty.state().nodes_holding_binary(), 0); + + // Only the right side ran, and it closed: nothing matches a series that is not there. + let mut one_side = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + one_side + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + assert!(one_side.finish().unwrap().is_empty()); + assert_eq!(pool.reserved(), 0); + assert_eq!(one_side.state().nodes_holding_binary(), 0); +} + +/// A binary node counts the series it closes on its output, and does not count an operand chunk +/// that already closed its input series. +#[test] +fn a_binary_counts_each_closed_result_once() { + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, 2); + let schema = evaluated_schema(grid); + let set = ExecutionPlanMetricsSet::new(); + let mut execution = executor(&tree, pool(), &set); + execution + .push_evaluated_at(&left, evaluated_chunk(&schema, 0, vec![1.0, 2.0], true)) + .unwrap(); + execution + .push_evaluated_at(&right, evaluated_chunk(&schema, 0, vec![10.0, 20.0], true)) + .unwrap(); + let out = run(&mut execution); + assert_eq!(out.len(), 1); + assert!(out[0].is_last, "a result series is handed over closed"); + let root = NodePath::root(); + // One matched result closed, not one per operand chunk and not one per handover of the result. + assert_eq!(count(&set, &root, NodeMetric::COMPLETED_SERIES), 1); + assert_eq!(count(&set, &root, NodeMetric::INPUT_BATCHES), 2); + assert_eq!(count(&set, &root, NodeMetric::OUTPUT_BATCHES), 1); +} + +/// A legitimate empty result over a wide operand finishes in a 4 MiB pool and holds nothing after. +/// +/// A match group of one member collects no points in the duplicate scan, so charging a point per +/// row of an operand reserves memory the kernel never allocates. +#[test] +fn an_empty_result_of_a_wide_operand_fits_its_pool() { + let points = 10_000; + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, points as u64); + let schema = evaluated_schema(grid); + let pool = bounded_pool(4 << 20); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + let series = |job: &str| pod_metric("requests", job, "p"); + execution + .push_evaluated_at( + &left, + evaluated_chunk_of(&schema, series("left"), 0, vec![Some(1.0); points], true), + ) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + for index in 0..32 { + execution + .push_evaluated_at( + &right, + evaluated_chunk_of( + &schema, + series(&format!("r{index:02}")), + 0, + vec![Some(2.0); points], + true, + ), + ) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + } + + let finished = execution.finish(); + assert!( + finished.is_ok(), + "an empty result over {points} points does not fit a 4 MiB pool: {:?}", + finished.as_ref().err() + ); + assert!( + finished.unwrap().is_empty(), + "nothing matches, so nothing is answered" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); +} + +/// A legitimate wide query finishes in a 32 MiB pool, keeping every field's sum and nothing else. +/// +/// A thousand points pair all sixty-four fields of both operands, so the workspace is the rows +/// filed and the tables beside them, not a figure far past either. +#[test] +fn a_dense_wide_result_fits_a_32_mib_pool() { + let (points, width) = (1_000usize, 64usize); + let grid = grid(0, 60_000, points as u64); + let (left_node, right_node) = ( + evaluated_input_of(width, Arc::clone(&grid)), + evaluated_input_of(width, Arc::clone(&grid)), + ); + let schema = left_node + .output + .samples() + .expect("a source of evaluated samples") + .clone(); + let root = binary_of(left_node, right_node, binary_matching(BinaryOp::Add)); + let tree = NativeTree::try_new(root).unwrap(); + let pool = bounded_pool(32 << 20); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + let columns = |value: f64| -> Vec>> { + (0..width).map(|_| vec![Some(value); points]).collect() + }; + let (left, right) = (NodePath::root().left(), NodePath::root().right()); + execution + .push_evaluated_at( + &left, + evaluated_columns(&schema, metric(), 0, columns(1.0), true), + ) + .unwrap(); + execution + .push_evaluated_at( + &right, + evaluated_columns(&schema, metric(), 0, columns(2.0), true), + ) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + + let finished = execution.finish(); + assert!( + finished.is_ok(), + "{width} fields over {points} points do not fit a 32 MiB pool: {:?}", + finished.as_ref().err() + ); + let out = finished.unwrap(); + assert_eq!(out.len(), 1, "one matched label set answers one chunk"); + let chunk = &out[0]; + assert!(chunk.is_last, "a result series is handed over closed"); + assert_eq!(chunk.series.time.len(), points); + assert_eq!(series_start(chunk), 0); + assert_eq!(chunk.series.fields.len(), width); + for field in 0..width { + assert_eq!( + field_values(chunk, field), + vec![Some(3.0); points], + "field {field}" + ); + } + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); +} + +/// An all-missing match group of two right series finishes in a 4 MiB pool and answers nothing. +/// +/// No member carries a sample, so the duplicate scan needs no point buffer. +#[test] +fn an_all_missing_match_group_fits_its_pool() { + let points = 100_000; + let (tree, grid, left, right) = binary_tree(BinaryOp::Add, points as u64); + let schema = evaluated_schema(grid); + let pool = bounded_pool(4 << 20); + let mut execution = executor(&tree, Arc::clone(&pool), &ExecutionPlanMetricsSet::new()); + execution + .push_evaluated_at( + &left, + evaluated_chunk_of(&schema, metric(), 0, vec![Some(1.0); points], true), + ) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + // Both right chunks close the one label set, so its match group has two members. + for _ in 0..2 { + execution + .push_evaluated_at( + &right, + evaluated_chunk_of(&schema, metric(), 0, vec![None; points], true), + ) + .unwrap(); + assert!(execution.next_chunk().unwrap().is_none()); + } + + let finished = execution.finish(); + assert!( + finished.is_ok(), + "an all-missing match group over {points} points does not fit a 4 MiB pool: {:?}", + finished.as_ref().err() + ); + assert!( + finished.unwrap().is_empty(), + "no point holds a value on both sides, so nothing is answered" + ); + assert_eq!(pool.reserved(), 0); + assert_eq!(execution.state().reserved_bytes(), 0); +} diff --git a/src/promql/src/range_eval.rs b/src/promql/src/range_eval.rs index 59339fa9200..3a7e2384809 100644 --- a/src/promql/src/range_eval.rs +++ b/src/promql/src/range_eval.rs @@ -39,6 +39,7 @@ mod histogram; mod tests; pub use function::RangeFunction; +pub(crate) use function::quantile; /// The samples a range selector reads at evaluation time `T`: source timestamps in /// `(E - range_ms, E]`, where `E` is `T - offset_ms`, or `anchor_ms - offset_ms` with `@`. diff --git a/src/promql/src/range_eval/function.rs b/src/promql/src/range_eval/function.rs index 88888bb15f8..55f14264aa7 100644 --- a/src/promql/src/range_eval/function.rs +++ b/src/promql/src/range_eval/function.rs @@ -221,7 +221,7 @@ fn variance(values: &[f64]) -> f64 { } /// Prometheus `quantile`, which sorts NaN before every number. -fn quantile(q: f64, values: &[f64], sorted: &mut Vec) -> f64 { +pub(crate) fn quantile(q: f64, values: &[f64], sorted: &mut Vec) -> f64 { if q.is_nan() { return f64::NAN; } diff --git a/src/promql/src/range_eval/tests.rs b/src/promql/src/range_eval/tests.rs index 1e5e6488a71..56c830841a0 100644 --- a/src/promql/src/range_eval/tests.rs +++ b/src/promql/src/range_eval/tests.rs @@ -1010,6 +1010,180 @@ fn histogram_chunk(schema: &SeriesSchema, buckets: i32, ts: i64) -> RawSeriesChu .unwrap() } +/// The single histogram sample of [`histogram_chunk`], read with `start_timestamp`. +/// +/// A sample carries the start timestamp a scan read it with, and it is payload rather than a +/// property of the value. +fn histogram_chunk_from( + schema: &SeriesSchema, + buckets: i32, + ts: i64, + start_timestamp: Option, + is_last: bool, +) -> RawSeriesChunk { + let offsets = [0]; + let lengths = [buckets]; + let counts = vec![1.0; usize::try_from(buckets).unwrap()]; + let mut builder = HistogramBatchBuilder::new(); + let index = builder + .push(HistogramView { + schema: 0, + zero_threshold: 0.0, + zero_count: 0.0, + count: f64::from(buckets), + sum: f64::from(buckets), + reset_hint: CounterResetHint::Unknown, + start_timestamp, + custom_values: &[], + positive: BucketSideView { + span_offsets: &offsets, + span_lengths: &lengths, + buckets: &counts, + }, + negative: BucketSideView { + span_offsets: &[], + span_lengths: &[], + buckets: &[], + }, + }) + .unwrap(); + let samples = Samples::try_from_histogram( + UInt32Array::from(vec![Some(index)]), + builder.finish().unwrap(), + ) + .unwrap(); + RawSeriesChunk::try_new( + schema, + Buffer::from(0u64.to_le_bytes().to_vec()), + Some(metric(0)), + RawTimestamps::try_new(ScalarBuffer::from(vec![ts])).unwrap(), + SeriesFields::try_from_vec(vec![samples]).unwrap(), + is_last, + ) + .unwrap() +} + +/// A function that hands back the sample it selected hands back that sample's payload. +/// +/// `last_over_time` and `first_over_time` select a sample instead of computing one, so the +/// histogram that leaves them is the histogram that arrived, start timestamp included. The window +/// here holds two samples that differ in bucket count and in start timestamp, so the count and the +/// timestamp together say which one was selected rather than only that some timestamp survived: +/// the last sample for `last_over_time`, the first one for `first_over_time`. What this pins is +/// that the selection passes the stored payload through; it does not pin a Prometheus result, whose +/// histogram values carry no such field, and it does not claim that a native rate reads the field +/// afterwards. A histogram computed from samples carries none, as +/// `histogram_eval::tests::a_start_timestamp_belongs_to_a_read_histogram_and_not_to_a_computed_one` +/// pins for the operations that build one. +#[test] +fn a_selected_histogram_keeps_its_start_timestamp() { + let schema = raw_schema(1); + let (first_start, last_start): (i64, i64) = (1_500, 2_500); + // One bucket at 0ms and two at 5000ms, each read with its own start timestamp. Both samples + // are inside the window of the second grid point; the first point is decided on the first + // chunk alone, before the second sample has arrived. + let chunks = [ + histogram_chunk_from(&schema, 1, 0, Some(first_start), false), + histogram_chunk_from(&schema, 2, 5_000, Some(last_start), true), + ]; + // The histogram of every row the function hands out, read off the output's own views: the + // bucket count tells the selected sample apart from any other, the start timestamp is the + // payload this test is about. + let selected = |function: RangeFunction| -> Vec<(usize, f64, Option)> { + let mut evaluator = RangeEvaluator::try_new( + &schema, + grid(0, 10_000, 2), + RangeWindow { + range_ms: 20_000, + offset_ms: 0, + anchor_ms: None, + }, + function, + ) + .unwrap(); + let out = collect_chunks(&mut evaluator, &chunks); + assert!(!out.is_empty(), "{function:?} answered no chunk"); + let mut picked = Vec::new(); + for chunk in &out { + let mut cursor = chunk.series.fields.as_slice()[0].cursor(); + for (position, row) in chunk.series.time.positions() { + match cursor.at(row).expect("the axis and the fields are aligned") { + SampleRef::Histogram(view) => { + picked.push((position, view.count, view.start_timestamp)); + } + SampleRef::Float(_) => panic!("{function:?} answered a float for a histogram"), + SampleRef::Missing => { + panic!("{function:?} handed out a row of its own axis without a sample") + } + } + } + } + picked + }; + + assert_eq!( + selected(RangeFunction::LastOverTime), + [(0, 1.0, Some(first_start)), (1, 2.0, Some(last_start))], + "last_over_time did not hand back the sample it selected" + ); + assert_eq!( + selected(RangeFunction::FirstOverTime), + [(0, 1.0, Some(first_start)), (1, 1.0, Some(first_start))], + "first_over_time did not hand back the sample it selected" + ); +} + +/// A histogram computed from a window carries no start timestamp, even when the window holds one. +/// +/// `sum_over_time` computes a histogram rather than selecting one, so the timestamp the sample was +/// read with is not part of the result -- the rule the histogram operations themselves follow, as +/// `histogram_eval::tests::a_start_timestamp_belongs_to_a_read_histogram_and_not_to_a_computed_one` +/// pins. The fold clears the field while adding, so a window holding two histograms already loses +/// it; a window holding one must not depend on that, or whether a result carries the field would +/// say how many samples the window held rather than what the function did. +#[test] +fn a_computed_histogram_drops_its_start_timestamp() { + let schema = raw_schema(1); + let start: i64 = 1_500; + // One histogram sample inside the window of both grid points, so the fold adds nothing to it + // and the single input is the whole result. + let chunks = [histogram_chunk_from(&schema, 1, 0, Some(start), true)]; + let mut evaluator = RangeEvaluator::try_new( + &schema, + grid(0, 10_000, 2), + RangeWindow { + range_ms: 20_000, + offset_ms: 0, + anchor_ms: None, + }, + RangeFunction::SumOverTime, + ) + .unwrap(); + let out = collect_chunks(&mut evaluator, &chunks); + let mut computed = Vec::new(); + for chunk in &out { + let mut cursor = chunk.series.fields.as_slice()[0].cursor(); + for (position, row) in chunk.series.time.positions() { + match cursor.at(row).expect("the axis and the fields are aligned") { + SampleRef::Histogram(view) => { + computed.push((position, view.count, view.start_timestamp)); + } + SampleRef::Float(_) => panic!("sum_over_time answered a float for a histogram"), + SampleRef::Missing => { + panic!("sum_over_time handed out a row of its own axis without a sample") + } + } + } + } + // The sum of one histogram is that histogram, so the count says the sample was summed rather + // than passed over; only the start timestamp has to be gone. + assert_eq!( + computed, + [(0, 1.0, None), (1, 1.0, None)], + "sum_over_time kept the start timestamp of the histogram it summed" + ); +} + /// A window retaining a native histogram is charged for the payload it owns, not only the slot. /// /// The histogram sample below stays ahead of the second grid point's window, so the evaluator keeps diff --git a/src/promql/src/select/tests.rs b/src/promql/src/select/tests.rs index 0cc2763bf64..3bac6739214 100644 --- a/src/promql/src/select/tests.rs +++ b/src/promql/src/select/tests.rs @@ -269,6 +269,67 @@ fn limit_operators_keep_histogram_samples() { assert_eq!(kinds(&kept[0], 0), [(1, "histogram")]); } +/// A selection hands back the sample it selected, start timestamp included. +/// +/// `limitk` and `limit_ratio` choose samples rather than compute them, so a histogram that arrives +/// with a start timestamp leaves with it. The count and the sum are compared too, so a computed +/// value that happened to carry a timestamp would not pass for the sample selected. What this pins +/// is that the selection passes the stored payload through, not a Prometheus result and not a +/// downstream rate that reads the field. A histogram computed from samples carries none, as +/// `histogram_eval::tests::a_start_timestamp_belongs_to_a_read_histogram_and_not_to_a_computed_one` +/// pins for the operations that build one. +#[test] +fn limit_operators_keep_the_start_timestamp_of_a_selected_sample() { + let histogram = + OwnedHistogram::parse("0/0/0/3ff0000000000000/3ff0000000000000/0/1_1/3ff0000000000000///"); + let start = 1_500; + // The sample a scan read, which is what a selection hands on. + let stamped = || { + let mut read = FloatHistogram::try_from_view(&histogram.view()).unwrap(); + read.start_timestamp = Some(start); + GridSample::Histogram(Box::new(read)) + }; + // What a limit operator keeps out of one series: the count and sum of the histogram it kept, + // so the sample selected is named, and the start timestamp it kept with it. + let kept = |series: &Series| -> Vec<(usize, f64, f64, Option)> { + let samples = &series.fields.as_slice()[0]; + series + .time + .positions() + .filter_map(|(point, row)| match samples.sample(row) { + SampleRef::Histogram(view) => { + Some((point, view.count, view.sum, view.start_timestamp)) + } + _ => None, + }) + .collect() + }; + let source = histogram.view(); + let expected = |point: usize| (point, source.count, source.sum, Some(start)); + + let schema = schema(3, 1); + let mut builder = GridSeriesBuilder::try_new(Arc::new(schema.clone())).unwrap(); + builder.push_samples(0, &[Some(stamped())]).unwrap(); + builder.push_samples(2, &[Some(stamped())]).unwrap(); + let series = builder.finish(metric("__name__=a")).unwrap().unwrap(); + + let by_ratio = limit_ratio(1.0, &schema, std::slice::from_ref(&series)).unwrap(); + assert_eq!(by_ratio.len(), 1); + assert_eq!( + kept(&by_ratio[0]), + [expected(0), expected(2)], + "limit_ratio did not hand back the samples it selected" + ); + + let by_count = limitk(1.0, &Grouping::By(Vec::new()), &schema, &[series]).unwrap(); + assert_eq!(by_count.len(), 1); + assert_eq!( + kept(&by_count[0]), + [expected(0), expected(2)], + "limitk did not hand back the samples it selected" + ); +} + fn grouping(kind: &str, labels: &str) -> Grouping { match kind { "without" => Grouping::Without(names(labels)), diff --git a/src/promql/src/vector_match.rs b/src/promql/src/vector_match.rs index eab40a3f64e..83e50a71df2 100644 --- a/src/promql/src/vector_match.rs +++ b/src/promql/src/vector_match.rs @@ -25,9 +25,11 @@ use std::collections::{HashMap, HashSet}; use std::sync::Arc; use datafusion::error::{DataFusionError, Result}; -use datatypes::series::histogram::{CounterResetHint, HistogramView}; -use datatypes::series::samples::{RowCursor, SampleRef, Series, SeriesSchema}; -use datatypes::series::time::{EvalGrid, GridRunPair, TimeAxis}; +use datatypes::series::histogram::{CounterResetHint, HistogramBatchBuilder, HistogramView}; +use datatypes::series::samples::{ + DenseSamplesRef, FieldSpec, RowCursor, SampleRef, Series, SeriesSchema, +}; +use datatypes::series::time::{EvalGrid, GridRunPair, GridSpan, TimeAxis}; use datatypes::series::{Label, MetricName}; use crate::grid_series::{GridSample, GridSeriesBuilder, METADATA_LABELS, external, owned}; @@ -36,6 +38,34 @@ use crate::histogram_eval::float_histogram::FloatHistogram; #[cfg(test)] mod tests; +// How many candidate pairs the binary kernel visited on this thread. +// +// Test-only, and per thread: the pairs a query considers are what says whether a series delivered in +// many chunks is still one candidate, and that is not visible in the result. A thread of its own +// keeps one test's chunks out of another test's figure, and the counter is compiled out of the +// kernel otherwise. +#[cfg(test)] +thread_local! { + static VISITED_PAIRS: std::cell::Cell = const { std::cell::Cell::new(0) }; +} + +/// Resets the candidate-pair counter of this thread to zero. +#[cfg(test)] +pub(crate) fn reset_visited_pairs() { + VISITED_PAIRS.with(|visited| visited.set(0)); +} + +/// The candidate pairs the binary kernel has visited on this thread since the last +/// [`reset_visited_pairs`]. +/// +/// A pair is visited once per one-side candidate the kernel looks up for a many-side series, before +/// the pairing's label set and axis intersection are built, so the count is what the kernel actually +/// does rather than what its operands' sizes imply it would. +#[cfg(test)] +pub(crate) fn visited_pairs() -> usize { + VISITED_PAIRS.with(std::cell::Cell::get) +} + /// A PromQL binary operator between two instant vectors. #[derive(Clone, Copy, Debug, PartialEq, Eq)] pub enum BinaryOp { @@ -166,30 +196,524 @@ pub fn binary_vectors( rhs_schema: &SeriesSchema, rhs: &[Series], ) -> Result> { + binary_vectors_inner(matching, lhs_schema, lhs, rhs_schema, rhs, None) +} + +/// [`binary_vectors`], handing the live workspace it holds to `reserve` as it allocates. +/// +/// What the operation will allocate cannot be known before it allocates: which series match each +/// other, where their axes overlap and which rows the operator keeps all come out of the operands +/// as they are read. So `reserve` receives the **total** live workspace the operation holds, and it +/// is asked at the three granularities [`Budget`] describes: where a long-lived result buffer grows, +/// once per phase, and in the blocks a growing result buffer is reserved in. It is never asked per +/// grid point or per row. A total `reserve` refuses ends the operation with that error, and what it +/// admitted stays the caller's to release. +pub(crate) fn binary_vectors_with_reservation( + matching: &BinaryMatching, + lhs_schema: &SeriesSchema, + lhs: &[Series], + rhs_schema: &SeriesSchema, + rhs: &[Series], + reserve: &mut dyn FnMut(usize) -> Result<()>, +) -> Result> { + let mut budget = Budget::new(reserve); + binary_vectors_inner( + matching, + lhs_schema, + lhs, + rhs_schema, + rhs, + Some(&mut budget), + ) +} + +/// The one binary kernel: one walk, one lookup and one error order, whether or not a caller +/// accounts for the workspace. Every figure is reserved only when `budget` is held. +fn binary_vectors_inner( + matching: &BinaryMatching, + lhs_schema: &SeriesSchema, + lhs: &[Series], + rhs_schema: &SeriesSchema, + rhs: &[Series], + mut budget: Option<&mut Budget<'_>>, +) -> Result> { + // The grid both operands are evaluated on, checked before anything is reserved for them. + let grid = same_grid(lhs_schema, rhs_schema)?; + // The fields paired by position and the descriptors they are handed back in: one result table + // per field, the field list both the results and the output schema keep, and the schema itself. + // The schema is what these bytes cover, so they are reserved before it is built. + let width = lhs_schema.fields.len().min(rhs_schema.fields.len()); + if let Some(budget) = budget.as_deref_mut() { + budget.hold(output_bytes(width))?; + } let output = binary_output_schema(lhs_schema, rhs_schema)?; - let grid = output - .eval_grid - .clone() - .expect("set by binary_output_schema"); let mut errors = Vec::new(); - let mut fields = Vec::with_capacity(output.fields.len()); - for field in 0..output.fields.len() { + let mut fields = Vec::with_capacity(width); + for field in 0..width { let lhs = Operand::try_new(lhs_schema, lhs, field)?; let rhs = Operand::try_new(rhs_schema, rhs, field)?; - fields.push(binary_field(matching, &grid, &lhs, &rhs, &mut errors)?); + let results = binary_field( + matching, + &grid, + &lhs, + &rhs, + &mut errors, + budget.as_deref_mut(), + )?; + // The field's flags, tables and sort are destroyed with its frame, so its phase ends here: + // what the field filed is what stays live, and the next field's phase is charged on its own. + if let Some(budget) = budget.as_deref_mut() { + budget.phase(0)?; + } + fields.push(results); } earliest_error(errors)?; - merge_fields(fields, output) + // The merge is the operation's last phase: it enters its own figure from the results the fields + // filed, which is where every term of it is read. + merge_fields(fields, output, budget) +} + +/// The capacity a fresh `Vec` holds: a first push allocates four entries, and a full one doubles. +const VEC_MIN_CAPACITY: usize = 4; + +/// One label of a match key, charged twice because `group_key` grows its `Vec` by doubling. +const KEY_LABEL_BYTES: usize = 2 * std::mem::size_of::<(Arc, Arc)>(); + +/// One name of [`MatchingLabels`], which `result_metric` collects into a reference vector. The +/// vector is collected from an exact-size iterator, so its buffer holds one `&str` per name. +const MATCHING_NAME_BYTES: usize = std::mem::size_of::<&str>(); + +/// One entry of a match-group table, with the control byte and spare capacity it keeps. +const GROUP_SLOT_BYTES: usize = 2 * std::mem::size_of::<(GroupKey, Vec)>(); + +/// One entry of the one-to-one match set, charged the same way. +const MATCH_SLOT_BYTES: usize = 2 * std::mem::size_of::<(usize, usize)>(); + +/// One entry of a field's result table, charged the same way. +const RESULT_SLOT_BYTES: usize = 2 * std::mem::size_of::<(GroupKey, ResultRows)>(); + +/// One row of a field's results: its point, its match group and its value. The three vectors grow +/// together, so one slot of each is what a row takes, and a block of the vectors is charged a row's +/// bytes per slot it grew by. +const RESULT_ROW_BYTES: usize = + 2 * std::mem::size_of::() + std::mem::size_of::>(); + +/// One row while a label set is sorted: the old and the new copy of its point, group and value +/// vectors, and the row order the sort reads. The sort copies a label set's rows when they are not +/// already in order, so this is what one row costs while it runs. +const SORT_ROW_BYTES: usize = + 4 * std::mem::size_of::() + 2 * std::mem::size_of::>(); + +/// One row of the merge's table, charged the same way. +const MERGE_SLOT_BYTES: usize = + 2 * std::mem::size_of::<(GroupKey, (MetricName, Vec<(usize, usize, GridSample)>))>(); + +/// One row of the builder's histogram table: the scalar columns and the seven list offsets. +const HISTOGRAM_ROW_BYTES: usize = 4 * std::mem::size_of::() + + 2 * std::mem::size_of::() + + std::mem::size_of::() + + 7 * std::mem::size_of::(); + +/// The fixed text of one error message, around the label set it renders. +const ERROR_TEXT_BYTES: usize = 256; + +/// The bytes the operation's own descriptors cost: one result table per paired field, the field +/// list the results and the output schema each keep, and the schema struct. +fn output_bytes(fields: usize) -> usize { + fields + .saturating_mul(std::mem::size_of::() + 2 * std::mem::size_of::()) + .saturating_add(std::mem::size_of::()) +} + +/// The live workspace a binary operation admits as it allocates, at three granularities. +/// +/// A resource limit belongs at an allocation boundary, not at a value: +/// +/// - [`Budget::hold`]: what the results keep until the operation returns -- rows, the label sets they +/// are filed under, the values boxed along them, the messages an error reports. Each is charged +/// where its container grows. +/// - [`Budget::phase`]: one figure for the workspace of one walk, read from the operands before it +/// allocates and replacing the phase before it, so the total is the phase being run beside what is +/// held and never the sum of every phase. +/// - [`Budget::grow`]: a block a container of that phase took when it outgrew what it held. +/// +/// It exists because the caller is handed a *total*, and this turns those figures into that total. +struct Budget<'a> { + /// Admits the live workspace, or refuses it. + reserve: &'a mut dyn FnMut(usize) -> Result<()>, + /// The bytes the results keep until the operation returns. + held: usize, + /// The bytes of the phase being run, beside what is held. + phase: usize, + /// The total handed to `reserve` last, so an unchanged one is not asked for twice. + requested: Option, +} + +impl<'a> Budget<'a> { + fn new(reserve: &'a mut dyn FnMut(usize) -> Result<()>) -> Self { + Self { + reserve, + held: 0, + phase: 0, + requested: None, + } + } + + /// Retains `bytes` of results, which stay live until the operation returns. + fn hold(&mut self, bytes: usize) -> Result<()> { + self.held = self.held.saturating_add(bytes); + self.admit() + } + + /// Admits `bytes` as the whole workspace of the phase being run, replacing the phase before it. + fn phase(&mut self, bytes: usize) -> Result<()> { + self.phase = bytes; + self.admit() + } + + /// Adds `bytes` to the phase for a container of it that has outgrown what was reserved. + fn grow(&mut self, bytes: usize) -> Result<()> { + self.phase = self.phase.saturating_add(bytes); + self.admit() + } + + /// Hands the live total to `reserve` when it differs from the last one. It falls as well as + /// rises, and only a repeated figure is left out. + fn admit(&mut self) -> Result<()> { + let total = self.held.saturating_add(self.phase); + if self.requested != Some(total) { + self.requested = Some(total); + (self.reserve)(total)?; + } + Ok(()) + } +} + +/// The figures one field's phases are charged from, read once from its operands. +#[derive(Default)] +struct FieldMetadata { + /// The presence flags and the one side's match groups. + tables: usize, + /// The allowance for the messages the field can report, which its sort reserves before it knows + /// which of them it appends; only the ones it writes are kept. + errors: usize, + /// The largest key a row of the field is filed under. + largest_key: usize, + /// The widest pairing's label set and the histogram workspace one row of the walk reads. + pairing: usize, +} + +/// The figures one field's phases are charged from. +/// +/// The presence of each side and of the points both are present at are three flags per grid point; +/// the one side's groups are a key, the values `on(...)` matching copies and a member list per +/// series; one series of the many side is looked up by a key of its own; and a field reports at most +/// three messages, each a fixed frame around one rendering. The duplicate scan's list is not part of +/// these tables: a group of one member collects nothing, and a wider group's list is charged by +/// [`overlap`] as it grows. The pairing's own terms are read from the widest series of each side +/// rather than from every pair, since one pairing's label set replaces the one before it. +fn field_metadata_bytes( + matching: &BinaryMatching, + include: &[Arc], + points: usize, + many: &Operand<'_>, + one: &Operand<'_>, +) -> FieldMetadata { + let mut bytes = points.saturating_mul(3); + let mut largest_key = 0usize; + for series in one.series { + bytes = bytes + .saturating_add(match_key_bytes(&series.metric, &matching.labels)) + .saturating_add(2 * std::mem::size_of::()) + .saturating_add(GROUP_SLOT_BYTES) + .saturating_add(2 * std::mem::size_of::<&GroupKey>()) + .saturating_add(2 * std::mem::size_of::<(&GroupKey, usize)>()); + largest_key = largest_key.max(result_key_bytes(&series.metric)); + } + let mut lookup = 0usize; + for series in many.series { + lookup = lookup.max(match_key_bytes(&series.metric, &matching.labels)); + largest_key = largest_key.max(result_key_bytes(&series.metric)); + } + // A result label set carries the many side's labels and the `group_*` ones copied into it, so + // the widest rendering over both operands bounds the text an error writes. + let include_text = include.iter().fold(0usize, |bytes, name| { + bytes.saturating_add(name.len()).saturating_add(6) + }); + let text = many + .series + .iter() + .chain(one.series) + .fold(include_text, |bytes, series| { + bytes.max(label_text_bytes(&series.metric).saturating_add(include_text)) + }); + // The widest series of each side: one pairing's label set replaces the one before it, so the + // widest is what the phase holds at its peak. + let pairing = widest_metric(many) + .zip(widest_metric(one)) + .map_or(0, |(many, one)| pair_bytes(many, one, matching, include)); + FieldMetadata { + tables: bytes.saturating_add(lookup), + errors: 3usize.saturating_mul(ERROR_TEXT_BYTES.saturating_add(text)), + largest_key: largest_key.saturating_add(include.len().saturating_mul(KEY_LABEL_BYTES)), + pairing: pairing.saturating_add(histogram_phase_bytes(many, one)), + } +} + +/// The series of `operand` with the most labels: the widest label set one pairing of its field can +/// build. +fn widest_metric<'a>(operand: &'a Operand<'_>) -> Option<&'a MetricName> { + operand + .series + .iter() + .map(|series| &series.metric) + .max_by_key(|metric| metric.tags().len()) +} + +/// The bytes one pairing allocates before it files a row: the result label set `result_metric` +/// rewrites, the `group_*` labels it copies in, the reference vector it collects the matching label +/// names into, and the key its rows are looked up by. +/// +/// Each rewrite filters the tag list into a `Vec` and turns that into a shared slice, so the list it +/// replaces is alive while two copies of the new one are built, and an included label the many side +/// does not carry is inserted, which costs its descriptor too. The matching names are collected into +/// a reference vector of their own before the rewrite, for `on(...)` and `ignoring(...)` alike and +/// whether or not the series carries them. This is one pairing's scratch: the next pairing replaces +/// it, and a pairing whose axes share no position still pays it, because the label set is built +/// before the axes are intersected. +fn pair_bytes( + many: &MetricName, + one: &MetricName, + matching: &BinaryMatching, + include: &[Arc], +) -> usize { + // The label list each rewrite builds and the one it replaces, then the key `key_of` builds for + // a row: every label with a value and the name, each charged twice for the growth of the key's + // `Vec`, and the name string it copies. + let labels = 3usize + .saturating_mul(many.tags().len().saturating_add(include.len())) + .saturating_mul(std::mem::size_of::