aglinxinyuan opened a new pull request, #8835: URL: https://github.com/apache/texera/pull/8835
### What changes were proposed in this PR? Removes `OperatorDescriptorUtils.toImmutableMap`, which no production code calls. **−40 lines.** There is no behaviour change. The PR also removes the `scala.jdk.CollectionConverters._` import, which only this method used, and the three spec cases that only exercised it. `equallyPartitionGoal`, the object's only live member, and its spec cases are unchanged. ### History | | | | --- | --- | | **Introduced by** | #2439 (2024-03-05), "Schema propagation push down to PhysicalPlan", as `AmberUtils.toImmutableMap` for Java operator descriptors. #2667 (2024-05-16) moved it into `OperatorDescriptorUtils` | | **Usage removed by** | #3179 (2024-12-29), "Convert Java operator descriptors to Scala". It rewrote the last Java callers (`TypeCastingOpDesc`, `PythonUDFSourceOpDescV2`, `RUDFSourceOpDesc`) in Scala, which needs no conversion | It has been dead for over twenty-one months. ### Any related issues, documentation, discussions? Closes #8834 ### How was this PR tested? No new tests. The five `equallyPartitionGoal` cases remain. Locally, from the repo root with Java 17: - `sbt "WorkflowOperator/Test/compile" "WorkflowExecutionService/Test/compile"`: success. - `sbt "WorkflowOperator/testOnly *OperatorDescriptorUtilsSpec"`: 5 tests, all pass. - `sbt "WorkflowOperator/scalafmtCheckAll" "WorkflowOperator/scalafixAll --check"`: clean. To re-check: ``` git grep -n "toImmutableMap" # no hits ``` ### 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) -- 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]
