This is an automated email from the ASF dual-hosted git repository. yiguolei pushed a commit to branch branch-1.1-lts in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/branch-1.1-lts by this push: new 98f11243cb [bugfix](compaction) bug: compaction read delete data as normal data (#13025) 98f11243cb is described below commit 98f11243cb4c9e20f35d3285cd12fc9a8a91fea3 Author: TengJianPing <18241664+jackte...@users.noreply.github.com> AuthorDate: Wed Sep 28 13:42:07 2022 +0800 [bugfix](compaction) bug: compaction read delete data as normal data (#13025) * [bugfix](compaction) bug: compaction read delete data as normal data * improvement --- be/src/olap/reader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/olap/reader.cpp b/be/src/olap/reader.cpp index c93cbc3971..5f7dd85f01 100644 --- a/be/src/olap/reader.cpp +++ b/be/src/olap/reader.cpp @@ -824,7 +824,8 @@ OLAPStatus TabletReader::_init_delete_condition(const ReaderParams& read_params) return OLAP_SUCCESS; } OLAPStatus ret = OLAP_SUCCESS; - if (read_params.runtime_state && !read_params.runtime_state->skip_delete_predicate()) { + // if it's READER_QUERY and skip_delete_predicate variable is set, deleted data will be read as normal + if (!read_params.runtime_state || !read_params.runtime_state->skip_delete_predicate()) { ReadLock rdlock(_tablet->get_header_lock()); ret = _delete_handler.init(_tablet->tablet_schema(), _tablet->delete_predicates(), read_params.version.second, this); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org