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


##########
be/src/olap/rowset/segment_v2/inverted_index_compound_reader.cpp:
##########
@@ -201,7 +200,9 @@ 
DorisCompoundReader::DorisCompoundReader(CL_NS(store)::IndexInput* stream, int32
             _entries->put(aid, entry);
             // read header file data
             if (entry->offset < 0) {
-                copyFile(entry->file_name.c_str(), entry->length, buffer, 
BUFFER_LENGTH);
+                //if offset is -1, it means it's size is lower than 
DorisFSDirectory::MAX_HEADER_DATA_SIZE, which is 128k.
+                _copyFile(entry->file_name.c_str(), 
static_cast<int32_t>(entry->length), buffer,

Review Comment:
   Could forcefully casting int64 to int32 cause any issues?



-- 
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: commits-unsubscr...@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to