Skip to content

Add spool query cases to multi-stage engine resource tests#18752

Merged
gortiz merged 1 commit into
apache:masterfrom
gortiz:add-spool-query-test-cases
Jun 15, 2026
Merged

Add spool query cases to multi-stage engine resource tests#18752
gortiz merged 1 commit into
apache:masterfrom
gortiz:add-spool-query-test-cases

Conversation

@gortiz

@gortiz gortiz commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Spool.json in the multi-stage ResourceBasedQueriesTest previously covered a single spool shape (a table scanned once and joined twice). This adds three more so the spool (useSpools=true) reuse path is exercised across common reuse patterns:

  • a stage reused by three downstream stages (one scan, joined three times);
  • an aggregated stage reused by a self join;
  • an aggregated stage reused by both arms of a UNION ALL.

Each query has an h2Sql equivalent, so the results are validated against H2.

Testing

mvn -pl pinot-query-runtime test -Dtest=ResourceBasedQueriesTest -Dpinot.fileFilter=Spool — all spool cases pass.

Spool.json exercised a single spool shape (a table scanned once and joined
twice). Add three more so the spool (useSpools) reuse path is covered across
common patterns:

- a stage reused by three downstream stages (one scan, three joins),
- an aggregated stage reused by a self join,
- an aggregated stage reused by both arms of a UNION ALL.

Each query has an h2Sql equivalent, so results are validated against H2.
@codecov-commenter

codecov-commenter commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 64.67%. Comparing base (7b1d115) to head (9cbbf04).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master   #18752      +/-   ##
============================================
- Coverage     64.67%   64.67%   -0.01%     
  Complexity     1309     1309              
============================================
  Files          3381     3381              
  Lines        209821   209821              
  Branches      32805    32805              
============================================
- Hits         135697   135692       -5     
+ Misses        63230    63220      -10     
- Partials      10894    10909      +15     
Flag Coverage Δ
custom-integration1 100.00% <ø> (ø)
integration 100.00% <ø> (ø)
integration1 100.00% <ø> (ø)
integration2 0.00% <ø> (ø)
java-21 64.67% <ø> (-0.01%) ⬇️
temurin 64.67% <ø> (-0.01%) ⬇️
unittests 64.66% <ø> (-0.01%) ⬇️
unittests1 56.98% <ø> (-0.01%) ⬇️
unittests2 37.17% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@yashmayya yashmayya added testing Related to tests or test infrastructure multi-stage Related to the multi-stage query engine labels Jun 12, 2026
@gortiz gortiz merged commit b27a3ad into apache:master Jun 15, 2026
11 checks passed
@gortiz gortiz deleted the add-spool-query-test-cases branch June 15, 2026 08:35
cypherean pushed a commit to cypherean/pinot that referenced this pull request Jun 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multi-stage Related to the multi-stage query engine testing Related to tests or test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants