sashapolo commented on code in PR #5792:
URL: https://github.com/apache/ignite-3/pull/5792#discussion_r2081362953


##########
modules/schema/src/main/java/org/apache/ignite/internal/schema/BinaryTupleComparatorUtils.java:
##########
@@ -122,6 +122,12 @@ static int compareAsString(BinaryTupleReader tuple, int 
colIndex, String cmp, bo
         byte[] bytes = tuple.bytesValue(begin, begin + trimmedSize);
         char[] cmpArray = cmp.toCharArray();
 
+        if (bytes.length < trimmedSize) {
+            assert bytes.length == trimmedSize - 1 : "Only one first byte can 
have a special value.";
+
+            fullSrtLength--;

Review Comment:
   I don't understand the variable name, shouldn't it be `fullStrLength`?



-- 
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: notifications-unsubscr...@ignite.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to