Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,10 @@ public String nodeString() {
@Override
public void postAnalysisVerification(Failures failures) {
LogicalPlan p = promqlPlan();
if (isInstantQuery()) {
failures.add(fail(p, "instant queries are not supported at this time [{}]", sourceText()));
return;
}
if (p instanceof AcrossSeriesAggregate == false) {
failures.add(fail(p, "only aggregations across timeseries are supported at this time (found [{}])", p.sourceText()));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public void testPromqlMissingAcrossSeriesAggregation() {
);
}

public void testPromqlInstantQuery() {
assertThat(
error("PROMQL index=test time=\"2025-10-31T00:00:00Z\" (avg(foo))", tsdb),
equalTo("1:48: instant queries are not supported at this time [PROMQL index=test time=\"2025-10-31T00:00:00Z\" (avg(foo))]")
);
}

public void testPromqlStepAndRangeMisaligned() {
assertThat(
error("""
Expand Down