We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57e248e commit b2cc94aCopy full SHA for b2cc94a
fe/fe-core/src/main/java/org/apache/doris/analysis/StringLiteral.java
@@ -96,9 +96,9 @@ public int compareLiteral(LiteralExpr expr) {
96
int minLength = Math.min(thisBytes.length, otherBytes.length);
97
int i = 0;
98
for (i = 0; i < minLength; i++) {
99
- if (thisBytes[i] < otherBytes[i]) {
+ if (Byte.toUnsignedInt(thisBytes[i]) < Byte.toUnsignedInt(otherBytes[i])) {
100
return -1;
101
- } else if (thisBytes[i] > otherBytes[i]) {
+ } else if (Byte.toUnsignedInt(thisBytes[i]) > Byte.toUnsignedInt(otherBytes[i])) {
102
return 1;
103
}
104
0 commit comments