diff --git a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/QueueToken.java b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/QueueToken.java index 17299d3ea3b27e4..189ba77e8de0686 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/QueueToken.java +++ b/fe/fe-core/src/main/java/org/apache/doris/resource/workloadgroup/QueueToken.java @@ -28,9 +28,14 @@ // used to mark QueryQueue offer result // if offer failed, then need to cancel query // and return failed reason to user client -public class QueueToken { +public class QueueToken implements Comparable { private static final Logger LOG = LogManager.getLogger(QueueToken.class); + @Override + public int compareTo(QueueToken other) { + return Long.compare(this.tokenId, other.getTokenId()); + } + enum TokenState { ENQUEUE_SUCCESS, READY_TO_RUN @@ -136,4 +141,7 @@ public boolean equals(Object obj) { return tokenId == other.tokenId; } + public long getTokenId() { + return tokenId; + } } diff --git a/regression-test/suites/datatype_p0/nested_types/query/array_functions/test_array_zip_array_enumerate_uniq.groovy b/regression-test/suites/datatype_p0/nested_types/query/array_functions/test_array_zip_array_enumerate_uniq.groovy index b8207c1ee76ab3d..38772921ecea23a 100644 --- a/regression-test/suites/datatype_p0/nested_types/query/array_functions/test_array_zip_array_enumerate_uniq.groovy +++ b/regression-test/suites/datatype_p0/nested_types/query/array_functions/test_array_zip_array_enumerate_uniq.groovy @@ -25,7 +25,7 @@ suite("test_array_zip_array_enumerate_uniq", "p0") { SELECT array_zip(); """ } catch (Exception ex) { - assertTrue(ex.getMessage().contains("errCode = 2, detailMessage = Unexpected exception: 0")) + assertTrue(ex.getMessage().contains("errCode = 2, detailMessage = Unexpected exception: ")) } try {