HappenLee opened a new pull request, #64005: URL: https://github.com/apache/doris/pull/64005
## Summary Fix the output field order of `SHOW BACKENDS` command. The fields in `BackendsProcDir.getBackendInfos()` were out of sync with the `BackendsTableValuedFunction.SCHEMA` definition, causing incorrect column values to be displayed: - **CpuCores** column showed NodeRole value (`mix`) - **Memory** column showed CpuCores value - **NodeRole** column showed Memory value ## Changes 1. **BackendsProcDir.java**: Reorder `TITLE_NAMES` and `getBackendInfos()` output to match SCHEMA: `CpuCores -> Memory -> RunningTasks -> NodeRole` 2. **BackendsProcDirTest.java**: Add unit test `testBackendInfoFieldOrder` to verify the correct field order 3. **DemoMultiBackendsTest.java**: Fix NodeRole assertion column index after the field reorder (from `size-4` to `size-1`) ## Test plan - [x] Unit test `testBackendInfoFieldOrder` verifies CpuCores < Memory < RunningTasks < NodeRole order - [x] `DemoMultiBackendsTest` assertion index updated to match new field order -- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
