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

kxiao pushed a commit to branch branch-2.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 58850914a592fa6d11d2a36a4721730bb6590505
Author: huanghaibin <[email protected]>
AuthorDate: Sat Aug 5 00:24:57 2023 +0800

    [fix](compaction)none vertical compaction should also use 
_unique_key_next_block function to read block (#22614)
---
 be/src/vec/olap/block_reader.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/be/src/vec/olap/block_reader.cpp b/be/src/vec/olap/block_reader.cpp
index 36fe335632..80fffd4401 100644
--- a/be/src/vec/olap/block_reader.cpp
+++ b/be/src/vec/olap/block_reader.cpp
@@ -227,7 +227,8 @@ Status BlockReader::init(const ReaderParams& read_params) {
         _next_block_func = &BlockReader::_direct_next_block;
         break;
     case KeysType::UNIQUE_KEYS:
-        if (_reader_context.enable_unique_key_merge_on_write) {
+        if (read_params.reader_type == ReaderType::READER_QUERY &&
+            _reader_context.enable_unique_key_merge_on_write) {
             _next_block_func = &BlockReader::_direct_next_block;
         } else {
             _next_block_func = &BlockReader::_unique_key_next_block;


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

Reply via email to