[Feature][PPL] Apply Calcite post-processing to pushed aggregation snapshots
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 30/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- java
- Domain
- backend, databases, stream-processing
Research direction
The issue involves modifying the query engine's physical plan processing for pushed aggregations with Calcite operators. Start by examining the optimized physical plan detection logic and the StateStoreScan integration. Look for existing tests related to pushed aggregation and StateStore to understand the codebase. The goal is to compile a residual Calcite plan for reuse without restarting the primary query.
Written by the indexing model from the issue text.
Description
Parent: #5765
Goal
Return current results when an eligible pushed aggregation has Calcite operators above the aggregation leaf.
Scope
- Detect the eligible pushed aggregation leaf from the optimized physical plan.
- Store aggregation-boundary rows with REPLACE semantics.
- Replace the aggregation leaf with a
StateStoreScanfor current-result evaluation. - Compile the residual Calcite plan once and reuse it for subsequent POST timeout and GET reads.
- Do not reparse, reoptimize, or restart the primary query during polling.
Acceptance criteria
- Queries such as pushed
statsfollowed by partial-safeevalorfieldscan return meaningful current results. - Every read evaluates the cached residual plan against one coherent StateStore view.
- The primary query still executes once and remains the authoritative final path.
- Final output exactly matches synchronous Calcite PPL output.
- Ambiguous or unsupported physical shapes fail classification safely and do not publish semantically invalid rows.
- Concurrent StateStore replacement, preview evaluation, cancellation, and close are covered by tests.
- Dominant language
- Java
- Stars
- 176
- Forks
- 237
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 34
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from opensearch-project/sql
-
bug untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opensearch-project/sql#5990 ·
Maintainers usually reply within 1 day
-
bug untriaged
Difficulty 1/5 Under an hour Newbie friendliness 85/100
opensearch-project/sql#5983 ·
Maintainers usually reply within 1 day
-
[BUG] PromQL queries fail with InvalidTypeIdException when metric has a label named "type"Possibly taken @nagendramohan claimed this 107 days ago. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
opensearch-project/sql#5684 · 4 comments ·
Maintainers usually reply within 1 day
-
[DOC] Calcite settings documentation missing examplesPossibly taken @AzazelSensei claimed this 64 days ago. Opendocumentation PPL
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
opensearch-project/sql#4806 · 1 comment ·
Maintainers usually reply within 1 day
-
calcite enhancement Meta performance PPL untriaged
Difficulty 5/5 Over a week Newbie friendliness 8/100
opensearch-project/sql#5991 ·
Maintainers usually reply within 1 day
All issues in opensearch-project/sql
Similar issues
-
chore
Difficulty 1/5 1-3 hours Newbie friendliness 88/100
lugassawan/swe-workbench#841 ·
-
needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EndlessPixel-Studio/FakePlayer-CE#155 ·
Maintainers usually reply within 1 day
-
Document the isv:HDFGroup Linux package repositories and signing keyPossibly taken @brtnfld claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
checkstyle/checkstyle#23174 ·
Maintainers usually reply within 1 day