be/src/exprs/minmax_predicate.h
Line | Count | Source |
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/internal_service.pb.h> |
21 | | |
22 | | #include "core/column/column_nullable.h" |
23 | | #include "core/column/column_string.h" |
24 | | #include "core/type_limit.h" |
25 | | #include "exprs/filter_base.h" |
26 | | |
27 | | namespace doris { |
28 | | |
29 | | // only used in Runtime Filter |
30 | | class MinMaxFuncBase : public FilterBase { |
31 | | public: |
32 | 55.9k | MinMaxFuncBase(bool null_aware) : FilterBase(null_aware) {} |
33 | | virtual void insert_fixed_len(const ColumnPtr& column, size_t start) = 0; |
34 | | virtual void* get_max() = 0; |
35 | | virtual void* get_min() = 0; |
36 | | // assign minmax data |
37 | | virtual Status assign(void* min_data, void* max_data) = 0; |
38 | | // merge from other minmax_func |
39 | | virtual Status merge(MinMaxFuncBase* minmax_func) = 0; |
40 | 56.1k | virtual ~MinMaxFuncBase() = default; |
41 | | |
42 | | virtual void to_pb(PMinMaxFilter* filter) = 0; |
43 | | }; |
44 | | |
45 | | template <class T, bool NeedMax = true, bool NeedMin = true> |
46 | | class MinMaxNumFunc : public MinMaxFuncBase { |
47 | | public: |
48 | | static constexpr bool IsStringValue = std::is_same_v<T, std::string>; |
49 | 55.9k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {}_ZN5doris13MinMaxNumFuncIhLb1ELb1EEC2Eb Line | Count | Source | 49 | 14 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EEC2Eb Line | Count | Source | 49 | 2 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EEC2Eb Line | Count | Source | 49 | 706 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EEC2Eb Line | Count | Source | 49 | 334 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EEC2Eb Line | Count | Source | 49 | 16.5k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EEC2Eb Line | Count | Source | 49 | 33.3k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncInLb1ELb1EEC2Eb Line | Count | Source | 49 | 135 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EEC2Eb Line | Count | Source | 49 | 2 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EEC2Eb Line | Count | Source | 49 | 20 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EEC2Eb Line | Count | Source | 49 | 19 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EEC2Eb Line | Count | Source | 49 | 564 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EEC2Eb Line | Count | Source | 49 | 2.65k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EEC2Eb _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EEC2Eb Line | Count | Source | 49 | 1.01k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EEC2Eb Line | Count | Source | 49 | 72 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EEC2Eb Line | Count | Source | 49 | 2 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EEC2Eb Line | Count | Source | 49 | 454 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EEC2Eb Line | Count | Source | 49 | 54 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EEC2Eb Line | Count | Source | 49 | 16 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EEC2Eb Line | Count | Source | 49 | 6 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
|
50 | 1.02k | ~MinMaxNumFunc() override = default; |
51 | | |
52 | 6.90k | void insert_fixed_len(const ColumnPtr& column, size_t start) override { |
53 | 6.90k | if (column->is_nullable()) { |
54 | 4.31k | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); |
55 | 4.31k | const auto& col = nullable->get_nested_column_ptr(); |
56 | 4.31k | const auto& nullmap = nullable->get_null_map_data(); |
57 | 4.31k | if (nullable->has_null()) { |
58 | 3.43k | _update_batch(col, nullmap, start); |
59 | 3.43k | _contain_null = true; |
60 | 3.43k | } else { |
61 | 885 | _update_batch(col, start); |
62 | 885 | } |
63 | 4.31k | } else { |
64 | 2.59k | _update_batch(column, start); |
65 | 2.59k | } |
66 | 6.90k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 3 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 3 | if (column->is_nullable()) { | 54 | 3 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 3 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 3 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 3 | if (nullable->has_null()) { | 58 | 3 | _update_batch(col, nullmap, start); | 59 | 3 | _contain_null = true; | 60 | 3 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 3 | } else { | 64 | 0 | _update_batch(column, start); | 65 | 0 | } | 66 | 3 | } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 52 | 1 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 1 | if (column->is_nullable()) { | 54 | 0 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 0 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 0 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 0 | if (nullable->has_null()) { | 58 | 0 | _update_batch(col, nullmap, start); | 59 | 0 | _contain_null = true; | 60 | 0 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 1 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 1 | } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 239 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 239 | if (column->is_nullable()) { | 54 | 238 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 238 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 238 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 238 | if (nullable->has_null()) { | 58 | 174 | _update_batch(col, nullmap, start); | 59 | 174 | _contain_null = true; | 60 | 174 | } else { | 61 | 64 | _update_batch(col, start); | 62 | 64 | } | 63 | 238 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 239 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 115 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 115 | if (column->is_nullable()) { | 54 | 114 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 114 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 114 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 114 | if (nullable->has_null()) { | 58 | 114 | _update_batch(col, nullmap, start); | 59 | 114 | _contain_null = true; | 60 | 114 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 114 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 115 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 3.94k | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 3.94k | if (column->is_nullable()) { | 54 | 2.52k | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 2.52k | const auto& col = nullable->get_nested_column_ptr(); | 56 | 2.52k | const auto& nullmap = nullable->get_null_map_data(); | 57 | 2.52k | if (nullable->has_null()) { | 58 | 1.84k | _update_batch(col, nullmap, start); | 59 | 1.84k | _contain_null = true; | 60 | 1.84k | } else { | 61 | 684 | _update_batch(col, start); | 62 | 684 | } | 63 | 2.52k | } else { | 64 | 1.42k | _update_batch(column, start); | 65 | 1.42k | } | 66 | 3.94k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 1.66k | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 1.66k | if (column->is_nullable()) { | 54 | 809 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 809 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 809 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 809 | if (nullable->has_null()) { | 58 | 761 | _update_batch(col, nullmap, start); | 59 | 761 | _contain_null = true; | 60 | 761 | } else { | 61 | 48 | _update_batch(col, start); | 62 | 48 | } | 63 | 860 | } else { | 64 | 860 | _update_batch(column, start); | 65 | 860 | } | 66 | 1.66k | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 73 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 73 | if (column->is_nullable()) { | 54 | 0 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 0 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 0 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 0 | if (nullable->has_null()) { | 58 | 0 | _update_batch(col, nullmap, start); | 59 | 0 | _contain_null = true; | 60 | 0 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 73 | } else { | 64 | 73 | _update_batch(column, start); | 65 | 73 | } | 66 | 73 | } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 1 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 1 | if (column->is_nullable()) { | 54 | 0 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 0 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 0 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 0 | if (nullable->has_null()) { | 58 | 0 | _update_batch(col, nullmap, start); | 59 | 0 | _contain_null = true; | 60 | 0 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 1 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 1 | } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 8 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 8 | if (column->is_nullable()) { | 54 | 7 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 7 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 7 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 7 | if (nullable->has_null()) { | 58 | 2 | _update_batch(col, nullmap, start); | 59 | 2 | _contain_null = true; | 60 | 5 | } else { | 61 | 5 | _update_batch(col, start); | 62 | 5 | } | 63 | 7 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 8 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 52 | 14 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 14 | if (column->is_nullable()) { | 54 | 12 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 12 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 12 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 12 | if (nullable->has_null()) { | 58 | 12 | _update_batch(col, nullmap, start); | 59 | 12 | _contain_null = true; | 60 | 12 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 12 | } else { | 64 | 2 | _update_batch(column, start); | 65 | 2 | } | 66 | 14 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 52 | 179 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 179 | if (column->is_nullable()) { | 54 | 20 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 20 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 20 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 20 | if (nullable->has_null()) { | 58 | 20 | _update_batch(col, nullmap, start); | 59 | 20 | _contain_null = true; | 60 | 20 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 159 | } else { | 64 | 159 | _update_batch(column, start); | 65 | 159 | } | 66 | 179 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 52 | 313 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 313 | if (column->is_nullable()) { | 54 | 300 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 300 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 300 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 300 | if (nullable->has_null()) { | 58 | 300 | _update_batch(col, nullmap, start); | 59 | 300 | _contain_null = true; | 60 | 300 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 300 | } else { | 64 | 13 | _update_batch(column, start); | 65 | 13 | } | 66 | 313 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS9_EEm Line | Count | Source | 52 | 193 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 193 | if (column->is_nullable()) { | 54 | 140 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 140 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 140 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 140 | if (nullable->has_null()) { | 58 | 94 | _update_batch(col, nullmap, start); | 59 | 94 | _contain_null = true; | 60 | 94 | } else { | 61 | 46 | _update_batch(col, start); | 62 | 46 | } | 63 | 140 | } else { | 64 | 53 | _update_batch(column, start); | 65 | 53 | } | 66 | 193 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 52 | 21 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 21 | if (column->is_nullable()) { | 54 | 20 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 20 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 20 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 20 | if (nullable->has_null()) { | 58 | 20 | _update_batch(col, nullmap, start); | 59 | 20 | _contain_null = true; | 60 | 20 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 20 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 21 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 52 | 1 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 1 | if (column->is_nullable()) { | 54 | 0 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 0 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 0 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 0 | if (nullable->has_null()) { | 58 | 0 | _update_batch(col, nullmap, start); | 59 | 0 | _contain_null = true; | 60 | 0 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 1 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 52 | 96 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 96 | if (column->is_nullable()) { | 54 | 95 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 95 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 95 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 95 | if (nullable->has_null()) { | 58 | 57 | _update_batch(col, nullmap, start); | 59 | 57 | _contain_null = true; | 60 | 57 | } else { | 61 | 38 | _update_batch(col, start); | 62 | 38 | } | 63 | 95 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 96 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS8_EEm Line | Count | Source | 52 | 27 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 27 | if (column->is_nullable()) { | 54 | 26 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 26 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 26 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 26 | if (nullable->has_null()) { | 58 | 26 | _update_batch(col, nullmap, start); | 59 | 26 | _contain_null = true; | 60 | 26 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 26 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 27 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 8 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 8 | if (column->is_nullable()) { | 54 | 7 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 7 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 7 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 7 | if (nullable->has_null()) { | 58 | 7 | _update_batch(col, nullmap, start); | 59 | 7 | _contain_null = true; | 60 | 7 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 7 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 8 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 52 | 3 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 53 | 3 | if (column->is_nullable()) { | 54 | 2 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 55 | 2 | const auto& col = nullable->get_nested_column_ptr(); | 56 | 2 | const auto& nullmap = nullable->get_null_map_data(); | 57 | 2 | if (nullable->has_null()) { | 58 | 2 | _update_batch(col, nullmap, start); | 59 | 2 | _contain_null = true; | 60 | 2 | } else { | 61 | 0 | _update_batch(col, start); | 62 | 0 | } | 63 | 2 | } else { | 64 | 1 | _update_batch(column, start); | 65 | 1 | } | 66 | 3 | } |
|
67 | | |
68 | 14.8k | Status merge(MinMaxFuncBase* minmax_func) override { |
69 | 14.8k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); |
70 | 14.8k | if constexpr (NeedMin) { |
71 | 14.8k | if constexpr (IsStringValue) { |
72 | 408 | if (other_minmax->_min < _min || !_min_value_set) { |
73 | 33 | _min = other_minmax->_min; |
74 | 33 | _min_value_set = true; |
75 | 33 | } |
76 | 14.4k | } else if (other_minmax->_min < _min) { |
77 | 948 | _min = other_minmax->_min; |
78 | 948 | } |
79 | 14.8k | } |
80 | 14.8k | if constexpr (NeedMax) { |
81 | 14.8k | if (other_minmax->_max > _max) { |
82 | 917 | _max = other_minmax->_max; |
83 | 917 | } |
84 | 14.8k | } |
85 | | |
86 | 14.8k | _contain_null |= minmax_func->contain_null(); |
87 | 14.8k | return Status::OK(); |
88 | 14.8k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 7 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 7 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 7 | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 7 | } else if (other_minmax->_min < _min) { | 77 | 2 | _min = other_minmax->_min; | 78 | 2 | } | 79 | 7 | } | 80 | 7 | if constexpr (NeedMax) { | 81 | 7 | if (other_minmax->_max > _max) { | 82 | 1 | _max = other_minmax->_max; | 83 | 1 | } | 84 | 7 | } | 85 | | | 86 | 7 | _contain_null |= minmax_func->contain_null(); | 87 | 7 | return Status::OK(); | 88 | 7 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE _ZN5doris13MinMaxNumFuncIaLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 40 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 40 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 40 | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 40 | } else if (other_minmax->_min < _min) { | 77 | 6 | _min = other_minmax->_min; | 78 | 6 | } | 79 | 40 | } | 80 | 40 | if constexpr (NeedMax) { | 81 | 40 | if (other_minmax->_max > _max) { | 82 | 8 | _max = other_minmax->_max; | 83 | 8 | } | 84 | 40 | } | 85 | | | 86 | 40 | _contain_null |= minmax_func->contain_null(); | 87 | 40 | return Status::OK(); | 88 | 40 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 48 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 48 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 48 | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 48 | } else if (other_minmax->_min < _min) { | 77 | 12 | _min = other_minmax->_min; | 78 | 12 | } | 79 | 48 | } | 80 | 48 | if constexpr (NeedMax) { | 81 | 48 | if (other_minmax->_max > _max) { | 82 | 10 | _max = other_minmax->_max; | 83 | 10 | } | 84 | 48 | } | 85 | | | 86 | 48 | _contain_null |= minmax_func->contain_null(); | 87 | 48 | return Status::OK(); | 88 | 48 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 10.0k | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 10.0k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 10.0k | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 10.0k | } else if (other_minmax->_min < _min) { | 77 | 697 | _min = other_minmax->_min; | 78 | 697 | } | 79 | 10.0k | } | 80 | 10.0k | if constexpr (NeedMax) { | 81 | 10.0k | if (other_minmax->_max > _max) { | 82 | 640 | _max = other_minmax->_max; | 83 | 640 | } | 84 | 10.0k | } | 85 | | | 86 | 10.0k | _contain_null |= minmax_func->contain_null(); | 87 | 10.0k | return Status::OK(); | 88 | 10.0k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 1.50k | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 1.50k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 1.50k | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 1.50k | } else if (other_minmax->_min < _min) { | 77 | 37 | _min = other_minmax->_min; | 78 | 37 | } | 79 | 1.50k | } | 80 | 1.50k | if constexpr (NeedMax) { | 81 | 1.50k | if (other_minmax->_max > _max) { | 82 | 34 | _max = other_minmax->_max; | 83 | 34 | } | 84 | 1.50k | } | 85 | | | 86 | 1.50k | _contain_null |= minmax_func->contain_null(); | 87 | 1.50k | return Status::OK(); | 88 | 1.50k | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 87 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 87 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 87 | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 87 | } else if (other_minmax->_min < _min) { | 77 | 1 | _min = other_minmax->_min; | 78 | 1 | } | 79 | 87 | } | 80 | 87 | if constexpr (NeedMax) { | 81 | 87 | if (other_minmax->_max > _max) { | 82 | 1 | _max = other_minmax->_max; | 83 | 1 | } | 84 | 87 | } | 85 | | | 86 | 87 | _contain_null |= minmax_func->contain_null(); | 87 | 87 | return Status::OK(); | 88 | 87 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIfLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIdLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE _ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 9 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 9 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 9 | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 9 | } else if (other_minmax->_min < _min) { | 77 | 0 | _min = other_minmax->_min; | 78 | 0 | } | 79 | 9 | } | 80 | 9 | if constexpr (NeedMax) { | 81 | 9 | if (other_minmax->_max > _max) { | 82 | 0 | _max = other_minmax->_max; | 83 | 0 | } | 84 | 9 | } | 85 | | | 86 | 9 | _contain_null |= minmax_func->contain_null(); | 87 | 9 | return Status::OK(); | 88 | 9 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 254 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 254 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 254 | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 254 | } else if (other_minmax->_min < _min) { | 77 | 44 | _min = other_minmax->_min; | 78 | 44 | } | 79 | 254 | } | 80 | 254 | if constexpr (NeedMax) { | 81 | 254 | if (other_minmax->_max > _max) { | 82 | 34 | _max = other_minmax->_max; | 83 | 34 | } | 84 | 254 | } | 85 | | | 86 | 254 | _contain_null |= minmax_func->contain_null(); | 87 | 254 | return Status::OK(); | 88 | 254 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 2.11k | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 2.11k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 2.11k | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 2.11k | } else if (other_minmax->_min < _min) { | 77 | 125 | _min = other_minmax->_min; | 78 | 125 | } | 79 | 2.11k | } | 80 | 2.11k | if constexpr (NeedMax) { | 81 | 2.11k | if (other_minmax->_max > _max) { | 82 | 146 | _max = other_minmax->_max; | 83 | 146 | } | 84 | 2.11k | } | 85 | | | 86 | 2.11k | _contain_null |= minmax_func->contain_null(); | 87 | 2.11k | return Status::OK(); | 88 | 2.11k | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 408 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 408 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 408 | if constexpr (NeedMin) { | 71 | 408 | if constexpr (IsStringValue) { | 72 | 408 | if (other_minmax->_min < _min || !_min_value_set) { | 73 | 33 | _min = other_minmax->_min; | 74 | 33 | _min_value_set = true; | 75 | 33 | } | 76 | | } else if (other_minmax->_min < _min) { | 77 | | _min = other_minmax->_min; | 78 | | } | 79 | 408 | } | 80 | 408 | if constexpr (NeedMax) { | 81 | 408 | if (other_minmax->_max > _max) { | 82 | 21 | _max = other_minmax->_max; | 83 | 21 | } | 84 | 408 | } | 85 | | | 86 | 408 | _contain_null |= minmax_func->contain_null(); | 87 | 408 | return Status::OK(); | 88 | 408 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE _ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 68 | 278 | Status merge(MinMaxFuncBase* minmax_func) override { | 69 | 278 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 70 | 278 | if constexpr (NeedMin) { | 71 | | if constexpr (IsStringValue) { | 72 | | if (other_minmax->_min < _min || !_min_value_set) { | 73 | | _min = other_minmax->_min; | 74 | | _min_value_set = true; | 75 | | } | 76 | 278 | } else if (other_minmax->_min < _min) { | 77 | 24 | _min = other_minmax->_min; | 78 | 24 | } | 79 | 278 | } | 80 | 278 | if constexpr (NeedMax) { | 81 | 278 | if (other_minmax->_max > _max) { | 82 | 22 | _max = other_minmax->_max; | 83 | 22 | } | 84 | 278 | } | 85 | | | 86 | 278 | _contain_null |= minmax_func->contain_null(); | 87 | 278 | return Status::OK(); | 88 | 278 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIjLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIoLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE |
89 | | |
90 | 19.8k | void* get_max() override { return &_max; }_ZN5doris13MinMaxNumFuncIhLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 2 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 2 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 290 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 116 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 2.63k | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 15.9k | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 25 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 2 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 6 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 7 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 136 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 62 | void* get_max() override { return &_max; } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE7get_maxEv _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 429 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 37 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 2 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 82 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE7get_maxEv Line | Count | Source | 90 | 28 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 9 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE7get_maxEv Line | Count | Source | 90 | 4 | void* get_max() override { return &_max; } |
|
91 | | |
92 | 19.8k | void* get_min() override { return &_min; }_ZN5doris13MinMaxNumFuncIhLb1ELb1EE7get_minEv Line | Count | Source | 92 | 2 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE7get_minEv Line | Count | Source | 92 | 2 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE7get_minEv Line | Count | Source | 92 | 277 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE7get_minEv Line | Count | Source | 92 | 115 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE7get_minEv Line | Count | Source | 92 | 2.62k | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE7get_minEv Line | Count | Source | 92 | 15.9k | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE7get_minEv Line | Count | Source | 92 | 15 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE7get_minEv Line | Count | Source | 92 | 2 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE7get_minEv Line | Count | Source | 92 | 11 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE7get_minEv Line | Count | Source | 92 | 7 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE7get_minEv Line | Count | Source | 92 | 136 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE7get_minEv Line | Count | Source | 92 | 62 | void* get_min() override { return &_min; } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE7get_minEv _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE7get_minEv Line | Count | Source | 92 | 425 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE7get_minEv Line | Count | Source | 92 | 37 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE7get_minEv Line | Count | Source | 92 | 2 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE7get_minEv Line | Count | Source | 92 | 84 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE7get_minEv Line | Count | Source | 92 | 28 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE7get_minEv Line | Count | Source | 92 | 9 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE7get_minEv Line | Count | Source | 92 | 4 | void* get_min() override { return &_min; } |
|
93 | | |
94 | 1.35k | Status assign(void* min_data, void* max_data) override { |
95 | 1.35k | if constexpr (IsStringValue) { |
96 | 51 | _min_value_set = true; |
97 | 51 | } |
98 | 1.35k | _min = *(T*)min_data; |
99 | 1.35k | _max = *(T*)max_data; |
100 | 1.35k | return Status::OK(); |
101 | 1.35k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 5 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 5 | _min = *(T*)min_data; | 99 | 5 | _max = *(T*)max_data; | 100 | 5 | return Status::OK(); | 101 | 5 | } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE6assignEPvS3_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 49 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 49 | _min = *(T*)min_data; | 99 | 49 | _max = *(T*)max_data; | 100 | 49 | return Status::OK(); | 101 | 49 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 71 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 71 | _min = *(T*)min_data; | 99 | 71 | _max = *(T*)max_data; | 100 | 71 | return Status::OK(); | 101 | 71 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 837 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 837 | _min = *(T*)min_data; | 99 | 837 | _max = *(T*)max_data; | 100 | 837 | return Status::OK(); | 101 | 837 | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 97 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 97 | _min = *(T*)min_data; | 99 | 97 | _max = *(T*)max_data; | 100 | 97 | return Status::OK(); | 101 | 97 | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE6assignEPvS3_ Line | Count | Source | 94 | 2 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 2 | _min = *(T*)min_data; | 99 | 2 | _max = *(T*)max_data; | 100 | 2 | return Status::OK(); | 101 | 2 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE6assignEPvS5_ Line | Count | Source | 94 | 61 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 61 | _min = *(T*)min_data; | 99 | 61 | _max = *(T*)max_data; | 100 | 61 | return Status::OK(); | 101 | 61 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE6assignEPvS5_ Line | Count | Source | 94 | 131 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 131 | _min = *(T*)min_data; | 99 | 131 | _max = *(T*)max_data; | 100 | 131 | return Status::OK(); | 101 | 131 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE6assignEPvS3_ _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE6assignEPvS8_ Line | Count | Source | 94 | 51 | Status assign(void* min_data, void* max_data) override { | 95 | 51 | if constexpr (IsStringValue) { | 96 | 51 | _min_value_set = true; | 97 | 51 | } | 98 | 51 | _min = *(T*)min_data; | 99 | 51 | _max = *(T*)max_data; | 100 | 51 | return Status::OK(); | 101 | 51 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE6assignEPvS4_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE6assignEPvS4_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE6assignEPvS3_ Line | Count | Source | 94 | 37 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 37 | _min = *(T*)min_data; | 99 | 37 | _max = *(T*)max_data; | 100 | 37 | return Status::OK(); | 101 | 37 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE6assignEPvS7_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE6assignEPvS2_ Line | Count | Source | 94 | 1 | Status assign(void* min_data, void* max_data) override { | 95 | | if constexpr (IsStringValue) { | 96 | | _min_value_set = true; | 97 | | } | 98 | 1 | _min = *(T*)min_data; | 99 | 1 | _max = *(T*)max_data; | 100 | 1 | return Status::OK(); | 101 | 1 | } |
|
102 | | |
103 | 1.65k | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); }_ZN5doris13MinMaxNumFuncIhLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 4 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncIaLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 58 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 80 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 1.07k | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 123 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncInLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIfLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIdLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 60 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 134 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 60 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 103 | 66 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIjLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIoLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE |
104 | | |
105 | | private: |
106 | 1.65k | void _set_pb(PMinMaxFilter* filter, auto f) { |
107 | 1.65k | if constexpr (NeedMin) { |
108 | 1.65k | f(filter->mutable_min_val(), _min); |
109 | 1.65k | } |
110 | 1.65k | if constexpr (NeedMax) { |
111 | 1.65k | f(filter->mutable_max_val(), _max); |
112 | 1.65k | } |
113 | 1.65k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE7_set_pbIZNS_13get_convertorIhEEDavEUlPNS_12PColumnValueERKhE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 4 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 4 | if constexpr (NeedMin) { | 108 | 4 | f(filter->mutable_min_val(), _min); | 109 | 4 | } | 110 | 4 | if constexpr (NeedMax) { | 111 | 4 | f(filter->mutable_max_val(), _max); | 112 | 4 | } | 113 | 4 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE7_set_pbIZNS_13get_convertorIS1_EEDavEUlPNS_12PColumnValueERKS1_E_EEvPNS_13PMinMaxFilterET_ _ZN5doris13MinMaxNumFuncIaLb1ELb1EE7_set_pbIZNS_13get_convertorIaEEDavEUlPNS_12PColumnValueERKaE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 58 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 58 | if constexpr (NeedMin) { | 108 | 58 | f(filter->mutable_min_val(), _min); | 109 | 58 | } | 110 | 58 | if constexpr (NeedMax) { | 111 | 58 | f(filter->mutable_max_val(), _max); | 112 | 58 | } | 113 | 58 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE7_set_pbIZNS_13get_convertorIsEEDavEUlPNS_12PColumnValueERKsE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 80 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 80 | if constexpr (NeedMin) { | 108 | 80 | f(filter->mutable_min_val(), _min); | 109 | 80 | } | 110 | 80 | if constexpr (NeedMax) { | 111 | 80 | f(filter->mutable_max_val(), _max); | 112 | 80 | } | 113 | 80 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE7_set_pbIZNS_13get_convertorIiEEDavEUlPNS_12PColumnValueERKiE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 1.07k | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 1.07k | if constexpr (NeedMin) { | 108 | 1.07k | f(filter->mutable_min_val(), _min); | 109 | 1.07k | } | 110 | 1.07k | if constexpr (NeedMax) { | 111 | 1.07k | f(filter->mutable_max_val(), _max); | 112 | 1.07k | } | 113 | 1.07k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE7_set_pbIZNS_13get_convertorIlEEDavEUlPNS_12PColumnValueERKlE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 123 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 123 | if constexpr (NeedMin) { | 108 | 123 | f(filter->mutable_min_val(), _min); | 109 | 123 | } | 110 | 123 | if constexpr (NeedMax) { | 111 | 123 | f(filter->mutable_max_val(), _max); | 112 | 123 | } | 113 | 123 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncInLb1ELb1EE7_set_pbIZNS_13get_convertorInEEDavEUlPNS_12PColumnValueERKnE_EEvPNS_13PMinMaxFilterET_ Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIfLb1ELb1EE7_set_pbIZNS_13get_convertorIfEEDavEUlPNS_12PColumnValueERKfE_EEvPNS_13PMinMaxFilterET_ Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIdLb1ELb1EE7_set_pbIZNS_13get_convertorIdEEDavEUlPNS_12PColumnValueERKdE_EEvPNS_13PMinMaxFilterET_ Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE7_set_pbIZNS_13get_convertorIS1_EEDavEUlPNS_12PColumnValueERKS1_E_EEvPNS_13PMinMaxFilterET_ _ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE7_set_pbIZNS_13get_convertorIS3_EEDavEUlPNS_12PColumnValueERKS3_E_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 60 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 60 | if constexpr (NeedMin) { | 108 | 60 | f(filter->mutable_min_val(), _min); | 109 | 60 | } | 110 | 60 | if constexpr (NeedMax) { | 111 | 60 | f(filter->mutable_max_val(), _max); | 112 | 60 | } | 113 | 60 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE7_set_pbIZNS_13get_convertorIS3_EEDavEUlPNS_12PColumnValueERKS3_E_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 134 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 134 | if constexpr (NeedMin) { | 108 | 134 | f(filter->mutable_min_val(), _min); | 109 | 134 | } | 110 | 134 | if constexpr (NeedMax) { | 111 | 134 | f(filter->mutable_max_val(), _max); | 112 | 134 | } | 113 | 134 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE7_set_pbIZNS_13get_convertorIS1_EEDavEUlPNS_12PColumnValueERKS1_E_EEvPNS_13PMinMaxFilterET_ _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE7_set_pbIZNS_13get_convertorIS6_EEDavEUlPNS_12PColumnValueERKS6_E_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 60 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 60 | if constexpr (NeedMin) { | 108 | 60 | f(filter->mutable_min_val(), _min); | 109 | 60 | } | 110 | 60 | if constexpr (NeedMax) { | 111 | 60 | f(filter->mutable_max_val(), _max); | 112 | 60 | } | 113 | 60 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE7_set_pbIZNS_13get_convertorIS2_EEDavEUlPNS_12PColumnValueERKS2_E_EEvPNS_13PMinMaxFilterET_ Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE7_set_pbIZNS_13get_convertorIS2_EEDavEUlPNS_12PColumnValueERKS2_E_EEvPNS_13PMinMaxFilterET_ _ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE7_set_pbIZNS_13get_convertorIS1_EEDavEUlPNS_12PColumnValueERKS1_E_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 106 | 66 | void _set_pb(PMinMaxFilter* filter, auto f) { | 107 | 66 | if constexpr (NeedMin) { | 108 | 66 | f(filter->mutable_min_val(), _min); | 109 | 66 | } | 110 | 66 | if constexpr (NeedMax) { | 111 | 66 | f(filter->mutable_max_val(), _max); | 112 | 66 | } | 113 | 66 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE7_set_pbIZNS_13get_convertorIS5_EEDavEUlPNS_12PColumnValueERKS5_E_EEvPNS_13PMinMaxFilterET_ Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIjLb1ELb1EE7_set_pbIZNS_13get_convertorIjEEDavEUlPNS_12PColumnValueERKjE_EEvPNS_13PMinMaxFilterET_ Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIoLb1ELb1EE7_set_pbIZNS_13get_convertorIoEEDavEUlPNS_12PColumnValueERKoE_EEvPNS_13PMinMaxFilterET_ |
114 | | |
115 | | void _update_batch_string(const auto& column_string, const uint8_t* __restrict nullmap, |
116 | 193 | size_t start, size_t size) { |
117 | 990 | for (size_t i = start; i < size; i++) { |
118 | 797 | if (nullmap == nullptr || !nullmap[i]) { |
119 | 760 | if constexpr (NeedMin) { |
120 | 760 | if (column_string.get_data_at(i) < StringRef(_min) || !_min_value_set) { |
121 | 174 | _min = column_string.get_data_at(i).to_string(); |
122 | 174 | _min_value_set = true; |
123 | 174 | } |
124 | 760 | } |
125 | 760 | if constexpr (NeedMax) { |
126 | 760 | if (column_string.get_data_at(i) > StringRef(_max)) { |
127 | 287 | _max = column_string.get_data_at(i).to_string(); |
128 | 287 | } |
129 | 760 | } |
130 | 760 | } |
131 | 797 | } |
132 | 193 | } _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE20_update_batch_stringINS_9ColumnStrImEEEEvRKT_PKhmm Line | Count | Source | 116 | 1 | size_t start, size_t size) { | 117 | 9 | for (size_t i = start; i < size; i++) { | 118 | 8 | if (nullmap == nullptr || !nullmap[i]) { | 119 | 8 | if constexpr (NeedMin) { | 120 | 8 | if (column_string.get_data_at(i) < StringRef(_min) || !_min_value_set) { | 121 | 1 | _min = column_string.get_data_at(i).to_string(); | 122 | 1 | _min_value_set = true; | 123 | 1 | } | 124 | 8 | } | 125 | 8 | if constexpr (NeedMax) { | 126 | 8 | if (column_string.get_data_at(i) > StringRef(_max)) { | 127 | 8 | _max = column_string.get_data_at(i).to_string(); | 128 | 8 | } | 129 | 8 | } | 130 | 8 | } | 131 | 8 | } | 132 | 1 | } |
_ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE20_update_batch_stringINS_9ColumnStrIjEEEEvRKT_PKhmm Line | Count | Source | 116 | 192 | size_t start, size_t size) { | 117 | 981 | for (size_t i = start; i < size; i++) { | 118 | 789 | if (nullmap == nullptr || !nullmap[i]) { | 119 | 752 | if constexpr (NeedMin) { | 120 | 752 | if (column_string.get_data_at(i) < StringRef(_min) || !_min_value_set) { | 121 | 173 | _min = column_string.get_data_at(i).to_string(); | 122 | 173 | _min_value_set = true; | 123 | 173 | } | 124 | 752 | } | 125 | 752 | if constexpr (NeedMax) { | 126 | 752 | if (column_string.get_data_at(i) > StringRef(_max)) { | 127 | 279 | _max = column_string.get_data_at(i).to_string(); | 128 | 279 | } | 129 | 752 | } | 130 | 752 | } | 131 | 789 | } | 132 | 192 | } |
|
133 | | |
134 | 3.47k | void _update_batch(const ColumnPtr& column, size_t start) { |
135 | 3.47k | const auto size = column->size(); |
136 | 3.47k | if constexpr (std::is_same_v<T, std::string>) { |
137 | 99 | if (column->is_column_string64()) { |
138 | 1 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, |
139 | 1 | size); |
140 | 98 | } else { |
141 | 98 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, |
142 | 98 | size); |
143 | 98 | } |
144 | 3.38k | } else { |
145 | 3.38k | const T* data = (T*)column->get_raw_data().data; |
146 | 4.00M | for (size_t i = start; i < size; i++) { |
147 | 4.00M | if constexpr (NeedMin) { |
148 | 4.00M | _min = std::min(_min, *(data + i)); |
149 | 4.00M | } |
150 | 4.00M | if constexpr (NeedMax) { |
151 | 4.00M | _max = std::max(_max, *(data + i)); |
152 | 4.00M | } |
153 | 4.00M | } |
154 | 3.38k | } |
155 | 3.47k | } Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIhLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm _ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 65 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 65 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 65 | } else { | 145 | 65 | const T* data = (T*)column->get_raw_data().data; | 146 | 206 | for (size_t i = start; i < size; i++) { | 147 | 141 | if constexpr (NeedMin) { | 148 | 141 | _min = std::min(_min, *(data + i)); | 149 | 141 | } | 150 | 141 | if constexpr (NeedMax) { | 151 | 141 | _max = std::max(_max, *(data + i)); | 152 | 141 | } | 153 | 141 | } | 154 | 65 | } | 155 | 65 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 2.10k | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 2.10k | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 2.10k | } else { | 145 | 2.10k | const T* data = (T*)column->get_raw_data().data; | 146 | 4.00M | for (size_t i = start; i < size; i++) { | 147 | 3.99M | if constexpr (NeedMin) { | 148 | 3.99M | _min = std::min(_min, *(data + i)); | 149 | 3.99M | } | 150 | 3.99M | if constexpr (NeedMax) { | 151 | 3.99M | _max = std::max(_max, *(data + i)); | 152 | 3.99M | } | 153 | 3.99M | } | 154 | 2.10k | } | 155 | 2.10k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 908 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 908 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 908 | } else { | 145 | 908 | const T* data = (T*)column->get_raw_data().data; | 146 | 2.32k | for (size_t i = start; i < size; i++) { | 147 | 1.42k | if constexpr (NeedMin) { | 148 | 1.42k | _min = std::min(_min, *(data + i)); | 149 | 1.42k | } | 150 | 1.42k | if constexpr (NeedMax) { | 151 | 1.42k | _max = std::max(_max, *(data + i)); | 152 | 1.42k | } | 153 | 1.42k | } | 154 | 908 | } | 155 | 908 | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 73 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 73 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 73 | } else { | 145 | 73 | const T* data = (T*)column->get_raw_data().data; | 146 | 160 | for (size_t i = start; i < size; i++) { | 147 | 87 | if constexpr (NeedMin) { | 148 | 87 | _min = std::min(_min, *(data + i)); | 149 | 87 | } | 150 | 87 | if constexpr (NeedMax) { | 151 | 87 | _max = std::max(_max, *(data + i)); | 152 | 87 | } | 153 | 87 | } | 154 | 73 | } | 155 | 73 | } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 6 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 6 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 6 | } else { | 145 | 6 | const T* data = (T*)column->get_raw_data().data; | 146 | 14 | for (size_t i = start; i < size; i++) { | 147 | 8 | if constexpr (NeedMin) { | 148 | 8 | _min = std::min(_min, *(data + i)); | 149 | 8 | } | 150 | 8 | if constexpr (NeedMax) { | 151 | 8 | _max = std::max(_max, *(data + i)); | 152 | 8 | } | 153 | 8 | } | 154 | 6 | } | 155 | 6 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 134 | 2 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 2 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 2 | } else { | 145 | 2 | const T* data = (T*)column->get_raw_data().data; | 146 | 8 | for (size_t i = start; i < size; i++) { | 147 | 6 | if constexpr (NeedMin) { | 148 | 6 | _min = std::min(_min, *(data + i)); | 149 | 6 | } | 150 | 6 | if constexpr (NeedMax) { | 151 | 6 | _max = std::max(_max, *(data + i)); | 152 | 6 | } | 153 | 6 | } | 154 | 2 | } | 155 | 2 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 134 | 159 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 159 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 159 | } else { | 145 | 159 | const T* data = (T*)column->get_raw_data().data; | 146 | 444 | for (size_t i = start; i < size; i++) { | 147 | 285 | if constexpr (NeedMin) { | 148 | 285 | _min = std::min(_min, *(data + i)); | 149 | 285 | } | 150 | 285 | if constexpr (NeedMax) { | 151 | 285 | _max = std::max(_max, *(data + i)); | 152 | 285 | } | 153 | 285 | } | 154 | 159 | } | 155 | 159 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 134 | 13 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 13 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 13 | } else { | 145 | 13 | const T* data = (T*)column->get_raw_data().data; | 146 | 48 | for (size_t i = start; i < size; i++) { | 147 | 35 | if constexpr (NeedMin) { | 148 | 35 | _min = std::min(_min, *(data + i)); | 149 | 35 | } | 150 | 35 | if constexpr (NeedMax) { | 151 | 35 | _max = std::max(_max, *(data + i)); | 152 | 35 | } | 153 | 35 | } | 154 | 13 | } | 155 | 13 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS9_EEm Line | Count | Source | 134 | 99 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 99 | const auto size = column->size(); | 136 | 99 | if constexpr (std::is_same_v<T, std::string>) { | 137 | 99 | if (column->is_column_string64()) { | 138 | 1 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | 1 | size); | 140 | 98 | } else { | 141 | 98 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | 98 | size); | 143 | 98 | } | 144 | | } else { | 145 | | const T* data = (T*)column->get_raw_data().data; | 146 | | for (size_t i = start; i < size; i++) { | 147 | | if constexpr (NeedMin) { | 148 | | _min = std::min(_min, *(data + i)); | 149 | | } | 150 | | if constexpr (NeedMax) { | 151 | | _max = std::max(_max, *(data + i)); | 152 | | } | 153 | | } | 154 | | } | 155 | 99 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 134 | 39 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 39 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 39 | } else { | 145 | 39 | const T* data = (T*)column->get_raw_data().data; | 146 | 82 | for (size_t i = start; i < size; i++) { | 147 | 43 | if constexpr (NeedMin) { | 148 | 43 | _min = std::min(_min, *(data + i)); | 149 | 43 | } | 150 | 43 | if constexpr (NeedMax) { | 151 | 43 | _max = std::max(_max, *(data + i)); | 152 | 43 | } | 153 | 43 | } | 154 | 39 | } | 155 | 39 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS8_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 134 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 135 | 1 | const auto size = column->size(); | 136 | | if constexpr (std::is_same_v<T, std::string>) { | 137 | | if (column->is_column_string64()) { | 138 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 139 | | size); | 140 | | } else { | 141 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 142 | | size); | 143 | | } | 144 | 1 | } else { | 145 | 1 | const T* data = (T*)column->get_raw_data().data; | 146 | 4 | for (size_t i = start; i < size; i++) { | 147 | 3 | if constexpr (NeedMin) { | 148 | 3 | _min = std::min(_min, *(data + i)); | 149 | 3 | } | 150 | 3 | if constexpr (NeedMax) { | 151 | 3 | _max = std::max(_max, *(data + i)); | 152 | 3 | } | 153 | 3 | } | 154 | 1 | } | 155 | 1 | } |
|
156 | | |
157 | 3.42k | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { |
158 | 3.42k | const auto size = column->size(); |
159 | 3.42k | if constexpr (std::is_same_v<T, std::string>) { |
160 | 94 | if (column->is_column_string64()) { |
161 | 0 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), |
162 | 0 | start, size); |
163 | 94 | } else { |
164 | 94 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), |
165 | 94 | start, size); |
166 | 94 | } |
167 | 3.33k | } else { |
168 | 3.33k | const T* data = (T*)column->get_raw_data().data; |
169 | 866k | for (size_t i = start; i < size; i++) { |
170 | 863k | if (!nullmap[i]) { |
171 | 861k | if constexpr (NeedMin) { |
172 | 861k | _min = std::min(_min, *(data + i)); |
173 | 861k | } |
174 | 861k | if constexpr (NeedMax) { |
175 | 861k | _max = std::max(_max, *(data + i)); |
176 | 861k | } |
177 | 861k | } |
178 | 863k | } |
179 | 3.33k | } |
180 | 3.42k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 3 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 3 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 3 | } else { | 168 | 3 | const T* data = (T*)column->get_raw_data().data; | 169 | 7 | for (size_t i = start; i < size; i++) { | 170 | 4 | if (!nullmap[i]) { | 171 | 3 | if constexpr (NeedMin) { | 172 | 3 | _min = std::min(_min, *(data + i)); | 173 | 3 | } | 174 | 3 | if constexpr (NeedMax) { | 175 | 3 | _max = std::max(_max, *(data + i)); | 176 | 3 | } | 177 | 3 | } | 178 | 4 | } | 179 | 3 | } | 180 | 3 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm _ZN5doris13MinMaxNumFuncIaLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 173 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 173 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 173 | } else { | 168 | 173 | const T* data = (T*)column->get_raw_data().data; | 169 | 567 | for (size_t i = start; i < size; i++) { | 170 | 394 | if (!nullmap[i]) { | 171 | 389 | if constexpr (NeedMin) { | 172 | 389 | _min = std::min(_min, *(data + i)); | 173 | 389 | } | 174 | 389 | if constexpr (NeedMax) { | 175 | 389 | _max = std::max(_max, *(data + i)); | 176 | 389 | } | 177 | 389 | } | 178 | 394 | } | 179 | 173 | } | 180 | 173 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 114 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 114 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 114 | } else { | 168 | 114 | const T* data = (T*)column->get_raw_data().data; | 169 | 709 | for (size_t i = start; i < size; i++) { | 170 | 595 | if (!nullmap[i]) { | 171 | 581 | if constexpr (NeedMin) { | 172 | 581 | _min = std::min(_min, *(data + i)); | 173 | 581 | } | 174 | 581 | if constexpr (NeedMax) { | 175 | 581 | _max = std::max(_max, *(data + i)); | 176 | 581 | } | 177 | 581 | } | 178 | 595 | } | 179 | 114 | } | 180 | 114 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 1.83k | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 1.83k | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 1.83k | } else { | 168 | 1.83k | const T* data = (T*)column->get_raw_data().data; | 169 | 858k | for (size_t i = start; i < size; i++) { | 170 | 856k | if (!nullmap[i]) { | 171 | 854k | if constexpr (NeedMin) { | 172 | 854k | _min = std::min(_min, *(data + i)); | 173 | 854k | } | 174 | 854k | if constexpr (NeedMax) { | 175 | 854k | _max = std::max(_max, *(data + i)); | 176 | 854k | } | 177 | 854k | } | 178 | 856k | } | 179 | 1.83k | } | 180 | 1.83k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 761 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 761 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 761 | } else { | 168 | 761 | const T* data = (T*)column->get_raw_data().data; | 169 | 4.21k | for (size_t i = start; i < size; i++) { | 170 | 3.44k | if (!nullmap[i]) { | 171 | 3.18k | if constexpr (NeedMin) { | 172 | 3.18k | _min = std::min(_min, *(data + i)); | 173 | 3.18k | } | 174 | 3.18k | if constexpr (NeedMax) { | 175 | 3.18k | _max = std::max(_max, *(data + i)); | 176 | 3.18k | } | 177 | 3.18k | } | 178 | 3.44k | } | 179 | 761 | } | 180 | 761 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncInLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIfLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm _ZN5doris13MinMaxNumFuncIdLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 2 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 2 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 2 | } else { | 168 | 2 | const T* data = (T*)column->get_raw_data().data; | 169 | 8 | for (size_t i = start; i < size; i++) { | 170 | 6 | if (!nullmap[i]) { | 171 | 6 | if constexpr (NeedMin) { | 172 | 6 | _min = std::min(_min, *(data + i)); | 173 | 6 | } | 174 | 6 | if constexpr (NeedMax) { | 175 | 6 | _max = std::max(_max, *(data + i)); | 176 | 6 | } | 177 | 6 | } | 178 | 6 | } | 179 | 2 | } | 180 | 2 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 12 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 12 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 12 | } else { | 168 | 12 | const T* data = (T*)column->get_raw_data().data; | 169 | 108 | for (size_t i = start; i < size; i++) { | 170 | 96 | if (!nullmap[i]) { | 171 | 96 | if constexpr (NeedMin) { | 172 | 96 | _min = std::min(_min, *(data + i)); | 173 | 96 | } | 174 | 96 | if constexpr (NeedMax) { | 175 | 96 | _max = std::max(_max, *(data + i)); | 176 | 96 | } | 177 | 96 | } | 178 | 96 | } | 179 | 12 | } | 180 | 12 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 20 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 20 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 20 | } else { | 168 | 20 | const T* data = (T*)column->get_raw_data().data; | 169 | 772 | for (size_t i = start; i < size; i++) { | 170 | 752 | if (!nullmap[i]) { | 171 | 713 | if constexpr (NeedMin) { | 172 | 713 | _min = std::min(_min, *(data + i)); | 173 | 713 | } | 174 | 713 | if constexpr (NeedMax) { | 175 | 713 | _max = std::max(_max, *(data + i)); | 176 | 713 | } | 177 | 713 | } | 178 | 752 | } | 179 | 20 | } | 180 | 20 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 300 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 300 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 300 | } else { | 168 | 300 | const T* data = (T*)column->get_raw_data().data; | 169 | 722 | for (size_t i = start; i < size; i++) { | 170 | 422 | if (!nullmap[i]) { | 171 | 413 | if constexpr (NeedMin) { | 172 | 413 | _min = std::min(_min, *(data + i)); | 173 | 413 | } | 174 | 413 | if constexpr (NeedMax) { | 175 | 413 | _max = std::max(_max, *(data + i)); | 176 | 413 | } | 177 | 413 | } | 178 | 422 | } | 179 | 300 | } | 180 | 300 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS9_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 94 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 94 | const auto size = column->size(); | 159 | 94 | if constexpr (std::is_same_v<T, std::string>) { | 160 | 94 | if (column->is_column_string64()) { | 161 | 0 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | 0 | start, size); | 163 | 94 | } else { | 164 | 94 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | 94 | start, size); | 166 | 94 | } | 167 | | } else { | 168 | | const T* data = (T*)column->get_raw_data().data; | 169 | | for (size_t i = start; i < size; i++) { | 170 | | if (!nullmap[i]) { | 171 | | if constexpr (NeedMin) { | 172 | | _min = std::min(_min, *(data + i)); | 173 | | } | 174 | | if constexpr (NeedMax) { | 175 | | _max = std::max(_max, *(data + i)); | 176 | | } | 177 | | } | 178 | | } | 179 | | } | 180 | 94 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 20 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 20 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 20 | } else { | 168 | 20 | const T* data = (T*)column->get_raw_data().data; | 169 | 76 | for (size_t i = start; i < size; i++) { | 170 | 56 | if (!nullmap[i]) { | 171 | 15 | if constexpr (NeedMin) { | 172 | 15 | _min = std::min(_min, *(data + i)); | 173 | 15 | } | 174 | 15 | if constexpr (NeedMax) { | 175 | 15 | _max = std::max(_max, *(data + i)); | 176 | 15 | } | 177 | 15 | } | 178 | 56 | } | 179 | 20 | } | 180 | 20 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm _ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 57 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 57 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 57 | } else { | 168 | 57 | const T* data = (T*)column->get_raw_data().data; | 169 | 196 | for (size_t i = start; i < size; i++) { | 170 | 139 | if (!nullmap[i]) { | 171 | 105 | if constexpr (NeedMin) { | 172 | 105 | _min = std::min(_min, *(data + i)); | 173 | 105 | } | 174 | 105 | if constexpr (NeedMax) { | 175 | 105 | _max = std::max(_max, *(data + i)); | 176 | 105 | } | 177 | 105 | } | 178 | 139 | } | 179 | 57 | } | 180 | 57 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS8_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 26 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 26 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 26 | } else { | 168 | 26 | const T* data = (T*)column->get_raw_data().data; | 169 | 778 | for (size_t i = start; i < size; i++) { | 170 | 752 | if (!nullmap[i]) { | 171 | 752 | if constexpr (NeedMin) { | 172 | 752 | _min = std::min(_min, *(data + i)); | 173 | 752 | } | 174 | 752 | if constexpr (NeedMax) { | 175 | 752 | _max = std::max(_max, *(data + i)); | 176 | 752 | } | 177 | 752 | } | 178 | 752 | } | 179 | 26 | } | 180 | 26 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 7 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 7 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 7 | } else { | 168 | 7 | const T* data = (T*)column->get_raw_data().data; | 169 | 529 | for (size_t i = start; i < size; i++) { | 170 | 522 | if (!nullmap[i]) { | 171 | 475 | if constexpr (NeedMin) { | 172 | 475 | _min = std::min(_min, *(data + i)); | 173 | 475 | } | 174 | 475 | if constexpr (NeedMax) { | 175 | 475 | _max = std::max(_max, *(data + i)); | 176 | 475 | } | 177 | 475 | } | 178 | 522 | } | 179 | 7 | } | 180 | 7 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 157 | 2 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 158 | 2 | const auto size = column->size(); | 159 | | if constexpr (std::is_same_v<T, std::string>) { | 160 | | if (column->is_column_string64()) { | 161 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 162 | | start, size); | 163 | | } else { | 164 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 165 | | start, size); | 166 | | } | 167 | 2 | } else { | 168 | 2 | const T* data = (T*)column->get_raw_data().data; | 169 | 24 | for (size_t i = start; i < size; i++) { | 170 | 22 | if (!nullmap[i]) { | 171 | 20 | if constexpr (NeedMin) { | 172 | 20 | _min = std::min(_min, *(data + i)); | 173 | 20 | } | 174 | 20 | if constexpr (NeedMax) { | 175 | 20 | _max = std::max(_max, *(data + i)); | 176 | 20 | } | 177 | 20 | } | 178 | 22 | } | 179 | 2 | } | 180 | 2 | } |
|
181 | | |
182 | | T _max = type_limit<T>::min(); |
183 | | T _min = type_limit<T>::max(); |
184 | | |
185 | | bool _min_value_set = false; |
186 | | }; |
187 | | |
188 | | template <class T> |
189 | | using MinNumFunc = MinMaxNumFunc<T, false, true>; |
190 | | |
191 | | template <class T> |
192 | | using MaxNumFunc = MinMaxNumFunc<T, true, false>; |
193 | | |
194 | | } // namespace doris |