mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2026-11-14 06:46:56 +00:00
test(promql): pin name dropping for mad_over_time and ts_of_*
Signed-off-by: Dennis Zhuang <killme2008@gmail.com>
This commit is contained in:
@@ -966,11 +966,14 @@ fn range_functions_drop_metadata_labels() {
|
||||
anchor_ms: None,
|
||||
};
|
||||
let rows: Vec<Row> = vec![(1_000, vec![Some(1.0)]), (2_000, vec![Some(2.0)])];
|
||||
let nameless = MetricName::try_new(None, labels(&["host"])).unwrap();
|
||||
for (function, expected) in [
|
||||
(
|
||||
RangeFunction::Rate,
|
||||
MetricName::try_new(None, labels(&["host"])).unwrap(),
|
||||
),
|
||||
(RangeFunction::Rate, nameless.clone()),
|
||||
(RangeFunction::MadOverTime, nameless.clone()),
|
||||
(RangeFunction::TsOfMinOverTime, nameless.clone()),
|
||||
(RangeFunction::TsOfMaxOverTime, nameless.clone()),
|
||||
(RangeFunction::TsOfFirstOverTime, nameless.clone()),
|
||||
(RangeFunction::TsOfLastOverTime, nameless),
|
||||
(RangeFunction::LastOverTime, input.clone()),
|
||||
(RangeFunction::FirstOverTime, input.clone()),
|
||||
] {
|
||||
|
||||
Reference in New Issue
Block a user