Yicong-Huang opened a new issue, #4724:
URL: https://github.com/apache/texera/issues/4724

   ### What happened?
   
   `agent-service/src/agent/tools/result-formatting.ts`'s 
`formatOperatorResult` filters both `__row_index__` and `__is_visualization__` 
from headers (line 36), but the inner `jsonToTableFormat` only filters 
`__row_index__` (line 106). For non-visualization rows that still carry an 
`__is_visualization__` field (e.g. `false`), that column leaks into the 
rendered table body even though it is excluded from the metadata column count. 
The same single-filter pattern lives in `workflow-execution-tools.ts:400` and 
`server.ts:449`.
   
   ### How to reproduce?
   
   1. Build an `OperatorInfo` whose `result` is `[{ __is_visualization__: 
false, value: 1 }]`.
   2. Call `formatOperatorResult(opId, info, workflowState)`.
   3. The output reports `Output table shape: (1, 1)` (one column `value`), but 
the rendered table body includes both `value` and `__is_visualization__` 
columns.
   
   ### Version
   
   1.1.0-incubating (Pre-release/Master)


-- 
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]

Reply via email to