Skip to content

Add Calcite PPL partial result producers - #5

Open
penghuo wants to merge 1 commit into
mainfrom
feat/ppl-partial-results-v3
Open

penghuo wants to merge 1 commit into
mainfrom
feat/ppl-partial-results-v3

Conversation

@penghuo

@penghuo penghuo commented Sep 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • add an opt-in PartialResultResponseListener with APPEND and REPLACE semantics
  • publish stable non-blocking rows and composite pages from a unified Calcite root collector
  • publish fully pushed count/non-bucket aggregation snapshots through an OpenSearch partial-reduce adapter
  • use one Calcite root materializer for partial and final public result shape
  • keep async API, job lifecycle, security, cancellation, and progress tracking out of this PR

Supported partial-result shapes

  • non-blocking scan plus row-local operators: APPEND
  • composite aggregation plus row-local operators: REPLACE
  • fully pushed count or non-bucket metric aggregation with scan as root: REPLACE
  • unsupported blocking plans: final result only

Validation

  • ./gradlew :core:spotlessCheck :opensearch:spotlessCheck :opensearch:test :integ-test:yamlRestTest :integ-test:integTest -DignorePrometheus
  • result: BUILD SUCCESSFUL

Design note

See docs/dev/ppl-partial-results-option-c.md.

@penghuo
penghuo requested a review from dai-chen as a code owner September 18, 2026 18:34
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