aglinxinyuan opened a new pull request, #4770:
URL: https://github.com/apache/texera/pull/4770

   ### What changes were proposed in this PR?
   
   Add `RegionPlanSpec` covering the lookup and DAG-iteration contract of 
`RegionPlan`:
   
   - `getRegion(id)` returns the region with the given id; throws 
`NoSuchElementException` for unknown ids
   - `getRegionOfLink` returns the region whose `physicalLinks` contain the link
   - `getRegionOfPortId` returns the region whose `ports` contain the global 
port id, or `None` when no region claims it
   - `topologicalIterator` yields region ids in topological order based on 
`regionLinks`
   
   ### Any related issues, documentation, discussions?
   
   Closes #4769
   
   ### How was this PR tested?
   
   `sbt "WorkflowExecutionService/testOnly 
org.apache.texera.amber.engine.architecture.scheduling.RegionPlanSpec"` — 6/6 
tests pass.
   
   ### Was this PR authored or co-authored using generative AI tooling?
   
   Generated-by: Claude Code (Claude Opus 4.7)


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