diff --git a/tests-integration/tests/http.rs b/tests-integration/tests/http.rs index 91979ddbf59..9f0973a5fcb 100644 --- a/tests-integration/tests/http.rs +++ b/tests-integration/tests/http.rs @@ -2567,12 +2567,16 @@ pub async fn test_promql_over_non_millisecond_physical_tables(store_type: Storag .await; assert_eq!(res.status(), StatusCode::OK); let body = res.json::().await; + // The samples are 1.0@1s and 2.0@2s, so the 1m window at t=2 holds both: avg is 1.5. + // `avg_over_time` changes the sample values, so it drops the metric-name identity + // like every other value-changing PromQL function (see Prometheus semantics); + // `__name__` is absent from the result. assert_eq!( body.data, serde_json::from_value::(json!({ "resultType": "vector", "result": [{ - "metric": {"__name__": "unit_gauge", "job": "demo"}, + "metric": {"job": "demo"}, "value": [2.0, "1.5"] }] })) diff --git a/tests/cases/standalone/common/tql/tql-cte.result b/tests/cases/standalone/common/tql/tql-cte.result index 711174a41c8..ff7f3ac7ecc 100644 --- a/tests/cases/standalone/common/tql/tql-cte.result +++ b/tests/cases/standalone/common/tql/tql-cte.result @@ -625,7 +625,7 @@ SELECT 'host2' as source, ts, cpu FROM host2_data; | | Filter: labels.host = Utf8("host2") AND labels.ts >= TimestampMillisecond(-299999, None) AND labels.ts <= TimestampMillisecond(40000, None) | | | TableScan: labels, partial_filters=[labels.host = Utf8("host2"), labels.ts >= TimestampMillisecond(-299999, None), labels.ts <= TimestampMillisecond(40000, None)] | | | ]] | -| physical_plan | InterleaveExec | +| physical_plan | UnionExec | | | CooperativeExec | | | MergeScanExec: REDACTED | | CooperativeExec |