Repository navigation
Conversation
Automated Reviewer SuggestionsBased on the
|
The result store had one entry per operator, filtered to the first output port, and the diff handler took the output mode from the operator's first external port. Any HTML (SINGLE_SNAPSHOT) port on an operator also skipped the first port's table statistics and result size, even when the first port was a table. - WorkflowResultStore keys its entries by GlobalPortIdentity: one entry per external output port, each with its own tuple count. Internal ports are not entries. - Each port's output mode is looked up for that port, and a result entry whose port is not in the physical plan fails loudly. - The result size is recorded for every changed table port, under that port's id. Table statistics and the result updates sent to the frontend stay the first port's, so nothing on the wire changes. Related: apache/texera discussion apache#8914. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SRmgtBces67YppgKLHoZHa
apache#9054 lets a pagination request read any output port, but the live result updates still follow only an operator's first port, so the frontend cannot tell that a later port (a Split's second output, or a port holding a visualization) has a result or that it changed. - WebResultUpdateEvent gains portUpdates (operator id -> port index -> update) for the ports past the first whose result is new or whose tuple count changed. updates and tableStats keep their meaning (the first port). Each port's update is built with that port's own output mode and document. - WorkflowResultService keeps a table or visualization service per later port from those updates, announces a port whose result appears or changes kind, and lists the ports that have a result (getResultPortIndices). determineOutputTypes and determineOutputExtension answer for a given port. An event without portUpdates (an older server) is accepted. No UI change: the result panel still shows the first port. Related: apache/texera discussion apache#8914. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01SRmgtBces67YppgKLHoZHa
79be850 to
abc35da
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #9272 +/- ##
=========================================
Coverage 92.17% 92.18%
Complexity 4987 4987
=========================================
Files 1284 1284
Lines 55605 55652 +47
Branches 7120 7134 +14
=========================================
+ Hits 51256 51301 +45
Misses 2591 2591
- Partials 1758 1760 +2
*This pull request uses carry forward flags. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
✅ No material benchmark regressions detected🟢 2 better · 🔴 0 worse · ⚪ 13 noise (<±5%) · 0 without baseline
Baseline detailsLatest main
Raw CSVconfig_idx,batch_size,schema_width,string_len,num_batches,total_ms,total_tuples,total_bytes,tuples_per_sec,mb_per_sec,lat_p50_us,lat_p95_us,lat_p99_us
0,10,10,64,20,511.40,200,128000,391,0.239,24474.12,34220.64,34220.64
1,100,10,64,20,2434.00,2000,1280000,822,0.502,120777.78,136453.40,136453.40
2,1000,10,64,20,20801.87,20000,12800000,961,0.587,1042450.16,1067735.59,1067735.59 |
|
Folded into #9271, following review: there both PRs' changes use one per-port path for every output port, with no port-0 special case and no separate 🤖 Generated with Claude Code |
What changes were proposed in this PR?
#9054 lets a pagination request read any output port, but the live result updates still follow only an operator's first port. The frontend therefore can't tell that a later port has a result (a Split's second output, or a port holding a visualization) or that it changed. #9054 deliberately left live updates on the first port. This PR is the proposal to extend them, so feedback on the shape is welcome.
Backend
WebResultUpdateEventgains a third field,portUpdates: Map[String, Map[Int, WebResultUpdate]](operator id → port index → update), e.g."portUpdates": {"Split-1": {"1": {...}}}.updatesandtableStatskeep their exact meaning: the first port only. Later ports get no table statistics.SET_DELTAport 1 sends only the rows added since its own previous count.Frontend (
WorkflowResultServiceonly; no UI change)portUpdates.getPortPaginatedResultServicereturnsundefinedfor a port that holds a visualization.getResultInitiateStream()when a later port's result appears, or switches between table and visualization.getResultPortIndices(op): the ports that currently have a result. NewgetPortResultService(op, n)andgetPortResultUpdateStream().determineOutputTypesanddetermineOutputExtensiontake an optionalportIndex. Port 0 behaves as before.portUpdates(from an older server) is accepted.The result panel still shows the first port. Showing later ports is a separate PR, to be coordinated with #9052.
Any related issues, documentation, discussions?
Stacked on #9271. Builds on #9054. Part of discussion #8914. Related to #9052 (pinned windows).
How was this PR tested?
Backend specs in
ExecutionResultServiceSpec:portUpdates, never inupdates;SET_DELTArows counted from that port's own previous count;TexeraWebSocketEventSpecchecks theportUpdatesJSON shape.Frontend specs in
workflow-result.service.spec.ts(+364 lines):getResultPortIndicesorder,determineOutputTypesper port, andclearResults;portUpdatesare accepted.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.ai/code/session_01SRmgtBces67YppgKLHoZHa