Yicong-Huang opened a new issue, #5020: URL: https://github.com/apache/texera/issues/5020
### Task Summary `workflow-compiling-service/src/test/scala/.../WorkflowCompilationResourceSpec.scala` currently has a single happy-path test (filter + limit + projection chain compiles successfully). The service's compiler always runs in lenient mode — it accumulates per-operator errors and returns a `WorkflowCompilationResult` with `physicalPlan = None` when any error occurs — and that contract has no direct coverage today. Add cases exercising the error paths the frontend depends on: - Scan source with no `fileName` set: `resolveScanSourceOpFileName(Some(errorList))` should accumulate, not throw; response is `WorkflowCompilationFailure` with the scan op in `operatorIdToError`. - Schema mismatch (e.g. projection of a non-existent attribute): per-port schema reported as `None`, op present in `operatorIdToError`. - Python codegen `#EXCEPTION DURING CODE GENERATION:` regex path: error captured, compile does not throw. - REST response shape: failure cases serialize as `WorkflowCompilationFailure` JSON the frontend can parse. These tests lock the lenient-mode contract before any refactor that consolidates this compiler with amber's copy. ### Task Type - [x] Testing / QA -- 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]
