zhangwl9 opened a new issue, #3382: URL: https://github.com/apache/amoro/issues/3382
### Search before asking - [X] I have searched in the [issues](https://github.com/apache/amoro/issues?q=is%3Aissue) and found no similar issues. ### What would you like to be improved? The SchedulingPolicy within the plan module creates a corresponding Sorter based on the SchedulingPolicy#policyName. This Sorter sorts the TableRuntimes from the input TableRuntimeList, determining the order in which the TableRuntimes will undergo scheduling optimization. However, the current code requires significant changes when adding new policy sorter instance, making it difficult to quickly and easily implement new additions ### How should we improve? 1、Add a new SorterFactory interface, specifying common methods for all policy sorters. 2、In the SchedulingPolicy#createSorterByPolicy method, use SPI to load the policy sorter instances. ### Are you willing to submit PR? - [X] Yes I am willing to submit a PR! ### Subtasks _No response_ ### Code of Conduct - [X] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct) -- 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]
