Skip to content

feat(backend): count an operator's result by its first output port - #9051

Closed
kz930 wants to merge 1 commit into
apache:mainfrom
kz930:fix/9050-result-count-first-port
Closed

kz930 wants to merge 1 commit into
apache:mainfrom
kz930:fix/9050-result-count-first-port

Conversation

@kz930

@kz930 kz930 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

The result store keeps one row count per operator and builds it from every stored result of the execution. A terminal operator with two outputs, such as Split, has both outputs stored, so the count of whichever port was read last replaced the other. The result panel shows the first output and pages it by that count, so its pager could stop early or run past the rows. The count now comes from the first output port, the one the result panel reads.

Any related issues, documentation, discussions?

Closes #9050

How was this PR tested?

A new case in ExecutionResultServiceSpec stores 3 rows on an operator's first port and 8 on its second, and checks that the operator is reported with 3. It fails on main with 8. The rest of the spec passes.

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

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

The result store keeps one entry per operator, built from every result
URI of the execution. An operator with two stored output ports, such as
a terminal Split, got whichever port came last, so the row count the
frontend paged by could be the other port's. The result updates read
the first port, so the count now comes from the first port too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kz930

kz930 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

@carloea2 could you take a look at this when you have a chance? Thanks!

@kz930

kz930 commented Oct 20, 2026

Copy link
Copy Markdown
Contributor Author

Moved into #9054, which now carries this fix together with reading the other output ports. Closing this one.

@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • Contributors with relevant context: @mengw15
    You can notify them by mentioning @mengw15 in a comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Result table pages by the wrong row count for an operator with two outputs, such as Split

1 participant