yiguolei commented on code in PR #35383:
URL: https://github.com/apache/doris/pull/35383#discussion_r1613679530


##########
be/src/olap/parallel_scanner_builder.cpp:
##########
@@ -32,13 +32,120 @@ template <typename ParentType>
 Status 
ParallelScannerBuilder<ParentType>::build_scanners(std::list<VScannerSPtr>& 
scanners) {
     RETURN_IF_ERROR(_load());
     if (_is_dup_mow_key) {
+        if (_split_by_segment_size) {
+            return _build_scanners_by_segment_size(scanners);
+        }
         return _build_scanners_by_rowid(scanners);
     } else {
         // TODO: support to split by key range
         return Status::NotSupported("split by key range not supported yet.");
     }
 }
 
+template <typename ParentType>
+Status ParallelScannerBuilder<ParentType>::_build_scanners_by_segment_size(
+        std::list<VScannerSPtr>& scanners) {
+    DCHECK_GE(_bytes_per_scanner, 0);
+
+    for (auto&& [tablet, version] : _tablets) {
+        DCHECK(_all_rowsets.contains(tablet->tablet_id()));
+        auto& rowsets = _all_rowsets[tablet->tablet_id()];
+
+        TabletReader::ReadSource reade_source_with_delete_info;

Review Comment:
   typo



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