The GitHub Actions job "Required Checks" on texera.git/main has succeeded. Run started by GitHub user github-merge-queue[bot] (triggered by github-merge-queue[bot]).
Head commit for run: 8cfacf2f062d7855073132cda5134ed564d6b8c7 / Meng Wang <[email protected]> feat(amber): record each result port's output mode and row count (#9049) ### What changes were proposed in this PR? Records two facts per result port in `operator_port_executions`, so a finished execution's results can be listed without the computing unit (#5363): - `output_mode` (new `output_mode_enum`): whether the port's result is a paginated table or a visualization. Today only the engine's physical plan knows this, and it lives in the CU. The engine already looks up the output port when it creates the port's storage, so `OperatorPortResultUriAvailable` now carries the port's declared mode, and the row is inserted with it. - `result_count`: the number of rows, written with `result_size` in one update each time the results are polled and once more when the run ends, so it does not depend on an open browser tab. Visualization (`SINGLE_SNAPSHOT`) ports keep a null count; they are never paged. Like `result_size`, it is recorded only for an operator's first result port for now, so the other ports of an operator such as `Split` keep a null count. `result_size` moves with it: it was written from the websocket diff handler, which runs once per connected browser and not at all without one. Schema change: `sql/updates/52.sql` (idempotent), `texera_ddl.sql`, and a `changelog.xml` entry. Existing rows keep both columns null. Nothing reads the columns yet; that is #8995. ### Any related issues, documentation, discussions? Closes #8994. Part of #5363, proposed in #8945. ### How was this PR tested? - `ExecutionResultServiceSpec`: the mode carried by the event is persisted; every output mode maps to the stored value of its name and an unrecognized one is rejected; a run that ends with no browser connected records its table port's size and count (this fails on the previous code), and a `SINGLE_SNAPSHOT` port records no count. - `WorkflowExecutionsResourceSpec`: `updateResultSizeAndCount` sets both columns on the matching row. - Removed the mode and count writes and confirmed exactly the three corresponding tests fail. - Applied `52.sql` twice to a local database (the second run is a no-op), and ran the full `texera_ddl.sql` into a scratch database. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-5-5) Report URL: https://github.com/apache/texera/actions/runs/42315200627 With regards, GitHub Actions via GitBox
