This is an automated email from the ASF dual-hosted git repository. github-merge-queue[bot] pushed a commit to branch gh-readonly-queue/main/pr-9242-e70d67e6a937bbc029a92c127e845af17be643cf in repository https://gitbox.apache.org/repos/asf/texera.git
commit 2c743c00d71d0e3c4e992ad32e772f071addb358 Author: Kary Zheng <[email protected]> AuthorDate: Thu Nov 5 04:46:28 2026 +0000 feat(frontend): ask for the row details within the server's column limit (#9242) ### What changes were proposed in this PR? `selectPage` defaulted its column limit to `Number.MAX_SAFE_INTEGER`, which the server cannot read as an Int, so a request that left it out was never answered and was recorded as a compilation error. The Row Details modal and report generation both leave it out. The default is now `ALL_COLUMNS`, which is Int.MaxValue, and the page cache is keyed by the same value. ### Any related issues, documentation, discussions? Closes #9241. Found in the review of #9058, which uses the same value for its hover preview. ### How was this PR tested? A new `workflow-result.service.spec.ts` case checks that a page asked for without a column limit sends `ALL_COLUMNS`, and the existing cache case still passes on the default. In the running app, Row Details shows the clicked row and no error is recorded. ### 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]> --- .../service/workflow-result/workflow-result.service.spec.ts | 10 ++++++++++ .../service/workflow-result/workflow-result.service.ts | 11 ++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/frontend/src/app/workspace/service/workflow-result/workflow-result.service.spec.ts b/frontend/src/app/workspace/service/workflow-result/workflow-result.service.spec.ts index 6bf168ed62..e8575d6436 100644 --- a/frontend/src/app/workspace/service/workflow-result/workflow-result.service.spec.ts +++ b/frontend/src/app/workspace/service/workflow-result/workflow-result.service.spec.ts @@ -19,6 +19,7 @@ import { TestBed } from "@angular/core/testing"; import { + ALL_COLUMNS, OperatorPaginationResultService, OperatorResultService, WorkflowResultService, @@ -474,6 +475,15 @@ describe("OperatorPaginationResultService", () => { expect((service as any).pendingRequests.size).toBe(0); }); + it("asks for every column within the server's Int when no column limit is given", () => { + service.selectPage(3, 10).subscribe(); + + expect(mockWorkflowWebsocketService.send).toHaveBeenCalledWith( + "ResultPaginationRequest", + expect.objectContaining({ columnLimit: ALL_COLUMNS }) + ); + }); + it("bypasses the frontend cache when column filters are set", () => { (service as any).resultCache.set(2, [{ id: 1 }]); service.selectPage(2, 10, 5).subscribe(); diff --git a/frontend/src/app/workspace/service/workflow-result/workflow-result.service.ts b/frontend/src/app/workspace/service/workflow-result/workflow-result.service.ts index 2b73e41837..7c12057902 100644 --- a/frontend/src/app/workspace/service/workflow-result/workflow-result.service.ts +++ b/frontend/src/app/workspace/service/workflow-result/workflow-result.service.ts @@ -262,6 +262,12 @@ export class OperatorResultService { } } +/** + * A column limit that asks for every column. The server reads the limit as a 32-bit Int, so it is + * Int.MaxValue there; Number.MAX_SAFE_INTEGER fails to parse and the request is never answered. + */ +export const ALL_COLUMNS = 2147483647; + export class OperatorPaginationResultService { private pendingRequests: Map<string, Subject<PaginatedResultEvent>> = new Map(); private resultCache: Map<number, ReadonlyArray<object>> = new Map(); @@ -317,14 +323,13 @@ export class OperatorPaginationResultService { pageIndex: number, pageSize: number, columnOffset: number = 0, - columnLimit: number = Number.MAX_SAFE_INTEGER, + columnLimit: number = ALL_COLUMNS, columnSearch: string = "" ): Observable<PaginatedResultEvent> { // update currently selected page this.currentPageIndex = pageIndex; // first fetch from frontend result cache - const useCache = - this.portIndex === 0 && columnOffset === 0 && columnLimit === Number.MAX_SAFE_INTEGER && columnSearch === ""; + const useCache = this.portIndex === 0 && columnOffset === 0 && columnLimit === ALL_COLUMNS && columnSearch === ""; const pageCache = useCache ? this.resultCache.get(pageIndex) : undefined; if (pageCache) { return of(<PaginatedResultEvent>{
