SaintBacchus commented on code in PR #11046: URL: https://github.com/apache/doris/pull/11046#discussion_r926345730
########## be/src/exec/arrow/orc_reader.cpp: ########## @@ -52,6 +55,31 @@ Status ORCReaderWrap::init_reader(const TupleDescriptor* tuple_desc, return Status::EndOfFile("Empty Orc File"); } + int64_t row_number = 0; + int end_group = _total_groups; + for (int i = 0; i < _total_groups; i++) { + int64_t _offset = _reader->GetRawORCReader()->getStripe(i)->getOffset(); + int64_t row = _reader->GetRawORCReader()->getStripe(i)->getNumberOfRows(); + if (_offset < _range_start_offset) { + row_number += row; + } else if (_offset == _range_start_offset) { + _current_group = i; Review Comment: In my test for orc file , `_range_start_offset` is one of the `_offset` list -- 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