Skip to content

[PoC] Add PPL progressive query execution - #4

Open
penghuo wants to merge 3 commits into
mainfrom
feat/ppl-progress-execution-v0
Open

penghuo wants to merge 3 commits into
mainfrom
feat/ppl-progress-execution-v0

Conversation

@penghuo

@penghuo penghuo commented Sep 17, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add asynchronous submit, poll, and cancel lifecycle to the Calcite PPL endpoint.
  • Report bounded, monotonic source progress for normal search, PIT paging, aggregation, and Composite aggregation.
  • Implement the P0 listener publication model:
    • stable-prefix plans publish APPEND rows;
    • fully pushed aggregations publish REPLACE reduce snapshots;
    • Composite aggregations with row-local post-processing publish REPLACE snapshots;
    • unsupported blocking plans publish progress and final rows only.
  • Add OTel-shaped large-data REST coverage for six query patterns and synchronous-result comparison.
  • Add the detailed design for API lifecycle, execution integration, progress, partial-result storage, security, resource management, and validation.

P0 query behavior

Query shape Running result
Non-blocking stable-prefix plan APPEND
Fully pushed non-bucket aggregation REPLACE
Composite aggregation plus row-local processing REPLACE
Eventstats, window, ordered sort, join, or unsupported blocking plan Progress only

Validation included

  • Unit coverage for job lifecycle, REST parsing, response formatting, source progress, request integration, and cancellation registration.
  • Calcite aggregation pagination integration coverage.
  • A 4M-document, 3-node OTel demo matrix covering REX, fully pushed aggregation, Composite plus post-processing, eventstats, ordered sort, and span aggregation.
  • Final asynchronous results are compared with equivalent synchronous PPL results in the demo test.

Review notes

  • This PR is opened in the personal fork for design and code review.
  • The local browser demo is intentionally not committed.
  • The detailed design distinguishes the current semantic PoC from the storage, admission, and concurrency work required for production.

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