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 4c8cc7f03e [fix](storage)fix column dict incorrect result (#11694) 4c8cc7f03e is described below commit 4c8cc7f03e22d3a6163d40a57e839ae4557a16c2 Author: wangbo <wan...@apache.org> AuthorDate: Fri Aug 12 11:05:57 2022 +0800 [fix](storage)fix column dict incorrect result (#11694) Co-authored-by: Wang Bo <wangb...@meituan.com> --- be/src/vec/columns/column_dictionary.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/be/src/vec/columns/column_dictionary.h b/be/src/vec/columns/column_dictionary.h index 66953b35bd..fcc24d253d 100644 --- a/be/src/vec/columns/column_dictionary.h +++ b/be/src/vec/columns/column_dictionary.h @@ -257,6 +257,9 @@ public: bool is_dict_code_converted() const { return _dict_code_converted; } MutableColumnPtr convert_to_predicate_column_if_dictionary() override { + if (is_dict_sorted() && !is_dict_code_converted()) { + convert_dict_codes_if_necessary(); + } auto res = vectorized::PredicateColumnType<TYPE_STRING>::create(); res->reserve(_reserve_size); for (size_t i = 0; i < _codes.size(); ++i) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org