Gabriel39 commented on code in PR #15642: URL: https://github.com/apache/doris/pull/15642#discussion_r1071112128
########## be/src/service/internal_service.cpp: ########## @@ -949,4 +956,131 @@ void PInternalServiceImpl::response_slave_tablet_pull_rowset( Status::OK().to_protobuf(response->mutable_status()); } +static Status read_by_rowids( + std::pair<size_t, size_t> row_range_idx, const TupleDescriptor& desc, + const google::protobuf::RepeatedPtrField<PMultiGetRequest_RowId>& rowids, + vectorized::Block* sub_block) { + //read from row_range.first to row_range.second + for (size_t i = row_range_idx.first; i < row_range_idx.second; ++i) { + MonotonicStopWatch watch; + watch.start(); + auto row_id = rowids[i]; + TabletSharedPtr tablet = StorageEngine::instance()->tablet_manager()->get_tablet( + row_id.tablet_id(), true /*include deleted*/); + RowsetId rowset_id; + rowset_id.init(row_id.rowset_id()); + if (!tablet) { + continue; + } + BetaRowsetSharedPtr rowset = + std::static_pointer_cast<BetaRowset>(tablet->get_rowset(rowset_id)); + if (!rowset) { + LOG(INFO) << "no such rowset " << rowset_id; + continue; + } + const TabletSchemaSPtr tablet_schema = rowset->tablet_schema(); + // const TabletSchemaSPtr tablet_schema = tablet->tablet_schema(); Review Comment: delete this line -- 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