/root/doris/be/src/exec/olap_common.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | |
18 | | #pragma once |
19 | | |
20 | | #include <gen_cpp/PaloInternalService_types.h> |
21 | | #include <glog/logging.h> |
22 | | #include <stddef.h> |
23 | | |
24 | | #include <boost/container/detail/std_fwd.hpp> |
25 | | #include <boost/lexical_cast.hpp> |
26 | | #include <cstdint> |
27 | | #include <iterator> |
28 | | #include <memory> |
29 | | #include <set> |
30 | | #include <sstream> |
31 | | #include <string> |
32 | | #include <utility> |
33 | | #include <variant> |
34 | | #include <vector> |
35 | | |
36 | | #include "common/status.h" |
37 | | #include "exec/olap_utils.h" |
38 | | #include "olap/olap_common.h" |
39 | | #include "olap/olap_tuple.h" |
40 | | #include "runtime/define_primitive_type.h" |
41 | | #include "runtime/primitive_type.h" |
42 | | #include "runtime/type_limit.h" |
43 | | #include "vec/core/types.h" |
44 | | #include "vec/io/io_helper.h" |
45 | | #include "vec/runtime/ipv4_value.h" |
46 | | #include "vec/runtime/ipv6_value.h" |
47 | | #include "vec/runtime/time_value.h" |
48 | | #include "vec/runtime/vdatetime_value.h" |
49 | | |
50 | | namespace doris { |
51 | | |
52 | | template <PrimitiveType primitive_type, class T> |
53 | 0 | std::string cast_to_string(T value, int scale) { |
54 | 0 | if constexpr (primitive_type == TYPE_DECIMAL32) { |
55 | 0 | return ((vectorized::Decimal<int32_t>)value).to_string(scale); |
56 | 0 | } else if constexpr (primitive_type == TYPE_DECIMAL64) { |
57 | 0 | return ((vectorized::Decimal<int64_t>)value).to_string(scale); |
58 | 0 | } else if constexpr (primitive_type == TYPE_DECIMAL128I) { |
59 | 0 | return ((vectorized::Decimal<int128_t>)value).to_string(scale); |
60 | 0 | } else if constexpr (primitive_type == TYPE_DECIMAL256) { |
61 | 0 | return ((vectorized::Decimal<wide::Int256>)value).to_string(scale); |
62 | 0 | } else if constexpr (primitive_type == TYPE_TINYINT) { |
63 | 0 | return std::to_string(static_cast<int>(value)); |
64 | 0 | } else if constexpr (primitive_type == TYPE_LARGEINT) { |
65 | 0 | return vectorized::int128_to_string(value); |
66 | 0 | } else if constexpr (primitive_type == TYPE_DATETIMEV2) { |
67 | 0 | DateV2Value<DateTimeV2ValueType> datetimev2_val = |
68 | 0 | static_cast<DateV2Value<DateTimeV2ValueType>>(value); |
69 | 0 | char buf[30]; |
70 | 0 | datetimev2_val.to_string(buf); |
71 | 0 | std::stringstream ss; |
72 | 0 | ss << buf; |
73 | 0 | return ss.str(); |
74 | 0 | } else if constexpr (primitive_type == TYPE_TIMEV2) { |
75 | 0 | return TimeValue::to_string(value, scale); |
76 | 0 | } else if constexpr (primitive_type == TYPE_IPV4) { |
77 | 0 | return IPv4Value::to_string(value); |
78 | 0 | } else if constexpr (primitive_type == TYPE_IPV6) { |
79 | 0 | return IPv6Value::to_string(value); |
80 | 0 | } else { |
81 | 0 | return boost::lexical_cast<std::string>(value); |
82 | 0 | } |
83 | 0 | } Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE11ENS_16VecDateTimeValueEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE12ENS_16VecDateTimeValueEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE30EnEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE3EaEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE4EsEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE5EiEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE6ElEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE7EnEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE36EjEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE37EoEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE15ENS_9StringRefEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE10ENS_9StringRefEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE23ENS_9StringRefEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE25ENS_11DateV2ValueINS_15DateV2ValueTypeEEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE26ENS_11DateV2ValueINS_19DateTimeV2ValueTypeEEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE20ENS_14DecimalV2ValueEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE2EbEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE19ENS_9StringRefEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE28ENS_10vectorized7DecimalIiEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE29ENS_10vectorized7DecimalIlEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE30ENS_10vectorized12Decimal128V3EEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE35ENS_10vectorized7DecimalIN4wide7integerILm256EiEEEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i Unexecuted instantiation: _ZN5doris14cast_to_stringILNS_13PrimitiveTypeE27EdEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEET0_i |
84 | | |
85 | | /** |
86 | | * @brief Column's value range |
87 | | **/ |
88 | | template <PrimitiveType primitive_type> |
89 | | class ColumnValueRange { |
90 | | public: |
91 | | using CppType = typename PrimitiveTypeTraits<primitive_type>::CppType; |
92 | | using IteratorType = typename std::set<CppType>::iterator; |
93 | | |
94 | | ColumnValueRange(); |
95 | | |
96 | | ColumnValueRange(std::string col_name); |
97 | | |
98 | | ColumnValueRange(std::string col_name, const CppType& min, const CppType& max, |
99 | | bool contain_null); |
100 | | |
101 | | ColumnValueRange(std::string col_name, int precision, int scale); |
102 | | |
103 | | ColumnValueRange(std::string col_name, bool is_nullable_col, int precision, int scale); |
104 | | |
105 | | ColumnValueRange(std::string col_name, const CppType& min, const CppType& max, |
106 | | bool is_nullable_col, bool contain_null, int precision, int scale); |
107 | | |
108 | | // should add fixed value before add range |
109 | | Status add_fixed_value(const CppType& value); |
110 | | |
111 | | // should remove fixed value after add fixed value |
112 | | void remove_fixed_value(const CppType& value); |
113 | | |
114 | | Status add_range(SQLFilterOp op, CppType value); |
115 | | |
116 | | bool is_fixed_value_range() const; |
117 | | |
118 | | bool is_scope_value_range() const; |
119 | | |
120 | | bool is_empty_value_range() const; |
121 | | |
122 | | bool is_fixed_value_convertible() const; |
123 | | |
124 | | bool is_range_value_convertible() const; |
125 | | |
126 | | size_t get_convertible_fixed_value_size() const; |
127 | | |
128 | | void convert_to_fixed_value(); |
129 | | |
130 | | void convert_to_range_value(); |
131 | | |
132 | | bool convert_to_avg_range_value(std::vector<OlapTuple>& begin_scan_keys, |
133 | | std::vector<OlapTuple>& end_scan_keys, bool& begin_include, |
134 | | bool& end_include, int32_t max_scan_key_num); |
135 | | |
136 | | bool convert_to_close_range(std::vector<OlapTuple>& begin_scan_keys, |
137 | | std::vector<OlapTuple>& end_scan_keys, bool& begin_include, |
138 | | bool& end_include); |
139 | | |
140 | 0 | constexpr bool is_reject_split_type() const { return _is_reject_split_type; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE20is_reject_split_typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE20is_reject_split_typeEv |
141 | | |
142 | | bool has_intersection(ColumnValueRange<primitive_type>& range); |
143 | | |
144 | | void intersection(ColumnValueRange<primitive_type>& range); |
145 | | |
146 | 0 | void set_empty_value_range() { |
147 | 0 | _fixed_values.clear(); |
148 | 0 | _low_value = TYPE_MAX; |
149 | 0 | _high_value = TYPE_MIN; |
150 | 0 | _contain_null = false; |
151 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE21set_empty_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE21set_empty_value_rangeEv |
152 | | |
153 | 0 | const std::set<CppType>& get_fixed_value_set() const { return _fixed_values; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE19get_fixed_value_setEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE19get_fixed_value_setEv |
154 | | |
155 | 0 | CppType get_range_max_value() const { return _high_value; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE19get_range_max_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE19get_range_max_valueEv |
156 | | |
157 | 0 | CppType get_range_min_value() const { return _low_value; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE19get_range_min_valueEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE19get_range_min_valueEv |
158 | | |
159 | 0 | const CppType* get_range_max_value_ptr() const { return &_high_value; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE23get_range_max_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE23get_range_max_value_ptrEv |
160 | | |
161 | 0 | const CppType* get_range_min_value_ptr() const { return &_low_value; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE23get_range_min_value_ptrEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE23get_range_min_value_ptrEv |
162 | | |
163 | 0 | SQLFilterOp get_range_high_op() const { return _high_op; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE17get_range_high_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE17get_range_high_opEv |
164 | | |
165 | 0 | SQLFilterOp get_range_low_op() const { return _low_op; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE16get_range_low_opEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE16get_range_low_opEv |
166 | | |
167 | 0 | bool is_low_value_mininum() const { return _low_value == TYPE_MIN; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE20is_low_value_mininumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE20is_low_value_mininumEv |
168 | | |
169 | | bool is_low_value_maximum() const { return _low_value == TYPE_MAX; } |
170 | | |
171 | 0 | bool is_high_value_maximum() const { return _high_value == TYPE_MAX; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE21is_high_value_maximumEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE21is_high_value_maximumEv |
172 | | |
173 | | bool is_high_value_mininum() const { return _high_value == TYPE_MIN; } |
174 | | |
175 | 0 | bool is_begin_include() const { return _low_op == FILTER_LARGER_OR_EQUAL; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE16is_begin_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE16is_begin_includeEv |
176 | | |
177 | 0 | bool is_end_include() const { return _high_op == FILTER_LESS_OR_EQUAL; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE14is_end_includeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE14is_end_includeEv |
178 | | |
179 | 0 | PrimitiveType type() const { return _column_type; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE4typeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE4typeEv |
180 | | |
181 | 0 | const std::string& column_name() const { return _column_name; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE11column_nameB5cxx11Ev Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE11column_nameB5cxx11Ev |
182 | | |
183 | | bool is_nullable_col() const { return _is_nullable_col; } |
184 | | |
185 | 0 | bool contain_null() const { return _contain_null; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE12contain_nullEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE12contain_nullEv |
186 | | |
187 | 0 | size_t get_fixed_value_size() const { return _fixed_values.size(); } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE20get_fixed_value_sizeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE20get_fixed_value_sizeEv |
188 | | |
189 | 0 | void to_olap_filter(std::vector<TCondition>& filters) { |
190 | 0 | if (is_fixed_value_range()) { |
191 | | // 1. convert to in filter condition |
192 | 0 | to_in_condition(filters, true); |
193 | 0 | } else if (_low_value < _high_value) { |
194 | | // 2. convert to min max filter condition |
195 | 0 | TCondition null_pred; |
196 | 0 | if (TYPE_MAX == _high_value && _high_op == FILTER_LESS_OR_EQUAL && |
197 | 0 | TYPE_MIN == _low_value && _low_op == FILTER_LARGER_OR_EQUAL && _is_nullable_col && |
198 | 0 | !contain_null()) { |
199 | 0 | null_pred.__set_column_name(_column_name); |
200 | 0 | null_pred.__set_condition_op("is"); |
201 | 0 | null_pred.condition_values.emplace_back("not null"); |
202 | 0 | } |
203 | |
|
204 | 0 | if (null_pred.condition_values.size() != 0) { |
205 | 0 | filters.push_back(std::move(null_pred)); |
206 | 0 | return; |
207 | 0 | } |
208 | | |
209 | 0 | TCondition low; |
210 | 0 | if (TYPE_MIN != _low_value || FILTER_LARGER_OR_EQUAL != _low_op) { |
211 | 0 | low.__set_column_name(_column_name); |
212 | 0 | low.__set_condition_op((_low_op == FILTER_LARGER_OR_EQUAL ? ">=" : ">>")); |
213 | 0 | low.__set_marked_by_runtime_filter(_marked_runtime_filter_predicate); |
214 | 0 | low.condition_values.push_back( |
215 | 0 | cast_to_string<primitive_type, CppType>(_low_value, _scale)); |
216 | 0 | } |
217 | |
|
218 | 0 | if (low.condition_values.size() != 0) { |
219 | 0 | filters.push_back(std::move(low)); |
220 | 0 | } |
221 | |
|
222 | 0 | TCondition high; |
223 | 0 | if (TYPE_MAX != _high_value || FILTER_LESS_OR_EQUAL != _high_op) { |
224 | 0 | high.__set_column_name(_column_name); |
225 | 0 | high.__set_condition_op((_high_op == FILTER_LESS_OR_EQUAL ? "<=" : "<<")); |
226 | 0 | high.__set_marked_by_runtime_filter(_marked_runtime_filter_predicate); |
227 | 0 | high.condition_values.push_back( |
228 | 0 | cast_to_string<primitive_type, CppType>(_high_value, _scale)); |
229 | 0 | } |
230 | |
|
231 | 0 | if (high.condition_values.size() != 0) { |
232 | 0 | filters.push_back(std::move(high)); |
233 | 0 | } |
234 | 0 | } else { |
235 | | // 3. convert to is null and is not null filter condition |
236 | 0 | TCondition null_pred; |
237 | 0 | if (TYPE_MAX == _low_value && TYPE_MIN == _high_value && _is_nullable_col && |
238 | 0 | contain_null()) { |
239 | 0 | null_pred.__set_column_name(_column_name); |
240 | 0 | null_pred.__set_condition_op("is"); |
241 | 0 | null_pred.condition_values.emplace_back("null"); |
242 | 0 | } |
243 | |
|
244 | 0 | if (null_pred.condition_values.size() != 0) { |
245 | 0 | filters.push_back(std::move(null_pred)); |
246 | 0 | } |
247 | 0 | } |
248 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE14to_olap_filterERSt6vectorINS_10TConditionESaIS4_EE |
249 | | |
250 | 0 | void to_in_condition(std::vector<TCondition>& filters, bool is_in = true) { |
251 | 0 | TCondition condition; |
252 | 0 | condition.__set_column_name(_column_name); |
253 | 0 | condition.__set_condition_op(is_in ? "*=" : "!*="); |
254 | 0 | condition.__set_marked_by_runtime_filter(_marked_runtime_filter_predicate); |
255 | |
|
256 | 0 | for (const auto& value : _fixed_values) { |
257 | 0 | condition.condition_values.push_back( |
258 | 0 | cast_to_string<primitive_type, CppType>(value, _scale)); |
259 | 0 | } |
260 | |
|
261 | 0 | if (condition.condition_values.size() != 0) { |
262 | 0 | filters.push_back(std::move(condition)); |
263 | 0 | } |
264 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE15to_in_conditionERSt6vectorINS_10TConditionESaIS4_EEb |
265 | | |
266 | 0 | void set_whole_value_range() { |
267 | 0 | _fixed_values.clear(); |
268 | 0 | _low_value = TYPE_MIN; |
269 | 0 | _high_value = TYPE_MAX; |
270 | 0 | _low_op = FILTER_LARGER_OR_EQUAL; |
271 | 0 | _high_op = FILTER_LESS_OR_EQUAL; |
272 | 0 | _contain_null = _is_nullable_col; |
273 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE21set_whole_value_rangeEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE21set_whole_value_rangeEv |
274 | | |
275 | 0 | bool is_whole_value_range() const { |
276 | 0 | DCHECK(_is_nullable_col || !contain_null()) |
277 | 0 | << "Non-nullable column cannot contains null value"; |
278 | |
|
279 | 0 | return _fixed_values.empty() && _low_value == TYPE_MIN && _high_value == TYPE_MAX && |
280 | 0 | _low_op == FILTER_LARGER_OR_EQUAL && _high_op == FILTER_LESS_OR_EQUAL && |
281 | 0 | _is_nullable_col == contain_null(); |
282 | 0 | } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE20is_whole_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE20is_whole_value_rangeEv |
283 | | |
284 | | // only two case will set range contain null, call by temp_range in olap scan node |
285 | | // 'is null' and 'is not null' |
286 | | // 1. if the pred is 'is null' means the range should be |
287 | | // empty in fixed_range and _high_value < _low_value |
288 | | // 2. if the pred is 'is not null' means the range should be whole range and |
289 | | // 'is not null' be effective |
290 | 0 | void set_contain_null(bool contain_null) { |
291 | 0 | if (contain_null) { |
292 | 0 | set_empty_value_range(); |
293 | 0 | } else { |
294 | 0 | set_whole_value_range(); |
295 | 0 | } |
296 | 0 | _contain_null = _is_nullable_col && contain_null; |
297 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE16set_contain_nullEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE16set_contain_nullEb |
298 | | |
299 | 0 | void mark_runtime_filter_predicate(bool is_runtime_filter_predicate) { |
300 | 0 | _marked_runtime_filter_predicate = is_runtime_filter_predicate; |
301 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE29mark_runtime_filter_predicateEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE29mark_runtime_filter_predicateEb |
302 | | |
303 | | bool get_marked_by_runtime_filter() const { return _marked_runtime_filter_predicate; } |
304 | | |
305 | 0 | int precision() const { return _precision; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE9precisionEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE9precisionEv |
306 | | |
307 | 0 | int scale() const { return _scale; } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE5scaleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE5scaleEv |
308 | | |
309 | 0 | static void add_fixed_value_range(ColumnValueRange<primitive_type>& range, CppType* value) { |
310 | 0 | static_cast<void>(range.add_fixed_value(*value)); |
311 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE21add_fixed_value_rangeERS2_Pa Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE21add_fixed_value_rangeERS2_Ps Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE21add_fixed_value_rangeERS2_Pi Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE21add_fixed_value_rangeERS2_Pl Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE21add_fixed_value_rangeERS2_Pn Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE21add_fixed_value_rangeERS2_Pj Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE21add_fixed_value_rangeERS2_Po Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE21add_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE21add_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE21add_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE21add_fixed_value_rangeERS2_PNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE21add_fixed_value_rangeERS2_PNS_11DateV2ValueINS_15DateV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE21add_fixed_value_rangeERS2_PNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE21add_fixed_value_rangeERS2_PNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE21add_fixed_value_rangeERS2_PNS_14DecimalV2ValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE21add_fixed_value_rangeERS2_Pb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE21add_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE21add_fixed_value_rangeERS2_PNS_10vectorized7DecimalIiEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE21add_fixed_value_rangeERS2_PNS_10vectorized7DecimalIlEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE21add_fixed_value_rangeERS2_PNS_10vectorized12Decimal128V3E Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE21add_fixed_value_rangeERS2_PNS_10vectorized7DecimalIN4wide7integerILm256EiEEEE |
312 | | |
313 | 0 | static void remove_fixed_value_range(ColumnValueRange<primitive_type>& range, CppType* value) { |
314 | 0 | range.remove_fixed_value(*value); |
315 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE24remove_fixed_value_rangeERS2_Pa Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE24remove_fixed_value_rangeERS2_Ps Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE24remove_fixed_value_rangeERS2_Pi Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE24remove_fixed_value_rangeERS2_Pl Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE24remove_fixed_value_rangeERS2_Pn Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE24remove_fixed_value_rangeERS2_Pj Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE24remove_fixed_value_rangeERS2_Po Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE24remove_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE24remove_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE24remove_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE24remove_fixed_value_rangeERS2_PNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE24remove_fixed_value_rangeERS2_PNS_11DateV2ValueINS_15DateV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE24remove_fixed_value_rangeERS2_PNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE24remove_fixed_value_rangeERS2_PNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE24remove_fixed_value_rangeERS2_PNS_14DecimalV2ValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE24remove_fixed_value_rangeERS2_Pb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE24remove_fixed_value_rangeERS2_PNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE24remove_fixed_value_rangeERS2_PNS_10vectorized7DecimalIiEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE24remove_fixed_value_rangeERS2_PNS_10vectorized7DecimalIlEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE24remove_fixed_value_rangeERS2_PNS_10vectorized12Decimal128V3E Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE24remove_fixed_value_rangeERS2_PNS_10vectorized7DecimalIN4wide7integerILm256EiEEEE |
316 | | |
317 | | static void add_value_range(ColumnValueRange<primitive_type>& range, SQLFilterOp op, |
318 | 0 | CppType* value) { |
319 | 0 | static_cast<void>(range.add_range(op, *value)); |
320 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE15add_value_rangeERS2_NS_11SQLFilterOpEPa Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE15add_value_rangeERS2_NS_11SQLFilterOpEPs Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE15add_value_rangeERS2_NS_11SQLFilterOpEPi Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE15add_value_rangeERS2_NS_11SQLFilterOpEPl Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE15add_value_rangeERS2_NS_11SQLFilterOpEPn Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE15add_value_rangeERS2_NS_11SQLFilterOpEPj Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE15add_value_rangeERS2_NS_11SQLFilterOpEPo Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_11DateV2ValueINS_15DateV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_14DecimalV2ValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE15add_value_rangeERS2_NS_11SQLFilterOpEPb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_10vectorized7DecimalIiEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_10vectorized7DecimalIlEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_10vectorized12Decimal128V3E Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE15add_value_rangeERS2_NS_11SQLFilterOpEPNS_10vectorized7DecimalIN4wide7integerILm256EiEEEE |
321 | | |
322 | | static ColumnValueRange<primitive_type> create_empty_column_value_range(bool is_nullable_col, |
323 | | int precision, |
324 | 0 | int scale) { |
325 | 0 | return ColumnValueRange<primitive_type>::create_empty_column_value_range( |
326 | 0 | "", is_nullable_col, precision, scale); |
327 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE31create_empty_column_value_rangeEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE31create_empty_column_value_rangeEbii |
328 | | |
329 | | static ColumnValueRange<primitive_type> create_empty_column_value_range( |
330 | 0 | const std::string& col_name, bool is_nullable_col, int precision, int scale) { |
331 | 0 | return ColumnValueRange<primitive_type>(col_name, TYPE_MAX, TYPE_MIN, is_nullable_col, |
332 | 0 | false, precision, scale); |
333 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE31create_empty_column_value_rangeERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii |
334 | | |
335 | | protected: |
336 | | bool is_in_range(const CppType& value); |
337 | | |
338 | | private: |
339 | | const static CppType TYPE_MIN; // Column type's min value |
340 | | const static CppType TYPE_MAX; // Column type's max value |
341 | | |
342 | | std::string _column_name; |
343 | | PrimitiveType _column_type; // Column type (eg: TINYINT,SMALLINT,INT,BIGINT) |
344 | | CppType _low_value; // Column's low value, closed interval at left |
345 | | CppType _high_value; // Column's high value, open interval at right |
346 | | SQLFilterOp _low_op; |
347 | | SQLFilterOp _high_op; |
348 | | std::set<CppType> _fixed_values; // Column's fixed int value |
349 | | |
350 | | bool _is_nullable_col; |
351 | | bool _contain_null; |
352 | | int _precision; |
353 | | int _scale; |
354 | | |
355 | | static constexpr bool _is_reject_split_type = primitive_type == PrimitiveType::TYPE_LARGEINT || |
356 | | primitive_type == PrimitiveType::TYPE_DECIMALV2 || |
357 | | primitive_type == PrimitiveType::TYPE_HLL || |
358 | | primitive_type == PrimitiveType::TYPE_VARCHAR || |
359 | | primitive_type == PrimitiveType::TYPE_CHAR || |
360 | | primitive_type == PrimitiveType::TYPE_STRING || |
361 | | primitive_type == PrimitiveType::TYPE_BOOLEAN || |
362 | | primitive_type == PrimitiveType::TYPE_DATETIME || |
363 | | primitive_type == PrimitiveType::TYPE_DATETIMEV2; |
364 | | |
365 | | bool _marked_runtime_filter_predicate = false; |
366 | | }; |
367 | | |
368 | | class OlapScanKeys { |
369 | | public: |
370 | | OlapScanKeys() |
371 | | : _has_range_value(false), |
372 | | _begin_include(true), |
373 | | _end_include(true), |
374 | 0 | _is_convertible(true) {} |
375 | | |
376 | | template <PrimitiveType primitive_type> |
377 | | Status extend_scan_key(ColumnValueRange<primitive_type>& range, int32_t max_scan_key_num, |
378 | | bool* exact_value, bool* eos, bool* should_break); |
379 | | |
380 | | Status get_key_range(std::vector<std::unique_ptr<OlapScanRange>>* key_range); |
381 | | |
382 | 0 | bool has_range_value() const { return _has_range_value; } |
383 | | |
384 | 0 | void clear() { |
385 | 0 | _has_range_value = false; |
386 | 0 | _begin_scan_keys.clear(); |
387 | 0 | _end_scan_keys.clear(); |
388 | 0 | } |
389 | | |
390 | 0 | std::string debug_string() { |
391 | 0 | std::stringstream ss; |
392 | 0 | DCHECK(_begin_scan_keys.size() == _end_scan_keys.size()); |
393 | 0 | ss << "ScanKeys:"; |
394 | |
|
395 | 0 | for (int i = 0; i < _begin_scan_keys.size(); ++i) { |
396 | 0 | ss << "ScanKey=" << (_begin_include ? "[" : "(") << _begin_scan_keys[i] << " : " |
397 | 0 | << _end_scan_keys[i] << (_end_include ? "]" : ")"); |
398 | 0 | } |
399 | 0 | return ss.str(); |
400 | 0 | } |
401 | | |
402 | 0 | size_t size() { |
403 | 0 | DCHECK(_begin_scan_keys.size() == _end_scan_keys.size()); |
404 | 0 | return _begin_scan_keys.size(); |
405 | 0 | } |
406 | | |
407 | 0 | void set_begin_include(bool begin_include) { _begin_include = begin_include; } |
408 | | |
409 | 0 | bool begin_include() const { return _begin_include; } |
410 | | |
411 | 0 | void set_end_include(bool end_include) { _end_include = end_include; } |
412 | | |
413 | 0 | bool end_include() const { return _end_include; } |
414 | | |
415 | 0 | void set_is_convertible(bool is_convertible) { _is_convertible = is_convertible; } |
416 | | |
417 | | // now, only use in UT |
418 | 0 | static std::string to_print_key(const OlapTuple& scan_keys) { |
419 | 0 | std::stringstream sstream; |
420 | 0 | sstream << scan_keys; |
421 | 0 | return sstream.str(); |
422 | 0 | } |
423 | | |
424 | | private: |
425 | | std::vector<OlapTuple> _begin_scan_keys; |
426 | | std::vector<OlapTuple> _end_scan_keys; |
427 | | bool _has_range_value; |
428 | | bool _begin_include; |
429 | | bool _end_include; |
430 | | bool _is_convertible; |
431 | | }; |
432 | | |
433 | | using ColumnValueRangeType = std::variant< |
434 | | ColumnValueRange<TYPE_TINYINT>, ColumnValueRange<TYPE_SMALLINT>, ColumnValueRange<TYPE_INT>, |
435 | | ColumnValueRange<TYPE_BIGINT>, ColumnValueRange<TYPE_LARGEINT>, ColumnValueRange<TYPE_IPV4>, |
436 | | ColumnValueRange<TYPE_IPV6>, ColumnValueRange<TYPE_CHAR>, ColumnValueRange<TYPE_VARCHAR>, |
437 | | ColumnValueRange<TYPE_STRING>, ColumnValueRange<TYPE_DATE>, ColumnValueRange<TYPE_DATEV2>, |
438 | | ColumnValueRange<TYPE_DATETIME>, ColumnValueRange<TYPE_DATETIMEV2>, |
439 | | ColumnValueRange<TYPE_DECIMALV2>, ColumnValueRange<TYPE_BOOLEAN>, |
440 | | ColumnValueRange<TYPE_HLL>, ColumnValueRange<TYPE_DECIMAL32>, |
441 | | ColumnValueRange<TYPE_DECIMAL64>, ColumnValueRange<TYPE_DECIMAL128I>, |
442 | | ColumnValueRange<TYPE_DECIMAL256>>; |
443 | | |
444 | | template <PrimitiveType primitive_type> |
445 | | const typename ColumnValueRange<primitive_type>::CppType |
446 | | ColumnValueRange<primitive_type>::TYPE_MIN = |
447 | | type_limit<typename ColumnValueRange<primitive_type>::CppType>::min(); |
448 | | template <PrimitiveType primitive_type> |
449 | | const typename ColumnValueRange<primitive_type>::CppType |
450 | | ColumnValueRange<primitive_type>::TYPE_MAX = |
451 | | type_limit<typename ColumnValueRange<primitive_type>::CppType>::max(); |
452 | | |
453 | | template <PrimitiveType primitive_type> |
454 | | ColumnValueRange<primitive_type>::ColumnValueRange() |
455 | 0 | : _column_type(INVALID_TYPE), _precision(-1), _scale(-1) {} |
456 | | |
457 | | template <PrimitiveType primitive_type> |
458 | | ColumnValueRange<primitive_type>::ColumnValueRange(std::string col_name) |
459 | | : ColumnValueRange(std::move(col_name), TYPE_MIN, TYPE_MAX, true) {} |
460 | | |
461 | | template <PrimitiveType primitive_type> |
462 | | ColumnValueRange<primitive_type>::ColumnValueRange(std::string col_name, const CppType& min, |
463 | | const CppType& max, bool contain_null) |
464 | | : _column_name(std::move(col_name)), |
465 | | _column_type(primitive_type), |
466 | | _low_value(min), |
467 | | _high_value(max), |
468 | | _low_op(FILTER_LARGER_OR_EQUAL), |
469 | | _high_op(FILTER_LESS_OR_EQUAL), |
470 | | _is_nullable_col(true), |
471 | | _contain_null(contain_null), |
472 | | _precision(-1), |
473 | | _scale(-1) {} |
474 | | |
475 | | template <PrimitiveType primitive_type> |
476 | | ColumnValueRange<primitive_type>::ColumnValueRange(std::string col_name, const CppType& min, |
477 | | const CppType& max, bool is_nullable_col, |
478 | | bool contain_null, int precision, int scale) |
479 | | : _column_name(std::move(col_name)), |
480 | | _column_type(primitive_type), |
481 | | _low_value(min), |
482 | | _high_value(max), |
483 | | _low_op(FILTER_LARGER_OR_EQUAL), |
484 | | _high_op(FILTER_LESS_OR_EQUAL), |
485 | | _is_nullable_col(is_nullable_col), |
486 | | _contain_null(is_nullable_col && contain_null), |
487 | | _precision(precision), |
488 | 0 | _scale(scale) {} Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKaSA_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKsSA_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKiSA_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKlSA_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKnSA_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9StringRefESB_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_16VecDateTimeValueESB_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_16VecDateTimeValueESB_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_11DateV2ValueINS_15DateV2ValueTypeEEESD_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEESD_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9StringRefESB_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9StringRefESB_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_9StringRefESB_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_10vectorized7DecimalIiEESD_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_10vectorized7DecimalIlEESD_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_10vectorized12Decimal128V3ESC_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_10vectorized7DecimalIN4wide7integerILm256EiEEEESG_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKNS_14DecimalV2ValueESB_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKbSA_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKjSA_bbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEERKoSA_bbii |
489 | | |
490 | | template <PrimitiveType primitive_type> |
491 | | ColumnValueRange<primitive_type>::ColumnValueRange(std::string col_name, int precision, int scale) |
492 | | : ColumnValueRange(std::move(col_name), TYPE_MIN, TYPE_MAX, true, true, precision, scale) {} |
493 | | |
494 | | template <PrimitiveType primitive_type> |
495 | | ColumnValueRange<primitive_type>::ColumnValueRange(std::string col_name, bool is_nullable_col, |
496 | | int precision, int scale) |
497 | | : ColumnValueRange(std::move(col_name), TYPE_MIN, TYPE_MAX, is_nullable_col, |
498 | 0 | is_nullable_col, precision, scale) {} Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EEC2ENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEbii |
499 | | |
500 | | template <PrimitiveType primitive_type> |
501 | 0 | Status ColumnValueRange<primitive_type>::add_fixed_value(const CppType& value) { |
502 | 0 | if (INVALID_TYPE == _column_type) { |
503 | 0 | return Status::InternalError("AddFixedValue failed, Invalid type"); |
504 | 0 | } |
505 | | |
506 | 0 | _fixed_values.insert(value); |
507 | 0 | _contain_null = false; |
508 | |
|
509 | 0 | _high_value = TYPE_MIN; |
510 | 0 | _low_value = TYPE_MAX; |
511 | |
|
512 | 0 | return Status::OK(); |
513 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE15add_fixed_valueERKa Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE15add_fixed_valueERKs Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE15add_fixed_valueERKi Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE15add_fixed_valueERKl Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE15add_fixed_valueERKn Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE15add_fixed_valueERKj Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE15add_fixed_valueERKo Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE15add_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE15add_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE15add_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE15add_fixed_valueERKNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE15add_fixed_valueERKNS_11DateV2ValueINS_15DateV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE15add_fixed_valueERKNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE15add_fixed_valueERKNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE15add_fixed_valueERKNS_14DecimalV2ValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE15add_fixed_valueERKb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE15add_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE15add_fixed_valueERKNS_10vectorized7DecimalIiEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE15add_fixed_valueERKNS_10vectorized7DecimalIlEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE15add_fixed_valueERKNS_10vectorized12Decimal128V3E Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE15add_fixed_valueERKNS_10vectorized7DecimalIN4wide7integerILm256EiEEEE |
514 | | |
515 | | template <PrimitiveType primitive_type> |
516 | 0 | void ColumnValueRange<primitive_type>::remove_fixed_value(const CppType& value) { |
517 | 0 | _fixed_values.erase(value); |
518 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE18remove_fixed_valueERKa Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE18remove_fixed_valueERKs Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE18remove_fixed_valueERKi Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE18remove_fixed_valueERKl Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE18remove_fixed_valueERKn Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE18remove_fixed_valueERKj Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE18remove_fixed_valueERKo Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE18remove_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE18remove_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE18remove_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE18remove_fixed_valueERKNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE18remove_fixed_valueERKNS_11DateV2ValueINS_15DateV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE18remove_fixed_valueERKNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE18remove_fixed_valueERKNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE18remove_fixed_valueERKNS_14DecimalV2ValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE18remove_fixed_valueERKb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE18remove_fixed_valueERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE18remove_fixed_valueERKNS_10vectorized7DecimalIiEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE18remove_fixed_valueERKNS_10vectorized7DecimalIlEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE18remove_fixed_valueERKNS_10vectorized12Decimal128V3E Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE18remove_fixed_valueERKNS_10vectorized7DecimalIN4wide7integerILm256EiEEEE |
519 | | |
520 | | template <PrimitiveType primitive_type> |
521 | 0 | bool ColumnValueRange<primitive_type>::is_fixed_value_range() const { |
522 | 0 | return _fixed_values.size() != 0; |
523 | 0 | } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE20is_fixed_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE20is_fixed_value_rangeEv |
524 | | |
525 | | template <PrimitiveType primitive_type> |
526 | 0 | bool ColumnValueRange<primitive_type>::is_scope_value_range() const { |
527 | 0 | return _high_value > _low_value; |
528 | 0 | } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE20is_scope_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE20is_scope_value_rangeEv |
529 | | |
530 | | template <PrimitiveType primitive_type> |
531 | 0 | bool ColumnValueRange<primitive_type>::is_empty_value_range() const { |
532 | 0 | if (INVALID_TYPE == _column_type) { |
533 | 0 | return true; |
534 | 0 | } |
535 | | |
536 | 0 | return (!is_fixed_value_range() && !is_scope_value_range() && !contain_null()); |
537 | 0 | } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE20is_empty_value_rangeEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE20is_empty_value_rangeEv |
538 | | |
539 | | template <PrimitiveType primitive_type> |
540 | 0 | bool ColumnValueRange<primitive_type>::is_fixed_value_convertible() const { |
541 | 0 | if (is_fixed_value_range()) { |
542 | 0 | return false; |
543 | 0 | } |
544 | | |
545 | 0 | if (!is_enumeration_type(_column_type)) { |
546 | 0 | return false; |
547 | 0 | } |
548 | | |
549 | 0 | return true; |
550 | 0 | } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE26is_fixed_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE26is_fixed_value_convertibleEv |
551 | | |
552 | | template <PrimitiveType primitive_type> |
553 | 0 | bool ColumnValueRange<primitive_type>::is_range_value_convertible() const { |
554 | 0 | if (!is_fixed_value_range()) { |
555 | 0 | return false; |
556 | 0 | } |
557 | | |
558 | 0 | if (TYPE_NULL == _column_type || TYPE_BOOLEAN == _column_type) { |
559 | 0 | return false; |
560 | 0 | } |
561 | | |
562 | 0 | return true; |
563 | 0 | } Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE26is_range_value_convertibleEv Unexecuted instantiation: _ZNK5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE26is_range_value_convertibleEv |
564 | | |
565 | | template <PrimitiveType primitive_type> |
566 | | size_t ColumnValueRange<primitive_type>::get_convertible_fixed_value_size() const { |
567 | | if (!is_fixed_value_convertible()) { |
568 | | return 0; |
569 | | } |
570 | | |
571 | | return _high_value - _low_value; |
572 | | } |
573 | | |
574 | | // The return value indicates whether eos. |
575 | | template <PrimitiveType primitive_type> |
576 | | bool ColumnValueRange<primitive_type>::convert_to_close_range( |
577 | | std::vector<OlapTuple>& begin_scan_keys, std::vector<OlapTuple>& end_scan_keys, |
578 | 0 | bool& begin_include, bool& end_include) { |
579 | 0 | if constexpr (!_is_reject_split_type) { |
580 | 0 | begin_include = true; |
581 | 0 | end_include = true; |
582 | |
|
583 | 0 | bool is_empty = false; |
584 | |
|
585 | 0 | if (!is_begin_include()) { |
586 | 0 | if (_low_value == TYPE_MAX) { |
587 | 0 | is_empty = true; |
588 | 0 | } else { |
589 | 0 | ++_low_value; |
590 | 0 | } |
591 | 0 | } |
592 | |
|
593 | 0 | if (!is_end_include()) { |
594 | 0 | if (_high_value == TYPE_MIN) { |
595 | 0 | is_empty = true; |
596 | 0 | } else { |
597 | 0 | --_high_value; |
598 | 0 | } |
599 | 0 | } |
600 | |
|
601 | 0 | if (_high_value < _low_value) { |
602 | 0 | is_empty = true; |
603 | 0 | } |
604 | |
|
605 | 0 | if (is_empty && !contain_null()) { |
606 | 0 | begin_scan_keys.clear(); |
607 | 0 | end_scan_keys.clear(); |
608 | 0 | return true; |
609 | 0 | } |
610 | 0 | } |
611 | 0 | return false; |
612 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE22convert_to_close_rangeERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_ |
613 | | |
614 | | // The return value indicates whether the split result is range or fixed value. |
615 | | template <PrimitiveType primitive_type> |
616 | | bool ColumnValueRange<primitive_type>::convert_to_avg_range_value( |
617 | | std::vector<OlapTuple>& begin_scan_keys, std::vector<OlapTuple>& end_scan_keys, |
618 | 0 | bool& begin_include, bool& end_include, int32_t max_scan_key_num) { |
619 | 0 | if constexpr (!_is_reject_split_type) { |
620 | 0 | CppType min_value = get_range_min_value(); |
621 | 0 | CppType max_value = get_range_max_value(); |
622 | 0 | if constexpr (primitive_type == PrimitiveType::TYPE_DATE) { |
623 | 0 | min_value.set_type(TimeType::TIME_DATE); |
624 | 0 | max_value.set_type(TimeType::TIME_DATE); |
625 | 0 | } |
626 | 0 | auto empty_range_only_null = min_value > max_value; |
627 | 0 | if (empty_range_only_null) { |
628 | | // Not contain null will be disposed in `convert_to_close_range`, return eos. |
629 | 0 | DCHECK(contain_null()); |
630 | 0 | } |
631 | |
|
632 | 0 | auto no_split = [&]() -> bool { |
633 | 0 | begin_scan_keys.emplace_back(); |
634 | 0 | begin_scan_keys.back().add_value( |
635 | 0 | cast_to_string<primitive_type, CppType>(get_range_min_value(), scale()), |
636 | 0 | contain_null()); |
637 | 0 | end_scan_keys.emplace_back(); |
638 | 0 | end_scan_keys.back().add_value( |
639 | 0 | cast_to_string<primitive_type, CppType>(get_range_max_value(), scale()), |
640 | 0 | empty_range_only_null ? true : false); |
641 | 0 | return true; |
642 | 0 | }; Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlvE_clEv |
643 | 0 | if (empty_range_only_null || max_scan_key_num == 1) { |
644 | 0 | return no_split(); |
645 | 0 | } |
646 | | |
647 | 0 | auto cast = [](const CppType& value) { |
648 | 0 | if constexpr (primitive_type == PrimitiveType::TYPE_DATE || |
649 | 0 | primitive_type == PrimitiveType::TYPE_DATEV2) { |
650 | 0 | return value; |
651 | 0 | } else { |
652 | 0 | return (int128_t)value; |
653 | 0 | } |
654 | 0 | }; Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKaE_clESA_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKsE_clESA_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKiE_clESA_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKlE_clESA_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKjE_clESA_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKoE_clESA_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKNS_16VecDateTimeValueEE_clESB_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKNS_11DateV2ValueINS_15DateV2ValueTypeEEEE_clESD_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKNS_10vectorized7DecimalIiEEE_clESD_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKNS_10vectorized7DecimalIlEEE_clESD_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKNS_10vectorized12Decimal128V3EE_clESC_ Unexecuted instantiation: _ZZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_iENKUlRKNS_10vectorized7DecimalIN4wide7integerILm256EiEEEEE_clESG_ |
655 | | |
656 | | // When CppType is date, we can not convert it to integer number and calculate distance. |
657 | | // In other case, we convert element to int128 to avoit overflow. |
658 | 0 | size_t step_size = (cast(max_value) - min_value) / max_scan_key_num; |
659 | |
|
660 | 0 | constexpr size_t MAX_STEP_SIZE = 1 << 20; |
661 | | // When the step size is too large, the range is easy to not really contain data. |
662 | 0 | if (step_size > MAX_STEP_SIZE) { |
663 | 0 | return no_split(); |
664 | 0 | } |
665 | | |
666 | | // Add null key if contain null, must do after no_split check |
667 | 0 | if (contain_null()) { |
668 | 0 | begin_scan_keys.emplace_back(); |
669 | 0 | begin_scan_keys.back().add_null(); |
670 | 0 | end_scan_keys.emplace_back(); |
671 | 0 | end_scan_keys.back().add_null(); |
672 | 0 | } |
673 | 0 | while (true) { |
674 | 0 | begin_scan_keys.emplace_back(); |
675 | 0 | begin_scan_keys.back().add_value( |
676 | 0 | cast_to_string<primitive_type, CppType>(min_value, scale())); |
677 | |
|
678 | 0 | if (cast(max_value) - min_value < step_size) { |
679 | 0 | min_value = max_value; |
680 | 0 | } else { |
681 | 0 | min_value += step_size; |
682 | 0 | } |
683 | |
|
684 | 0 | end_scan_keys.emplace_back(); |
685 | 0 | end_scan_keys.back().add_value( |
686 | 0 | cast_to_string<primitive_type, CppType>(min_value, scale())); |
687 | |
|
688 | 0 | if (min_value == max_value) { |
689 | 0 | break; |
690 | 0 | } |
691 | 0 | ++min_value; |
692 | 0 | } |
693 | |
|
694 | 0 | return step_size != 0; |
695 | 0 | } |
696 | 0 | return false; |
697 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE26convert_to_avg_range_valueERSt6vectorINS_9OlapTupleESaIS4_EES7_RbS8_i |
698 | | |
699 | | template <PrimitiveType primitive_type> |
700 | 0 | void ColumnValueRange<primitive_type>::convert_to_range_value() { |
701 | 0 | if (!is_range_value_convertible()) { |
702 | 0 | return; |
703 | 0 | } |
704 | | |
705 | 0 | if (!_fixed_values.empty()) { |
706 | 0 | _low_value = *_fixed_values.begin(); |
707 | 0 | _low_op = FILTER_LARGER_OR_EQUAL; |
708 | 0 | _high_value = *_fixed_values.rbegin(); |
709 | 0 | _high_op = FILTER_LESS_OR_EQUAL; |
710 | 0 | _fixed_values.clear(); |
711 | 0 | } |
712 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE22convert_to_range_valueEv Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE22convert_to_range_valueEv |
713 | | |
714 | | template <PrimitiveType primitive_type> |
715 | 0 | Status ColumnValueRange<primitive_type>::add_range(SQLFilterOp op, CppType value) { |
716 | 0 | if (INVALID_TYPE == _column_type) { |
717 | 0 | return Status::InternalError("AddRange failed, Invalid type"); |
718 | 0 | } |
719 | | |
720 | | // add range means range should not contain null |
721 | 0 | _contain_null = false; |
722 | |
|
723 | 0 | if (is_fixed_value_range()) { |
724 | 0 | std::pair<IteratorType, IteratorType> bound_pair = _fixed_values.equal_range(value); |
725 | |
|
726 | 0 | switch (op) { |
727 | 0 | case FILTER_LARGER: { |
728 | 0 | _fixed_values.erase(_fixed_values.begin(), bound_pair.second); |
729 | 0 | break; |
730 | 0 | } |
731 | | |
732 | 0 | case FILTER_LARGER_OR_EQUAL: { |
733 | 0 | _fixed_values.erase(_fixed_values.begin(), bound_pair.first); |
734 | 0 | break; |
735 | 0 | } |
736 | | |
737 | 0 | case FILTER_LESS: { |
738 | 0 | if (bound_pair.first == _fixed_values.find(value)) { |
739 | 0 | _fixed_values.erase(bound_pair.first, _fixed_values.end()); |
740 | 0 | } else { |
741 | 0 | _fixed_values.erase(bound_pair.second, _fixed_values.end()); |
742 | 0 | } |
743 | |
|
744 | 0 | break; |
745 | 0 | } |
746 | | |
747 | 0 | case FILTER_LESS_OR_EQUAL: { |
748 | 0 | _fixed_values.erase(bound_pair.second, _fixed_values.end()); |
749 | 0 | break; |
750 | 0 | } |
751 | | |
752 | 0 | default: { |
753 | 0 | return Status::InternalError("Add Range fail! Unsupported SQLFilterOp."); |
754 | 0 | } |
755 | 0 | } |
756 | | |
757 | 0 | _high_value = TYPE_MIN; |
758 | 0 | _low_value = TYPE_MAX; |
759 | 0 | } else { |
760 | 0 | if (_high_value > _low_value) { |
761 | 0 | switch (op) { |
762 | 0 | case FILTER_LARGER: { |
763 | 0 | if (value >= _low_value) { |
764 | 0 | _low_value = value; |
765 | 0 | _low_op = op; |
766 | 0 | } |
767 | |
|
768 | 0 | break; |
769 | 0 | } |
770 | | |
771 | 0 | case FILTER_LARGER_OR_EQUAL: { |
772 | 0 | if (value > _low_value) { |
773 | 0 | _low_value = value; |
774 | 0 | _low_op = op; |
775 | 0 | } |
776 | |
|
777 | 0 | break; |
778 | 0 | } |
779 | | |
780 | 0 | case FILTER_LESS: { |
781 | 0 | if (value <= _high_value) { |
782 | 0 | _high_value = value; |
783 | 0 | _high_op = op; |
784 | 0 | } |
785 | |
|
786 | 0 | break; |
787 | 0 | } |
788 | | |
789 | 0 | case FILTER_LESS_OR_EQUAL: { |
790 | 0 | if (value < _high_value) { |
791 | 0 | _high_value = value; |
792 | 0 | _high_op = op; |
793 | 0 | } |
794 | |
|
795 | 0 | break; |
796 | 0 | } |
797 | | |
798 | 0 | default: { |
799 | 0 | return Status::InternalError("Add Range fail! Unsupported SQLFilterOp."); |
800 | 0 | } |
801 | 0 | } |
802 | 0 | } |
803 | | |
804 | 0 | if (FILTER_LARGER_OR_EQUAL == _low_op && FILTER_LESS_OR_EQUAL == _high_op && |
805 | 0 | _high_value == _low_value) { |
806 | 0 | RETURN_IF_ERROR(add_fixed_value(_high_value)); |
807 | 0 | _high_value = TYPE_MIN; |
808 | 0 | _low_value = TYPE_MAX; |
809 | 0 | } |
810 | 0 | } |
811 | | |
812 | 0 | return Status::OK(); |
813 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE9add_rangeENS_11SQLFilterOpEa Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE9add_rangeENS_11SQLFilterOpEs Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE9add_rangeENS_11SQLFilterOpEi Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE9add_rangeENS_11SQLFilterOpEl Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE9add_rangeENS_11SQLFilterOpEn Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE9add_rangeENS_11SQLFilterOpEj Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE9add_rangeENS_11SQLFilterOpEo Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE9add_rangeENS_11SQLFilterOpENS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE9add_rangeENS_11SQLFilterOpENS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE9add_rangeENS_11SQLFilterOpENS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE9add_rangeENS_11SQLFilterOpENS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE9add_rangeENS_11SQLFilterOpENS_11DateV2ValueINS_15DateV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE9add_rangeENS_11SQLFilterOpENS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE9add_rangeENS_11SQLFilterOpENS_11DateV2ValueINS_19DateTimeV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE9add_rangeENS_11SQLFilterOpENS_14DecimalV2ValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE9add_rangeENS_11SQLFilterOpEb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE9add_rangeENS_11SQLFilterOpENS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE9add_rangeENS_11SQLFilterOpENS_10vectorized7DecimalIiEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE9add_rangeENS_11SQLFilterOpENS_10vectorized7DecimalIlEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE9add_rangeENS_11SQLFilterOpENS_10vectorized12Decimal128V3E Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE9add_rangeENS_11SQLFilterOpENS_10vectorized7DecimalIN4wide7integerILm256EiEEEE |
814 | | |
815 | | template <PrimitiveType primitive_type> |
816 | 0 | bool ColumnValueRange<primitive_type>::is_in_range(const CppType& value) { |
817 | 0 | switch (_high_op) { |
818 | 0 | case FILTER_LESS: { |
819 | 0 | switch (_low_op) { |
820 | 0 | case FILTER_LARGER: { |
821 | 0 | return value < _high_value && value > _low_value; |
822 | 0 | } |
823 | | |
824 | 0 | case FILTER_LARGER_OR_EQUAL: { |
825 | 0 | return value < _high_value && value >= _low_value; |
826 | 0 | } |
827 | | |
828 | 0 | default: { |
829 | 0 | DCHECK(false); |
830 | 0 | } |
831 | 0 | } |
832 | | |
833 | 0 | break; |
834 | 0 | } |
835 | | |
836 | 0 | case FILTER_LESS_OR_EQUAL: { |
837 | 0 | switch (_low_op) { |
838 | 0 | case FILTER_LARGER: { |
839 | 0 | return value <= _high_value && value > _low_value; |
840 | 0 | } |
841 | | |
842 | 0 | case FILTER_LARGER_OR_EQUAL: { |
843 | 0 | return value <= _high_value && value >= _low_value; |
844 | 0 | } |
845 | | |
846 | 0 | default: { |
847 | 0 | DCHECK(false); |
848 | 0 | } |
849 | 0 | } |
850 | 0 | } |
851 | | |
852 | 0 | default: { |
853 | 0 | DCHECK(false); |
854 | 0 | } |
855 | 0 | } |
856 | | |
857 | 0 | return false; |
858 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE11is_in_rangeERKa Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE11is_in_rangeERKs Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE11is_in_rangeERKi Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE11is_in_rangeERKl Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE11is_in_rangeERKn Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE11is_in_rangeERKj Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE11is_in_rangeERKo Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE11is_in_rangeERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE11is_in_rangeERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE11is_in_rangeERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE11is_in_rangeERKNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE11is_in_rangeERKNS_11DateV2ValueINS_15DateV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE11is_in_rangeERKNS_16VecDateTimeValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE11is_in_rangeERKNS_11DateV2ValueINS_19DateTimeV2ValueTypeEEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE11is_in_rangeERKNS_14DecimalV2ValueE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE11is_in_rangeERKb Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE11is_in_rangeERKNS_9StringRefE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE11is_in_rangeERKNS_10vectorized7DecimalIiEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE11is_in_rangeERKNS_10vectorized7DecimalIlEE Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE11is_in_rangeERKNS_10vectorized12Decimal128V3E Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE11is_in_rangeERKNS_10vectorized7DecimalIN4wide7integerILm256EiEEEE |
859 | | |
860 | | template <PrimitiveType primitive_type> |
861 | 0 | void ColumnValueRange<primitive_type>::intersection(ColumnValueRange<primitive_type>& range) { |
862 | | // 1. clear if column type not match |
863 | 0 | if (_column_type != range._column_type) { |
864 | 0 | set_empty_value_range(); |
865 | 0 | } |
866 | | |
867 | | // 2. clear if any range is empty |
868 | 0 | if (is_empty_value_range() || range.is_empty_value_range()) { |
869 | 0 | set_empty_value_range(); |
870 | 0 | } |
871 | |
|
872 | 0 | std::set<CppType> result_values; |
873 | | // 3. fixed_value intersection, fixed value range do not contain null |
874 | 0 | if (is_fixed_value_range() || range.is_fixed_value_range()) { |
875 | 0 | if (is_fixed_value_range() && range.is_fixed_value_range()) { |
876 | 0 | set_intersection(_fixed_values.begin(), _fixed_values.end(), |
877 | 0 | range._fixed_values.begin(), range._fixed_values.end(), |
878 | 0 | std::inserter(result_values, result_values.begin())); |
879 | 0 | } else if (is_fixed_value_range() && !range.is_fixed_value_range()) { |
880 | 0 | IteratorType iter = _fixed_values.begin(); |
881 | |
|
882 | 0 | while (iter != _fixed_values.end()) { |
883 | 0 | if (range.is_in_range(*iter)) { |
884 | 0 | result_values.insert(*iter); |
885 | 0 | } |
886 | 0 | ++iter; |
887 | 0 | } |
888 | 0 | } else if (!is_fixed_value_range() && range.is_fixed_value_range()) { |
889 | 0 | IteratorType iter = range._fixed_values.begin(); |
890 | 0 | while (iter != range._fixed_values.end()) { |
891 | 0 | if (this->is_in_range(*iter)) { |
892 | 0 | result_values.insert(*iter); |
893 | 0 | } |
894 | 0 | ++iter; |
895 | 0 | } |
896 | 0 | } |
897 | |
|
898 | 0 | if (!result_values.empty()) { |
899 | 0 | _fixed_values = std::move(result_values); |
900 | 0 | _contain_null = false; |
901 | 0 | _high_value = TYPE_MIN; |
902 | 0 | _low_value = TYPE_MAX; |
903 | 0 | } else { |
904 | 0 | set_empty_value_range(); |
905 | 0 | } |
906 | 0 | } else { |
907 | 0 | if (contain_null() && range.contain_null()) { |
908 | | // if both is_whole_range to keep the same, else set_contain_null |
909 | 0 | if (!is_whole_value_range() || !range.is_whole_value_range()) { |
910 | 0 | set_contain_null(true); |
911 | 0 | } |
912 | 0 | } else { |
913 | 0 | static_cast<void>(add_range(range._high_op, range._high_value)); |
914 | 0 | static_cast<void>(add_range(range._low_op, range._low_value)); |
915 | 0 | } |
916 | 0 | } |
917 | 0 | } Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE3EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE4EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE5EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE6EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE7EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE36EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE37EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE15EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE10EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE23EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE11EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE25EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE12EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE26EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE20EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE2EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE19EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE28EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE29EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE30EE12intersectionERS2_ Unexecuted instantiation: _ZN5doris16ColumnValueRangeILNS_13PrimitiveTypeE35EE12intersectionERS2_ |
918 | | |
919 | | template <PrimitiveType primitive_type> |
920 | | bool ColumnValueRange<primitive_type>::has_intersection(ColumnValueRange<primitive_type>& range) { |
921 | | // 1. return false if column type not match |
922 | | if (_column_type != range._column_type) { |
923 | | return false; |
924 | | } |
925 | | |
926 | | // 2. return false if any range is empty |
927 | | if (is_empty_value_range() || range.is_empty_value_range()) { |
928 | | return false; |
929 | | } |
930 | | |
931 | | // 3.1 return false if two int fixedRange has no intersection |
932 | | if (is_fixed_value_range() && range.is_fixed_value_range()) { |
933 | | std::set<CppType> result_values; |
934 | | set_intersection(_fixed_values.begin(), _fixed_values.end(), range._fixed_values.begin(), |
935 | | range._fixed_values.end(), |
936 | | std::inserter(result_values, result_values.begin())); |
937 | | |
938 | | if (result_values.size() != 0) { |
939 | | return true; |
940 | | } else { |
941 | | return false; |
942 | | } |
943 | | } // 3.2 |
944 | | else if (is_fixed_value_range() && !range.is_fixed_value_range()) { |
945 | | IteratorType iter = _fixed_values.begin(); |
946 | | |
947 | | while (iter != _fixed_values.end()) { |
948 | | if (range.is_in_range(*iter)) { |
949 | | return true; |
950 | | } |
951 | | |
952 | | ++iter; |
953 | | } |
954 | | |
955 | | return false; |
956 | | } else if (!is_fixed_value_range() && range.is_fixed_value_range()) { |
957 | | IteratorType iter = range._fixed_values.begin(); |
958 | | |
959 | | while (iter != range._fixed_values.end()) { |
960 | | if (this->is_in_range(*iter)) { |
961 | | return true; |
962 | | } |
963 | | |
964 | | ++iter; |
965 | | } |
966 | | |
967 | | return false; |
968 | | } else { |
969 | | if (_low_value > range._high_value || range._low_value > _high_value) { |
970 | | return false; |
971 | | } else if (_low_value == range._high_value) { |
972 | | if (FILTER_LARGER_OR_EQUAL == _low_op && FILTER_LESS_OR_EQUAL == range._high_op) { |
973 | | return true; |
974 | | } else { |
975 | | return false; |
976 | | } |
977 | | } else if (range._low_value == _high_value) { |
978 | | if (FILTER_LARGER_OR_EQUAL == range._low_op && FILTER_LESS_OR_EQUAL == _high_op) { |
979 | | return true; |
980 | | } else { |
981 | | return false; |
982 | | } |
983 | | } else { |
984 | | return true; |
985 | | } |
986 | | } |
987 | | } |
988 | | |
989 | | template <PrimitiveType primitive_type> |
990 | | Status OlapScanKeys::extend_scan_key(ColumnValueRange<primitive_type>& range, |
991 | | int32_t max_scan_key_num, bool* exact_value, bool* eos, |
992 | 0 | bool* should_break) { |
993 | 0 | using CppType = typename PrimitiveTypeTraits<primitive_type>::CppType; |
994 | 0 | using ConstIterator = typename std::set<CppType>::const_iterator; |
995 | | |
996 | | // 1. clear ScanKey if some column range is empty |
997 | 0 | if (range.is_empty_value_range()) { |
998 | 0 | _begin_scan_keys.clear(); |
999 | 0 | _end_scan_keys.clear(); |
1000 | 0 | return Status::OK(); |
1001 | 0 | } |
1002 | | |
1003 | | // 2. stop extend ScanKey when it's already extend a range value |
1004 | 0 | if (_has_range_value) { |
1005 | 0 | return Status::OK(); |
1006 | 0 | } |
1007 | | |
1008 | | //if a column doesn't have any predicate, we will try converting the range to fixed values |
1009 | 0 | auto scan_keys_size = _begin_scan_keys.empty() ? 1 : _begin_scan_keys.size(); |
1010 | 0 | if (range.is_fixed_value_range()) { |
1011 | 0 | if (range.get_fixed_value_size() > max_scan_key_num / scan_keys_size) { |
1012 | 0 | if (range.is_range_value_convertible()) { |
1013 | 0 | range.convert_to_range_value(); |
1014 | 0 | *exact_value = false; |
1015 | 0 | } else { |
1016 | 0 | *should_break = true; |
1017 | 0 | return Status::OK(); |
1018 | 0 | } |
1019 | 0 | } |
1020 | 0 | } else { |
1021 | 0 | if (_begin_scan_keys.empty() && range.is_fixed_value_convertible() && _is_convertible && |
1022 | 0 | !range.is_reject_split_type()) { |
1023 | 0 | *eos |= range.convert_to_close_range(_begin_scan_keys, _end_scan_keys, _begin_include, |
1024 | 0 | _end_include); |
1025 | |
|
1026 | 0 | if (!(*eos) && |
1027 | 0 | range.convert_to_avg_range_value(_begin_scan_keys, _end_scan_keys, _begin_include, |
1028 | 0 | _end_include, max_scan_key_num)) { |
1029 | 0 | _has_range_value = true; |
1030 | 0 | } |
1031 | 0 | return Status::OK(); |
1032 | 0 | } |
1033 | 0 | } |
1034 | | |
1035 | | // 3.1 extend ScanKey with FixedValueRange |
1036 | 0 | if (range.is_fixed_value_range()) { |
1037 | | // 3.1.1 construct num of fixed value ScanKey (begin_key == end_key) |
1038 | 0 | if (_begin_scan_keys.empty()) { |
1039 | 0 | auto fixed_value_set = range.get_fixed_value_set(); |
1040 | 0 | ConstIterator iter = fixed_value_set.begin(); |
1041 | |
|
1042 | 0 | for (; iter != fixed_value_set.end(); ++iter) { |
1043 | 0 | _begin_scan_keys.emplace_back(); |
1044 | 0 | _begin_scan_keys.back().add_value( |
1045 | 0 | cast_to_string<primitive_type, CppType>(*iter, range.scale())); |
1046 | 0 | _end_scan_keys.emplace_back(); |
1047 | 0 | _end_scan_keys.back().add_value( |
1048 | 0 | cast_to_string<primitive_type, CppType>(*iter, range.scale())); |
1049 | 0 | } |
1050 | |
|
1051 | 0 | if (range.contain_null()) { |
1052 | 0 | _begin_scan_keys.emplace_back(); |
1053 | 0 | _begin_scan_keys.back().add_null(); |
1054 | 0 | _end_scan_keys.emplace_back(); |
1055 | 0 | _end_scan_keys.back().add_null(); |
1056 | 0 | } |
1057 | 0 | } // 3.1.2 produces the Cartesian product of ScanKey and fixed_value |
1058 | 0 | else { |
1059 | 0 | auto fixed_value_set = range.get_fixed_value_set(); |
1060 | 0 | int original_key_range_size = _begin_scan_keys.size(); |
1061 | |
|
1062 | 0 | for (int i = 0; i < original_key_range_size; ++i) { |
1063 | 0 | OlapTuple start_base_key_range = _begin_scan_keys[i]; |
1064 | 0 | OlapTuple end_base_key_range = _end_scan_keys[i]; |
1065 | |
|
1066 | 0 | ConstIterator iter = fixed_value_set.begin(); |
1067 | |
|
1068 | 0 | for (; iter != fixed_value_set.end(); ++iter) { |
1069 | | // alter the first ScanKey in original place |
1070 | 0 | if (iter == fixed_value_set.begin()) { |
1071 | 0 | _begin_scan_keys[i].add_value( |
1072 | 0 | cast_to_string<primitive_type, CppType>(*iter, range.scale())); |
1073 | 0 | _end_scan_keys[i].add_value( |
1074 | 0 | cast_to_string<primitive_type, CppType>(*iter, range.scale())); |
1075 | 0 | } // append follow ScanKey |
1076 | 0 | else { |
1077 | 0 | _begin_scan_keys.push_back(start_base_key_range); |
1078 | 0 | _begin_scan_keys.back().add_value( |
1079 | 0 | cast_to_string<primitive_type, CppType>(*iter, range.scale())); |
1080 | 0 | _end_scan_keys.push_back(end_base_key_range); |
1081 | 0 | _end_scan_keys.back().add_value( |
1082 | 0 | cast_to_string<primitive_type, CppType>(*iter, range.scale())); |
1083 | 0 | } |
1084 | 0 | } |
1085 | |
|
1086 | 0 | if (range.contain_null()) { |
1087 | 0 | _begin_scan_keys.push_back(start_base_key_range); |
1088 | 0 | _begin_scan_keys.back().add_null(); |
1089 | 0 | _end_scan_keys.push_back(end_base_key_range); |
1090 | 0 | _end_scan_keys.back().add_null(); |
1091 | 0 | } |
1092 | 0 | } |
1093 | 0 | } |
1094 | |
|
1095 | 0 | _begin_include = true; |
1096 | 0 | _end_include = true; |
1097 | 0 | } // Extend ScanKey with range value |
1098 | 0 | else { |
1099 | 0 | _has_range_value = true; |
1100 | | |
1101 | | /// if max < min, this range should only contains a null value. |
1102 | 0 | if (range.get_range_max_value() < range.get_range_min_value()) { |
1103 | 0 | CHECK(range.contain_null()); |
1104 | 0 | if (_begin_scan_keys.empty()) { |
1105 | 0 | _begin_scan_keys.emplace_back(); |
1106 | 0 | _begin_scan_keys.back().add_null(); |
1107 | 0 | _end_scan_keys.emplace_back(); |
1108 | 0 | _end_scan_keys.back().add_null(); |
1109 | 0 | } else { |
1110 | 0 | for (int i = 0; i < _begin_scan_keys.size(); ++i) { |
1111 | 0 | _begin_scan_keys[i].add_null(); |
1112 | 0 | _end_scan_keys[i].add_null(); |
1113 | 0 | } |
1114 | 0 | } |
1115 | 0 | } else if (_begin_scan_keys.empty()) { |
1116 | 0 | _begin_scan_keys.emplace_back(); |
1117 | 0 | _begin_scan_keys.back().add_value(cast_to_string<primitive_type, CppType>( |
1118 | 0 | range.get_range_min_value(), range.scale()), |
1119 | 0 | range.contain_null()); |
1120 | 0 | _end_scan_keys.emplace_back(); |
1121 | 0 | _end_scan_keys.back().add_value(cast_to_string<primitive_type, CppType>( |
1122 | 0 | range.get_range_max_value(), range.scale())); |
1123 | 0 | } else { |
1124 | 0 | for (int i = 0; i < _begin_scan_keys.size(); ++i) { |
1125 | 0 | _begin_scan_keys[i].add_value(cast_to_string<primitive_type, CppType>( |
1126 | 0 | range.get_range_min_value(), range.scale()), |
1127 | 0 | range.contain_null()); |
1128 | 0 | } |
1129 | |
|
1130 | 0 | for (int i = 0; i < _end_scan_keys.size(); ++i) { |
1131 | 0 | _end_scan_keys[i].add_value(cast_to_string<primitive_type, CppType>( |
1132 | 0 | range.get_range_max_value(), range.scale())); |
1133 | 0 | } |
1134 | 0 | } |
1135 | 0 | _begin_include = range.is_begin_include(); |
1136 | 0 | _end_include = range.is_end_include(); |
1137 | 0 | } |
1138 | |
|
1139 | 0 | return Status::OK(); |
1140 | 0 | } Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE3EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE4EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE5EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE6EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE7EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE36EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE37EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE15EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE10EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE23EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE11EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE25EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE12EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE26EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE20EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE2EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE19EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE28EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE29EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE30EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ Unexecuted instantiation: _ZN5doris12OlapScanKeys15extend_scan_keyILNS_13PrimitiveTypeE35EEENS_6StatusERNS_16ColumnValueRangeIXT_EEEiPbS7_S7_ |
1141 | | |
1142 | | struct ScanPredicate { |
1143 | | TCondition condition; |
1144 | | PrimitiveType primitiveType; |
1145 | | }; |
1146 | | |
1147 | | } // namespace doris |