Ma77Ball opened a new pull request, #5075:
URL: https://github.com/apache/texera/pull/5075
### What changes were proposed in this PR?
Operator result rows can carry two internal keys, `__row_index__` and
`__is_visualization__`. Five sites in agent-service stripped these keys before
computing column counts or rendering tables, but only one stripped both. The
other four only stripped `__row_index__`, so `__is_visualization__` leaked into
the rendered table body, making the body one column wider than the reported
shape. This PR introduces a shared `INTERNAL_RESULT_KEYS` set and
`getVisibleResultHeaders` helper in `tools utility.ts` and routes all five
sites through it, eliminating the drift at the source.
### Any related issues, documentation, or discussions?
Closes: #4724
### How was this PR tested?
Added a regression test in `result-formatting.test.ts` covering a row of
`{ __is_visualization__: false, value: 1 }`, asserting the rendered body
excludes the `__is_visualization__` column and matches the reported `(1, 1)`
shape. Existing tests for the outer column count and visualization payload
stripping continue to pass.
### Was this PR authored or co-authored using generative AI tooling?
Co-authored with Claude Opus 4.7 in compliance with ASF
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]