HappenLee opened a new pull request, #62207:
URL: https://github.com/apache/doris/pull/62207
## Summary
Fix SHOW BACKENDS command output field order mismatch with
BackendsTableValuedFunction.SCHEMA definition.
## Problem
The output fields of SHOW BACKENDS command were not in the same order as the
BackendsTableValuedFunction.SCHEMA definition, causing field values to be
displayed in wrong columns:
- CpuCores showed NodeRole value (mix)
- Memory showed CpuCores value
- NodeRole showed Memory value
## Solution
1. Reorder fields in BackendsProcDir.getBackendInfos() to match SCHEMA:
- CpuCores -> Memory -> LiveSince -> RunningTasks -> NodeRole
2. Synchronize the same fix in MetadataGenerator.backendsMetadataResult()
3. Add unit test to verify field order
## Test
- Unit test added in BackendsProcDirTest.testBackendInfoFieldOrder()
--
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]