mengw15 opened a new pull request, #6762:
URL: https://github.com/apache/texera/pull/6762
### What changes were proposed in this PR?
Extends the existing `WorkflowCompilingService` spec to cover
`getOperatorInputSchemaMap` — and, through it, the private
`extractOperatorInputPortSchemaMap`
(`frontend/src/app/workspace/service/compile-workflow/workflow-compiling.service.ts`).
> Note: the rest of the getters the issue lists
> (`getWorkflowCompilationState` / `getWorkflowCompilationErrors` /
> `getCompilationStateInfoChangedStream` / `getOperatorOutputSchemaMap` /
> `getPortInputSchema` / `getOperatorInputAttributeType`) are already
covered on
> `main` (added in #6557), so this PR only fills the remaining gap.
4 tests cover `getOperatorInputSchemaMap`:
- returns `undefined` when the compilation state is uninitialized;
- returns `undefined` when there is no output-schema map;
- returns `undefined` for an operator with no input links (the
`extractOperatorInputPortSchemaMap` early-out);
- resolves the input-port schema from an upstream operator's output schema
over a
real `scan → result` link.
No production code was changed.
### Any related issues, documentation, discussions?
Closes #6750
### How was this PR tested?
Extended unit tests, run locally in `frontend/` (all green; the failure path
was
verified by breaking an assertion to confirm the suite goes red):
```
ng test --watch=false --include
src/app/workspace/service/compile-workflow/workflow-compiling.service.spec.ts
# Test Files 1 passed (1) | Tests 33 passed (33)
prettier --write <spec> # clean
eslint <spec> # clean
```
### Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (Opus 4.8 [1M context])
--
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]