Skip to content

[Feature][PPL] Publish partial rows from root ResultSet and Composite pagination #5798

Closed

Description

@penghuo

Parent: #5765

Goal

Reduce first-data latency for query shapes whose Calcite root ResultSet produces stable rows before the primary query completes.

Scope

  • Publish converted root rows while consuming ResultSet.next().
  • Store stable rows with APPEND semantics.
  • Support non-blocking PPL plans and Composite aggregation pagination through the same root ResultSet path.
  • Return one complete current result on every POST timeout and GET; no delta protocol is exposed.
  • Reuse the standard Calcite result materialization rules for schema, values, warnings, timewrap, and query-size limits.

Acceptance criteria

  • A running non-blocking query can return non-empty rows before final completion.
  • Completed Composite pages become visible without a Composite-specific source adapter.
  • Repeated GET responses contain complete replacement views.
  • The final schema, rows, ordering, warnings, and limits match the equivalent synchronous query.
  • Blocking plans remain valid and may return an empty current result until their root emits rows.
  • Concurrent publication, reading, cancellation, and close are covered by REST and concurrency tests.

Activity

  1. added
    enhancement
    PPL
    calcite
    on Sep 23, 2026
  2. added a commit that references this issue on Nov 11, 2026
    233f737
  3. added a commit that references this issue on Nov 20, 2026
    3fa6a0d
  4. moved this from Not Started to Done in PPL Trackeron Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    PPLasynccalciteenhancement

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions