zzzxl1993 commented on code in PR #49472:
URL: https://github.com/apache/doris/pull/49472#discussion_r2041312787


##########
be/src/olap/rowset/segment_v2/inverted_index/analyzer/basic/basic_tokenizer.cpp:
##########
@@ -92,8 +92,7 @@ void BasicTokenizer::cut() {
             const int32_t prev_i = i;
 
             U8_NEXT(s, i, length, c);
-
-            if (c == U_SENTINEL) {
+            if (c < 0) {

Review Comment:
   The modified code checks for c < 0 to cover all invalid UTF-8 encoding cases 
comprehensively.  



-- 
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]

Reply via email to