You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by mo...@apache.org on 2021/12/17 06:23:37 UTC

[incubator-doris] branch revert-7351-optimize_for_single_rowset created (now 13f20cf)

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

morningman pushed a change to branch revert-7351-optimize_for_single_rowset
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git.


      at 13f20cf  Revert "[improvement](reader) optimize for single rowset reading  (#7351)"

This branch includes the following new commits:

     new 13f20cf  Revert "[improvement](reader) optimize for single rowset reading  (#7351)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org


[incubator-doris] 01/01: Revert "[improvement](reader) optimize for single rowset reading (#7351)"

Posted by mo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 13f20cf3f01ed3ff0425d29c8fe1140f97241506
Author: Mingyu Chen <mo...@gmail.com>
AuthorDate: Fri Dec 17 14:23:25 2021 +0800

    Revert "[improvement](reader) optimize for single rowset reading  (#7351)"
    
    This reverts commit 5745adb26cc87b7f9831a692286bc7cb565d31aa.
---
 be/src/olap/tuple_reader.cpp | 11 ++---------
 1 file changed, 2 insertions(+), 9 deletions(-)

diff --git a/be/src/olap/tuple_reader.cpp b/be/src/olap/tuple_reader.cpp
index 430fa30..fa44e4a 100644
--- a/be/src/olap/tuple_reader.cpp
+++ b/be/src/olap/tuple_reader.cpp
@@ -79,16 +79,9 @@ OLAPStatus TupleReader::init(const ReaderParams& read_params) {
     auto status = _init_collect_iter(read_params, &rs_readers);
     if (status != OLAP_SUCCESS) { return status; }
 
-    // optimize for single rowset reading without do aggregation when reading all columns, 
-    // and otherwise should use _agg_key_next_row for AGG_KEYS
     if (_optimize_for_single_rowset(rs_readers)) {
-        if(_tablet->keys_type() == AGG_KEYS && _return_columns.size() == _tablet->tablet_schema().num_columns()) {
-            _next_row_func = &TupleReader::_direct_agg_key_next_row;
-        } else if (_tablet->keys_type() == AGG_KEYS) {
-            _next_row_func = &TupleReader::_agg_key_next_row;
-        } else {
-            _next_row_func = &TupleReader::_direct_next_row;
-        }
+        _next_row_func = _tablet->keys_type() == AGG_KEYS ? &TupleReader::_direct_agg_key_next_row
+                                                          : &TupleReader::_direct_next_row;
         return OLAP_SUCCESS;
     }
 

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org