This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-2.1
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 78fab91d6b095bea51a15c0432bbe5863f251b34
Author: Yongqiang YANG <[email protected]>
AuthorDate: Thu May 23 14:33:42 2024 +0800

    [fix](overflow) show backends overflow for backend ids (#35245)
---
 fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java 
b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java
index 9d454f9aff6..75eb2f60a6b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/qe/ShowExecutor.java
@@ -2086,7 +2086,7 @@ public class ShowExecutor {
         backendInfos.sort(new Comparator<List<String>>() {
             @Override
             public int compare(List<String> o1, List<String> o2) {
-                return Integer.parseInt(o1.get(0)) - 
Integer.parseInt(o2.get(0));
+                return Long.compare(Long.parseLong(o1.get(0)), 
Long.parseLong(o2.get(0)));
             }
         });
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to