From 4ffc61be326c9aef3eb6bdffa3cd3d1175f05ec0 Mon Sep 17 00:00:00 2001 From: Zhengguo Yang Date: Fri, 29 Jan 2021 10:34:47 +0800 Subject: [PATCH] fix apply condition to unique table value columns incorrectly (#5302) --- 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 0d64167d2e..ea7c8db9a8 100644 --- a/be/src/olap/reader.cpp +++ b/be/src/olap/reader.cpp @@ -579,7 +579,6 @@ OLAPStatus Reader::_init_keys_param(const ReaderParams& read_params) { void Reader::_init_conditions_param(const ReaderParams& read_params) { _conditions.set_tablet_schema(&_tablet->tablet_schema()); for (const auto& condition : read_params.conditions) { - DCHECK_EQ(OLAP_SUCCESS, _conditions.append_condition(condition)); ColumnPredicate* predicate = _parse_to_predicate(condition); if (predicate != nullptr) { if (_tablet->tablet_schema() @@ -588,6 +587,8 @@ void Reader::_init_conditions_param(const ReaderParams& read_params) { _value_col_predicates.push_back(predicate); } else { _col_predicates.push_back(predicate); + OLAPStatus status = _conditions.append_condition(condition); + DCHECK_EQ(OLAP_SUCCESS, status); } } }