Skip to content

test(query-engine): add SQL query support runner - #823

Merged
milindsrivastava1997 merged 2 commits into
mainfrom
test/sql-compliance-runner
Oct 11, 2026
Merged

milindsrivastava1997 merged 2 commits into
mainfrom
test/sql-compliance-runner

Conversation

@milindsrivastava1997

@milindsrivastava1997 milindsrivastava1997 commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Adds a SQL query support runner, a counterpart to promql-compliance limited to the plan path: no data is ingested and nothing is executed.

  • asap-query-engine/tests/sql_query_support.rs plans each suite query on its own with SQLController, builds a SimpleEngine from that plan, and calls build_query_execution_context_sql. A query is supported when both steps succeed.
  • Each case declares expected: supported | unsupported, so a query that starts or stops being supported fails the test until its entry is updated.
  • asap-query-engine/tests/sql_query_support/*.yaml: basic.yaml, plus one suite per PromQL compliance suite with matching case names. Each file header lists the PromQL cases that were skipped for having no SQL equivalent (counter rate/increase, [10m:] subqueries, bare selector).

228 cases: 78 supported, 150 unsupported. Unsupported shapes are tracked in #822.

Per-query report: cargo test -p query_engine_rust --test sql_query_support -- --nocapture

Test plan

  • cargo test -p query_engine_rust --test sql_query_support
  • pre-commit (fmt, check, clippy, test)

🤖 Generated with Claude Code

Plans each SQL suite query in isolation and builds the engine's execution
context against that plan, without ingesting data. Each case declares
whether it is expected to be supported, so a change in SQL coverage fails
the run until the suite is updated.

Suites mirror the promql-compliance suites case-for-case, plus a basic
suite covering single-layer shapes, time-range forms, and top-k.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The runner checks plan-path acceptance, not result compliance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@milindsrivastava1997 milindsrivastava1997 changed the title test(query-engine): add SQL compliance runner test(query-engine): add SQL query support runner Oct 11, 2026
@milindsrivastava1997
milindsrivastava1997 merged commit ecfa89c into main Oct 11, 2026
8 checks passed
@milindsrivastava1997
milindsrivastava1997 deleted the test/sql-compliance-runner branch October 11, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant