This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 50ffae4  [BUG] Fix bug that Unique/AGG key will read all key columns 
when there are two rowsets (#5632)
50ffae4 is described below

commit 50ffae44b105263cbb87ba0f339effa7897d048b
Author: stdpain <[email protected]>
AuthorDate: Wed Apr 14 00:12:05 2021 +0800

    [BUG] Fix bug that Unique/AGG key will read all key columns when there are 
two rowsets (#5632)
---
 be/src/exec/olap_scanner.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/be/src/exec/olap_scanner.cpp b/be/src/exec/olap_scanner.cpp
index 197febb..76273d7 100644
--- a/be/src/exec/olap_scanner.cpp
+++ b/be/src/exec/olap_scanner.cpp
@@ -166,7 +166,7 @@ Status OlapScanner::_init_params(const 
std::vector<OlapScanRange*>& key_ranges,
              _params.rs_readers[0]->rowset()->start_version() == 0 &&
              
!_params.rs_readers[0]->rowset()->rowset_meta()->is_segments_overlapping()) ||
             (_params.rs_readers.size() == 2 &&
-             _params.rs_readers[1]->rowset()->rowset_meta()->num_rows() == 0 &&
+             _params.rs_readers[0]->rowset()->rowset_meta()->num_rows() == 0 &&
              _params.rs_readers[1]->rowset()->start_version() == 2 &&
              
!_params.rs_readers[1]->rowset()->rowset_meta()->is_segments_overlapping());
     if (_aggregation || single_version) {

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to