From 585d42330cdcb42cdf34c9ea32dad887c59cb597 Mon Sep 17 00:00:00 2001 From: Gabriel Date: Tue, 5 Jul 2022 11:10:03 +0800 Subject: [PATCH] [BUG] fix bug in bloom filter for datev2 (#10579) --- be/src/olap/bloom_filter_predicate.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/be/src/olap/bloom_filter_predicate.h b/be/src/olap/bloom_filter_predicate.h index 23a2e4a473..c25258f55a 100644 --- a/be/src/olap/bloom_filter_predicate.h +++ b/be/src/olap/bloom_filter_predicate.h @@ -89,7 +89,8 @@ private: } else { uint24_t tmp_uint24_value; auto get_column_data = [](const vectorized::IColumn& column) { - if constexpr (std::is_same_v) { + if constexpr (std::is_same_v && + T == PrimitiveType::TYPE_DATE) { return reinterpret_cast*>( &column) ->get_data()