Skip to content

Commit a28e495

Browse files
authored
[Exec](scan) set not null in parse zone map if zone map not init (#59529)
1 parent 53d1288 commit a28e495

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

be/src/olap/rowset/segment_v2/column_reader.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,9 @@ Status ColumnReader::_parse_zone_map(const ZoneMapPB& zone_map, WrapperField* mi
534534
WrapperField* max_value_container) const {
535535
// min value and max value are valid if has_not_null is true
536536
if (zone_map.has_not_null()) {
537+
min_value_container->set_not_null();
538+
max_value_container->set_not_null();
539+
537540
if (zone_map.has_negative_inf()) {
538541
if (FieldType::OLAP_FIELD_TYPE_FLOAT == _meta_type) {
539542
static auto constexpr float_neg_inf = -std::numeric_limits<float>::infinity();

regression-test/data/query_p0/cache/condition_cache.out

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
6 Frank 32 Engineering Team Lead
6868

6969
-- !cast_diff1 --
70+
Query A 4 2025-01-01T12:00:00.123499
7071

7172
-- !cast_diff2 --
7273

0 commit comments

Comments
 (0)