You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@doris.apache.org by "airborne12 (via GitHub)" <gi...@apache.org> on 2023/08/24 07:30:01 UTC

[GitHub] [doris-thirdparty] airborne12 commented on a diff in pull request #114: [fix](keyword) fix the keyword type index length limit

airborne12 commented on code in PR #114:
URL: https://github.com/apache/doris-thirdparty/pull/114#discussion_r1303917059


##########
src/core/CLucene/index/SDocumentWriter.cpp:
##########
@@ -536,6 +536,7 @@ void SDocumentsWriter<T>::ThreadState::FieldData::addPosition(Token *token) {
 
             const int32_t textLen1 = 1 + tokenTextLen;
             if (textLen1 + threadState->scharPool->tUpto > CHAR_BLOCK_SIZE) {
+                assert(textLen1 <= CHAR_BLOCK_SIZE);

Review Comment:
   assert only works in debug



-- 
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: dev-unsubscribe@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@doris.apache.org
For additional commands, e-mail: dev-help@doris.apache.org