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 | 23.7k | 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 | | // Deep copy. The returned object shares nothing with this one. |
41 | | virtual MinMaxFuncBase* clone() const = 0; |
42 | 23.9k | virtual ~MinMaxFuncBase() = default; |
43 | | |
44 | | virtual void to_pb(PMinMaxFilter* filter) = 0; |
45 | | }; |
46 | | |
47 | | template <class T, bool NeedMax = true, bool NeedMin = true> |
48 | | class MinMaxNumFunc : public MinMaxFuncBase { |
49 | | public: |
50 | | static constexpr bool IsStringValue = std::is_same_v<T, std::string>; |
51 | 23.8k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {}_ZN5doris13MinMaxNumFuncIhLb1ELb1EEC2Eb Line | Count | Source | 51 | 9 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EEC2Eb Line | Count | Source | 51 | 2 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EEC2Eb Line | Count | Source | 51 | 533 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EEC2Eb Line | Count | Source | 51 | 745 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EEC2Eb Line | Count | Source | 51 | 14.6k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EEC2Eb Line | Count | Source | 51 | 3.18k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncInLb1ELb1EEC2Eb Line | Count | Source | 51 | 191 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EEC2Eb Line | Count | Source | 51 | 2 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EEC2Eb Line | Count | Source | 51 | 27 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EEC2Eb Line | Count | Source | 51 | 19 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EEC2Eb Line | Count | Source | 51 | 557 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EEC2Eb Line | Count | Source | 51 | 2.55k | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EEC2Eb Line | Count | Source | 51 | 24 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EEC2Eb _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EEC2Eb Line | Count | Source | 51 | 856 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EEC2Eb Line | Count | Source | 51 | 34 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EEC2Eb Line | Count | Source | 51 | 29 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EEC2Eb Line | Count | Source | 51 | 266 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EEC2Eb Line | Count | Source | 51 | 29 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EEC2Eb Line | Count | Source | 51 | 38 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EEC2Eb Line | Count | Source | 51 | 45 | MinMaxNumFunc(bool null_aware) : MinMaxFuncBase(null_aware) {} |
|
52 | 846 | ~MinMaxNumFunc() override = default; |
53 | | |
54 | 5.87k | void insert_fixed_len(const ColumnPtr& column, size_t start) override { |
55 | 5.87k | if (is_column_nullable(*column)) { |
56 | 3.95k | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); |
57 | 3.95k | const auto& col = nullable->get_nested_column_ptr(); |
58 | 3.95k | const auto& nullmap = nullable->get_null_map_data(); |
59 | 3.95k | if (nullable->has_null()) { |
60 | 2.85k | _update_batch(col, nullmap, start); |
61 | 2.85k | _contain_null = true; |
62 | 2.85k | } else { |
63 | 1.09k | _update_batch(col, start); |
64 | 1.09k | } |
65 | 3.95k | } else { |
66 | 1.92k | _update_batch(column, start); |
67 | 1.92k | } |
68 | 5.87k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 2 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 2 | if (is_column_nullable(*column)) { | 56 | 2 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 2 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 2 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 2 | if (nullable->has_null()) { | 60 | 2 | _update_batch(col, nullmap, start); | 61 | 2 | _contain_null = true; | 62 | 2 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 2 | } else { | 66 | 0 | _update_batch(column, start); | 67 | 0 | } | 68 | 2 | } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 54 | 1 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 1 | if (is_column_nullable(*column)) { | 56 | 0 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 0 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 0 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 0 | if (nullable->has_null()) { | 60 | 0 | _update_batch(col, nullmap, start); | 61 | 0 | _contain_null = true; | 62 | 0 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 1 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 1 | } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 298 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 298 | if (is_column_nullable(*column)) { | 56 | 278 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 278 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 278 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 278 | if (nullable->has_null()) { | 60 | 85 | _update_batch(col, nullmap, start); | 61 | 85 | _contain_null = true; | 62 | 193 | } else { | 63 | 193 | _update_batch(col, start); | 64 | 193 | } | 65 | 278 | } else { | 66 | 20 | _update_batch(column, start); | 67 | 20 | } | 68 | 298 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 151 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 151 | if (is_column_nullable(*column)) { | 56 | 150 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 150 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 150 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 150 | if (nullable->has_null()) { | 60 | 150 | _update_batch(col, nullmap, start); | 61 | 150 | _contain_null = true; | 62 | 150 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 150 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 151 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 3.57k | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 3.57k | if (is_column_nullable(*column)) { | 56 | 2.26k | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 2.26k | const auto& col = nullable->get_nested_column_ptr(); | 58 | 2.26k | const auto& nullmap = nullable->get_null_map_data(); | 59 | 2.26k | if (nullable->has_null()) { | 60 | 1.46k | _update_batch(col, nullmap, start); | 61 | 1.46k | _contain_null = true; | 62 | 1.46k | } else { | 63 | 806 | _update_batch(col, start); | 64 | 806 | } | 65 | 2.26k | } else { | 66 | 1.30k | _update_batch(column, start); | 67 | 1.30k | } | 68 | 3.57k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 783 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 783 | if (is_column_nullable(*column)) { | 56 | 695 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 695 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 695 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 695 | if (nullable->has_null()) { | 60 | 669 | _update_batch(col, nullmap, start); | 61 | 669 | _contain_null = true; | 62 | 669 | } else { | 63 | 26 | _update_batch(col, start); | 64 | 26 | } | 65 | 695 | } else { | 66 | 88 | _update_batch(column, start); | 67 | 88 | } | 68 | 783 | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 111 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 111 | if (is_column_nullable(*column)) { | 56 | 13 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 13 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 13 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 13 | if (nullable->has_null()) { | 60 | 13 | _update_batch(col, nullmap, start); | 61 | 13 | _contain_null = true; | 62 | 13 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 98 | } else { | 66 | 98 | _update_batch(column, start); | 67 | 98 | } | 68 | 111 | } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 1 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 1 | if (is_column_nullable(*column)) { | 56 | 0 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 0 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 0 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 0 | if (nullable->has_null()) { | 60 | 0 | _update_batch(col, nullmap, start); | 61 | 0 | _contain_null = true; | 62 | 0 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 1 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 1 | } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 12 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 12 | if (is_column_nullable(*column)) { | 56 | 11 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 11 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 11 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 11 | if (nullable->has_null()) { | 60 | 5 | _update_batch(col, nullmap, start); | 61 | 5 | _contain_null = true; | 62 | 6 | } else { | 63 | 6 | _update_batch(col, start); | 64 | 6 | } | 65 | 11 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 12 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 54 | 8 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 8 | if (is_column_nullable(*column)) { | 56 | 6 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 6 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 6 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 6 | if (nullable->has_null()) { | 60 | 6 | _update_batch(col, nullmap, start); | 61 | 6 | _contain_null = true; | 62 | 6 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 6 | } else { | 66 | 2 | _update_batch(column, start); | 67 | 2 | } | 68 | 8 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 54 | 164 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 164 | if (is_column_nullable(*column)) { | 56 | 11 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 11 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 11 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 11 | if (nullable->has_null()) { | 60 | 9 | _update_batch(col, nullmap, start); | 61 | 9 | _contain_null = true; | 62 | 9 | } else { | 63 | 2 | _update_batch(col, start); | 64 | 2 | } | 65 | 153 | } else { | 66 | 153 | _update_batch(column, start); | 67 | 153 | } | 68 | 164 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 54 | 296 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 296 | if (is_column_nullable(*column)) { | 56 | 262 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 262 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 262 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 262 | if (nullable->has_null()) { | 60 | 258 | _update_batch(col, nullmap, start); | 61 | 258 | _contain_null = true; | 62 | 258 | } else { | 63 | 4 | _update_batch(col, start); | 64 | 4 | } | 65 | 262 | } else { | 66 | 34 | _update_batch(column, start); | 67 | 34 | } | 68 | 296 | } |
_ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 54 | 3 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 3 | if (is_column_nullable(*column)) { | 56 | 3 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 3 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 3 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 3 | if (nullable->has_null()) { | 60 | 3 | _update_batch(col, nullmap, start); | 61 | 3 | _contain_null = true; | 62 | 3 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 3 | } else { | 66 | 0 | _update_batch(column, start); | 67 | 0 | } | 68 | 3 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS9_EEm Line | Count | Source | 54 | 341 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 341 | if (is_column_nullable(*column)) { | 56 | 147 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 147 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 147 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 147 | if (nullable->has_null()) { | 60 | 122 | _update_batch(col, nullmap, start); | 61 | 122 | _contain_null = true; | 62 | 122 | } else { | 63 | 25 | _update_batch(col, start); | 64 | 25 | } | 65 | 194 | } else { | 66 | 194 | _update_batch(column, start); | 67 | 194 | } | 68 | 341 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 54 | 5 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 5 | if (is_column_nullable(*column)) { | 56 | 4 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 4 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 4 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 4 | if (nullable->has_null()) { | 60 | 4 | _update_batch(col, nullmap, start); | 61 | 4 | _contain_null = true; | 62 | 4 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 4 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 5 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 54 | 10 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 10 | if (is_column_nullable(*column)) { | 56 | 1 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 1 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 1 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 1 | if (nullable->has_null()) { | 60 | 1 | _update_batch(col, nullmap, start); | 61 | 1 | _contain_null = true; | 62 | 1 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 9 | } else { | 66 | 9 | _update_batch(column, start); | 67 | 9 | } | 68 | 10 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 54 | 93 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 93 | if (is_column_nullable(*column)) { | 56 | 81 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 81 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 81 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 81 | if (nullable->has_null()) { | 60 | 50 | _update_batch(col, nullmap, start); | 61 | 50 | _contain_null = true; | 62 | 50 | } else { | 63 | 31 | _update_batch(col, start); | 64 | 31 | } | 65 | 81 | } else { | 66 | 12 | _update_batch(column, start); | 67 | 12 | } | 68 | 93 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS8_EEm Line | Count | Source | 54 | 13 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 13 | if (is_column_nullable(*column)) { | 56 | 12 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 12 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 12 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 12 | if (nullable->has_null()) { | 60 | 12 | _update_batch(col, nullmap, start); | 61 | 12 | _contain_null = true; | 62 | 12 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 12 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 13 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 3 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 3 | if (is_column_nullable(*column)) { | 56 | 2 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 2 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 2 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 2 | if (nullable->has_null()) { | 60 | 2 | _update_batch(col, nullmap, start); | 61 | 2 | _contain_null = true; | 62 | 2 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 2 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 3 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE16insert_fixed_lenERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 54 | 6 | void insert_fixed_len(const ColumnPtr& column, size_t start) override { | 55 | 6 | if (is_column_nullable(*column)) { | 56 | 5 | const auto* nullable = assert_cast<const ColumnNullable*>(column.get()); | 57 | 5 | const auto& col = nullable->get_nested_column_ptr(); | 58 | 5 | const auto& nullmap = nullable->get_null_map_data(); | 59 | 5 | if (nullable->has_null()) { | 60 | 5 | _update_batch(col, nullmap, start); | 61 | 5 | _contain_null = true; | 62 | 5 | } else { | 63 | 0 | _update_batch(col, start); | 64 | 0 | } | 65 | 5 | } else { | 66 | 1 | _update_batch(column, start); | 67 | 1 | } | 68 | 6 | } |
|
69 | | |
70 | 13.4k | Status merge(MinMaxFuncBase* minmax_func) override { |
71 | 13.4k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); |
72 | 13.4k | if constexpr (NeedMin) { |
73 | 13.4k | if constexpr (IsStringValue) { |
74 | 306 | if (other_minmax->_min < _min || !_min_value_set) { |
75 | 66 | _min = other_minmax->_min; |
76 | 66 | _min_value_set = true; |
77 | 66 | } |
78 | 13.1k | } else if (other_minmax->_min < _min) { |
79 | 973 | _min = other_minmax->_min; |
80 | 973 | } |
81 | 13.4k | } |
82 | 13.4k | if constexpr (NeedMax) { |
83 | 13.4k | if (other_minmax->_max > _max) { |
84 | 1.01k | _max = other_minmax->_max; |
85 | 1.01k | } |
86 | 13.4k | } |
87 | | |
88 | 13.4k | _contain_null |= minmax_func->contain_null(); |
89 | 13.4k | return Status::OK(); |
90 | 13.4k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 1 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 1 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 1 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 1 | } else if (other_minmax->_min < _min) { | 79 | 1 | _min = other_minmax->_min; | 80 | 1 | } | 81 | 1 | } | 82 | 1 | if constexpr (NeedMax) { | 83 | 1 | if (other_minmax->_max > _max) { | 84 | 1 | _max = other_minmax->_max; | 85 | 1 | } | 86 | 1 | } | 87 | | | 88 | 1 | _contain_null |= minmax_func->contain_null(); | 89 | 1 | return Status::OK(); | 90 | 1 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE _ZN5doris13MinMaxNumFuncIaLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 291 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 291 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 291 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 291 | } else if (other_minmax->_min < _min) { | 79 | 16 | _min = other_minmax->_min; | 80 | 16 | } | 81 | 291 | } | 82 | 291 | if constexpr (NeedMax) { | 83 | 291 | if (other_minmax->_max > _max) { | 84 | 17 | _max = other_minmax->_max; | 85 | 17 | } | 86 | 291 | } | 87 | | | 88 | 291 | _contain_null |= minmax_func->contain_null(); | 89 | 291 | return Status::OK(); | 90 | 291 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 364 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 364 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 364 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 364 | } else if (other_minmax->_min < _min) { | 79 | 19 | _min = other_minmax->_min; | 80 | 19 | } | 81 | 364 | } | 82 | 364 | if constexpr (NeedMax) { | 83 | 364 | if (other_minmax->_max > _max) { | 84 | 15 | _max = other_minmax->_max; | 85 | 15 | } | 86 | 364 | } | 87 | | | 88 | 364 | _contain_null |= minmax_func->contain_null(); | 89 | 364 | return Status::OK(); | 90 | 364 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 8.56k | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 8.56k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 8.56k | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 8.56k | } else if (other_minmax->_min < _min) { | 79 | 599 | _min = other_minmax->_min; | 80 | 599 | } | 81 | 8.56k | } | 82 | 8.56k | if constexpr (NeedMax) { | 83 | 8.56k | if (other_minmax->_max > _max) { | 84 | 584 | _max = other_minmax->_max; | 85 | 584 | } | 86 | 8.56k | } | 87 | | | 88 | 8.56k | _contain_null |= minmax_func->contain_null(); | 89 | 8.56k | return Status::OK(); | 90 | 8.56k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 1.04k | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 1.04k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 1.04k | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 1.04k | } else if (other_minmax->_min < _min) { | 79 | 147 | _min = other_minmax->_min; | 80 | 147 | } | 81 | 1.04k | } | 82 | 1.04k | if constexpr (NeedMax) { | 83 | 1.04k | if (other_minmax->_max > _max) { | 84 | 149 | _max = other_minmax->_max; | 85 | 149 | } | 86 | 1.04k | } | 87 | | | 88 | 1.04k | _contain_null |= minmax_func->contain_null(); | 89 | 1.04k | return Status::OK(); | 90 | 1.04k | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 109 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 109 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 109 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 109 | } else if (other_minmax->_min < _min) { | 79 | 15 | _min = other_minmax->_min; | 80 | 15 | } | 81 | 109 | } | 82 | 109 | if constexpr (NeedMax) { | 83 | 109 | if (other_minmax->_max > _max) { | 84 | 13 | _max = other_minmax->_max; | 85 | 13 | } | 86 | 109 | } | 87 | | | 88 | 109 | _contain_null |= minmax_func->contain_null(); | 89 | 109 | return Status::OK(); | 90 | 109 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIfLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE _ZN5doris13MinMaxNumFuncIdLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 8 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 8 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 8 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 8 | } else if (other_minmax->_min < _min) { | 79 | 0 | _min = other_minmax->_min; | 80 | 0 | } | 81 | 8 | } | 82 | 8 | if constexpr (NeedMax) { | 83 | 8 | if (other_minmax->_max > _max) { | 84 | 0 | _max = other_minmax->_max; | 85 | 0 | } | 86 | 8 | } | 87 | | | 88 | 8 | _contain_null |= minmax_func->contain_null(); | 89 | 8 | return Status::OK(); | 90 | 8 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 3 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 3 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 3 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 3 | } else if (other_minmax->_min < _min) { | 79 | 0 | _min = other_minmax->_min; | 80 | 0 | } | 81 | 3 | } | 82 | 3 | if constexpr (NeedMax) { | 83 | 3 | if (other_minmax->_max > _max) { | 84 | 0 | _max = other_minmax->_max; | 85 | 0 | } | 86 | 3 | } | 87 | | | 88 | 3 | _contain_null |= minmax_func->contain_null(); | 89 | 3 | return Status::OK(); | 90 | 3 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 334 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 334 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 334 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 334 | } else if (other_minmax->_min < _min) { | 79 | 48 | _min = other_minmax->_min; | 80 | 48 | } | 81 | 334 | } | 82 | 334 | if constexpr (NeedMax) { | 83 | 334 | if (other_minmax->_max > _max) { | 84 | 48 | _max = other_minmax->_max; | 85 | 48 | } | 86 | 334 | } | 87 | | | 88 | 334 | _contain_null |= minmax_func->contain_null(); | 89 | 334 | return Status::OK(); | 90 | 334 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 2.24k | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 2.24k | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 2.24k | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 2.24k | } else if (other_minmax->_min < _min) { | 79 | 110 | _min = other_minmax->_min; | 80 | 110 | } | 81 | 2.24k | } | 82 | 2.24k | if constexpr (NeedMax) { | 83 | 2.24k | if (other_minmax->_max > _max) { | 84 | 124 | _max = other_minmax->_max; | 85 | 124 | } | 86 | 2.24k | } | 87 | | | 88 | 2.24k | _contain_null |= minmax_func->contain_null(); | 89 | 2.24k | return Status::OK(); | 90 | 2.24k | } |
_ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 16 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 16 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 16 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 16 | } else if (other_minmax->_min < _min) { | 79 | 0 | _min = other_minmax->_min; | 80 | 0 | } | 81 | 16 | } | 82 | 16 | if constexpr (NeedMax) { | 83 | 16 | if (other_minmax->_max > _max) { | 84 | 0 | _max = other_minmax->_max; | 85 | 0 | } | 86 | 16 | } | 87 | | | 88 | 16 | _contain_null |= minmax_func->contain_null(); | 89 | 16 | return Status::OK(); | 90 | 16 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 306 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 306 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 306 | if constexpr (NeedMin) { | 73 | 306 | if constexpr (IsStringValue) { | 74 | 306 | if (other_minmax->_min < _min || !_min_value_set) { | 75 | 66 | _min = other_minmax->_min; | 76 | 66 | _min_value_set = true; | 77 | 66 | } | 78 | | } else if (other_minmax->_min < _min) { | 79 | | _min = other_minmax->_min; | 80 | | } | 81 | 306 | } | 82 | 306 | if constexpr (NeedMax) { | 83 | 306 | if (other_minmax->_max > _max) { | 84 | 42 | _max = other_minmax->_max; | 85 | 42 | } | 86 | 306 | } | 87 | | | 88 | 306 | _contain_null |= minmax_func->contain_null(); | 89 | 306 | return Status::OK(); | 90 | 306 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 20 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 20 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 20 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 20 | } else if (other_minmax->_min < _min) { | 79 | 0 | _min = other_minmax->_min; | 80 | 0 | } | 81 | 20 | } | 82 | 20 | if constexpr (NeedMax) { | 83 | 20 | if (other_minmax->_max > _max) { | 84 | 0 | _max = other_minmax->_max; | 85 | 0 | } | 86 | 20 | } | 87 | | | 88 | 20 | _contain_null |= minmax_func->contain_null(); | 89 | 20 | return Status::OK(); | 90 | 20 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 6 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 6 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 6 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 6 | } else if (other_minmax->_min < _min) { | 79 | 1 | _min = other_minmax->_min; | 80 | 1 | } | 81 | 6 | } | 82 | 6 | if constexpr (NeedMax) { | 83 | 6 | if (other_minmax->_max > _max) { | 84 | 1 | _max = other_minmax->_max; | 85 | 1 | } | 86 | 6 | } | 87 | | | 88 | 6 | _contain_null |= minmax_func->contain_null(); | 89 | 6 | return Status::OK(); | 90 | 6 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 107 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 107 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 107 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 107 | } else if (other_minmax->_min < _min) { | 79 | 16 | _min = other_minmax->_min; | 80 | 16 | } | 81 | 107 | } | 82 | 107 | if constexpr (NeedMax) { | 83 | 107 | if (other_minmax->_max > _max) { | 84 | 16 | _max = other_minmax->_max; | 85 | 16 | } | 86 | 107 | } | 87 | | | 88 | 107 | _contain_null |= minmax_func->contain_null(); | 89 | 107 | return Status::OK(); | 90 | 107 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 9 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 9 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 9 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 9 | } else if (other_minmax->_min < _min) { | 79 | 0 | _min = other_minmax->_min; | 80 | 0 | } | 81 | 9 | } | 82 | 9 | if constexpr (NeedMax) { | 83 | 9 | if (other_minmax->_max > _max) { | 84 | 0 | _max = other_minmax->_max; | 85 | 0 | } | 86 | 9 | } | 87 | | | 88 | 9 | _contain_null |= minmax_func->contain_null(); | 89 | 9 | return Status::OK(); | 90 | 9 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 30 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 30 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 30 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 30 | } else if (other_minmax->_min < _min) { | 79 | 0 | _min = other_minmax->_min; | 80 | 0 | } | 81 | 30 | } | 82 | 30 | if constexpr (NeedMax) { | 83 | 30 | if (other_minmax->_max > _max) { | 84 | 0 | _max = other_minmax->_max; | 85 | 0 | } | 86 | 30 | } | 87 | | | 88 | 30 | _contain_null |= minmax_func->contain_null(); | 89 | 30 | return Status::OK(); | 90 | 30 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE5mergeEPNS_14MinMaxFuncBaseE Line | Count | Source | 70 | 31 | Status merge(MinMaxFuncBase* minmax_func) override { | 71 | 31 | auto* other_minmax = static_cast<MinMaxNumFunc<T>*>(minmax_func); | 72 | 31 | if constexpr (NeedMin) { | 73 | | if constexpr (IsStringValue) { | 74 | | if (other_minmax->_min < _min || !_min_value_set) { | 75 | | _min = other_minmax->_min; | 76 | | _min_value_set = true; | 77 | | } | 78 | 31 | } else if (other_minmax->_min < _min) { | 79 | 1 | _min = other_minmax->_min; | 80 | 1 | } | 81 | 31 | } | 82 | 31 | if constexpr (NeedMax) { | 83 | 31 | if (other_minmax->_max > _max) { | 84 | 0 | _max = other_minmax->_max; | 85 | 0 | } | 86 | 31 | } | 87 | | | 88 | 31 | _contain_null |= minmax_func->contain_null(); | 89 | 31 | return Status::OK(); | 90 | 31 | } |
|
91 | | |
92 | 954 | MinMaxFuncBase* clone() const override { |
93 | 954 | auto* cloned = new MinMaxNumFunc(_null_aware); |
94 | 954 | cloned->_max = _max; |
95 | 954 | cloned->_min = _min; |
96 | 954 | cloned->_min_value_set = _min_value_set; |
97 | 954 | cloned->_contain_null = _contain_null; |
98 | 954 | return cloned; |
99 | 954 | } Unexecuted instantiation: _ZNK5doris13MinMaxNumFuncIhLb1ELb1EE5cloneEv Unexecuted instantiation: _ZNK5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE5cloneEv _ZNK5doris13MinMaxNumFuncIaLb1ELb1EE5cloneEv Line | Count | Source | 92 | 49 | MinMaxFuncBase* clone() const override { | 93 | 49 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 49 | cloned->_max = _max; | 95 | 49 | cloned->_min = _min; | 96 | 49 | cloned->_min_value_set = _min_value_set; | 97 | 49 | cloned->_contain_null = _contain_null; | 98 | 49 | return cloned; | 99 | 49 | } |
_ZNK5doris13MinMaxNumFuncIsLb1ELb1EE5cloneEv Line | Count | Source | 92 | 61 | MinMaxFuncBase* clone() const override { | 93 | 61 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 61 | cloned->_max = _max; | 95 | 61 | cloned->_min = _min; | 96 | 61 | cloned->_min_value_set = _min_value_set; | 97 | 61 | cloned->_contain_null = _contain_null; | 98 | 61 | return cloned; | 99 | 61 | } |
_ZNK5doris13MinMaxNumFuncIiLb1ELb1EE5cloneEv Line | Count | Source | 92 | 664 | MinMaxFuncBase* clone() const override { | 93 | 664 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 664 | cloned->_max = _max; | 95 | 664 | cloned->_min = _min; | 96 | 664 | cloned->_min_value_set = _min_value_set; | 97 | 664 | cloned->_contain_null = _contain_null; | 98 | 664 | return cloned; | 99 | 664 | } |
_ZNK5doris13MinMaxNumFuncIlLb1ELb1EE5cloneEv Line | Count | Source | 92 | 72 | MinMaxFuncBase* clone() const override { | 93 | 72 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 72 | cloned->_max = _max; | 95 | 72 | cloned->_min = _min; | 96 | 72 | cloned->_min_value_set = _min_value_set; | 97 | 72 | cloned->_contain_null = _contain_null; | 98 | 72 | return cloned; | 99 | 72 | } |
_ZNK5doris13MinMaxNumFuncInLb1ELb1EE5cloneEv Line | Count | Source | 92 | 14 | MinMaxFuncBase* clone() const override { | 93 | 14 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 14 | cloned->_max = _max; | 95 | 14 | cloned->_min = _min; | 96 | 14 | cloned->_min_value_set = _min_value_set; | 97 | 14 | cloned->_contain_null = _contain_null; | 98 | 14 | return cloned; | 99 | 14 | } |
Unexecuted instantiation: _ZNK5doris13MinMaxNumFuncIfLb1ELb1EE5cloneEv _ZNK5doris13MinMaxNumFuncIdLb1ELb1EE5cloneEv Line | Count | Source | 92 | 2 | MinMaxFuncBase* clone() const override { | 93 | 2 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 2 | cloned->_max = _max; | 95 | 2 | cloned->_min = _min; | 96 | 2 | cloned->_min_value_set = _min_value_set; | 97 | 2 | cloned->_contain_null = _contain_null; | 98 | 2 | return cloned; | 99 | 2 | } |
_ZNK5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE5cloneEv Line | Count | Source | 92 | 3 | MinMaxFuncBase* clone() const override { | 93 | 3 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 3 | cloned->_max = _max; | 95 | 3 | cloned->_min = _min; | 96 | 3 | cloned->_min_value_set = _min_value_set; | 97 | 3 | cloned->_contain_null = _contain_null; | 98 | 3 | return cloned; | 99 | 3 | } |
_ZNK5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE5cloneEv Line | Count | Source | 92 | 20 | MinMaxFuncBase* clone() const override { | 93 | 20 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 20 | cloned->_max = _max; | 95 | 20 | cloned->_min = _min; | 96 | 20 | cloned->_min_value_set = _min_value_set; | 97 | 20 | cloned->_contain_null = _contain_null; | 98 | 20 | return cloned; | 99 | 20 | } |
_ZNK5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE5cloneEv Line | Count | Source | 92 | 20 | MinMaxFuncBase* clone() const override { | 93 | 20 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 20 | cloned->_max = _max; | 95 | 20 | cloned->_min = _min; | 96 | 20 | cloned->_min_value_set = _min_value_set; | 97 | 20 | cloned->_contain_null = _contain_null; | 98 | 20 | return cloned; | 99 | 20 | } |
_ZNK5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE5cloneEv Line | Count | Source | 92 | 2 | MinMaxFuncBase* clone() const override { | 93 | 2 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 2 | cloned->_max = _max; | 95 | 2 | cloned->_min = _min; | 96 | 2 | cloned->_min_value_set = _min_value_set; | 97 | 2 | cloned->_contain_null = _contain_null; | 98 | 2 | return cloned; | 99 | 2 | } |
Unexecuted instantiation: _ZNK5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE5cloneEv _ZNK5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE5cloneEv Line | Count | Source | 92 | 27 | MinMaxFuncBase* clone() const override { | 93 | 27 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 27 | cloned->_max = _max; | 95 | 27 | cloned->_min = _min; | 96 | 27 | cloned->_min_value_set = _min_value_set; | 97 | 27 | cloned->_contain_null = _contain_null; | 98 | 27 | return cloned; | 99 | 27 | } |
_ZNK5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE5cloneEv Line | Count | Source | 92 | 4 | MinMaxFuncBase* clone() const override { | 93 | 4 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 4 | cloned->_max = _max; | 95 | 4 | cloned->_min = _min; | 96 | 4 | cloned->_min_value_set = _min_value_set; | 97 | 4 | cloned->_contain_null = _contain_null; | 98 | 4 | return cloned; | 99 | 4 | } |
_ZNK5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE5cloneEv Line | Count | Source | 92 | 1 | MinMaxFuncBase* clone() const override { | 93 | 1 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 1 | cloned->_max = _max; | 95 | 1 | cloned->_min = _min; | 96 | 1 | cloned->_min_value_set = _min_value_set; | 97 | 1 | cloned->_contain_null = _contain_null; | 98 | 1 | return cloned; | 99 | 1 | } |
_ZNK5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE5cloneEv Line | Count | Source | 92 | 8 | MinMaxFuncBase* clone() const override { | 93 | 8 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 8 | cloned->_max = _max; | 95 | 8 | cloned->_min = _min; | 96 | 8 | cloned->_min_value_set = _min_value_set; | 97 | 8 | cloned->_contain_null = _contain_null; | 98 | 8 | return cloned; | 99 | 8 | } |
_ZNK5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE5cloneEv Line | Count | Source | 92 | 3 | MinMaxFuncBase* clone() const override { | 93 | 3 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 3 | cloned->_max = _max; | 95 | 3 | cloned->_min = _min; | 96 | 3 | cloned->_min_value_set = _min_value_set; | 97 | 3 | cloned->_contain_null = _contain_null; | 98 | 3 | return cloned; | 99 | 3 | } |
_ZNK5doris13MinMaxNumFuncIjLb1ELb1EE5cloneEv Line | Count | Source | 92 | 2 | MinMaxFuncBase* clone() const override { | 93 | 2 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 2 | cloned->_max = _max; | 95 | 2 | cloned->_min = _min; | 96 | 2 | cloned->_min_value_set = _min_value_set; | 97 | 2 | cloned->_contain_null = _contain_null; | 98 | 2 | return cloned; | 99 | 2 | } |
_ZNK5doris13MinMaxNumFuncIoLb1ELb1EE5cloneEv Line | Count | Source | 92 | 2 | MinMaxFuncBase* clone() const override { | 93 | 2 | auto* cloned = new MinMaxNumFunc(_null_aware); | 94 | 2 | cloned->_max = _max; | 95 | 2 | cloned->_min = _min; | 96 | 2 | cloned->_min_value_set = _min_value_set; | 97 | 2 | cloned->_contain_null = _contain_null; | 98 | 2 | return cloned; | 99 | 2 | } |
|
100 | | |
101 | 4.36k | void* get_max() override { return &_max; }_ZN5doris13MinMaxNumFuncIhLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 4 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 2 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 92 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 163 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 2.44k | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 1.04k | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 27 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 2 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 6 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 10 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 88 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 46 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 3 | void* get_max() override { return &_max; } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE7get_maxEv _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 332 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 6 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 11 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 51 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE7get_maxEv Line | Count | Source | 101 | 14 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 4 | void* get_max() override { return &_max; } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE7get_maxEv Line | Count | Source | 101 | 7 | void* get_max() override { return &_max; } |
|
102 | | |
103 | 4.38k | void* get_min() override { return &_min; }_ZN5doris13MinMaxNumFuncIhLb1ELb1EE7get_minEv Line | Count | Source | 103 | 4 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE7get_minEv Line | Count | Source | 103 | 2 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE7get_minEv Line | Count | Source | 103 | 83 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE7get_minEv Line | Count | Source | 103 | 162 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE7get_minEv Line | Count | Source | 103 | 2.44k | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE7get_minEv Line | Count | Source | 103 | 1.07k | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE7get_minEv Line | Count | Source | 103 | 33 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE7get_minEv Line | Count | Source | 103 | 2 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE7get_minEv Line | Count | Source | 103 | 8 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE7get_minEv Line | Count | Source | 103 | 10 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE7get_minEv Line | Count | Source | 103 | 88 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE7get_minEv Line | Count | Source | 103 | 45 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE7get_minEv Line | Count | Source | 103 | 3 | void* get_min() override { return &_min; } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE7get_minEv _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE7get_minEv Line | Count | Source | 103 | 330 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE7get_minEv Line | Count | Source | 103 | 6 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE7get_minEv Line | Count | Source | 103 | 11 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE7get_minEv Line | Count | Source | 103 | 58 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE7get_minEv Line | Count | Source | 103 | 14 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE7get_minEv Line | Count | Source | 103 | 4 | void* get_min() override { return &_min; } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE7get_minEv Line | Count | Source | 103 | 7 | void* get_min() override { return &_min; } |
|
104 | | |
105 | 1.41k | Status assign(void* min_data, void* max_data) override { |
106 | 1.41k | if constexpr (IsStringValue) { |
107 | 85 | _min_value_set = true; |
108 | 85 | } |
109 | 1.41k | _min = *(T*)min_data; |
110 | 1.41k | _max = *(T*)max_data; |
111 | 1.41k | return Status::OK(); |
112 | 1.41k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 5 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 5 | _min = *(T*)min_data; | 110 | 5 | _max = *(T*)max_data; | 111 | 5 | return Status::OK(); | 112 | 5 | } |
_ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE6assignEPvS3_ Line | Count | Source | 105 | 1 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 1 | _min = *(T*)min_data; | 110 | 1 | _max = *(T*)max_data; | 111 | 1 | return Status::OK(); | 112 | 1 | } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 9 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 9 | _min = *(T*)min_data; | 110 | 9 | _max = *(T*)max_data; | 111 | 9 | return Status::OK(); | 112 | 9 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 59 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 59 | _min = *(T*)min_data; | 110 | 59 | _max = *(T*)max_data; | 111 | 59 | return Status::OK(); | 112 | 59 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 853 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 853 | _min = *(T*)min_data; | 110 | 853 | _max = *(T*)max_data; | 111 | 853 | return Status::OK(); | 112 | 853 | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 153 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 153 | _min = *(T*)min_data; | 110 | 153 | _max = *(T*)max_data; | 111 | 153 | return Status::OK(); | 112 | 153 | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 17 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 17 | _min = *(T*)min_data; | 110 | 17 | _max = *(T*)max_data; | 111 | 17 | return Status::OK(); | 112 | 17 | } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 1 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 1 | _min = *(T*)min_data; | 110 | 1 | _max = *(T*)max_data; | 111 | 1 | return Status::OK(); | 112 | 1 | } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 3 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 3 | _min = *(T*)min_data; | 110 | 3 | _max = *(T*)max_data; | 111 | 3 | return Status::OK(); | 112 | 3 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE6assignEPvS3_ Line | Count | Source | 105 | 2 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 2 | _min = *(T*)min_data; | 110 | 2 | _max = *(T*)max_data; | 111 | 2 | return Status::OK(); | 112 | 2 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE6assignEPvS5_ Line | Count | Source | 105 | 65 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 65 | _min = *(T*)min_data; | 110 | 65 | _max = *(T*)max_data; | 111 | 65 | return Status::OK(); | 112 | 65 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE6assignEPvS5_ Line | Count | Source | 105 | 113 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 113 | _min = *(T*)min_data; | 110 | 113 | _max = *(T*)max_data; | 111 | 113 | return Status::OK(); | 112 | 113 | } |
_ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE6assignEPvS3_ Line | Count | Source | 105 | 1 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 1 | _min = *(T*)min_data; | 110 | 1 | _max = *(T*)max_data; | 111 | 1 | return Status::OK(); | 112 | 1 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE6assignEPvS3_ _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE6assignEPvS8_ Line | Count | Source | 105 | 85 | Status assign(void* min_data, void* max_data) override { | 106 | 85 | if constexpr (IsStringValue) { | 107 | 85 | _min_value_set = true; | 108 | 85 | } | 109 | 85 | _min = *(T*)min_data; | 110 | 85 | _max = *(T*)max_data; | 111 | 85 | return Status::OK(); | 112 | 85 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE6assignEPvS4_ Line | Count | Source | 105 | 1 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 1 | _min = *(T*)min_data; | 110 | 1 | _max = *(T*)max_data; | 111 | 1 | return Status::OK(); | 112 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE6assignEPvS4_ Line | Count | Source | 105 | 7 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 7 | _min = *(T*)min_data; | 110 | 7 | _max = *(T*)max_data; | 111 | 7 | return Status::OK(); | 112 | 7 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE6assignEPvS3_ Line | Count | Source | 105 | 39 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 39 | _min = *(T*)min_data; | 110 | 39 | _max = *(T*)max_data; | 111 | 39 | return Status::OK(); | 112 | 39 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE6assignEPvS7_ Line | Count | Source | 105 | 1 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 1 | _min = *(T*)min_data; | 110 | 1 | _max = *(T*)max_data; | 111 | 1 | return Status::OK(); | 112 | 1 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 1 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 1 | _min = *(T*)min_data; | 110 | 1 | _max = *(T*)max_data; | 111 | 1 | return Status::OK(); | 112 | 1 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE6assignEPvS2_ Line | Count | Source | 105 | 3 | Status assign(void* min_data, void* max_data) override { | 106 | | if constexpr (IsStringValue) { | 107 | | _min_value_set = true; | 108 | | } | 109 | 3 | _min = *(T*)min_data; | 110 | 3 | _max = *(T*)max_data; | 111 | 3 | return Status::OK(); | 112 | 3 | } |
|
113 | | |
114 | 1.66k | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); }_ZN5doris13MinMaxNumFuncIhLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 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 | 114 | 8 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 58 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 1.07k | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 152 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 16 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIfLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncIdLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 7 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 64 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 114 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 123 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 6 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 43 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIjLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE _ZN5doris13MinMaxNumFuncIoLb1ELb1EE5to_pbEPNS_13PMinMaxFilterE Line | Count | Source | 114 | 2 | void to_pb(PMinMaxFilter* filter) override { _set_pb(filter, get_convertor<T>()); } |
|
115 | | |
116 | | private: |
117 | 1.66k | void _set_pb(PMinMaxFilter* filter, auto f) { |
118 | 1.66k | if constexpr (NeedMin) { |
119 | 1.66k | f(filter->mutable_min_val(), _min); |
120 | 1.66k | } |
121 | 1.66k | if constexpr (NeedMax) { |
122 | 1.66k | f(filter->mutable_max_val(), _max); |
123 | 1.66k | } |
124 | 1.66k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE7_set_pbIZNS_13get_convertorIhEEDavEUlPNS_12PColumnValueERKhE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 4 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 4 | if constexpr (NeedMin) { | 119 | 4 | f(filter->mutable_min_val(), _min); | 120 | 4 | } | 121 | 4 | if constexpr (NeedMax) { | 122 | 4 | f(filter->mutable_max_val(), _max); | 123 | 4 | } | 124 | 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 | 117 | 8 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 8 | if constexpr (NeedMin) { | 119 | 8 | f(filter->mutable_min_val(), _min); | 120 | 8 | } | 121 | 8 | if constexpr (NeedMax) { | 122 | 8 | f(filter->mutable_max_val(), _max); | 123 | 8 | } | 124 | 8 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE7_set_pbIZNS_13get_convertorIsEEDavEUlPNS_12PColumnValueERKsE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 58 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 58 | if constexpr (NeedMin) { | 119 | 58 | f(filter->mutable_min_val(), _min); | 120 | 58 | } | 121 | 58 | if constexpr (NeedMax) { | 122 | 58 | f(filter->mutable_max_val(), _max); | 123 | 58 | } | 124 | 58 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE7_set_pbIZNS_13get_convertorIiEEDavEUlPNS_12PColumnValueERKiE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 1.07k | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 1.07k | if constexpr (NeedMin) { | 119 | 1.07k | f(filter->mutable_min_val(), _min); | 120 | 1.07k | } | 121 | 1.07k | if constexpr (NeedMax) { | 122 | 1.07k | f(filter->mutable_max_val(), _max); | 123 | 1.07k | } | 124 | 1.07k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE7_set_pbIZNS_13get_convertorIlEEDavEUlPNS_12PColumnValueERKlE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 152 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 152 | if constexpr (NeedMin) { | 119 | 152 | f(filter->mutable_min_val(), _min); | 120 | 152 | } | 121 | 152 | if constexpr (NeedMax) { | 122 | 152 | f(filter->mutable_max_val(), _max); | 123 | 152 | } | 124 | 152 | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE7_set_pbIZNS_13get_convertorInEEDavEUlPNS_12PColumnValueERKnE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 16 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 16 | if constexpr (NeedMin) { | 119 | 16 | f(filter->mutable_min_val(), _min); | 120 | 16 | } | 121 | 16 | if constexpr (NeedMax) { | 122 | 16 | f(filter->mutable_max_val(), _max); | 123 | 16 | } | 124 | 16 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIfLb1ELb1EE7_set_pbIZNS_13get_convertorIfEEDavEUlPNS_12PColumnValueERKfE_EEvPNS_13PMinMaxFilterET_ _ZN5doris13MinMaxNumFuncIdLb1ELb1EE7_set_pbIZNS_13get_convertorIdEEDavEUlPNS_12PColumnValueERKdE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 7 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 7 | if constexpr (NeedMin) { | 119 | 7 | f(filter->mutable_min_val(), _min); | 120 | 7 | } | 121 | 7 | if constexpr (NeedMax) { | 122 | 7 | f(filter->mutable_max_val(), _max); | 123 | 7 | } | 124 | 7 | } |
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 | 117 | 64 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 64 | if constexpr (NeedMin) { | 119 | 64 | f(filter->mutable_min_val(), _min); | 120 | 64 | } | 121 | 64 | if constexpr (NeedMax) { | 122 | 64 | f(filter->mutable_max_val(), _max); | 123 | 64 | } | 124 | 64 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE7_set_pbIZNS_13get_convertorIS3_EEDavEUlPNS_12PColumnValueERKS3_E_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 114 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 114 | if constexpr (NeedMin) { | 119 | 114 | f(filter->mutable_min_val(), _min); | 120 | 114 | } | 121 | 114 | if constexpr (NeedMax) { | 122 | 114 | f(filter->mutable_max_val(), _max); | 123 | 114 | } | 124 | 114 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE7_set_pbIZNS_13get_convertorIS1_EEDavEUlPNS_12PColumnValueERKS1_E_EEvPNS_13PMinMaxFilterET_ 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 | 117 | 123 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 123 | if constexpr (NeedMin) { | 119 | 123 | f(filter->mutable_min_val(), _min); | 120 | 123 | } | 121 | 123 | if constexpr (NeedMax) { | 122 | 123 | f(filter->mutable_max_val(), _max); | 123 | 123 | } | 124 | 123 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE7_set_pbIZNS_13get_convertorIS2_EEDavEUlPNS_12PColumnValueERKS2_E_EEvPNS_13PMinMaxFilterET_ _ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE7_set_pbIZNS_13get_convertorIS2_EEDavEUlPNS_12PColumnValueERKS2_E_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 6 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 6 | if constexpr (NeedMin) { | 119 | 6 | f(filter->mutable_min_val(), _min); | 120 | 6 | } | 121 | 6 | if constexpr (NeedMax) { | 122 | 6 | f(filter->mutable_max_val(), _max); | 123 | 6 | } | 124 | 6 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE7_set_pbIZNS_13get_convertorIS1_EEDavEUlPNS_12PColumnValueERKS1_E_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 43 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 43 | if constexpr (NeedMin) { | 119 | 43 | f(filter->mutable_min_val(), _min); | 120 | 43 | } | 121 | 43 | if constexpr (NeedMax) { | 122 | 43 | f(filter->mutable_max_val(), _max); | 123 | 43 | } | 124 | 43 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE7_set_pbIZNS_13get_convertorIS5_EEDavEUlPNS_12PColumnValueERKS5_E_EEvPNS_13PMinMaxFilterET_ Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIjLb1ELb1EE7_set_pbIZNS_13get_convertorIjEEDavEUlPNS_12PColumnValueERKjE_EEvPNS_13PMinMaxFilterET_ _ZN5doris13MinMaxNumFuncIoLb1ELb1EE7_set_pbIZNS_13get_convertorIoEEDavEUlPNS_12PColumnValueERKoE_EEvPNS_13PMinMaxFilterET_ Line | Count | Source | 117 | 2 | void _set_pb(PMinMaxFilter* filter, auto f) { | 118 | 2 | if constexpr (NeedMin) { | 119 | 2 | f(filter->mutable_min_val(), _min); | 120 | 2 | } | 121 | 2 | if constexpr (NeedMax) { | 122 | 2 | f(filter->mutable_max_val(), _max); | 123 | 2 | } | 124 | 2 | } |
|
125 | | |
126 | | void _update_batch_string(const auto& column_string, const uint8_t* __restrict nullmap, |
127 | 341 | size_t start, size_t size) { |
128 | 21.0k | for (size_t i = start; i < size; i++) { |
129 | 20.6k | if (nullmap == nullptr || !nullmap[i]) { |
130 | 20.5k | if constexpr (NeedMin) { |
131 | 20.5k | if (column_string.get_data_at(i) < StringRef(_min) || !_min_value_set) { |
132 | 715 | _min = column_string.get_data_at(i).to_string(); |
133 | 715 | _min_value_set = true; |
134 | 715 | } |
135 | 20.5k | } |
136 | 20.5k | if constexpr (NeedMax) { |
137 | 20.5k | if (column_string.get_data_at(i) > StringRef(_max)) { |
138 | 1.87k | _max = column_string.get_data_at(i).to_string(); |
139 | 1.87k | } |
140 | 20.5k | } |
141 | 20.5k | } |
142 | 20.6k | } |
143 | 341 | } _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE20_update_batch_stringINS_9ColumnStrImEEEEvRKT_PKhmm Line | Count | Source | 127 | 1 | size_t start, size_t size) { | 128 | 9 | for (size_t i = start; i < size; i++) { | 129 | 8 | if (nullmap == nullptr || !nullmap[i]) { | 130 | 8 | if constexpr (NeedMin) { | 131 | 8 | if (column_string.get_data_at(i) < StringRef(_min) || !_min_value_set) { | 132 | 1 | _min = column_string.get_data_at(i).to_string(); | 133 | 1 | _min_value_set = true; | 134 | 1 | } | 135 | 8 | } | 136 | 8 | if constexpr (NeedMax) { | 137 | 8 | if (column_string.get_data_at(i) > StringRef(_max)) { | 138 | 8 | _max = column_string.get_data_at(i).to_string(); | 139 | 8 | } | 140 | 8 | } | 141 | 8 | } | 142 | 8 | } | 143 | 1 | } |
_ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE20_update_batch_stringINS_9ColumnStrIjEEEEvRKT_PKhmm Line | Count | Source | 127 | 340 | size_t start, size_t size) { | 128 | 21.0k | for (size_t i = start; i < size; i++) { | 129 | 20.6k | if (nullmap == nullptr || !nullmap[i]) { | 130 | 20.5k | if constexpr (NeedMin) { | 131 | 20.5k | if (column_string.get_data_at(i) < StringRef(_min) || !_min_value_set) { | 132 | 714 | _min = column_string.get_data_at(i).to_string(); | 133 | 714 | _min_value_set = true; | 134 | 714 | } | 135 | 20.5k | } | 136 | 20.5k | if constexpr (NeedMax) { | 137 | 20.5k | if (column_string.get_data_at(i) > StringRef(_max)) { | 138 | 1.86k | _max = column_string.get_data_at(i).to_string(); | 139 | 1.86k | } | 140 | 20.5k | } | 141 | 20.5k | } | 142 | 20.6k | } | 143 | 340 | } |
|
144 | | |
145 | 3.01k | void _update_batch(const ColumnPtr& column, size_t start) { |
146 | 3.01k | const auto size = column->size(); |
147 | 3.01k | if constexpr (std::is_same_v<T, std::string>) { |
148 | 219 | if (column->is_column_string64()) { |
149 | 1 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, |
150 | 1 | size); |
151 | 218 | } else { |
152 | 218 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, |
153 | 218 | size); |
154 | 218 | } |
155 | 2.79k | } else { |
156 | 2.79k | const T* data = (T*)column->get_raw_data().data; |
157 | 5.27M | for (size_t i = start; i < size; i++) { |
158 | 5.27M | if constexpr (NeedMin) { |
159 | 5.27M | _min = std::min(_min, *(data + i)); |
160 | 5.27M | } |
161 | 5.27M | if constexpr (NeedMax) { |
162 | 5.27M | _max = std::max(_max, *(data + i)); |
163 | 5.27M | } |
164 | 5.27M | } |
165 | 2.79k | } |
166 | 3.01k | } Unexecuted instantiation: _ZN5doris13MinMaxNumFuncIhLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm _ZN5doris13MinMaxNumFuncINS_14DecimalV2ValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 145 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 1 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 1 | } else { | 156 | 1 | const T* data = (T*)column->get_raw_data().data; | 157 | 4 | for (size_t i = start; i < size; i++) { | 158 | 3 | if constexpr (NeedMin) { | 159 | 3 | _min = std::min(_min, *(data + i)); | 160 | 3 | } | 161 | 3 | if constexpr (NeedMax) { | 162 | 3 | _max = std::max(_max, *(data + i)); | 163 | 3 | } | 164 | 3 | } | 165 | 1 | } | 166 | 1 | } |
_ZN5doris13MinMaxNumFuncIaLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 214 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 214 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 214 | } else { | 156 | 214 | const T* data = (T*)column->get_raw_data().data; | 157 | 670 | for (size_t i = start; i < size; i++) { | 158 | 456 | if constexpr (NeedMin) { | 159 | 456 | _min = std::min(_min, *(data + i)); | 160 | 456 | } | 161 | 456 | if constexpr (NeedMax) { | 162 | 456 | _max = std::max(_max, *(data + i)); | 163 | 456 | } | 164 | 456 | } | 165 | 214 | } | 166 | 214 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 1 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 1 | } else { | 156 | 1 | const T* data = (T*)column->get_raw_data().data; | 157 | 4 | for (size_t i = start; i < size; i++) { | 158 | 3 | if constexpr (NeedMin) { | 159 | 3 | _min = std::min(_min, *(data + i)); | 160 | 3 | } | 161 | 3 | if constexpr (NeedMax) { | 162 | 3 | _max = std::max(_max, *(data + i)); | 163 | 3 | } | 164 | 3 | } | 165 | 1 | } | 166 | 1 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 2.11k | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 2.11k | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 2.11k | } else { | 156 | 2.11k | const T* data = (T*)column->get_raw_data().data; | 157 | 5.26M | for (size_t i = start; i < size; i++) { | 158 | 5.25M | if constexpr (NeedMin) { | 159 | 5.25M | _min = std::min(_min, *(data + i)); | 160 | 5.25M | } | 161 | 5.25M | if constexpr (NeedMax) { | 162 | 5.25M | _max = std::max(_max, *(data + i)); | 163 | 5.25M | } | 164 | 5.25M | } | 165 | 2.11k | } | 166 | 2.11k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 114 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 114 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 114 | } else { | 156 | 114 | const T* data = (T*)column->get_raw_data().data; | 157 | 734 | for (size_t i = start; i < size; i++) { | 158 | 620 | if constexpr (NeedMin) { | 159 | 620 | _min = std::min(_min, *(data + i)); | 160 | 620 | } | 161 | 620 | if constexpr (NeedMax) { | 162 | 620 | _max = std::max(_max, *(data + i)); | 163 | 620 | } | 164 | 620 | } | 165 | 114 | } | 166 | 114 | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 98 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 98 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 98 | } else { | 156 | 98 | const T* data = (T*)column->get_raw_data().data; | 157 | 220 | for (size_t i = start; i < size; i++) { | 158 | 122 | if constexpr (NeedMin) { | 159 | 122 | _min = std::min(_min, *(data + i)); | 160 | 122 | } | 161 | 122 | if constexpr (NeedMax) { | 162 | 122 | _max = std::max(_max, *(data + i)); | 163 | 122 | } | 164 | 122 | } | 165 | 98 | } | 166 | 98 | } |
_ZN5doris13MinMaxNumFuncIfLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 1 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 1 | } else { | 156 | 1 | const T* data = (T*)column->get_raw_data().data; | 157 | 4 | for (size_t i = start; i < size; i++) { | 158 | 3 | if constexpr (NeedMin) { | 159 | 3 | _min = std::min(_min, *(data + i)); | 160 | 3 | } | 161 | 3 | if constexpr (NeedMax) { | 162 | 3 | _max = std::max(_max, *(data + i)); | 163 | 3 | } | 164 | 3 | } | 165 | 1 | } | 166 | 1 | } |
_ZN5doris13MinMaxNumFuncIdLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 7 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 7 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 7 | } else { | 156 | 7 | const T* data = (T*)column->get_raw_data().data; | 157 | 16 | for (size_t i = start; i < size; i++) { | 158 | 9 | if constexpr (NeedMin) { | 159 | 9 | _min = std::min(_min, *(data + i)); | 160 | 9 | } | 161 | 9 | if constexpr (NeedMax) { | 162 | 9 | _max = std::max(_max, *(data + i)); | 163 | 9 | } | 164 | 9 | } | 165 | 7 | } | 166 | 7 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 145 | 2 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 2 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 2 | } else { | 156 | 2 | const T* data = (T*)column->get_raw_data().data; | 157 | 8 | for (size_t i = start; i < size; i++) { | 158 | 6 | if constexpr (NeedMin) { | 159 | 6 | _min = std::min(_min, *(data + i)); | 160 | 6 | } | 161 | 6 | if constexpr (NeedMax) { | 162 | 6 | _max = std::max(_max, *(data + i)); | 163 | 6 | } | 164 | 6 | } | 165 | 2 | } | 166 | 2 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 145 | 155 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 155 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 155 | } else { | 156 | 155 | const T* data = (T*)column->get_raw_data().data; | 157 | 451 | for (size_t i = start; i < size; i++) { | 158 | 296 | if constexpr (NeedMin) { | 159 | 296 | _min = std::min(_min, *(data + i)); | 160 | 296 | } | 161 | 296 | if constexpr (NeedMax) { | 162 | 296 | _max = std::max(_max, *(data + i)); | 163 | 296 | } | 164 | 296 | } | 165 | 155 | } | 166 | 155 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EEm Line | Count | Source | 145 | 38 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 38 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 38 | } else { | 156 | 38 | const T* data = (T*)column->get_raw_data().data; | 157 | 119 | for (size_t i = start; i < size; i++) { | 158 | 81 | if constexpr (NeedMin) { | 159 | 81 | _min = std::min(_min, *(data + i)); | 160 | 81 | } | 161 | 81 | if constexpr (NeedMax) { | 162 | 81 | _max = std::max(_max, *(data + i)); | 163 | 81 | } | 164 | 81 | } | 165 | 38 | } | 166 | 38 | } |
Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Unexecuted instantiation: _ZN5doris13MinMaxNumFuncINS_16TimestampTzValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm _ZN5doris13MinMaxNumFuncINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS9_EEm Line | Count | Source | 145 | 219 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 219 | const auto size = column->size(); | 147 | 219 | if constexpr (std::is_same_v<T, std::string>) { | 148 | 219 | if (column->is_column_string64()) { | 149 | 1 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | 1 | size); | 151 | 218 | } else { | 152 | 218 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | 218 | size); | 154 | 218 | } | 155 | | } else { | 156 | | const T* data = (T*)column->get_raw_data().data; | 157 | | for (size_t i = start; i < size; i++) { | 158 | | if constexpr (NeedMin) { | 159 | | _min = std::min(_min, *(data + i)); | 160 | | } | 161 | | if constexpr (NeedMax) { | 162 | | _max = std::max(_max, *(data + i)); | 163 | | } | 164 | | } | 165 | | } | 166 | 219 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 145 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 1 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 1 | } else { | 156 | 1 | const T* data = (T*)column->get_raw_data().data; | 157 | 4 | for (size_t i = start; i < size; i++) { | 158 | 3 | if constexpr (NeedMin) { | 159 | 3 | _min = std::min(_min, *(data + i)); | 160 | 3 | } | 161 | 3 | if constexpr (NeedMax) { | 162 | 3 | _max = std::max(_max, *(data + i)); | 163 | 3 | } | 164 | 3 | } | 165 | 1 | } | 166 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EEm Line | Count | Source | 145 | 9 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 9 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 9 | } else { | 156 | 9 | const T* data = (T*)column->get_raw_data().data; | 157 | 12.0k | for (size_t i = start; i < size; i++) { | 158 | 12.0k | if constexpr (NeedMin) { | 159 | 12.0k | _min = std::min(_min, *(data + i)); | 160 | 12.0k | } | 161 | 12.0k | if constexpr (NeedMax) { | 162 | 12.0k | _max = std::max(_max, *(data + i)); | 163 | 12.0k | } | 164 | 12.0k | } | 165 | 9 | } | 166 | 9 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EEm Line | Count | Source | 145 | 43 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 43 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 43 | } else { | 156 | 43 | const T* data = (T*)column->get_raw_data().data; | 157 | 116 | for (size_t i = start; i < size; i++) { | 158 | 73 | if constexpr (NeedMin) { | 159 | 73 | _min = std::min(_min, *(data + i)); | 160 | 73 | } | 161 | 73 | if constexpr (NeedMax) { | 162 | 73 | _max = std::max(_max, *(data + i)); | 163 | 73 | } | 164 | 73 | } | 165 | 43 | } | 166 | 43 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS8_EEm Line | Count | Source | 145 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 1 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 1 | } else { | 156 | 1 | const T* data = (T*)column->get_raw_data().data; | 157 | 4 | for (size_t i = start; i < size; i++) { | 158 | 3 | if constexpr (NeedMin) { | 159 | 3 | _min = std::min(_min, *(data + i)); | 160 | 3 | } | 161 | 3 | if constexpr (NeedMax) { | 162 | 3 | _max = std::max(_max, *(data + i)); | 163 | 3 | } | 164 | 3 | } | 165 | 1 | } | 166 | 1 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 1 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 1 | } else { | 156 | 1 | const T* data = (T*)column->get_raw_data().data; | 157 | 4 | for (size_t i = start; i < size; i++) { | 158 | 3 | if constexpr (NeedMin) { | 159 | 3 | _min = std::min(_min, *(data + i)); | 160 | 3 | } | 161 | 3 | if constexpr (NeedMax) { | 162 | 3 | _max = std::max(_max, *(data + i)); | 163 | 3 | } | 164 | 3 | } | 165 | 1 | } | 166 | 1 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EEm Line | Count | Source | 145 | 1 | void _update_batch(const ColumnPtr& column, size_t start) { | 146 | 1 | const auto size = column->size(); | 147 | | if constexpr (std::is_same_v<T, std::string>) { | 148 | | if (column->is_column_string64()) { | 149 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullptr, start, | 150 | | size); | 151 | | } else { | 152 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullptr, start, | 153 | | size); | 154 | | } | 155 | 1 | } else { | 156 | 1 | const T* data = (T*)column->get_raw_data().data; | 157 | 4 | for (size_t i = start; i < size; i++) { | 158 | 3 | if constexpr (NeedMin) { | 159 | 3 | _min = std::min(_min, *(data + i)); | 160 | 3 | } | 161 | 3 | if constexpr (NeedMax) { | 162 | 3 | _max = std::max(_max, *(data + i)); | 163 | 3 | } | 164 | 3 | } | 165 | 1 | } | 166 | 1 | } |
|
167 | | |
168 | 2.85k | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { |
169 | 2.85k | const auto size = column->size(); |
170 | 2.85k | if constexpr (std::is_same_v<T, std::string>) { |
171 | 122 | if (column->is_column_string64()) { |
172 | 0 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), |
173 | 0 | start, size); |
174 | 122 | } else { |
175 | 122 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), |
176 | 122 | start, size); |
177 | 122 | } |
178 | 2.73k | } else { |
179 | 2.73k | const T* data = (T*)column->get_raw_data().data; |
180 | 1.29M | for (size_t i = start; i < size; i++) { |
181 | 1.29M | if (!nullmap[i]) { |
182 | 1.29M | if constexpr (NeedMin) { |
183 | 1.29M | _min = std::min(_min, *(data + i)); |
184 | 1.29M | } |
185 | 1.29M | if constexpr (NeedMax) { |
186 | 1.29M | _max = std::max(_max, *(data + i)); |
187 | 1.29M | } |
188 | 1.29M | } |
189 | 1.29M | } |
190 | 2.73k | } |
191 | 2.85k | } _ZN5doris13MinMaxNumFuncIhLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 2 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 2 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 2 | } else { | 179 | 2 | const T* data = (T*)column->get_raw_data().data; | 180 | 6 | for (size_t i = start; i < size; i++) { | 181 | 4 | if (!nullmap[i]) { | 182 | 3 | if constexpr (NeedMin) { | 183 | 3 | _min = std::min(_min, *(data + i)); | 184 | 3 | } | 185 | 3 | if constexpr (NeedMax) { | 186 | 3 | _max = std::max(_max, *(data + i)); | 187 | 3 | } | 188 | 3 | } | 189 | 4 | } | 190 | 2 | } | 191 | 2 | } |
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 | 168 | 85 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 85 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 85 | } else { | 179 | 85 | const T* data = (T*)column->get_raw_data().data; | 180 | 298 | for (size_t i = start; i < size; i++) { | 181 | 213 | if (!nullmap[i]) { | 182 | 194 | if constexpr (NeedMin) { | 183 | 194 | _min = std::min(_min, *(data + i)); | 184 | 194 | } | 185 | 194 | if constexpr (NeedMax) { | 186 | 194 | _max = std::max(_max, *(data + i)); | 187 | 194 | } | 188 | 194 | } | 189 | 213 | } | 190 | 85 | } | 191 | 85 | } |
_ZN5doris13MinMaxNumFuncIsLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 150 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 150 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 150 | } else { | 179 | 150 | const T* data = (T*)column->get_raw_data().data; | 180 | 1.19k | for (size_t i = start; i < size; i++) { | 181 | 1.04k | if (!nullmap[i]) { | 182 | 893 | if constexpr (NeedMin) { | 183 | 893 | _min = std::min(_min, *(data + i)); | 184 | 893 | } | 185 | 893 | if constexpr (NeedMax) { | 186 | 893 | _max = std::max(_max, *(data + i)); | 187 | 893 | } | 188 | 893 | } | 189 | 1.04k | } | 190 | 150 | } | 191 | 150 | } |
_ZN5doris13MinMaxNumFuncIiLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 1.45k | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 1.45k | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 1.45k | } else { | 179 | 1.45k | const T* data = (T*)column->get_raw_data().data; | 180 | 1.29M | for (size_t i = start; i < size; i++) { | 181 | 1.28M | if (!nullmap[i]) { | 182 | 1.28M | if constexpr (NeedMin) { | 183 | 1.28M | _min = std::min(_min, *(data + i)); | 184 | 1.28M | } | 185 | 1.28M | if constexpr (NeedMax) { | 186 | 1.28M | _max = std::max(_max, *(data + i)); | 187 | 1.28M | } | 188 | 1.28M | } | 189 | 1.28M | } | 190 | 1.45k | } | 191 | 1.45k | } |
_ZN5doris13MinMaxNumFuncIlLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 668 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 668 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 668 | } else { | 179 | 668 | const T* data = (T*)column->get_raw_data().data; | 180 | 3.53k | for (size_t i = start; i < size; i++) { | 181 | 2.86k | if (!nullmap[i]) { | 182 | 2.56k | if constexpr (NeedMin) { | 183 | 2.56k | _min = std::min(_min, *(data + i)); | 184 | 2.56k | } | 185 | 2.56k | if constexpr (NeedMax) { | 186 | 2.56k | _max = std::max(_max, *(data + i)); | 187 | 2.56k | } | 188 | 2.56k | } | 189 | 2.86k | } | 190 | 668 | } | 191 | 668 | } |
_ZN5doris13MinMaxNumFuncInLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 13 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 13 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 13 | } else { | 179 | 13 | const T* data = (T*)column->get_raw_data().data; | 180 | 26 | for (size_t i = start; i < size; i++) { | 181 | 13 | if (!nullmap[i]) { | 182 | 13 | if constexpr (NeedMin) { | 183 | 13 | _min = std::min(_min, *(data + i)); | 184 | 13 | } | 185 | 13 | if constexpr (NeedMax) { | 186 | 13 | _max = std::max(_max, *(data + i)); | 187 | 13 | } | 188 | 13 | } | 189 | 13 | } | 190 | 13 | } | 191 | 13 | } |
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 | 168 | 5 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 5 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 5 | } else { | 179 | 5 | const T* data = (T*)column->get_raw_data().data; | 180 | 13 | for (size_t i = start; i < size; i++) { | 181 | 8 | if (!nullmap[i]) { | 182 | 4 | if constexpr (NeedMin) { | 183 | 4 | _min = std::min(_min, *(data + i)); | 184 | 4 | } | 185 | 4 | if constexpr (NeedMax) { | 186 | 4 | _max = std::max(_max, *(data + i)); | 187 | 4 | } | 188 | 4 | } | 189 | 8 | } | 190 | 5 | } | 191 | 5 | } |
_ZN5doris13MinMaxNumFuncINS_16VecDateTimeValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 6 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 6 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 6 | } else { | 179 | 6 | const T* data = (T*)column->get_raw_data().data; | 180 | 42 | for (size_t i = start; i < size; i++) { | 181 | 36 | if (!nullmap[i]) { | 182 | 36 | if constexpr (NeedMin) { | 183 | 36 | _min = std::min(_min, *(data + i)); | 184 | 36 | } | 185 | 36 | if constexpr (NeedMax) { | 186 | 36 | _max = std::max(_max, *(data + i)); | 187 | 36 | } | 188 | 36 | } | 189 | 36 | } | 190 | 6 | } | 191 | 6 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_15DateV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 9 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 9 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 9 | } else { | 179 | 9 | const T* data = (T*)column->get_raw_data().data; | 180 | 33 | for (size_t i = start; i < size; i++) { | 181 | 24 | if (!nullmap[i]) { | 182 | 21 | if constexpr (NeedMin) { | 183 | 21 | _min = std::min(_min, *(data + i)); | 184 | 21 | } | 185 | 21 | if constexpr (NeedMax) { | 186 | 21 | _max = std::max(_max, *(data + i)); | 187 | 21 | } | 188 | 21 | } | 189 | 24 | } | 190 | 9 | } | 191 | 9 | } |
_ZN5doris13MinMaxNumFuncINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS6_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 258 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 258 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 258 | } else { | 179 | 258 | const T* data = (T*)column->get_raw_data().data; | 180 | 556 | for (size_t i = start; i < size; i++) { | 181 | 298 | if (!nullmap[i]) { | 182 | 295 | if constexpr (NeedMin) { | 183 | 295 | _min = std::min(_min, *(data + i)); | 184 | 295 | } | 185 | 295 | if constexpr (NeedMax) { | 186 | 295 | _max = std::max(_max, *(data + i)); | 187 | 295 | } | 188 | 295 | } | 189 | 298 | } | 190 | 258 | } | 191 | 258 | } |
_ZN5doris13MinMaxNumFuncINS_16TimeStampNsValueELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 3 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 3 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 3 | } else { | 179 | 3 | const T* data = (T*)column->get_raw_data().data; | 180 | 11 | for (size_t i = start; i < size; i++) { | 181 | 8 | if (!nullmap[i]) { | 182 | 7 | if constexpr (NeedMin) { | 183 | 7 | _min = std::min(_min, *(data + i)); | 184 | 7 | } | 185 | 7 | if constexpr (NeedMax) { | 186 | 7 | _max = std::max(_max, *(data + i)); | 187 | 7 | } | 188 | 7 | } | 189 | 8 | } | 190 | 3 | } | 191 | 3 | } |
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 | 168 | 122 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 122 | const auto size = column->size(); | 170 | 122 | if constexpr (std::is_same_v<T, std::string>) { | 171 | 122 | if (column->is_column_string64()) { | 172 | 0 | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | 0 | start, size); | 174 | 122 | } else { | 175 | 122 | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | 122 | start, size); | 177 | 122 | } | 178 | | } else { | 179 | | const T* data = (T*)column->get_raw_data().data; | 180 | | for (size_t i = start; i < size; i++) { | 181 | | if (!nullmap[i]) { | 182 | | if constexpr (NeedMin) { | 183 | | _min = std::min(_min, *(data + i)); | 184 | | } | 185 | | if constexpr (NeedMax) { | 186 | | _max = std::max(_max, *(data + i)); | 187 | | } | 188 | | } | 189 | | } | 190 | | } | 191 | 122 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIiEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 4 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 4 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 4 | } else { | 179 | 4 | const T* data = (T*)column->get_raw_data().data; | 180 | 13 | for (size_t i = start; i < size; i++) { | 181 | 9 | if (!nullmap[i]) { | 182 | 3 | if constexpr (NeedMin) { | 183 | 3 | _min = std::min(_min, *(data + i)); | 184 | 3 | } | 185 | 3 | if constexpr (NeedMax) { | 186 | 3 | _max = std::max(_max, *(data + i)); | 187 | 3 | } | 188 | 3 | } | 189 | 9 | } | 190 | 4 | } | 191 | 4 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIlEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS5_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 1 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 1 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 1 | } else { | 179 | 1 | const T* data = (T*)column->get_raw_data().data; | 180 | 6 | for (size_t i = start; i < size; i++) { | 181 | 5 | if (!nullmap[i]) { | 182 | 4 | if constexpr (NeedMin) { | 183 | 4 | _min = std::min(_min, *(data + i)); | 184 | 4 | } | 185 | 4 | if constexpr (NeedMax) { | 186 | 4 | _max = std::max(_max, *(data + i)); | 187 | 4 | } | 188 | 4 | } | 189 | 5 | } | 190 | 1 | } | 191 | 1 | } |
_ZN5doris13MinMaxNumFuncINS_12Decimal128V3ELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS4_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 50 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 50 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 50 | } else { | 179 | 50 | const T* data = (T*)column->get_raw_data().data; | 180 | 224 | for (size_t i = start; i < size; i++) { | 181 | 174 | if (!nullmap[i]) { | 182 | 100 | if constexpr (NeedMin) { | 183 | 100 | _min = std::min(_min, *(data + i)); | 184 | 100 | } | 185 | 100 | if constexpr (NeedMax) { | 186 | 100 | _max = std::max(_max, *(data + i)); | 187 | 100 | } | 188 | 100 | } | 189 | 174 | } | 190 | 50 | } | 191 | 50 | } |
_ZN5doris13MinMaxNumFuncINS_7DecimalIN4wide7integerILm256EiEEEELb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS8_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 12 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 12 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 12 | } else { | 179 | 12 | const T* data = (T*)column->get_raw_data().data; | 180 | 84 | for (size_t i = start; i < size; i++) { | 181 | 72 | if (!nullmap[i]) { | 182 | 72 | if constexpr (NeedMin) { | 183 | 72 | _min = std::min(_min, *(data + i)); | 184 | 72 | } | 185 | 72 | if constexpr (NeedMax) { | 186 | 72 | _max = std::max(_max, *(data + i)); | 187 | 72 | } | 188 | 72 | } | 189 | 72 | } | 190 | 12 | } | 191 | 12 | } |
_ZN5doris13MinMaxNumFuncIjLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 2 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 2 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 2 | } else { | 179 | 2 | const T* data = (T*)column->get_raw_data().data; | 180 | 24 | for (size_t i = start; i < size; i++) { | 181 | 22 | if (!nullmap[i]) { | 182 | 20 | if constexpr (NeedMin) { | 183 | 20 | _min = std::min(_min, *(data + i)); | 184 | 20 | } | 185 | 20 | if constexpr (NeedMax) { | 186 | 20 | _max = std::max(_max, *(data + i)); | 187 | 20 | } | 188 | 20 | } | 189 | 22 | } | 190 | 2 | } | 191 | 2 | } |
_ZN5doris13MinMaxNumFuncIoLb1ELb1EE13_update_batchERKNS_3COWINS_7IColumnEE13immutable_ptrIS3_EERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEm Line | Count | Source | 168 | 5 | void _update_batch(const ColumnPtr& column, const NullMap& nullmap, size_t start) { | 169 | 5 | const auto size = column->size(); | 170 | | if constexpr (std::is_same_v<T, std::string>) { | 171 | | if (column->is_column_string64()) { | 172 | | _update_batch_string(assert_cast<const ColumnString64&>(*column), nullmap.data(), | 173 | | start, size); | 174 | | } else { | 175 | | _update_batch_string(assert_cast<const ColumnString&>(*column), nullmap.data(), | 176 | | start, size); | 177 | | } | 178 | 5 | } else { | 179 | 5 | const T* data = (T*)column->get_raw_data().data; | 180 | 540 | for (size_t i = start; i < size; i++) { | 181 | 535 | if (!nullmap[i]) { | 182 | 501 | if constexpr (NeedMin) { | 183 | 501 | _min = std::min(_min, *(data + i)); | 184 | 501 | } | 185 | 501 | if constexpr (NeedMax) { | 186 | 501 | _max = std::max(_max, *(data + i)); | 187 | 501 | } | 188 | 501 | } | 189 | 535 | } | 190 | 5 | } | 191 | 5 | } |
|
192 | | |
193 | | T _max = type_limit<T>::min(); |
194 | | T _min = type_limit<T>::max(); |
195 | | |
196 | | bool _min_value_set = false; |
197 | | }; |
198 | | |
199 | | template <class T> |
200 | | using MinNumFunc = MinMaxNumFunc<T, false, true>; |
201 | | |
202 | | template <class T> |
203 | | using MaxNumFunc = MinMaxNumFunc<T, true, false>; |
204 | | |
205 | | } // namespace doris |