The GitHub Actions job "Required Checks" on 
texera.git/gh-readonly-queue/main/pr-9054-bc4f3c877082e5af172dec006c5ba316afb0450b
 has failed.
Run started by GitHub user aglinxinyuan (triggered by aglinxinyuan).

Head commit for run:
d5be4f24dee4a6a7bd3b03d79a4f406f67e2d86c / Kary Zheng 
<[email protected]>
feat: read the result of any output port of an operator (#9054)

### What changes were proposed in this PR?

Every external output port of an operator that keeps its result is
stored, but results were only ever read from the first port, so a
Split's second output or an If's True branch could not be shown.

A pagination request can now name the output port to read, with the
first port as the default, and the reply carries the port it read and
that port's row count. The live result updates keep following the first
port, so a client paging another port takes the count from the reply.
The result store's count per operator now comes from the first port too:
it was built from every stored port, so a terminal Split's second output
could replace its first output's count, and the result panel paged by
the wrong number.

On the frontend, the result service gives each extra port its own
pagination service, which names its port in its requests, keeps no page
cache and takes its row count from each reply. Every port's service
takes its schema only from replies to its own requests, since all
replies share one stream. The result table and its row detail can show
any port; nothing picks a port other than the first yet, which comes
with the pinned windows in #9052.

### Any related issues, documentation, discussions?

Closes #9050. Closes #9053. Part of #9052.

### How was this PR tested?

New cases in `ExecutionResultServiceSpec` check that a request for each
of an operator's two ports returns that port's rows and count, and that
an operator with two stored ports is reported by its first port's count;
the latter fails on main. `PaginatedResultEventSpec` checks the reply's
new fields and that it serializes to exactly what the frontend declares.
New cases in the result service's and the result table's specs cover the
per-port services and requests. The backend specs above and the affected
frontend specs pass.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>

Report URL: https://github.com/apache/texera/actions/runs/40439369790

With regards,
GitHub Actions via GitBox

Reply via email to