This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push: new 26e78ab418 [fix](compaction)none vertical compaction should also use _unique_key_next_block function to read block (#22614) 26e78ab418 is described below commit 26e78ab418d2e3200b843a25eb8bd821aa8c1e21 Author: huanghaibin <284824...@qq.com> 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: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org