This is an automated email from the ASF dual-hosted git repository.
lihaopeng 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 a28e4957bc2 [Exec](scan) set not null in parse zone map if zone map
not init (#59529)
a28e4957bc2 is described below
commit a28e4957bc25a1244b823b7b5983a165f76cb99f
Author: HappenLee <[email protected]>
AuthorDate: Fri Jan 9 18:55:50 2026 +0800
[Exec](scan) set not null in parse zone map if zone map not init (#59529)
---
be/src/olap/rowset/segment_v2/column_reader.cpp | 3 +++
regression-test/data/query_p0/cache/condition_cache.out | 1 +
2 files changed, 4 insertions(+)
diff --git a/be/src/olap/rowset/segment_v2/column_reader.cpp
b/be/src/olap/rowset/segment_v2/column_reader.cpp
index fa5299df2f0..1c7d3fb1060 100644
--- a/be/src/olap/rowset/segment_v2/column_reader.cpp
+++ b/be/src/olap/rowset/segment_v2/column_reader.cpp
@@ -534,6 +534,9 @@ Status ColumnReader::_parse_zone_map(const ZoneMapPB&
zone_map, WrapperField* mi
WrapperField* max_value_container) const {
// min value and max value are valid if has_not_null is true
if (zone_map.has_not_null()) {
+ min_value_container->set_not_null();
+ max_value_container->set_not_null();
+
if (zone_map.has_negative_inf()) {
if (FieldType::OLAP_FIELD_TYPE_FLOAT == _meta_type) {
static auto constexpr float_neg_inf =
-std::numeric_limits<float>::infinity();
diff --git a/regression-test/data/query_p0/cache/condition_cache.out
b/regression-test/data/query_p0/cache/condition_cache.out
index e0a96b45741..6bcb15e9813 100644
--- a/regression-test/data/query_p0/cache/condition_cache.out
+++ b/regression-test/data/query_p0/cache/condition_cache.out
@@ -67,6 +67,7 @@
6 Frank 32 Engineering Team Lead
-- !cast_diff1 --
+Query A 4 2025-01-01T12:00:00.123499
-- !cast_diff2 --
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]