chenlinzhong commented on a change in pull request #8604:
URL: https://github.com/apache/incubator-doris/pull/8604#discussion_r833438547



##########
File path: be/src/exec/broker_scanner.cpp
##########
@@ -161,6 +193,11 @@ Status BrokerScanner::open_file_reader() {
     if (start_offset != 0) {
         start_offset -= 1;
     }
+    //means first range 
+    if (start_offset == 0){

Review comment:
       > if start_offset=1, then in line 194, it will be set to start_offset=0.
   > 
   > it is still first range?
   
   Yes, the reason for subtracting 1 is that offset is plus 1 in the FE 
calculation (bytesperinstance = totalbytes / numinstances + 1), so for the 
first range start_offset is always 0, and other range will not be 0




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