be/src/exprs/function/functions_comparison.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 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | #include "storage/index/inverted/inverted_index_iterator.h" |
52 | | #include "storage/olap_define.h" |
53 | | |
54 | | namespace doris { |
55 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
56 | | * The comparison functions always return 0 or 1 (UInt8). |
57 | | * |
58 | | * You can compare the following types: |
59 | | * - numbers and decimals; |
60 | | * - strings and fixed strings; |
61 | | * - dates; |
62 | | * - datetimes; |
63 | | * within each group, but not from different groups; |
64 | | * - tuples (lexicographic comparison). |
65 | | * |
66 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
67 | | */ |
68 | | |
69 | | template <typename A, typename B, typename Op> |
70 | | struct NumComparisonImpl { |
71 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
72 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
73 | 11.3k | PaddedPODArray<UInt8>& c) { |
74 | 11.3k | size_t size = a.size(); |
75 | 11.3k | const A* __restrict a_pos = a.data(); |
76 | 11.3k | const B* __restrict b_pos = b.data(); |
77 | 11.3k | UInt8* __restrict c_pos = c.data(); |
78 | 11.3k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 7.19M | while (a_pos < a_end) { |
81 | 7.18M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 7.18M | ++a_pos; |
83 | 7.18M | ++b_pos; |
84 | 7.18M | ++c_pos; |
85 | 7.18M | } |
86 | 11.3k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 70 | PaddedPODArray<UInt8>& c) { | 74 | 70 | size_t size = a.size(); | 75 | 70 | const A* __restrict a_pos = a.data(); | 76 | 70 | const B* __restrict b_pos = b.data(); | 77 | 70 | UInt8* __restrict c_pos = c.data(); | 78 | 70 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 144 | while (a_pos < a_end) { | 81 | 74 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 74 | ++a_pos; | 83 | 74 | ++b_pos; | 84 | 74 | ++c_pos; | 85 | 74 | } | 86 | 70 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 176 | PaddedPODArray<UInt8>& c) { | 74 | 176 | size_t size = a.size(); | 75 | 176 | const A* __restrict a_pos = a.data(); | 76 | 176 | const B* __restrict b_pos = b.data(); | 77 | 176 | UInt8* __restrict c_pos = c.data(); | 78 | 176 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 358 | while (a_pos < a_end) { | 81 | 182 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 182 | ++a_pos; | 83 | 182 | ++b_pos; | 84 | 182 | ++c_pos; | 85 | 182 | } | 86 | 176 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 208 | PaddedPODArray<UInt8>& c) { | 74 | 208 | size_t size = a.size(); | 75 | 208 | const A* __restrict a_pos = a.data(); | 76 | 208 | const B* __restrict b_pos = b.data(); | 77 | 208 | UInt8* __restrict c_pos = c.data(); | 78 | 208 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 428 | while (a_pos < a_end) { | 81 | 220 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 220 | ++a_pos; | 83 | 220 | ++b_pos; | 84 | 220 | ++c_pos; | 85 | 220 | } | 86 | 208 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 111 | PaddedPODArray<UInt8>& c) { | 74 | 111 | size_t size = a.size(); | 75 | 111 | const A* __restrict a_pos = a.data(); | 76 | 111 | const B* __restrict b_pos = b.data(); | 77 | 111 | UInt8* __restrict c_pos = c.data(); | 78 | 111 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 295 | while (a_pos < a_end) { | 81 | 184 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 184 | ++a_pos; | 83 | 184 | ++b_pos; | 84 | 184 | ++c_pos; | 85 | 184 | } | 86 | 111 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 3 | PaddedPODArray<UInt8>& c) { | 74 | 3 | size_t size = a.size(); | 75 | 3 | const A* __restrict a_pos = a.data(); | 76 | 3 | const B* __restrict b_pos = b.data(); | 77 | 3 | UInt8* __restrict c_pos = c.data(); | 78 | 3 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 13 | while (a_pos < a_end) { | 81 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 10 | ++a_pos; | 83 | 10 | ++b_pos; | 84 | 10 | ++c_pos; | 85 | 10 | } | 86 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 133 | PaddedPODArray<UInt8>& c) { | 74 | 133 | size_t size = a.size(); | 75 | 133 | const A* __restrict a_pos = a.data(); | 76 | 133 | const B* __restrict b_pos = b.data(); | 77 | 133 | UInt8* __restrict c_pos = c.data(); | 78 | 133 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 408 | while (a_pos < a_end) { | 81 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 275 | ++a_pos; | 83 | 275 | ++b_pos; | 84 | 275 | ++c_pos; | 85 | 275 | } | 86 | 133 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 99 | PaddedPODArray<UInt8>& c) { | 74 | 99 | size_t size = a.size(); | 75 | 99 | const A* __restrict a_pos = a.data(); | 76 | 99 | const B* __restrict b_pos = b.data(); | 77 | 99 | UInt8* __restrict c_pos = c.data(); | 78 | 99 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 198 | while (a_pos < a_end) { | 81 | 99 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 99 | ++a_pos; | 83 | 99 | ++b_pos; | 84 | 99 | ++c_pos; | 85 | 99 | } | 86 | 99 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.01k | PaddedPODArray<UInt8>& c) { | 74 | 1.01k | size_t size = a.size(); | 75 | 1.01k | const A* __restrict a_pos = a.data(); | 76 | 1.01k | const B* __restrict b_pos = b.data(); | 77 | 1.01k | UInt8* __restrict c_pos = c.data(); | 78 | 1.01k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 19.6k | while (a_pos < a_end) { | 81 | 18.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.6k | ++a_pos; | 83 | 18.6k | ++b_pos; | 84 | 18.6k | ++c_pos; | 85 | 18.6k | } | 86 | 1.01k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 189 | PaddedPODArray<UInt8>& c) { | 74 | 189 | size_t size = a.size(); | 75 | 189 | const A* __restrict a_pos = a.data(); | 76 | 189 | const B* __restrict b_pos = b.data(); | 77 | 189 | UInt8* __restrict c_pos = c.data(); | 78 | 189 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.62k | while (a_pos < a_end) { | 81 | 1.43k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.43k | ++a_pos; | 83 | 1.43k | ++b_pos; | 84 | 1.43k | ++c_pos; | 85 | 1.43k | } | 86 | 189 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 47 | PaddedPODArray<UInt8>& c) { | 74 | 47 | size_t size = a.size(); | 75 | 47 | const A* __restrict a_pos = a.data(); | 76 | 47 | const B* __restrict b_pos = b.data(); | 77 | 47 | UInt8* __restrict c_pos = c.data(); | 78 | 47 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 94 | while (a_pos < a_end) { | 81 | 47 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 47 | ++a_pos; | 83 | 47 | ++b_pos; | 84 | 47 | ++c_pos; | 85 | 47 | } | 86 | 47 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 5 | PaddedPODArray<UInt8>& c) { | 74 | 5 | size_t size = a.size(); | 75 | 5 | const A* __restrict a_pos = a.data(); | 76 | 5 | const B* __restrict b_pos = b.data(); | 77 | 5 | UInt8* __restrict c_pos = c.data(); | 78 | 5 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5 | ++a_pos; | 83 | 5 | ++b_pos; | 84 | 5 | ++c_pos; | 85 | 5 | } | 86 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 13 | PaddedPODArray<UInt8>& c) { | 74 | 13 | size_t size = a.size(); | 75 | 13 | const A* __restrict a_pos = a.data(); | 76 | 13 | const B* __restrict b_pos = b.data(); | 77 | 13 | UInt8* __restrict c_pos = c.data(); | 78 | 13 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 26 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 779 | PaddedPODArray<UInt8>& c) { | 74 | 779 | size_t size = a.size(); | 75 | 779 | const A* __restrict a_pos = a.data(); | 76 | 779 | const B* __restrict b_pos = b.data(); | 77 | 779 | UInt8* __restrict c_pos = c.data(); | 78 | 779 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 38.4k | while (a_pos < a_end) { | 81 | 37.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 37.6k | ++a_pos; | 83 | 37.6k | ++b_pos; | 84 | 37.6k | ++c_pos; | 85 | 37.6k | } | 86 | 779 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 70 | PaddedPODArray<UInt8>& c) { | 74 | 70 | size_t size = a.size(); | 75 | 70 | const A* __restrict a_pos = a.data(); | 76 | 70 | const B* __restrict b_pos = b.data(); | 77 | 70 | UInt8* __restrict c_pos = c.data(); | 78 | 70 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 159 | while (a_pos < a_end) { | 81 | 89 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 89 | ++a_pos; | 83 | 89 | ++b_pos; | 84 | 89 | ++c_pos; | 85 | 89 | } | 86 | 70 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 92 | PaddedPODArray<UInt8>& c) { | 74 | 92 | size_t size = a.size(); | 75 | 92 | const A* __restrict a_pos = a.data(); | 76 | 92 | const B* __restrict b_pos = b.data(); | 77 | 92 | UInt8* __restrict c_pos = c.data(); | 78 | 92 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 255 | while (a_pos < a_end) { | 81 | 163 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 163 | ++a_pos; | 83 | 163 | ++b_pos; | 84 | 163 | ++c_pos; | 85 | 163 | } | 86 | 92 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 52 | PaddedPODArray<UInt8>& c) { | 74 | 52 | size_t size = a.size(); | 75 | 52 | const A* __restrict a_pos = a.data(); | 76 | 52 | const B* __restrict b_pos = b.data(); | 77 | 52 | UInt8* __restrict c_pos = c.data(); | 78 | 52 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 104 | while (a_pos < a_end) { | 81 | 52 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 52 | ++a_pos; | 83 | 52 | ++b_pos; | 84 | 52 | ++c_pos; | 85 | 52 | } | 86 | 52 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 39 | PaddedPODArray<UInt8>& c) { | 74 | 39 | size_t size = a.size(); | 75 | 39 | const A* __restrict a_pos = a.data(); | 76 | 39 | const B* __restrict b_pos = b.data(); | 77 | 39 | UInt8* __restrict c_pos = c.data(); | 78 | 39 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 108 | while (a_pos < a_end) { | 81 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 69 | ++a_pos; | 83 | 69 | ++b_pos; | 84 | 69 | ++c_pos; | 85 | 69 | } | 86 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 9 | PaddedPODArray<UInt8>& c) { | 74 | 9 | size_t size = a.size(); | 75 | 9 | const A* __restrict a_pos = a.data(); | 76 | 9 | const B* __restrict b_pos = b.data(); | 77 | 9 | UInt8* __restrict c_pos = c.data(); | 78 | 9 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 22 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 9 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 56 | PaddedPODArray<UInt8>& c) { | 74 | 56 | size_t size = a.size(); | 75 | 56 | const A* __restrict a_pos = a.data(); | 76 | 56 | const B* __restrict b_pos = b.data(); | 77 | 56 | UInt8* __restrict c_pos = c.data(); | 78 | 56 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 252 | while (a_pos < a_end) { | 81 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 196 | ++a_pos; | 83 | 196 | ++b_pos; | 84 | 196 | ++c_pos; | 85 | 196 | } | 86 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 802 | PaddedPODArray<UInt8>& c) { | 74 | 802 | size_t size = a.size(); | 75 | 802 | const A* __restrict a_pos = a.data(); | 76 | 802 | const B* __restrict b_pos = b.data(); | 77 | 802 | UInt8* __restrict c_pos = c.data(); | 78 | 802 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 311k | while (a_pos < a_end) { | 81 | 310k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 310k | ++a_pos; | 83 | 310k | ++b_pos; | 84 | 310k | ++c_pos; | 85 | 310k | } | 86 | 802 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 329 | PaddedPODArray<UInt8>& c) { | 74 | 329 | size_t size = a.size(); | 75 | 329 | const A* __restrict a_pos = a.data(); | 76 | 329 | const B* __restrict b_pos = b.data(); | 77 | 329 | UInt8* __restrict c_pos = c.data(); | 78 | 329 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.48k | while (a_pos < a_end) { | 81 | 6.15k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.15k | ++a_pos; | 83 | 6.15k | ++b_pos; | 84 | 6.15k | ++c_pos; | 85 | 6.15k | } | 86 | 329 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 80 | while (a_pos < a_end) { | 81 | 57 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 57 | ++a_pos; | 83 | 57 | ++b_pos; | 84 | 57 | ++c_pos; | 85 | 57 | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 983 | PaddedPODArray<UInt8>& c) { | 74 | 983 | size_t size = a.size(); | 75 | 983 | const A* __restrict a_pos = a.data(); | 76 | 983 | const B* __restrict b_pos = b.data(); | 77 | 983 | UInt8* __restrict c_pos = c.data(); | 78 | 983 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.66M | while (a_pos < a_end) { | 81 | 2.66M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.66M | ++a_pos; | 83 | 2.66M | ++b_pos; | 84 | 2.66M | ++c_pos; | 85 | 2.66M | } | 86 | 983 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 90 | while (a_pos < a_end) { | 81 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 55 | ++a_pos; | 83 | 55 | ++b_pos; | 84 | 55 | ++c_pos; | 85 | 55 | } | 86 | 35 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 76 | PaddedPODArray<UInt8>& c) { | 74 | 76 | size_t size = a.size(); | 75 | 76 | const A* __restrict a_pos = a.data(); | 76 | 76 | const B* __restrict b_pos = b.data(); | 77 | 76 | UInt8* __restrict c_pos = c.data(); | 78 | 76 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 396 | while (a_pos < a_end) { | 81 | 320 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 320 | ++a_pos; | 83 | 320 | ++b_pos; | 84 | 320 | ++c_pos; | 85 | 320 | } | 86 | 76 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 376 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 69 | PaddedPODArray<UInt8>& c) { | 74 | 69 | size_t size = a.size(); | 75 | 69 | const A* __restrict a_pos = a.data(); | 76 | 69 | const B* __restrict b_pos = b.data(); | 77 | 69 | UInt8* __restrict c_pos = c.data(); | 78 | 69 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 8.57k | while (a_pos < a_end) { | 81 | 8.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 8.50k | ++a_pos; | 83 | 8.50k | ++b_pos; | 84 | 8.50k | ++c_pos; | 85 | 8.50k | } | 86 | 69 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 182 | PaddedPODArray<UInt8>& c) { | 74 | 182 | size_t size = a.size(); | 75 | 182 | const A* __restrict a_pos = a.data(); | 76 | 182 | const B* __restrict b_pos = b.data(); | 77 | 182 | UInt8* __restrict c_pos = c.data(); | 78 | 182 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 800k | while (a_pos < a_end) { | 81 | 800k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 800k | ++a_pos; | 83 | 800k | ++b_pos; | 84 | 800k | ++c_pos; | 85 | 800k | } | 86 | 182 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 3 | PaddedPODArray<UInt8>& c) { | 74 | 3 | size_t size = a.size(); | 75 | 3 | const A* __restrict a_pos = a.data(); | 76 | 3 | const B* __restrict b_pos = b.data(); | 77 | 3 | UInt8* __restrict c_pos = c.data(); | 78 | 3 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 9 | while (a_pos < a_end) { | 81 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6 | ++a_pos; | 83 | 6 | ++b_pos; | 84 | 6 | ++c_pos; | 85 | 6 | } | 86 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 124 | while (a_pos < a_end) { | 81 | 89 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 89 | ++a_pos; | 83 | 89 | ++b_pos; | 84 | 89 | ++c_pos; | 85 | 89 | } | 86 | 35 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 6 | PaddedPODArray<UInt8>& c) { | 74 | 6 | size_t size = a.size(); | 75 | 6 | const A* __restrict a_pos = a.data(); | 76 | 6 | const B* __restrict b_pos = b.data(); | 77 | 6 | UInt8* __restrict c_pos = c.data(); | 78 | 6 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 70 | while (a_pos < a_end) { | 81 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 64 | ++a_pos; | 83 | 64 | ++b_pos; | 84 | 64 | ++c_pos; | 85 | 64 | } | 86 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 361 | PaddedPODArray<UInt8>& c) { | 74 | 361 | size_t size = a.size(); | 75 | 361 | const A* __restrict a_pos = a.data(); | 76 | 361 | const B* __restrict b_pos = b.data(); | 77 | 361 | UInt8* __restrict c_pos = c.data(); | 78 | 361 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.46k | while (a_pos < a_end) { | 81 | 1.10k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.10k | ++a_pos; | 83 | 1.10k | ++b_pos; | 84 | 1.10k | ++c_pos; | 85 | 1.10k | } | 86 | 361 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 4.14k | while (a_pos < a_end) { | 81 | 4.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4.13k | ++a_pos; | 83 | 4.13k | ++b_pos; | 84 | 4.13k | ++c_pos; | 85 | 4.13k | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12.3k | while (a_pos < a_end) { | 81 | 12.3k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 12.3k | ++a_pos; | 83 | 12.3k | ++b_pos; | 84 | 12.3k | ++c_pos; | 85 | 12.3k | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 108 | PaddedPODArray<UInt8>& c) { | 74 | 108 | size_t size = a.size(); | 75 | 108 | const A* __restrict a_pos = a.data(); | 76 | 108 | const B* __restrict b_pos = b.data(); | 77 | 108 | UInt8* __restrict c_pos = c.data(); | 78 | 108 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 864 | while (a_pos < a_end) { | 81 | 756 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 756 | ++a_pos; | 83 | 756 | ++b_pos; | 84 | 756 | ++c_pos; | 85 | 756 | } | 86 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 22 | PaddedPODArray<UInt8>& c) { | 74 | 22 | size_t size = a.size(); | 75 | 22 | const A* __restrict a_pos = a.data(); | 76 | 22 | const B* __restrict b_pos = b.data(); | 77 | 22 | UInt8* __restrict c_pos = c.data(); | 78 | 22 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 67 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 90 | PaddedPODArray<UInt8>& c) { | 74 | 90 | size_t size = a.size(); | 75 | 90 | const A* __restrict a_pos = a.data(); | 76 | 90 | const B* __restrict b_pos = b.data(); | 77 | 90 | UInt8* __restrict c_pos = c.data(); | 78 | 90 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 354 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 90 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.66k | PaddedPODArray<UInt8>& c) { | 74 | 1.66k | size_t size = a.size(); | 75 | 1.66k | const A* __restrict a_pos = a.data(); | 76 | 1.66k | const B* __restrict b_pos = b.data(); | 77 | 1.66k | UInt8* __restrict c_pos = c.data(); | 78 | 1.66k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.92M | while (a_pos < a_end) { | 81 | 2.92M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.92M | ++a_pos; | 83 | 2.92M | ++b_pos; | 84 | 2.92M | ++c_pos; | 85 | 2.92M | } | 86 | 1.66k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 239 | PaddedPODArray<UInt8>& c) { | 74 | 239 | size_t size = a.size(); | 75 | 239 | const A* __restrict a_pos = a.data(); | 76 | 239 | const B* __restrict b_pos = b.data(); | 77 | 239 | UInt8* __restrict c_pos = c.data(); | 78 | 239 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 826 | while (a_pos < a_end) { | 81 | 587 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 587 | ++a_pos; | 83 | 587 | ++b_pos; | 84 | 587 | ++c_pos; | 85 | 587 | } | 86 | 239 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 105 | PaddedPODArray<UInt8>& c) { | 74 | 105 | size_t size = a.size(); | 75 | 105 | const A* __restrict a_pos = a.data(); | 76 | 105 | const B* __restrict b_pos = b.data(); | 77 | 105 | UInt8* __restrict c_pos = c.data(); | 78 | 105 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 227 | while (a_pos < a_end) { | 81 | 122 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 122 | ++a_pos; | 83 | 122 | ++b_pos; | 84 | 122 | ++c_pos; | 85 | 122 | } | 86 | 105 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 223 | PaddedPODArray<UInt8>& c) { | 74 | 223 | size_t size = a.size(); | 75 | 223 | const A* __restrict a_pos = a.data(); | 76 | 223 | const B* __restrict b_pos = b.data(); | 77 | 223 | UInt8* __restrict c_pos = c.data(); | 78 | 223 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 620 | while (a_pos < a_end) { | 81 | 397 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 397 | ++a_pos; | 83 | 397 | ++b_pos; | 84 | 397 | ++c_pos; | 85 | 397 | } | 86 | 223 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 160 | PaddedPODArray<UInt8>& c) { | 74 | 160 | size_t size = a.size(); | 75 | 160 | const A* __restrict a_pos = a.data(); | 76 | 160 | const B* __restrict b_pos = b.data(); | 77 | 160 | UInt8* __restrict c_pos = c.data(); | 78 | 160 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 496 | while (a_pos < a_end) { | 81 | 336 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 336 | ++a_pos; | 83 | 336 | ++b_pos; | 84 | 336 | ++c_pos; | 85 | 336 | } | 86 | 160 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 898 | PaddedPODArray<UInt8>& c) { | 74 | 898 | size_t size = a.size(); | 75 | 898 | const A* __restrict a_pos = a.data(); | 76 | 898 | const B* __restrict b_pos = b.data(); | 77 | 898 | UInt8* __restrict c_pos = c.data(); | 78 | 898 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 18.9k | while (a_pos < a_end) { | 81 | 18.0k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.0k | ++a_pos; | 83 | 18.0k | ++b_pos; | 84 | 18.0k | ++c_pos; | 85 | 18.0k | } | 86 | 898 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 264 | PaddedPODArray<UInt8>& c) { | 74 | 264 | size_t size = a.size(); | 75 | 264 | const A* __restrict a_pos = a.data(); | 76 | 264 | const B* __restrict b_pos = b.data(); | 77 | 264 | UInt8* __restrict c_pos = c.data(); | 78 | 264 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 349k | while (a_pos < a_end) { | 81 | 349k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 349k | ++a_pos; | 83 | 349k | ++b_pos; | 84 | 349k | ++c_pos; | 85 | 349k | } | 86 | 264 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 132 | PaddedPODArray<UInt8>& c) { | 74 | 132 | size_t size = a.size(); | 75 | 132 | const A* __restrict a_pos = a.data(); | 76 | 132 | const B* __restrict b_pos = b.data(); | 77 | 132 | UInt8* __restrict c_pos = c.data(); | 78 | 132 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 438 | while (a_pos < a_end) { | 81 | 306 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 306 | ++a_pos; | 83 | 306 | ++b_pos; | 84 | 306 | ++c_pos; | 85 | 306 | } | 86 | 132 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 110 | PaddedPODArray<UInt8>& c) { | 74 | 110 | size_t size = a.size(); | 75 | 110 | const A* __restrict a_pos = a.data(); | 76 | 110 | const B* __restrict b_pos = b.data(); | 77 | 110 | UInt8* __restrict c_pos = c.data(); | 78 | 110 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 868 | while (a_pos < a_end) { | 81 | 758 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 758 | ++a_pos; | 83 | 758 | ++b_pos; | 84 | 758 | ++c_pos; | 85 | 758 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 130 | PaddedPODArray<UInt8>& c) { | 74 | 130 | size_t size = a.size(); | 75 | 130 | const A* __restrict a_pos = a.data(); | 76 | 130 | const B* __restrict b_pos = b.data(); | 77 | 130 | UInt8* __restrict c_pos = c.data(); | 78 | 130 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 453 | while (a_pos < a_end) { | 81 | 323 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 323 | ++a_pos; | 83 | 323 | ++b_pos; | 84 | 323 | ++c_pos; | 85 | 323 | } | 86 | 130 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 135 | PaddedPODArray<UInt8>& c) { | 74 | 135 | size_t size = a.size(); | 75 | 135 | const A* __restrict a_pos = a.data(); | 76 | 135 | const B* __restrict b_pos = b.data(); | 77 | 135 | UInt8* __restrict c_pos = c.data(); | 78 | 135 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 486 | while (a_pos < a_end) { | 81 | 351 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 351 | ++a_pos; | 83 | 351 | ++b_pos; | 84 | 351 | ++c_pos; | 85 | 351 | } | 86 | 135 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 397 | PaddedPODArray<UInt8>& c) { | 74 | 397 | size_t size = a.size(); | 75 | 397 | const A* __restrict a_pos = a.data(); | 76 | 397 | const B* __restrict b_pos = b.data(); | 77 | 397 | UInt8* __restrict c_pos = c.data(); | 78 | 397 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.02k | while (a_pos < a_end) { | 81 | 5.63k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.63k | ++a_pos; | 83 | 5.63k | ++b_pos; | 84 | 5.63k | ++c_pos; | 85 | 5.63k | } | 86 | 397 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 26 | PaddedPODArray<UInt8>& c) { | 74 | 26 | size_t size = a.size(); | 75 | 26 | const A* __restrict a_pos = a.data(); | 76 | 26 | const B* __restrict b_pos = b.data(); | 77 | 26 | UInt8* __restrict c_pos = c.data(); | 78 | 26 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 72 | while (a_pos < a_end) { | 81 | 46 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 46 | ++a_pos; | 83 | 46 | ++b_pos; | 84 | 46 | ++c_pos; | 85 | 46 | } | 86 | 26 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 22 | PaddedPODArray<UInt8>& c) { | 74 | 22 | size_t size = a.size(); | 75 | 22 | const A* __restrict a_pos = a.data(); | 76 | 22 | const B* __restrict b_pos = b.data(); | 77 | 22 | UInt8* __restrict c_pos = c.data(); | 78 | 22 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 16.4k | while (a_pos < a_end) { | 81 | 16.4k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 16.4k | ++a_pos; | 83 | 16.4k | ++b_pos; | 84 | 16.4k | ++c_pos; | 85 | 16.4k | } | 86 | 22 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 37 | PaddedPODArray<UInt8>& c) { | 74 | 37 | size_t size = a.size(); | 75 | 37 | const A* __restrict a_pos = a.data(); | 76 | 37 | const B* __restrict b_pos = b.data(); | 77 | 37 | UInt8* __restrict c_pos = c.data(); | 78 | 37 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 82 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 37 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
87 | | |
88 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
89 | 56.2k | PaddedPODArray<UInt8>& c) { |
90 | 56.2k | size_t size = a.size(); |
91 | 56.2k | const A* __restrict a_pos = a.data(); |
92 | 56.2k | UInt8* __restrict c_pos = c.data(); |
93 | 56.2k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 35.9M | while (a_pos < a_end) { |
96 | 35.9M | *c_pos = Op::apply(*a_pos, b); |
97 | 35.9M | ++a_pos; |
98 | 35.9M | ++c_pos; |
99 | 35.9M | } |
100 | 56.2k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 30 | PaddedPODArray<UInt8>& c) { | 90 | 30 | size_t size = a.size(); | 91 | 30 | const A* __restrict a_pos = a.data(); | 92 | 30 | UInt8* __restrict c_pos = c.data(); | 93 | 30 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 181 | while (a_pos < a_end) { | 96 | 151 | *c_pos = Op::apply(*a_pos, b); | 97 | 151 | ++a_pos; | 98 | 151 | ++c_pos; | 99 | 151 | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 342 | PaddedPODArray<UInt8>& c) { | 90 | 342 | size_t size = a.size(); | 91 | 342 | const A* __restrict a_pos = a.data(); | 92 | 342 | UInt8* __restrict c_pos = c.data(); | 93 | 342 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 202k | *c_pos = Op::apply(*a_pos, b); | 97 | 202k | ++a_pos; | 98 | 202k | ++c_pos; | 99 | 202k | } | 100 | 342 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 176 | PaddedPODArray<UInt8>& c) { | 90 | 176 | size_t size = a.size(); | 91 | 176 | const A* __restrict a_pos = a.data(); | 92 | 176 | UInt8* __restrict c_pos = c.data(); | 93 | 176 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 125k | while (a_pos < a_end) { | 96 | 125k | *c_pos = Op::apply(*a_pos, b); | 97 | 125k | ++a_pos; | 98 | 125k | ++c_pos; | 99 | 125k | } | 100 | 176 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 89 | PaddedPODArray<UInt8>& c) { | 90 | 89 | size_t size = a.size(); | 91 | 89 | const A* __restrict a_pos = a.data(); | 92 | 89 | UInt8* __restrict c_pos = c.data(); | 93 | 89 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 184 | while (a_pos < a_end) { | 96 | 95 | *c_pos = Op::apply(*a_pos, b); | 97 | 95 | ++a_pos; | 98 | 95 | ++c_pos; | 99 | 95 | } | 100 | 89 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 20 | while (a_pos < a_end) { | 96 | 10 | *c_pos = Op::apply(*a_pos, b); | 97 | 10 | ++a_pos; | 98 | 10 | ++c_pos; | 99 | 10 | } | 100 | 10 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.90k | PaddedPODArray<UInt8>& c) { | 90 | 5.90k | size_t size = a.size(); | 91 | 5.90k | const A* __restrict a_pos = a.data(); | 92 | 5.90k | UInt8* __restrict c_pos = c.data(); | 93 | 5.90k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8.99M | while (a_pos < a_end) { | 96 | 8.98M | *c_pos = Op::apply(*a_pos, b); | 97 | 8.98M | ++a_pos; | 98 | 8.98M | ++c_pos; | 99 | 8.98M | } | 100 | 5.90k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 345 | PaddedPODArray<UInt8>& c) { | 90 | 345 | size_t size = a.size(); | 91 | 345 | const A* __restrict a_pos = a.data(); | 92 | 345 | UInt8* __restrict c_pos = c.data(); | 93 | 345 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101k | while (a_pos < a_end) { | 96 | 101k | *c_pos = Op::apply(*a_pos, b); | 97 | 101k | ++a_pos; | 98 | 101k | ++c_pos; | 99 | 101k | } | 100 | 345 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.16k | PaddedPODArray<UInt8>& c) { | 90 | 2.16k | size_t size = a.size(); | 91 | 2.16k | const A* __restrict a_pos = a.data(); | 92 | 2.16k | UInt8* __restrict c_pos = c.data(); | 93 | 2.16k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 200k | *c_pos = Op::apply(*a_pos, b); | 97 | 200k | ++a_pos; | 98 | 200k | ++c_pos; | 99 | 200k | } | 100 | 2.16k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.75k | PaddedPODArray<UInt8>& c) { | 90 | 5.75k | size_t size = a.size(); | 91 | 5.75k | const A* __restrict a_pos = a.data(); | 92 | 5.75k | UInt8* __restrict c_pos = c.data(); | 93 | 5.75k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.23M | while (a_pos < a_end) { | 96 | 4.22M | *c_pos = Op::apply(*a_pos, b); | 97 | 4.22M | ++a_pos; | 98 | 4.22M | ++c_pos; | 99 | 4.22M | } | 100 | 5.75k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 100k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7 | PaddedPODArray<UInt8>& c) { | 90 | 7 | size_t size = a.size(); | 91 | 7 | const A* __restrict a_pos = a.data(); | 92 | 7 | UInt8* __restrict c_pos = c.data(); | 93 | 7 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 21 | while (a_pos < a_end) { | 96 | 14 | *c_pos = Op::apply(*a_pos, b); | 97 | 14 | ++a_pos; | 98 | 14 | ++c_pos; | 99 | 14 | } | 100 | 7 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 4 | *c_pos = Op::apply(*a_pos, b); | 97 | 4 | ++a_pos; | 98 | 4 | ++c_pos; | 99 | 4 | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.02k | PaddedPODArray<UInt8>& c) { | 90 | 2.02k | size_t size = a.size(); | 91 | 2.02k | const A* __restrict a_pos = a.data(); | 92 | 2.02k | UInt8* __restrict c_pos = c.data(); | 93 | 2.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 68.5k | while (a_pos < a_end) { | 96 | 66.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 66.5k | ++a_pos; | 98 | 66.5k | ++c_pos; | 99 | 66.5k | } | 100 | 2.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 613 | PaddedPODArray<UInt8>& c) { | 90 | 613 | size_t size = a.size(); | 91 | 613 | const A* __restrict a_pos = a.data(); | 92 | 613 | UInt8* __restrict c_pos = c.data(); | 93 | 613 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 713k | while (a_pos < a_end) { | 96 | 712k | *c_pos = Op::apply(*a_pos, b); | 97 | 712k | ++a_pos; | 98 | 712k | ++c_pos; | 99 | 712k | } | 100 | 613 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 82 | while (a_pos < a_end) { | 96 | 51 | *c_pos = Op::apply(*a_pos, b); | 97 | 51 | ++a_pos; | 98 | 51 | ++c_pos; | 99 | 51 | } | 100 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 6 | *c_pos = Op::apply(*a_pos, b); | 97 | 6 | ++a_pos; | 98 | 6 | ++c_pos; | 99 | 6 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78 | while (a_pos < a_end) { | 96 | 50 | *c_pos = Op::apply(*a_pos, b); | 97 | 50 | ++a_pos; | 98 | 50 | ++c_pos; | 99 | 50 | } | 100 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 274 | PaddedPODArray<UInt8>& c) { | 90 | 274 | size_t size = a.size(); | 91 | 274 | const A* __restrict a_pos = a.data(); | 92 | 274 | UInt8* __restrict c_pos = c.data(); | 93 | 274 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.98k | while (a_pos < a_end) { | 96 | 1.71k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.71k | ++a_pos; | 98 | 1.71k | ++c_pos; | 99 | 1.71k | } | 100 | 274 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 480 | PaddedPODArray<UInt8>& c) { | 90 | 480 | size_t size = a.size(); | 91 | 480 | const A* __restrict a_pos = a.data(); | 92 | 480 | UInt8* __restrict c_pos = c.data(); | 93 | 480 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.66k | while (a_pos < a_end) { | 96 | 5.18k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.18k | ++a_pos; | 98 | 5.18k | ++c_pos; | 99 | 5.18k | } | 100 | 480 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 70 | while (a_pos < a_end) { | 96 | 42 | *c_pos = Op::apply(*a_pos, b); | 97 | 42 | ++a_pos; | 98 | 42 | ++c_pos; | 99 | 42 | } | 100 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 40 | PaddedPODArray<UInt8>& c) { | 90 | 40 | size_t size = a.size(); | 91 | 40 | const A* __restrict a_pos = a.data(); | 92 | 40 | UInt8* __restrict c_pos = c.data(); | 93 | 40 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 282 | while (a_pos < a_end) { | 96 | 242 | *c_pos = Op::apply(*a_pos, b); | 97 | 242 | ++a_pos; | 98 | 242 | ++c_pos; | 99 | 242 | } | 100 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149 | while (a_pos < a_end) { | 96 | 108 | *c_pos = Op::apply(*a_pos, b); | 97 | 108 | ++a_pos; | 98 | 108 | ++c_pos; | 99 | 108 | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 401 | PaddedPODArray<UInt8>& c) { | 90 | 401 | size_t size = a.size(); | 91 | 401 | const A* __restrict a_pos = a.data(); | 92 | 401 | UInt8* __restrict c_pos = c.data(); | 93 | 401 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.67M | while (a_pos < a_end) { | 96 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.67M | ++a_pos; | 98 | 1.67M | ++c_pos; | 99 | 1.67M | } | 100 | 401 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 5 | *c_pos = Op::apply(*a_pos, b); | 97 | 5 | ++a_pos; | 98 | 5 | ++c_pos; | 99 | 5 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 263 | while (a_pos < a_end) { | 96 | 204 | *c_pos = Op::apply(*a_pos, b); | 97 | 204 | ++a_pos; | 98 | 204 | ++c_pos; | 99 | 204 | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 37 | PaddedPODArray<UInt8>& c) { | 90 | 37 | size_t size = a.size(); | 91 | 37 | const A* __restrict a_pos = a.data(); | 92 | 37 | UInt8* __restrict c_pos = c.data(); | 93 | 37 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86 | while (a_pos < a_end) { | 96 | 49 | *c_pos = Op::apply(*a_pos, b); | 97 | 49 | ++a_pos; | 98 | 49 | ++c_pos; | 99 | 49 | } | 100 | 37 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 112 | while (a_pos < a_end) { | 96 | 66 | *c_pos = Op::apply(*a_pos, b); | 97 | 66 | ++a_pos; | 98 | 66 | ++c_pos; | 99 | 66 | } | 100 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 7 | *c_pos = Op::apply(*a_pos, b); | 97 | 7 | ++a_pos; | 98 | 7 | ++c_pos; | 99 | 7 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.66k | PaddedPODArray<UInt8>& c) { | 90 | 1.66k | size_t size = a.size(); | 91 | 1.66k | const A* __restrict a_pos = a.data(); | 92 | 1.66k | UInt8* __restrict c_pos = c.data(); | 93 | 1.66k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 14.1k | while (a_pos < a_end) { | 96 | 12.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 12.4k | ++a_pos; | 98 | 12.4k | ++c_pos; | 99 | 12.4k | } | 100 | 1.66k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.16k | PaddedPODArray<UInt8>& c) { | 90 | 2.16k | size_t size = a.size(); | 91 | 2.16k | const A* __restrict a_pos = a.data(); | 92 | 2.16k | UInt8* __restrict c_pos = c.data(); | 93 | 2.16k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.98k | while (a_pos < a_end) { | 96 | 3.81k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.81k | ++a_pos; | 98 | 3.81k | ++c_pos; | 99 | 3.81k | } | 100 | 2.16k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.00k | PaddedPODArray<UInt8>& c) { | 90 | 2.00k | size_t size = a.size(); | 91 | 2.00k | const A* __restrict a_pos = a.data(); | 92 | 2.00k | UInt8* __restrict c_pos = c.data(); | 93 | 2.00k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.37k | while (a_pos < a_end) { | 96 | 5.36k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.36k | ++a_pos; | 98 | 5.36k | ++c_pos; | 99 | 5.36k | } | 100 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 242 | PaddedPODArray<UInt8>& c) { | 90 | 242 | size_t size = a.size(); | 91 | 242 | const A* __restrict a_pos = a.data(); | 92 | 242 | UInt8* __restrict c_pos = c.data(); | 93 | 242 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.20k | while (a_pos < a_end) { | 96 | 959 | *c_pos = Op::apply(*a_pos, b); | 97 | 959 | ++a_pos; | 98 | 959 | ++c_pos; | 99 | 959 | } | 100 | 242 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10.3k | PaddedPODArray<UInt8>& c) { | 90 | 10.3k | size_t size = a.size(); | 91 | 10.3k | const A* __restrict a_pos = a.data(); | 92 | 10.3k | UInt8* __restrict c_pos = c.data(); | 93 | 10.3k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.27M | while (a_pos < a_end) { | 96 | 5.26M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.26M | ++a_pos; | 98 | 5.26M | ++c_pos; | 99 | 5.26M | } | 100 | 10.3k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4.20k | PaddedPODArray<UInt8>& c) { | 90 | 4.20k | size_t size = a.size(); | 91 | 4.20k | const A* __restrict a_pos = a.data(); | 92 | 4.20k | UInt8* __restrict c_pos = c.data(); | 93 | 4.20k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 976k | while (a_pos < a_end) { | 96 | 972k | *c_pos = Op::apply(*a_pos, b); | 97 | 972k | ++a_pos; | 98 | 972k | ++c_pos; | 99 | 972k | } | 100 | 4.20k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.79k | PaddedPODArray<UInt8>& c) { | 90 | 1.79k | size_t size = a.size(); | 91 | 1.79k | const A* __restrict a_pos = a.data(); | 92 | 1.79k | UInt8* __restrict c_pos = c.data(); | 93 | 1.79k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.2k | while (a_pos < a_end) { | 96 | 97.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.4k | ++a_pos; | 98 | 97.4k | ++c_pos; | 99 | 97.4k | } | 100 | 1.79k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.07k | PaddedPODArray<UInt8>& c) { | 90 | 1.07k | size_t size = a.size(); | 91 | 1.07k | const A* __restrict a_pos = a.data(); | 92 | 1.07k | UInt8* __restrict c_pos = c.data(); | 93 | 1.07k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.8k | while (a_pos < a_end) { | 96 | 31.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.7k | ++a_pos; | 98 | 31.7k | ++c_pos; | 99 | 31.7k | } | 100 | 1.07k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 297 | PaddedPODArray<UInt8>& c) { | 90 | 297 | size_t size = a.size(); | 91 | 297 | const A* __restrict a_pos = a.data(); | 92 | 297 | UInt8* __restrict c_pos = c.data(); | 93 | 297 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.93k | while (a_pos < a_end) { | 96 | 1.64k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.64k | ++a_pos; | 98 | 1.64k | ++c_pos; | 99 | 1.64k | } | 100 | 297 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 106 | PaddedPODArray<UInt8>& c) { | 90 | 106 | size_t size = a.size(); | 91 | 106 | const A* __restrict a_pos = a.data(); | 92 | 106 | UInt8* __restrict c_pos = c.data(); | 93 | 106 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86.2k | while (a_pos < a_end) { | 96 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 86.1k | ++a_pos; | 98 | 86.1k | ++c_pos; | 99 | 86.1k | } | 100 | 106 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 31 | while (a_pos < a_end) { | 96 | 28 | *c_pos = Op::apply(*a_pos, b); | 97 | 28 | ++a_pos; | 98 | 28 | ++c_pos; | 99 | 28 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 22 | while (a_pos < a_end) { | 96 | 20 | *c_pos = Op::apply(*a_pos, b); | 97 | 20 | ++a_pos; | 98 | 20 | ++c_pos; | 99 | 20 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 507 | PaddedPODArray<UInt8>& c) { | 90 | 507 | size_t size = a.size(); | 91 | 507 | const A* __restrict a_pos = a.data(); | 92 | 507 | UInt8* __restrict c_pos = c.data(); | 93 | 507 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.12k | while (a_pos < a_end) { | 96 | 3.61k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.61k | ++a_pos; | 98 | 3.61k | ++c_pos; | 99 | 3.61k | } | 100 | 507 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 347 | PaddedPODArray<UInt8>& c) { | 90 | 347 | size_t size = a.size(); | 91 | 347 | const A* __restrict a_pos = a.data(); | 92 | 347 | UInt8* __restrict c_pos = c.data(); | 93 | 347 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.02k | while (a_pos < a_end) { | 96 | 6.67k | *c_pos = Op::apply(*a_pos, b); | 97 | 6.67k | ++a_pos; | 98 | 6.67k | ++c_pos; | 99 | 6.67k | } | 100 | 347 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 401 | PaddedPODArray<UInt8>& c) { | 90 | 401 | size_t size = a.size(); | 91 | 401 | const A* __restrict a_pos = a.data(); | 92 | 401 | UInt8* __restrict c_pos = c.data(); | 93 | 401 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.18k | while (a_pos < a_end) { | 96 | 2.78k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.78k | ++a_pos; | 98 | 2.78k | ++c_pos; | 99 | 2.78k | } | 100 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 572 | PaddedPODArray<UInt8>& c) { | 90 | 572 | size_t size = a.size(); | 91 | 572 | const A* __restrict a_pos = a.data(); | 92 | 572 | UInt8* __restrict c_pos = c.data(); | 93 | 572 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.05k | while (a_pos < a_end) { | 96 | 8.48k | *c_pos = Op::apply(*a_pos, b); | 97 | 8.48k | ++a_pos; | 98 | 8.48k | ++c_pos; | 99 | 8.48k | } | 100 | 572 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.06k | PaddedPODArray<UInt8>& c) { | 90 | 1.06k | size_t size = a.size(); | 91 | 1.06k | const A* __restrict a_pos = a.data(); | 92 | 1.06k | UInt8* __restrict c_pos = c.data(); | 93 | 1.06k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 609k | while (a_pos < a_end) { | 96 | 608k | *c_pos = Op::apply(*a_pos, b); | 97 | 608k | ++a_pos; | 98 | 608k | ++c_pos; | 99 | 608k | } | 100 | 1.06k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 22 | PaddedPODArray<UInt8>& c) { | 90 | 22 | size_t size = a.size(); | 91 | 22 | const A* __restrict a_pos = a.data(); | 92 | 22 | UInt8* __restrict c_pos = c.data(); | 93 | 22 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78.4k | while (a_pos < a_end) { | 96 | 78.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 78.4k | ++a_pos; | 98 | 78.4k | ++c_pos; | 99 | 78.4k | } | 100 | 22 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 12 | PaddedPODArray<UInt8>& c) { | 90 | 12 | size_t size = a.size(); | 91 | 12 | const A* __restrict a_pos = a.data(); | 92 | 12 | UInt8* __restrict c_pos = c.data(); | 93 | 12 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 10.1k | while (a_pos < a_end) { | 96 | 10.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 10.1k | ++a_pos; | 98 | 10.1k | ++c_pos; | 99 | 10.1k | } | 100 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 487 | PaddedPODArray<UInt8>& c) { | 90 | 487 | size_t size = a.size(); | 91 | 487 | const A* __restrict a_pos = a.data(); | 92 | 487 | UInt8* __restrict c_pos = c.data(); | 93 | 487 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.74M | while (a_pos < a_end) { | 96 | 1.74M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.74M | ++a_pos; | 98 | 1.74M | ++c_pos; | 99 | 1.74M | } | 100 | 487 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 152 | PaddedPODArray<UInt8>& c) { | 90 | 152 | size_t size = a.size(); | 91 | 152 | const A* __restrict a_pos = a.data(); | 92 | 152 | UInt8* __restrict c_pos = c.data(); | 93 | 152 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 692k | while (a_pos < a_end) { | 96 | 692k | *c_pos = Op::apply(*a_pos, b); | 97 | 692k | ++a_pos; | 98 | 692k | ++c_pos; | 99 | 692k | } | 100 | 152 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 114 | PaddedPODArray<UInt8>& c) { | 90 | 114 | size_t size = a.size(); | 91 | 114 | const A* __restrict a_pos = a.data(); | 92 | 114 | UInt8* __restrict c_pos = c.data(); | 93 | 114 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 419 | while (a_pos < a_end) { | 96 | 305 | *c_pos = Op::apply(*a_pos, b); | 97 | 305 | ++a_pos; | 98 | 305 | ++c_pos; | 99 | 305 | } | 100 | 114 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 69 | PaddedPODArray<UInt8>& c) { | 90 | 69 | size_t size = a.size(); | 91 | 69 | const A* __restrict a_pos = a.data(); | 92 | 69 | UInt8* __restrict c_pos = c.data(); | 93 | 69 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 322 | while (a_pos < a_end) { | 96 | 253 | *c_pos = Op::apply(*a_pos, b); | 97 | 253 | ++a_pos; | 98 | 253 | ++c_pos; | 99 | 253 | } | 100 | 69 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 113 | while (a_pos < a_end) { | 96 | 67 | *c_pos = Op::apply(*a_pos, b); | 97 | 67 | ++a_pos; | 98 | 67 | ++c_pos; | 99 | 67 | } | 100 | 46 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 38 | PaddedPODArray<UInt8>& c) { | 90 | 38 | size_t size = a.size(); | 91 | 38 | const A* __restrict a_pos = a.data(); | 92 | 38 | UInt8* __restrict c_pos = c.data(); | 93 | 38 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 91 | while (a_pos < a_end) { | 96 | 53 | *c_pos = Op::apply(*a_pos, b); | 97 | 53 | ++a_pos; | 98 | 53 | ++c_pos; | 99 | 53 | } | 100 | 38 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 38 | PaddedPODArray<UInt8>& c) { | 90 | 38 | size_t size = a.size(); | 91 | 38 | const A* __restrict a_pos = a.data(); | 92 | 38 | UInt8* __restrict c_pos = c.data(); | 93 | 38 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101k | while (a_pos < a_end) { | 96 | 101k | *c_pos = Op::apply(*a_pos, b); | 97 | 101k | ++a_pos; | 98 | 101k | ++c_pos; | 99 | 101k | } | 100 | 38 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 52 | PaddedPODArray<UInt8>& c) { | 90 | 52 | size_t size = a.size(); | 91 | 52 | const A* __restrict a_pos = a.data(); | 92 | 52 | UInt8* __restrict c_pos = c.data(); | 93 | 52 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 105k | while (a_pos < a_end) { | 96 | 105k | *c_pos = Op::apply(*a_pos, b); | 97 | 105k | ++a_pos; | 98 | 105k | ++c_pos; | 99 | 105k | } | 100 | 52 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78.4k | while (a_pos < a_end) { | 96 | 78.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 78.4k | ++a_pos; | 98 | 78.4k | ++c_pos; | 99 | 78.4k | } | 100 | 31 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 51 | PaddedPODArray<UInt8>& c) { | 90 | 51 | size_t size = a.size(); | 91 | 51 | const A* __restrict a_pos = a.data(); | 92 | 51 | UInt8* __restrict c_pos = c.data(); | 93 | 51 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 105k | while (a_pos < a_end) { | 96 | 105k | *c_pos = Op::apply(*a_pos, b); | 97 | 105k | ++a_pos; | 98 | 105k | ++c_pos; | 99 | 105k | } | 100 | 51 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 694 | PaddedPODArray<UInt8>& c) { | 90 | 694 | size_t size = a.size(); | 91 | 694 | const A* __restrict a_pos = a.data(); | 92 | 694 | UInt8* __restrict c_pos = c.data(); | 93 | 694 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.00M | while (a_pos < a_end) { | 96 | 2.00M | *c_pos = Op::apply(*a_pos, b); | 97 | 2.00M | ++a_pos; | 98 | 2.00M | ++c_pos; | 99 | 2.00M | } | 100 | 694 | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.19k | PaddedPODArray<UInt8>& c) { | 90 | 6.19k | size_t size = a.size(); | 91 | 6.19k | const A* __restrict a_pos = a.data(); | 92 | 6.19k | UInt8* __restrict c_pos = c.data(); | 93 | 6.19k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 6.00M | while (a_pos < a_end) { | 96 | 6.00M | *c_pos = Op::apply(*a_pos, b); | 97 | 6.00M | ++a_pos; | 98 | 6.00M | ++c_pos; | 99 | 6.00M | } | 100 | 6.19k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 818 | PaddedPODArray<UInt8>& c) { | 90 | 818 | size_t size = a.size(); | 91 | 818 | const A* __restrict a_pos = a.data(); | 92 | 818 | UInt8* __restrict c_pos = c.data(); | 93 | 818 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.19k | while (a_pos < a_end) { | 96 | 3.37k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.37k | ++a_pos; | 98 | 3.37k | ++c_pos; | 99 | 3.37k | } | 100 | 818 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 649 | PaddedPODArray<UInt8>& c) { | 90 | 649 | size_t size = a.size(); | 91 | 649 | const A* __restrict a_pos = a.data(); | 92 | 649 | UInt8* __restrict c_pos = c.data(); | 93 | 649 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.5k | while (a_pos < a_end) { | 96 | 45.9k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.9k | ++a_pos; | 98 | 45.9k | ++c_pos; | 99 | 45.9k | } | 100 | 649 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 20 | PaddedPODArray<UInt8>& c) { | 90 | 20 | size_t size = a.size(); | 91 | 20 | const A* __restrict a_pos = a.data(); | 92 | 20 | UInt8* __restrict c_pos = c.data(); | 93 | 20 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 74.8k | while (a_pos < a_end) { | 96 | 74.8k | *c_pos = Op::apply(*a_pos, b); | 97 | 74.8k | ++a_pos; | 98 | 74.8k | ++c_pos; | 99 | 74.8k | } | 100 | 20 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 30 | PaddedPODArray<UInt8>& c) { | 90 | 30 | size_t size = a.size(); | 91 | 30 | const A* __restrict a_pos = a.data(); | 92 | 30 | UInt8* __restrict c_pos = c.data(); | 93 | 30 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 44.2k | while (a_pos < a_end) { | 96 | 44.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 44.2k | ++a_pos; | 98 | 44.2k | ++c_pos; | 99 | 44.2k | } | 100 | 30 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 469 | PaddedPODArray<UInt8>& c) { | 90 | 469 | size_t size = a.size(); | 91 | 469 | const A* __restrict a_pos = a.data(); | 92 | 469 | UInt8* __restrict c_pos = c.data(); | 93 | 469 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.1k | ++a_pos; | 98 | 49.1k | ++c_pos; | 99 | 49.1k | } | 100 | 469 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 313 | PaddedPODArray<UInt8>& c) { | 90 | 313 | size_t size = a.size(); | 91 | 313 | const A* __restrict a_pos = a.data(); | 92 | 313 | UInt8* __restrict c_pos = c.data(); | 93 | 313 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.40k | while (a_pos < a_end) { | 96 | 3.09k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.09k | ++a_pos; | 98 | 3.09k | ++c_pos; | 99 | 3.09k | } | 100 | 313 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 28 | while (a_pos < a_end) { | 96 | 18 | *c_pos = Op::apply(*a_pos, b); | 97 | 18 | ++a_pos; | 98 | 18 | ++c_pos; | 99 | 18 | } | 100 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 110 | PaddedPODArray<UInt8>& c) { | 90 | 110 | size_t size = a.size(); | 91 | 110 | const A* __restrict a_pos = a.data(); | 92 | 110 | UInt8* __restrict c_pos = c.data(); | 93 | 110 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 680k | while (a_pos < a_end) { | 96 | 680k | *c_pos = Op::apply(*a_pos, b); | 97 | 680k | ++a_pos; | 98 | 680k | ++c_pos; | 99 | 680k | } | 100 | 110 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 91 | PaddedPODArray<UInt8>& c) { | 90 | 91 | size_t size = a.size(); | 91 | 91 | const A* __restrict a_pos = a.data(); | 92 | 91 | UInt8* __restrict c_pos = c.data(); | 93 | 91 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 600k | while (a_pos < a_end) { | 96 | 600k | *c_pos = Op::apply(*a_pos, b); | 97 | 600k | ++a_pos; | 98 | 600k | ++c_pos; | 99 | 600k | } | 100 | 91 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 6.55k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 6.55k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 6.55k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 276 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 276 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 276 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 130 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 130 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 130 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 598 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 598 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 598 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 446 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 446 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 446 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 228 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 524 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 524 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 524 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 46 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 46 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 240 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 119 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 119 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 119 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 73 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 73 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 73 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 96 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 96 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 96 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 35 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 35 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 35 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 24 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 75 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
112 | 51 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
113 | 51 | } |
114 | 24 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 16 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 46 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 30 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 30 | } | 114 | 16 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 2 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 12 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 10 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 10 | } | 114 | 2 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 13 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 9 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 9 | } | 114 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
115 | | |
116 | 136 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 136 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 400k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 400k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 400k | } |
121 | 136 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 19 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 19 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 60 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 41 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 41 | } | 121 | 19 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 51 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 51 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 222k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 222k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 222k | } | 121 | 51 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 42 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 42 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 177k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 177k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 177k | } | 121 | 42 | } |
|
122 | | |
123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
125 | 1 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); | 125 | 1 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
126 | | }; |
127 | | |
128 | | template <typename Op> |
129 | | struct StringComparisonImpl { |
130 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
131 | | const ColumnString::Offsets& a_offsets, |
132 | | const ColumnString::Chars& b_data, |
133 | | const ColumnString::Offsets& b_offsets, |
134 | 419 | PaddedPODArray<UInt8>& c) { |
135 | 419 | size_t size = a_offsets.size(); |
136 | 419 | ColumnString::Offset prev_a_offset = 0; |
137 | 419 | ColumnString::Offset prev_b_offset = 0; |
138 | 419 | const auto* a_pos = a_data.data(); |
139 | 419 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.57k | for (size_t i = 0; i < size; ++i) { |
142 | 1.15k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.15k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.15k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.15k | 0); |
146 | | |
147 | 1.15k | prev_a_offset = a_offsets[i]; |
148 | 1.15k | prev_b_offset = b_offsets[i]; |
149 | 1.15k | } |
150 | 419 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 2 | PaddedPODArray<UInt8>& c) { | 135 | 2 | size_t size = a_offsets.size(); | 136 | 2 | ColumnString::Offset prev_a_offset = 0; | 137 | 2 | ColumnString::Offset prev_b_offset = 0; | 138 | 2 | const auto* a_pos = a_data.data(); | 139 | 2 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 49 | for (size_t i = 0; i < size; ++i) { | 142 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 47 | 0); | 146 | | | 147 | 47 | prev_a_offset = a_offsets[i]; | 148 | 47 | prev_b_offset = b_offsets[i]; | 149 | 47 | } | 150 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 31 | PaddedPODArray<UInt8>& c) { | 135 | 31 | size_t size = a_offsets.size(); | 136 | 31 | ColumnString::Offset prev_a_offset = 0; | 137 | 31 | ColumnString::Offset prev_b_offset = 0; | 138 | 31 | const auto* a_pos = a_data.data(); | 139 | 31 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 218 | for (size_t i = 0; i < size; ++i) { | 142 | 187 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 187 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 187 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 187 | 0); | 146 | | | 147 | 187 | prev_a_offset = a_offsets[i]; | 148 | 187 | prev_b_offset = b_offsets[i]; | 149 | 187 | } | 150 | 31 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 386 | PaddedPODArray<UInt8>& c) { | 135 | 386 | size_t size = a_offsets.size(); | 136 | 386 | ColumnString::Offset prev_a_offset = 0; | 137 | 386 | ColumnString::Offset prev_b_offset = 0; | 138 | 386 | const auto* a_pos = a_data.data(); | 139 | 386 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.30k | for (size_t i = 0; i < size; ++i) { | 142 | 918 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 918 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 918 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 918 | 0); | 146 | | | 147 | 918 | prev_a_offset = a_offsets[i]; | 148 | 918 | prev_b_offset = b_offsets[i]; | 149 | 918 | } | 150 | 386 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
151 | | |
152 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
153 | | const ColumnString::Offsets& a_offsets, |
154 | | const ColumnString::Chars& b_data, |
155 | | ColumnString::Offset b_size, |
156 | 1.86k | PaddedPODArray<UInt8>& c) { |
157 | 1.86k | size_t size = a_offsets.size(); |
158 | 1.86k | ColumnString::Offset prev_a_offset = 0; |
159 | 1.86k | const auto* a_pos = a_data.data(); |
160 | 1.86k | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.27M | for (size_t i = 0; i < size; ++i) { |
163 | 1.26M | c[i] = Op::apply( |
164 | 1.26M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.26M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.26M | 0); |
167 | | |
168 | 1.26M | prev_a_offset = a_offsets[i]; |
169 | 1.26M | } |
170 | 1.86k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 208 | PaddedPODArray<UInt8>& c) { | 157 | 208 | size_t size = a_offsets.size(); | 158 | 208 | ColumnString::Offset prev_a_offset = 0; | 159 | 208 | const auto* a_pos = a_data.data(); | 160 | 208 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 358k | for (size_t i = 0; i < size; ++i) { | 163 | 358k | c[i] = Op::apply( | 164 | 358k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 358k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 358k | 0); | 167 | | | 168 | 358k | prev_a_offset = a_offsets[i]; | 169 | 358k | } | 170 | 208 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 108 | PaddedPODArray<UInt8>& c) { | 157 | 108 | size_t size = a_offsets.size(); | 158 | 108 | ColumnString::Offset prev_a_offset = 0; | 159 | 108 | const auto* a_pos = a_data.data(); | 160 | 108 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 105k | for (size_t i = 0; i < size; ++i) { | 163 | 105k | c[i] = Op::apply( | 164 | 105k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 105k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 105k | 0); | 167 | | | 168 | 105k | prev_a_offset = a_offsets[i]; | 169 | 105k | } | 170 | 108 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 726 | PaddedPODArray<UInt8>& c) { | 157 | 726 | size_t size = a_offsets.size(); | 158 | 726 | ColumnString::Offset prev_a_offset = 0; | 159 | 726 | const auto* a_pos = a_data.data(); | 160 | 726 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 462k | for (size_t i = 0; i < size; ++i) { | 163 | 461k | c[i] = Op::apply( | 164 | 461k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 461k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 461k | 0); | 167 | | | 168 | 461k | prev_a_offset = a_offsets[i]; | 169 | 461k | } | 170 | 726 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 820 | PaddedPODArray<UInt8>& c) { | 157 | 820 | size_t size = a_offsets.size(); | 158 | 820 | ColumnString::Offset prev_a_offset = 0; | 159 | 820 | const auto* a_pos = a_data.data(); | 160 | 820 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 343k | for (size_t i = 0; i < size; ++i) { | 163 | 342k | c[i] = Op::apply( | 164 | 342k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 342k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 342k | 0); | 167 | | | 168 | 342k | prev_a_offset = a_offsets[i]; | 169 | 342k | } | 170 | 820 | } |
|
171 | | |
172 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
173 | | ColumnString::Offset a_size, |
174 | | const ColumnString::Chars& b_data, |
175 | | const ColumnString::Offsets& b_offsets, |
176 | 76 | PaddedPODArray<UInt8>& c) { |
177 | 76 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 76 | a_data, a_size, c); |
179 | 76 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 70 | PaddedPODArray<UInt8>& c) { | 177 | 70 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 70 | a_data, a_size, c); | 179 | 70 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 6 | PaddedPODArray<UInt8>& c) { | 177 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 6 | a_data, a_size, c); | 179 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
180 | | }; |
181 | | |
182 | | template <bool positive> |
183 | | struct StringEqualsImpl { |
184 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
185 | | const ColumnString::Offsets& a_offsets, |
186 | | const ColumnString::Chars& b_data, |
187 | | const ColumnString::Offsets& b_offsets, |
188 | 451 | PaddedPODArray<UInt8>& c) { |
189 | 451 | size_t size = a_offsets.size(); |
190 | 451 | ColumnString::Offset prev_a_offset = 0; |
191 | 451 | ColumnString::Offset prev_b_offset = 0; |
192 | 451 | const auto* a_pos = a_data.data(); |
193 | 451 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 13.7k | for (size_t i = 0; i < size; ++i) { |
196 | 13.2k | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 13.2k | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 13.2k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 13.2k | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 13.2k | prev_a_offset = a_offsets[i]; |
203 | 13.2k | prev_b_offset = b_offsets[i]; |
204 | 13.2k | } |
205 | 451 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 436 | PaddedPODArray<UInt8>& c) { | 189 | 436 | size_t size = a_offsets.size(); | 190 | 436 | ColumnString::Offset prev_a_offset = 0; | 191 | 436 | ColumnString::Offset prev_b_offset = 0; | 192 | 436 | const auto* a_pos = a_data.data(); | 193 | 436 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 8.54k | for (size_t i = 0; i < size; ++i) { | 196 | 8.11k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 8.11k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 8.11k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 8.11k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 8.11k | prev_a_offset = a_offsets[i]; | 203 | 8.11k | prev_b_offset = b_offsets[i]; | 204 | 8.11k | } | 205 | 436 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 15 | PaddedPODArray<UInt8>& c) { | 189 | 15 | size_t size = a_offsets.size(); | 190 | 15 | ColumnString::Offset prev_a_offset = 0; | 191 | 15 | ColumnString::Offset prev_b_offset = 0; | 192 | 15 | const auto* a_pos = a_data.data(); | 193 | 15 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 5.15k | for (size_t i = 0; i < size; ++i) { | 196 | 5.14k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 5.14k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 5.14k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 5.14k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 5.14k | prev_a_offset = a_offsets[i]; | 203 | 5.14k | prev_b_offset = b_offsets[i]; | 204 | 5.14k | } | 205 | 15 | } |
|
206 | | |
207 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
208 | | const ColumnString::Offsets& a_offsets, |
209 | | const ColumnString::Chars& b_data, |
210 | | ColumnString::Offset b_size, |
211 | 21.6k | PaddedPODArray<UInt8>& c) { |
212 | 21.6k | size_t size = a_offsets.size(); |
213 | 21.6k | if (b_size == 0) { |
214 | 1 | auto* __restrict data = c.data(); |
215 | 1 | auto* __restrict offsets = a_offsets.data(); |
216 | | |
217 | 1 | ColumnString::Offset prev_a_offset = 0; |
218 | 4 | for (size_t i = 0; i < size; ++i) { |
219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
220 | 3 | prev_a_offset = offsets[i]; |
221 | 3 | } |
222 | 21.6k | } else { |
223 | 21.6k | ColumnString::Offset prev_a_offset = 0; |
224 | 21.6k | const auto* a_pos = a_data.data(); |
225 | 21.6k | const auto* b_pos = b_data.data(); |
226 | 9.77M | for (size_t i = 0; i < size; ++i) { |
227 | 9.75M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.75M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.75M | b_pos, b_size); |
230 | 9.75M | prev_a_offset = a_offsets[i]; |
231 | 9.75M | } |
232 | 21.6k | } |
233 | 21.6k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 21.5k | PaddedPODArray<UInt8>& c) { | 212 | 21.5k | size_t size = a_offsets.size(); | 213 | 21.5k | if (b_size == 0) { | 214 | 0 | auto* __restrict data = c.data(); | 215 | 0 | auto* __restrict offsets = a_offsets.data(); | 216 | |
| 217 | 0 | ColumnString::Offset prev_a_offset = 0; | 218 | 0 | for (size_t i = 0; i < size; ++i) { | 219 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 0 | prev_a_offset = offsets[i]; | 221 | 0 | } | 222 | 21.5k | } else { | 223 | 21.5k | ColumnString::Offset prev_a_offset = 0; | 224 | 21.5k | const auto* a_pos = a_data.data(); | 225 | 21.5k | const auto* b_pos = b_data.data(); | 226 | 9.71M | for (size_t i = 0; i < size; ++i) { | 227 | 9.69M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.69M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.69M | b_pos, b_size); | 230 | 9.69M | prev_a_offset = a_offsets[i]; | 231 | 9.69M | } | 232 | 21.5k | } | 233 | 21.5k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 138 | PaddedPODArray<UInt8>& c) { | 212 | 138 | size_t size = a_offsets.size(); | 213 | 138 | if (b_size == 0) { | 214 | 1 | auto* __restrict data = c.data(); | 215 | 1 | auto* __restrict offsets = a_offsets.data(); | 216 | | | 217 | 1 | ColumnString::Offset prev_a_offset = 0; | 218 | 4 | for (size_t i = 0; i < size; ++i) { | 219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 3 | prev_a_offset = offsets[i]; | 221 | 3 | } | 222 | 137 | } else { | 223 | 137 | ColumnString::Offset prev_a_offset = 0; | 224 | 137 | const auto* a_pos = a_data.data(); | 225 | 137 | const auto* b_pos = b_data.data(); | 226 | 60.1k | for (size_t i = 0; i < size; ++i) { | 227 | 60.0k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 60.0k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 60.0k | b_pos, b_size); | 230 | 60.0k | prev_a_offset = a_offsets[i]; | 231 | 60.0k | } | 232 | 137 | } | 233 | 138 | } |
|
234 | | |
235 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
236 | | ColumnString::Offset a_size, |
237 | | const ColumnString::Chars& b_data, |
238 | | const ColumnString::Offsets& b_offsets, |
239 | 19 | PaddedPODArray<UInt8>& c) { |
240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 19 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 19 | PaddedPODArray<UInt8>& c) { | 240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 19 | } |
Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
242 | | }; |
243 | | |
244 | | template <PrimitiveType PT> |
245 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
246 | | |
247 | | template <PrimitiveType PT> |
248 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
249 | | |
250 | | struct NameEquals { |
251 | | static constexpr auto name = "eq"; |
252 | | }; |
253 | | struct NameNotEquals { |
254 | | static constexpr auto name = "ne"; |
255 | | }; |
256 | | struct NameLess { |
257 | | static constexpr auto name = "lt"; |
258 | | }; |
259 | | struct NameGreater { |
260 | | static constexpr auto name = "gt"; |
261 | | }; |
262 | | struct NameLessOrEquals { |
263 | | static constexpr auto name = "le"; |
264 | | }; |
265 | | struct NameGreaterOrEquals { |
266 | | static constexpr auto name = "ge"; |
267 | | }; |
268 | | |
269 | | namespace comparison_zonemap_detail { |
270 | | enum class Op { |
271 | | EQ, |
272 | | NE, |
273 | | LT, |
274 | | LE, |
275 | | GT, |
276 | | GE, |
277 | | }; |
278 | | |
279 | 19 | inline Op symmetric_op(Op op) { |
280 | 19 | switch (op) { |
281 | 0 | case Op::EQ: |
282 | 0 | case Op::NE: |
283 | 0 | return op; |
284 | 11 | case Op::LT: |
285 | 11 | return Op::GT; |
286 | 6 | case Op::LE: |
287 | 6 | return Op::GE; |
288 | 0 | case Op::GT: |
289 | 0 | return Op::LT; |
290 | 2 | case Op::GE: |
291 | 2 | return Op::LE; |
292 | 19 | } |
293 | 0 | __builtin_unreachable(); |
294 | 19 | } |
295 | | |
296 | | // Return true when `L <op> R` cannot be TRUE for any row, given that every non-null value of the |
297 | | // left operand lies in [lmin, lmax] and every non-null value of the right operand lies in |
298 | | // [rmin, rmax]. This only compares the four bounds: callers must already have rejected zone maps |
299 | | // whose bounds are unusable and columns that hold no non-null value at all. |
300 | | // |
301 | | // The slot-vs-literal path passes the literal as the degenerate range [literal, literal], which |
302 | | // reduces every branch below to the plain slot-vs-literal test it replaced. |
303 | | inline bool range_vs_range_no_match(const Field& lmin, const Field& lmax, const Field& rmin, |
304 | 3.42k | const Field& rmax, Op op) { |
305 | 3.42k | switch (op) { |
306 | 1.80k | case Op::EQ: |
307 | | // Disjoint ranges cannot share a value. |
308 | 1.80k | return lmin > rmax || rmin > lmax; |
309 | 171 | case Op::NE: |
310 | | // Only provable when both sides collapse to the same single value. |
311 | 171 | return lmin == lmax && rmin == rmax && lmin == rmin; |
312 | 503 | case Op::LT: |
313 | 503 | return lmin >= rmax; |
314 | 273 | case Op::LE: |
315 | 273 | return lmin > rmax; |
316 | 352 | case Op::GT: |
317 | 352 | return rmin >= lmax; |
318 | 314 | case Op::GE: |
319 | 314 | return rmin > lmax; |
320 | 3.42k | } |
321 | 0 | __builtin_unreachable(); |
322 | 3.42k | } |
323 | | |
324 | | inline ZoneMapFilterResult evaluate_slot_literal(const ZoneMapEvalContext& ctx, |
325 | | const expr_zonemap::SlotLiteral& slot_literal, |
326 | 3.26k | Op op) { |
327 | 3.26k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal.slot_index, |
328 | 3.26k | slot_literal.slot_type); |
329 | 3.26k | if (slot_type == nullptr) { |
330 | 293 | return unsupported_zonemap_filter(ctx); |
331 | 293 | } |
332 | 2.97k | auto zone_map_ptr = ctx.zone_map(slot_literal.slot_index); |
333 | 2.97k | if (zone_map_ptr == nullptr) { |
334 | 46 | return unsupported_zonemap_filter(ctx); |
335 | 46 | } |
336 | 2.93k | const auto& zone_map = *zone_map_ptr; |
337 | 2.93k | if (!zone_map.has_not_null) { |
338 | 52 | return ZoneMapFilterResult::kNoMatch; |
339 | 52 | } |
340 | 2.87k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
341 | 101 | return unsupported_zonemap_filter(ctx); |
342 | 101 | } |
343 | | |
344 | 2.77k | const auto effective_op = slot_literal.literal_on_left ? symmetric_op(op) : op; |
345 | 2.77k | const auto& literal = slot_literal.literal; |
346 | 2.77k | const bool literal_is_nan = literal.is_nan(); |
347 | 2.77k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
348 | 2.77k | (effective_op == Op::NE && !literal_is_nan) || |
349 | 2.77k | (effective_op == Op::GT && !literal_is_nan) || |
350 | 2.77k | effective_op == Op::GE; |
351 | 2.77k | if (ctx.floating_nan_count_unknown(slot_literal.slot_index) && hidden_nan_can_match) { |
352 | | // Parquet bounds omit NaNs, so only operators that cannot match a hidden NaN may prune. |
353 | 52 | return unsupported_zonemap_filter(ctx); |
354 | 52 | } |
355 | 2.72k | return range_vs_range_no_match(zone_map.min_value, zone_map.max_value, literal, literal, |
356 | 2.72k | effective_op) |
357 | 2.72k | ? ZoneMapFilterResult::kNoMatch |
358 | 2.72k | : ZoneMapFilterResult::kMayMatch; |
359 | 2.77k | } |
360 | | |
361 | | inline ZoneMapFilterResult evaluate_slot_slot(const ZoneMapEvalContext& ctx, |
362 | 749 | const expr_zonemap::SlotSlot& slot_slot, Op op) { |
363 | 749 | const auto left_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_slot.left_slot_index, |
364 | 749 | slot_slot.left_type); |
365 | 749 | const auto right_type = expr_zonemap::fetch_compatible_slot_type( |
366 | 749 | ctx, slot_slot.right_slot_index, slot_slot.right_type); |
367 | 752 | if (left_type == nullptr || right_type == nullptr) { |
368 | | // The context skips a slot entirely when the segment cannot apply predicates on it. |
369 | 1 | return unsupported_zonemap_filter(ctx); |
370 | 1 | } |
371 | 748 | const auto left_zone_map = ctx.zone_map(slot_slot.left_slot_index); |
372 | 748 | const auto right_zone_map = ctx.zone_map(slot_slot.right_slot_index); |
373 | 748 | if (left_zone_map == nullptr || right_zone_map == nullptr) { |
374 | | // A slot can be present with a data type but no zone map, so this is a separate check. |
375 | 9 | return unsupported_zonemap_filter(ctx); |
376 | 9 | } |
377 | | // A column holding no non-null value makes the comparison NULL on every row, which never |
378 | | // satisfies a WHERE conjunct. This must run before the range checks below: an all-null zone map |
379 | | // leaves min/max default-constructed as TYPE_NULL, which the range checks would fatal on. |
380 | 739 | if (!left_zone_map->has_not_null || !right_zone_map->has_not_null) { |
381 | 24 | return ZoneMapFilterResult::kNoMatch; |
382 | 24 | } |
383 | 715 | if (!expr_zonemap::range_stats_usable_for_zonemap(*left_zone_map, left_type) || |
384 | 715 | !expr_zonemap::range_stats_usable_for_zonemap(*right_zone_map, right_type)) { |
385 | 9 | return unsupported_zonemap_filter(ctx); |
386 | 9 | } |
387 | | // A native string zone-map max of exactly MAX_ZONE_MAP_INDEX_SIZE bytes was bumped upward, |
388 | | // and may also have been truncated (segments written before the carry fix may hold a bump |
389 | | // that wrapped on 0xff), so a bound of that length is not a reliable fence for a two-sided |
390 | | // proof. A shorter bound is the exact value; the bump never changes the length, so this also |
391 | | // rejects those wrapped bounds. |
392 | | // The test only decides whether to trust the bound as a fence. A Parquet-sourced string bound |
393 | | // shorter than the cap is not necessarily exact, but it is a spec-conservative min/max, which |
394 | | // is all a range proof needs; do not tighten this to assume exactness below the cap. |
395 | | // data_types_compatible pairs strings only with strings, so checking one side's type is enough |
396 | | // to know all four bounds are strings. |
397 | 706 | if (is_string_type(remove_nullable(left_type)->get_primitive_type())) { |
398 | 393 | auto is_untruncated = [](const Field& f) { |
399 | 393 | return f.get<TYPE_STRING>().size() < MAX_ZONE_MAP_INDEX_SIZE; |
400 | 393 | }; |
401 | 99 | if (!is_untruncated(left_zone_map->min_value) || |
402 | 99 | !is_untruncated(left_zone_map->max_value) || |
403 | 99 | !is_untruncated(right_zone_map->min_value) || |
404 | 99 | !is_untruncated(right_zone_map->max_value)) { |
405 | 3 | return unsupported_zonemap_filter(ctx); |
406 | 3 | } |
407 | 99 | } |
408 | | // Parquet bounds omit NaN without recording how many were skipped, so a zone map that looks |
409 | | // like a single point may still hide one, which would flip the NE rule from false to true. The |
410 | | // slot-vs-literal path can reason per operator because it knows whether the literal is NaN; |
411 | | // with two slots there is no literal, so bail out for every operator instead. |
412 | 703 | if (ctx.floating_nan_count_unknown(slot_slot.left_slot_index) || |
413 | 703 | ctx.floating_nan_count_unknown(slot_slot.right_slot_index)) { |
414 | 12 | return unsupported_zonemap_filter(ctx); |
415 | 12 | } |
416 | 691 | return range_vs_range_no_match(left_zone_map->min_value, left_zone_map->max_value, |
417 | 691 | right_zone_map->min_value, right_zone_map->max_value, op) |
418 | 691 | ? ZoneMapFilterResult::kNoMatch |
419 | 691 | : ZoneMapFilterResult::kMayMatch; |
420 | 703 | } |
421 | | |
422 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
423 | 3.99k | Op op) { |
424 | 3.99k | if (auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
425 | 3.99k | slot_literal.has_value()) { |
426 | 3.28k | return evaluate_slot_literal(ctx, *slot_literal, op); |
427 | 3.28k | } |
428 | 715 | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
429 | | // can_evaluate_zonemap_filter accepts exactly the two shapes handled above, so reaching this |
430 | | // point means the capability gate and this evaluator went out of sync. |
431 | 715 | DORIS_CHECK(slot_slot.has_value()); |
432 | 715 | return evaluate_slot_slot(ctx, *slot_slot, op); |
433 | 3.99k | } |
434 | | |
435 | 32.7k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
436 | 32.7k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
437 | 32.7k | if (!slot_literal.has_value()) { |
438 | 18.8k | return false; |
439 | 18.8k | } |
440 | | |
441 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
442 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
443 | | // shape here before evaluate_zonemap_filter is called. |
444 | 13.9k | if (slot_literal->literal.is_null()) { |
445 | 4 | return false; |
446 | 4 | } |
447 | | |
448 | 13.8k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
449 | 13.8k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
450 | 13.8k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
451 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
452 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
453 | | // values without running expression casts, so conservatively skip this optimization. |
454 | 1 | return false; |
455 | 1 | } |
456 | | |
457 | 13.8k | return true; |
458 | 13.8k | } |
459 | | |
460 | | // Accept a comparison whose both operands are slot references. Kept separate from can_evaluate on |
461 | | // purpose: can_evaluate also gates dictionary filtering and can_evaluate_equality, and both of |
462 | | // those dereference extract_slot_and_literal behind a DORIS_CHECK, so widening it would abort on a |
463 | | // slot-vs-slot expression. Only can_evaluate_zonemap_filter ORs this in. |
464 | 18.5k | inline bool can_evaluate_slot_slot(const VExprSPtrs& arguments) { |
465 | 18.5k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
466 | 18.5k | if (!slot_slot.has_value()) { |
467 | 16.6k | return false; |
468 | 16.6k | } |
469 | 1.88k | DORIS_CHECK(slot_slot->left_type != nullptr); |
470 | 1.88k | DORIS_CHECK(slot_slot->right_type != nullptr); |
471 | | // Reject types whose slot-slot bounds cannot be compared safely: |
472 | | // - VARBINARY: v1 Parquet produces a TYPE_STRING bound for it, which |
473 | | // range_stats_usable_for_zonemap aborts on instead of falling back. |
474 | | // - VARIANT: a segment types a path slot by its inferred leaf type (a typed `v.a` is INT), so |
475 | | // fetch_compatible_slot_type's check against the VARIANT expression type would fail. |
476 | | // - ARRAY/MAP/STRUCT, JSONB, aggregate states: Field orders every pair of them as equal. |
477 | | // A truncated string bound is rejected later, in evaluate_slot_slot, by its length. |
478 | 3.99k | const auto excluded = [](const DataTypePtr& type) { |
479 | 3.99k | const auto primitive_type = remove_nullable(type)->get_primitive_type(); |
480 | 4.03k | return is_varbinary(primitive_type) || primitive_type == TYPE_VARIANT || |
481 | 4.02k | primitive_type == TYPE_JSONB || is_complex_type(primitive_type) || |
482 | 4.01k | is_var_len_object(primitive_type); |
483 | 3.99k | }; |
484 | 1.99k | if (excluded(slot_slot->left_type) || excluded(slot_slot->right_type)) { |
485 | 15 | return false; |
486 | 15 | } |
487 | | // The two zone maps' Fields are compared directly and Field comparison throws on mismatched |
488 | | // non-string types, so reject incompatible column pairs here. A pair differing only by width or |
489 | | // decimal scale never reaches this point anyway, because the optimizer inserts a cast and a |
490 | | // cast is not a VSlotRef. |
491 | 1.86k | return expr_zonemap::data_types_compatible(slot_slot->left_type, slot_slot->right_type); |
492 | 1.88k | } |
493 | | |
494 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
495 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
496 | 0 | return false; |
497 | 0 | } |
498 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
499 | 0 | DORIS_CHECK(slot_literal.has_value()); |
500 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
501 | 0 | return !slot_literal->literal.is_nan(); |
502 | 0 | } |
503 | | |
504 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
505 | 27 | switch (op) { |
506 | 8 | case Op::EQ: |
507 | 8 | return value == literal; |
508 | 0 | case Op::NE: |
509 | 0 | return value != literal; |
510 | 5 | case Op::LT: |
511 | 5 | return value < literal; |
512 | 0 | case Op::LE: |
513 | 0 | return value <= literal; |
514 | 14 | case Op::GT: |
515 | 14 | return value > literal; |
516 | 0 | case Op::GE: |
517 | 0 | return value >= literal; |
518 | 27 | } |
519 | 0 | __builtin_unreachable(); |
520 | 27 | } |
521 | | |
522 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
523 | 14 | const VExprSPtrs& arguments, Op op) { |
524 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
525 | 14 | DORIS_CHECK(slot_literal.has_value()); |
526 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
527 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
528 | 0 | return ZoneMapFilterResult::kUnsupported; |
529 | 0 | } |
530 | 14 | DORIS_CHECK( |
531 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
532 | 14 | if (slot_literal->literal.is_null()) { |
533 | 0 | return ZoneMapFilterResult::kUnsupported; |
534 | 0 | } |
535 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
536 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
537 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
538 | 14 | return std::ranges::any_of(dictionary->values, |
539 | 27 | [&](const Field& value) { |
540 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
541 | 27 | effective_op); |
542 | 27 | }) |
543 | 14 | ? ZoneMapFilterResult::kMayMatch |
544 | 14 | : ZoneMapFilterResult::kNoMatch; |
545 | 14 | } |
546 | | |
547 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
548 | 19 | const VExprSPtrs& arguments, Op op) { |
549 | 19 | DORIS_CHECK(op == Op::EQ); |
550 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
551 | 19 | DORIS_CHECK(slot_literal.has_value()); |
552 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
553 | 19 | } |
554 | | |
555 | 37.2k | inline std::optional<Op> op_from_name(std::string_view name) { |
556 | 37.2k | if (name == NameEquals::name) { |
557 | 17.7k | return Op::EQ; |
558 | 17.7k | } |
559 | 19.4k | if (name == NameNotEquals::name) { |
560 | 1.72k | return Op::NE; |
561 | 1.72k | } |
562 | 17.7k | if (name == NameLess::name) { |
563 | 4.95k | return Op::LT; |
564 | 4.95k | } |
565 | 12.7k | if (name == NameLessOrEquals::name) { |
566 | 1.87k | return Op::LE; |
567 | 1.87k | } |
568 | 10.8k | if (name == NameGreater::name) { |
569 | 6.25k | return Op::GT; |
570 | 6.25k | } |
571 | 4.84k | if (name == NameGreaterOrEquals::name) { |
572 | 4.84k | return Op::GE; |
573 | 4.84k | } |
574 | 18.4E | return std::nullopt; |
575 | 4.64k | } |
576 | | } // namespace comparison_zonemap_detail |
577 | | |
578 | | template <template <PrimitiveType> class Op, typename Name> |
579 | | class FunctionComparison : public IFunction { |
580 | | public: |
581 | | static constexpr auto name = Name::name; |
582 | 288k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 582 | 257k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 582 | 1.27k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 582 | 7.23k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 582 | 8.45k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 582 | 4.05k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 582 | 9.63k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
583 | | |
584 | 288k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 584 | 257k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 584 | 1.28k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 584 | 7.24k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 584 | 8.45k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 584 | 4.06k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 584 | 9.61k | FunctionComparison() = default; |
|
585 | | |
586 | 675k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 586 | 667k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 586 | 612 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 586 | 2.35k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 586 | 2.28k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 586 | 1.27k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 586 | 1.10k | double execute_cost() const override { return 0.5; } |
|
587 | | |
588 | | private: |
589 | | template <PrimitiveType PT> |
590 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
591 | 67.5k | const ColumnPtr& col_right_ptr) const { |
592 | 67.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
593 | 67.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
594 | | |
595 | 67.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
596 | 67.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
597 | | |
598 | 67.5k | DCHECK(!(left_is_const && right_is_const)); |
599 | | |
600 | 67.5k | if (!left_is_const && !right_is_const) { |
601 | 11.3k | auto col_res = ColumnUInt8::create(); |
602 | | |
603 | 11.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
604 | 11.3k | vec_res.resize(col_left->get_data().size()); |
605 | 11.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
606 | 11.3k | typename PrimitiveTypeTraits<PT>::CppType, |
607 | 11.3k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
608 | 11.3k | vec_res); |
609 | | |
610 | 11.3k | block.replace_by_position(result, std::move(col_res)); |
611 | 56.2k | } else if (!left_is_const && right_is_const) { |
612 | 49.6k | auto col_res = ColumnUInt8::create(); |
613 | | |
614 | 49.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
615 | 49.6k | vec_res.resize(col_left->size()); |
616 | 49.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
617 | 49.6k | typename PrimitiveTypeTraits<PT>::CppType, |
618 | 49.6k | Op<PT>>::vector_constant(col_left->get_data(), |
619 | 49.6k | col_right->get_element(0), vec_res); |
620 | | |
621 | 49.6k | block.replace_by_position(result, std::move(col_res)); |
622 | 49.6k | } else if (left_is_const && !right_is_const) { |
623 | 6.55k | auto col_res = ColumnUInt8::create(); |
624 | | |
625 | 6.55k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
626 | 6.55k | vec_res.resize(col_right->size()); |
627 | 6.55k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
628 | 6.55k | typename PrimitiveTypeTraits<PT>::CppType, |
629 | 6.55k | Op<PT>>::constant_vector(col_left->get_element(0), |
630 | 6.55k | col_right->get_data(), vec_res); |
631 | | |
632 | 6.55k | block.replace_by_position(result, std::move(col_res)); |
633 | 6.55k | } |
634 | 67.5k | return Status::OK(); |
635 | 67.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 100 | const ColumnPtr& col_right_ptr) const { | 592 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 100 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 100 | if (!left_is_const && !right_is_const) { | 601 | 70 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 70 | vec_res.resize(col_left->get_data().size()); | 605 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 70 | vec_res); | 609 | | | 610 | 70 | block.replace_by_position(result, std::move(col_res)); | 611 | 70 | } else if (!left_is_const && right_is_const) { | 612 | 30 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 30 | vec_res.resize(col_left->size()); | 616 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 30 | col_right->get_element(0), vec_res); | 620 | | | 621 | 30 | block.replace_by_position(result, std::move(col_res)); | 622 | 30 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 100 | return Status::OK(); | 635 | 100 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 517 | const ColumnPtr& col_right_ptr) const { | 592 | 517 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 517 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 517 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 517 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 517 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 517 | if (!left_is_const && !right_is_const) { | 601 | 176 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 176 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 176 | vec_res.resize(col_left->get_data().size()); | 605 | 176 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 176 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 176 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 176 | vec_res); | 609 | | | 610 | 176 | block.replace_by_position(result, std::move(col_res)); | 611 | 341 | } else if (!left_is_const && right_is_const) { | 612 | 341 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 341 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 341 | vec_res.resize(col_left->size()); | 616 | 341 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 341 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 341 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 341 | col_right->get_element(0), vec_res); | 620 | | | 621 | 341 | block.replace_by_position(result, std::move(col_res)); | 622 | 341 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 517 | return Status::OK(); | 635 | 517 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 384 | const ColumnPtr& col_right_ptr) const { | 592 | 384 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 384 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 384 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 384 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 384 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 384 | if (!left_is_const && !right_is_const) { | 601 | 208 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 208 | vec_res.resize(col_left->get_data().size()); | 605 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 208 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 208 | vec_res); | 609 | | | 610 | 208 | block.replace_by_position(result, std::move(col_res)); | 611 | 208 | } else if (!left_is_const && right_is_const) { | 612 | 176 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 176 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 176 | vec_res.resize(col_left->size()); | 616 | 176 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 176 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 176 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 176 | col_right->get_element(0), vec_res); | 620 | | | 621 | 176 | block.replace_by_position(result, std::move(col_res)); | 622 | 176 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 384 | return Status::OK(); | 635 | 384 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 200 | const ColumnPtr& col_right_ptr) const { | 592 | 200 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 200 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 200 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 200 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 200 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 200 | if (!left_is_const && !right_is_const) { | 601 | 111 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 111 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 111 | vec_res.resize(col_left->get_data().size()); | 605 | 111 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 111 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 111 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 111 | vec_res); | 609 | | | 610 | 111 | block.replace_by_position(result, std::move(col_res)); | 611 | 111 | } else if (!left_is_const && right_is_const) { | 612 | 77 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 77 | vec_res.resize(col_left->size()); | 616 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 77 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 77 | col_right->get_element(0), vec_res); | 620 | | | 621 | 77 | block.replace_by_position(result, std::move(col_res)); | 622 | 77 | } else if (left_is_const && !right_is_const) { | 623 | 12 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 12 | vec_res.resize(col_right->size()); | 627 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 12 | col_right->get_data(), vec_res); | 631 | | | 632 | 12 | block.replace_by_position(result, std::move(col_res)); | 633 | 12 | } | 634 | 200 | return Status::OK(); | 635 | 200 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 13 | const ColumnPtr& col_right_ptr) const { | 592 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 13 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 13 | if (!left_is_const && !right_is_const) { | 601 | 3 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 3 | vec_res.resize(col_left->get_data().size()); | 605 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 3 | vec_res); | 609 | | | 610 | 3 | block.replace_by_position(result, std::move(col_res)); | 611 | 10 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 13 | return Status::OK(); | 635 | 13 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.03k | const ColumnPtr& col_right_ptr) const { | 592 | 6.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.03k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.03k | if (!left_is_const && !right_is_const) { | 601 | 133 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 133 | vec_res.resize(col_left->get_data().size()); | 605 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 133 | vec_res); | 609 | | | 610 | 133 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.90k | } else if (!left_is_const && right_is_const) { | 612 | 5.62k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.62k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.62k | vec_res.resize(col_left->size()); | 616 | 5.62k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.62k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.62k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.62k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.62k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.62k | } else if (left_is_const && !right_is_const) { | 623 | 276 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 276 | vec_res.resize(col_right->size()); | 627 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 276 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 276 | col_right->get_data(), vec_res); | 631 | | | 632 | 276 | block.replace_by_position(result, std::move(col_res)); | 633 | 276 | } | 634 | 6.03k | return Status::OK(); | 635 | 6.03k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 444 | const ColumnPtr& col_right_ptr) const { | 592 | 444 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 444 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 444 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 444 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 444 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 444 | if (!left_is_const && !right_is_const) { | 601 | 99 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 99 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 99 | vec_res.resize(col_left->get_data().size()); | 605 | 99 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 99 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 99 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 99 | vec_res); | 609 | | | 610 | 99 | block.replace_by_position(result, std::move(col_res)); | 611 | 345 | } else if (!left_is_const && right_is_const) { | 612 | 309 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 309 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 309 | vec_res.resize(col_left->size()); | 616 | 309 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 309 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 309 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 309 | col_right->get_element(0), vec_res); | 620 | | | 621 | 309 | block.replace_by_position(result, std::move(col_res)); | 622 | 309 | } else if (left_is_const && !right_is_const) { | 623 | 36 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 36 | vec_res.resize(col_right->size()); | 627 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 36 | col_right->get_data(), vec_res); | 631 | | | 632 | 36 | block.replace_by_position(result, std::move(col_res)); | 633 | 36 | } | 634 | 444 | return Status::OK(); | 635 | 444 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3.17k | const ColumnPtr& col_right_ptr) const { | 592 | 3.17k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3.17k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3.17k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3.17k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3.17k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3.17k | if (!left_is_const && !right_is_const) { | 601 | 1.01k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.01k | vec_res.resize(col_left->get_data().size()); | 605 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.01k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.01k | vec_res); | 609 | | | 610 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.16k | } else if (!left_is_const && right_is_const) { | 612 | 2.03k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.03k | vec_res.resize(col_left->size()); | 616 | 2.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.03k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.03k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.03k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.03k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.03k | } else if (left_is_const && !right_is_const) { | 623 | 130 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 130 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 130 | vec_res.resize(col_right->size()); | 627 | 130 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 130 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 130 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 130 | col_right->get_data(), vec_res); | 631 | | | 632 | 130 | block.replace_by_position(result, std::move(col_res)); | 633 | 130 | } | 634 | 3.17k | return Status::OK(); | 635 | 3.17k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 5.94k | const ColumnPtr& col_right_ptr) const { | 592 | 5.94k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 5.94k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 5.94k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 5.94k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 5.94k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 5.94k | if (!left_is_const && !right_is_const) { | 601 | 189 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 189 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 189 | vec_res.resize(col_left->get_data().size()); | 605 | 189 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 189 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 189 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 189 | vec_res); | 609 | | | 610 | 189 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.75k | } else if (!left_is_const && right_is_const) { | 612 | 5.15k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.15k | vec_res.resize(col_left->size()); | 616 | 5.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.15k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.15k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.15k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.15k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.15k | } else if (left_is_const && !right_is_const) { | 623 | 598 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 598 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 598 | vec_res.resize(col_right->size()); | 627 | 598 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 598 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 598 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 598 | col_right->get_data(), vec_res); | 631 | | | 632 | 598 | block.replace_by_position(result, std::move(col_res)); | 633 | 598 | } | 634 | 5.94k | return Status::OK(); | 635 | 5.94k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 88 | const ColumnPtr& col_right_ptr) const { | 592 | 88 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 88 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 88 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 88 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 88 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 88 | if (!left_is_const && !right_is_const) { | 601 | 47 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 47 | vec_res.resize(col_left->get_data().size()); | 605 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 47 | vec_res); | 609 | | | 610 | 47 | block.replace_by_position(result, std::move(col_res)); | 611 | 47 | } else if (!left_is_const && right_is_const) { | 612 | 29 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 29 | vec_res.resize(col_left->size()); | 616 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 29 | col_right->get_element(0), vec_res); | 620 | | | 621 | 29 | block.replace_by_position(result, std::move(col_res)); | 622 | 29 | } else if (left_is_const && !right_is_const) { | 623 | 12 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 12 | vec_res.resize(col_right->size()); | 627 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 12 | col_right->get_data(), vec_res); | 631 | | | 632 | 12 | block.replace_by_position(result, std::move(col_res)); | 633 | 12 | } | 634 | 88 | return Status::OK(); | 635 | 88 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 12 | const ColumnPtr& col_right_ptr) const { | 592 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 12 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 12 | if (!left_is_const && !right_is_const) { | 601 | 5 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 5 | vec_res.resize(col_left->get_data().size()); | 605 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 5 | vec_res); | 609 | | | 610 | 5 | block.replace_by_position(result, std::move(col_res)); | 611 | 7 | } else if (!left_is_const && right_is_const) { | 612 | 7 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 7 | vec_res.resize(col_left->size()); | 616 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 7 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 7 | col_right->get_element(0), vec_res); | 620 | | | 621 | 7 | block.replace_by_position(result, std::move(col_res)); | 622 | 7 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 12 | return Status::OK(); | 635 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 16 | const ColumnPtr& col_right_ptr) const { | 592 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 16 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 16 | if (!left_is_const && !right_is_const) { | 601 | 12 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 12 | vec_res.resize(col_left->get_data().size()); | 605 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 12 | vec_res); | 609 | | | 610 | 12 | block.replace_by_position(result, std::move(col_res)); | 611 | 12 | } else if (!left_is_const && right_is_const) { | 612 | 4 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4 | vec_res.resize(col_left->size()); | 616 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4 | col_right->get_element(0), vec_res); | 620 | | | 621 | 4 | block.replace_by_position(result, std::move(col_res)); | 622 | 4 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 16 | return Status::OK(); | 635 | 16 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.79k | const ColumnPtr& col_right_ptr) const { | 592 | 2.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.79k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.79k | if (!left_is_const && !right_is_const) { | 601 | 779 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 779 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 779 | vec_res.resize(col_left->get_data().size()); | 605 | 779 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 779 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 779 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 779 | vec_res); | 609 | | | 610 | 779 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.02k | } else if (!left_is_const && right_is_const) { | 612 | 1.96k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.96k | vec_res.resize(col_left->size()); | 616 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.96k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.96k | } else if (left_is_const && !right_is_const) { | 623 | 54 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 54 | vec_res.resize(col_right->size()); | 627 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 54 | col_right->get_data(), vec_res); | 631 | | | 632 | 54 | block.replace_by_position(result, std::move(col_res)); | 633 | 54 | } | 634 | 2.79k | return Status::OK(); | 635 | 2.79k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 70 | const ColumnPtr& col_right_ptr) const { | 592 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 70 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 70 | if (!left_is_const && !right_is_const) { | 601 | 70 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 70 | vec_res.resize(col_left->get_data().size()); | 605 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 70 | vec_res); | 609 | | | 610 | 70 | block.replace_by_position(result, std::move(col_res)); | 611 | 70 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 70 | return Status::OK(); | 635 | 70 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 705 | const ColumnPtr& col_right_ptr) const { | 592 | 705 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 705 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 705 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 705 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 705 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 705 | if (!left_is_const && !right_is_const) { | 601 | 92 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 92 | vec_res.resize(col_left->get_data().size()); | 605 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 92 | vec_res); | 609 | | | 610 | 92 | block.replace_by_position(result, std::move(col_res)); | 611 | 613 | } else if (!left_is_const && right_is_const) { | 612 | 613 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 613 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 613 | vec_res.resize(col_left->size()); | 616 | 613 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 613 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 613 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 613 | col_right->get_element(0), vec_res); | 620 | | | 621 | 613 | block.replace_by_position(result, std::move(col_res)); | 622 | 613 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 705 | return Status::OK(); | 635 | 705 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 52 | const ColumnPtr& col_right_ptr) const { | 592 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 52 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 52 | if (!left_is_const && !right_is_const) { | 601 | 52 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 52 | vec_res.resize(col_left->get_data().size()); | 605 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 52 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 52 | vec_res); | 609 | | | 610 | 52 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 52 | return Status::OK(); | 635 | 52 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 70 | const ColumnPtr& col_right_ptr) const { | 592 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 70 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 70 | if (!left_is_const && !right_is_const) { | 601 | 39 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 39 | vec_res.resize(col_left->get_data().size()); | 605 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 39 | vec_res); | 609 | | | 610 | 39 | block.replace_by_position(result, std::move(col_res)); | 611 | 39 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 70 | return Status::OK(); | 635 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 11 | const ColumnPtr& col_right_ptr) const { | 592 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 11 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 11 | if (!left_is_const && !right_is_const) { | 601 | 9 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 9 | vec_res.resize(col_left->get_data().size()); | 605 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 9 | vec_res); | 609 | | | 610 | 9 | block.replace_by_position(result, std::move(col_res)); | 611 | 9 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 11 | return Status::OK(); | 635 | 11 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 84 | const ColumnPtr& col_right_ptr) const { | 592 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 84 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 84 | if (!left_is_const && !right_is_const) { | 601 | 56 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 56 | vec_res.resize(col_left->get_data().size()); | 605 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 56 | vec_res); | 609 | | | 610 | 56 | block.replace_by_position(result, std::move(col_res)); | 611 | 56 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 84 | return Status::OK(); | 635 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.07k | const ColumnPtr& col_right_ptr) const { | 592 | 1.07k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.07k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.07k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.07k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.07k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.07k | if (!left_is_const && !right_is_const) { | 601 | 802 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 802 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 802 | vec_res.resize(col_left->get_data().size()); | 605 | 802 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 802 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 802 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 802 | vec_res); | 609 | | | 610 | 802 | block.replace_by_position(result, std::move(col_res)); | 611 | 802 | } else if (!left_is_const && right_is_const) { | 612 | 273 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 273 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 273 | vec_res.resize(col_left->size()); | 616 | 273 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 273 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 273 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 273 | col_right->get_element(0), vec_res); | 620 | | | 621 | 273 | block.replace_by_position(result, std::move(col_res)); | 622 | 273 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.07k | return Status::OK(); | 635 | 1.07k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 809 | const ColumnPtr& col_right_ptr) const { | 592 | 809 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 809 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 809 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 809 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 809 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 809 | if (!left_is_const && !right_is_const) { | 601 | 329 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 329 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 329 | vec_res.resize(col_left->get_data().size()); | 605 | 329 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 329 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 329 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 329 | vec_res); | 609 | | | 610 | 329 | block.replace_by_position(result, std::move(col_res)); | 611 | 480 | } else if (!left_is_const && right_is_const) { | 612 | 34 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 34 | vec_res.resize(col_left->size()); | 616 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 34 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 34 | col_right->get_element(0), vec_res); | 620 | | | 621 | 34 | block.replace_by_position(result, std::move(col_res)); | 622 | 446 | } else if (left_is_const && !right_is_const) { | 623 | 446 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 446 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 446 | vec_res.resize(col_right->size()); | 627 | 446 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 446 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 446 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 446 | col_right->get_data(), vec_res); | 631 | | | 632 | 446 | block.replace_by_position(result, std::move(col_res)); | 633 | 446 | } | 634 | 809 | return Status::OK(); | 635 | 809 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 48 | const ColumnPtr& col_right_ptr) const { | 592 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 48 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 48 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 28 | } else if (!left_is_const && right_is_const) { | 612 | 27 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 27 | vec_res.resize(col_left->size()); | 616 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 27 | col_right->get_element(0), vec_res); | 620 | | | 621 | 27 | block.replace_by_position(result, std::move(col_res)); | 622 | 27 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 48 | return Status::OK(); | 635 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 63 | const ColumnPtr& col_right_ptr) const { | 592 | 63 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 63 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 63 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 63 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 63 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 63 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 40 | } else if (!left_is_const && right_is_const) { | 612 | 40 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 40 | vec_res.resize(col_left->size()); | 616 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 40 | col_right->get_element(0), vec_res); | 620 | | | 621 | 40 | block.replace_by_position(result, std::move(col_res)); | 622 | 40 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 63 | return Status::OK(); | 635 | 63 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.02k | const ColumnPtr& col_right_ptr) const { | 592 | 1.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.02k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.02k | if (!left_is_const && !right_is_const) { | 601 | 983 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 983 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 983 | vec_res.resize(col_left->get_data().size()); | 605 | 983 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 983 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 983 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 983 | vec_res); | 609 | | | 610 | 983 | block.replace_by_position(result, std::move(col_res)); | 611 | 983 | } else if (!left_is_const && right_is_const) { | 612 | 41 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 41 | vec_res.resize(col_left->size()); | 616 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 41 | col_right->get_element(0), vec_res); | 620 | | | 621 | 41 | block.replace_by_position(result, std::move(col_res)); | 622 | 41 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.02k | return Status::OK(); | 635 | 1.02k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3 | const ColumnPtr& col_right_ptr) const { | 592 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 72 | const ColumnPtr& col_right_ptr) const { | 592 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 72 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 72 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 37 | } else if (!left_is_const && right_is_const) { | 612 | 37 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 37 | vec_res.resize(col_left->size()); | 616 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 37 | col_right->get_element(0), vec_res); | 620 | | | 621 | 37 | block.replace_by_position(result, std::move(col_res)); | 622 | 37 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 72 | return Status::OK(); | 635 | 72 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.72k | const ColumnPtr& col_right_ptr) const { | 592 | 1.72k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.72k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.72k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.72k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.72k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.72k | if (!left_is_const && !right_is_const) { | 601 | 76 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 76 | vec_res.resize(col_left->get_data().size()); | 605 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 76 | vec_res); | 609 | | | 610 | 76 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.65k | } else if (!left_is_const && right_is_const) { | 612 | 1.42k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.42k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.42k | vec_res.resize(col_left->size()); | 616 | 1.42k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.42k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.42k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.42k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.42k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.42k | } else if (left_is_const && !right_is_const) { | 623 | 228 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 228 | vec_res.resize(col_right->size()); | 627 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 228 | col_right->get_data(), vec_res); | 631 | | | 632 | 228 | block.replace_by_position(result, std::move(col_res)); | 633 | 228 | } | 634 | 1.72k | return Status::OK(); | 635 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.34k | const ColumnPtr& col_right_ptr) const { | 592 | 2.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.34k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.34k | if (!left_is_const && !right_is_const) { | 601 | 112 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 112 | vec_res.resize(col_left->get_data().size()); | 605 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 112 | vec_res); | 609 | | | 610 | 112 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.23k | } else if (!left_is_const && right_is_const) { | 612 | 2.00k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.00k | vec_res.resize(col_left->size()); | 616 | 2.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.00k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.00k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.00k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.00k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.00k | } else if (left_is_const && !right_is_const) { | 623 | 228 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 228 | vec_res.resize(col_right->size()); | 627 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 228 | col_right->get_data(), vec_res); | 631 | | | 632 | 228 | block.replace_by_position(result, std::move(col_res)); | 633 | 228 | } | 634 | 2.34k | return Status::OK(); | 635 | 2.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 13.6k | const ColumnPtr& col_right_ptr) const { | 592 | 13.6k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 13.6k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 13.6k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 13.6k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 13.6k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 13.6k | if (!left_is_const && !right_is_const) { | 601 | 69 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 69 | vec_res.resize(col_left->get_data().size()); | 605 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 69 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 69 | vec_res); | 609 | | | 610 | 69 | block.replace_by_position(result, std::move(col_res)); | 611 | 13.5k | } else if (!left_is_const && right_is_const) { | 612 | 10.2k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10.2k | vec_res.resize(col_left->size()); | 616 | 10.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10.2k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10.2k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10.2k | col_right->get_element(0), vec_res); | 620 | | | 621 | 10.2k | block.replace_by_position(result, std::move(col_res)); | 622 | 10.2k | } else if (left_is_const && !right_is_const) { | 623 | 3.33k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 3.33k | vec_res.resize(col_right->size()); | 627 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 3.33k | col_right->get_data(), vec_res); | 631 | | | 632 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 633 | 3.33k | } | 634 | 13.6k | return Status::OK(); | 635 | 13.6k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.42k | const ColumnPtr& col_right_ptr) const { | 592 | 2.42k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.42k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.42k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.42k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.42k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.42k | if (!left_is_const && !right_is_const) { | 601 | 180 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 180 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 180 | vec_res.resize(col_left->get_data().size()); | 605 | 180 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 180 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 180 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 180 | vec_res); | 609 | | | 610 | 180 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.24k | } else if (!left_is_const && right_is_const) { | 612 | 1.71k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.71k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.71k | vec_res.resize(col_left->size()); | 616 | 1.71k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.71k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.71k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.71k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.71k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.71k | } else if (left_is_const && !right_is_const) { | 623 | 524 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 524 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 524 | vec_res.resize(col_right->size()); | 627 | 524 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 524 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 524 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 524 | col_right->get_data(), vec_res); | 631 | | | 632 | 524 | block.replace_by_position(result, std::move(col_res)); | 633 | 524 | } | 634 | 2.42k | return Status::OK(); | 635 | 2.42k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 250 | const ColumnPtr& col_right_ptr) const { | 592 | 250 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 250 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 250 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 250 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 250 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 250 | if (!left_is_const && !right_is_const) { | 601 | 3 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 3 | vec_res.resize(col_left->get_data().size()); | 605 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 3 | vec_res); | 609 | | | 610 | 3 | block.replace_by_position(result, std::move(col_res)); | 611 | 247 | } else if (!left_is_const && right_is_const) { | 612 | 199 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 199 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 199 | vec_res.resize(col_left->size()); | 616 | 199 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 199 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 199 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 199 | col_right->get_element(0), vec_res); | 620 | | | 621 | 199 | block.replace_by_position(result, std::move(col_res)); | 622 | 199 | } else if (left_is_const && !right_is_const) { | 623 | 46 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 46 | vec_res.resize(col_right->size()); | 627 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 46 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 46 | col_right->get_data(), vec_res); | 631 | | | 632 | 46 | block.replace_by_position(result, std::move(col_res)); | 633 | 46 | } | 634 | 250 | return Status::OK(); | 635 | 250 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 4 | const ColumnPtr& col_right_ptr) const { | 592 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 4 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 4 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 4 | return Status::OK(); | 635 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 611 | const ColumnPtr& col_right_ptr) const { | 592 | 611 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 611 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 611 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 611 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 611 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 611 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 507 | } else if (!left_is_const && right_is_const) { | 612 | 507 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 507 | vec_res.resize(col_left->size()); | 616 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 507 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 507 | col_right->get_element(0), vec_res); | 620 | | | 621 | 507 | block.replace_by_position(result, std::move(col_res)); | 622 | 507 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 611 | return Status::OK(); | 635 | 611 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 419 | const ColumnPtr& col_right_ptr) const { | 592 | 419 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 419 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 419 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 419 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 419 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 419 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 399 | } else if (!left_is_const && right_is_const) { | 612 | 399 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 399 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 399 | vec_res.resize(col_left->size()); | 616 | 399 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 399 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 399 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 399 | col_right->get_element(0), vec_res); | 620 | | | 621 | 399 | block.replace_by_position(result, std::move(col_res)); | 622 | 399 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 419 | return Status::OK(); | 635 | 419 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 604 | const ColumnPtr& col_right_ptr) const { | 592 | 604 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 604 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 604 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 604 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 604 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 605 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 569 | } else if (!left_is_const && right_is_const) { | 612 | 569 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 569 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 569 | vec_res.resize(col_left->size()); | 616 | 569 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 569 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 569 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 569 | col_right->get_element(0), vec_res); | 620 | | | 621 | 569 | block.replace_by_position(result, std::move(col_res)); | 622 | 569 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 604 | return Status::OK(); | 635 | 604 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 22 | const ColumnPtr& col_right_ptr) const { | 592 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 22 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 22 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 22 | } else if (!left_is_const && right_is_const) { | 612 | 22 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 22 | vec_res.resize(col_left->size()); | 616 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 22 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 22 | col_right->get_element(0), vec_res); | 620 | | | 621 | 22 | block.replace_by_position(result, std::move(col_res)); | 622 | 22 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 22 | return Status::OK(); | 635 | 22 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 489 | const ColumnPtr& col_right_ptr) const { | 592 | 489 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 489 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 489 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 489 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 489 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 489 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 488 | } else if (!left_is_const && right_is_const) { | 612 | 481 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 481 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 481 | vec_res.resize(col_left->size()); | 616 | 481 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 481 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 481 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 481 | col_right->get_element(0), vec_res); | 620 | | | 621 | 481 | block.replace_by_position(result, std::move(col_res)); | 622 | 481 | } else if (left_is_const && !right_is_const) { | 623 | 6 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 6 | vec_res.resize(col_right->size()); | 627 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 6 | col_right->get_data(), vec_res); | 631 | | | 632 | 6 | block.replace_by_position(result, std::move(col_res)); | 633 | 6 | } | 634 | 489 | return Status::OK(); | 635 | 489 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 119 | const ColumnPtr& col_right_ptr) const { | 592 | 119 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 119 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 119 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 119 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 119 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 119 | if (!left_is_const && !right_is_const) { | 601 | 6 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 6 | vec_res.resize(col_left->get_data().size()); | 605 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 6 | vec_res); | 609 | | | 610 | 6 | block.replace_by_position(result, std::move(col_res)); | 611 | 113 | } else if (!left_is_const && right_is_const) { | 612 | 113 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 113 | vec_res.resize(col_left->size()); | 616 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 113 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 113 | col_right->get_element(0), vec_res); | 620 | | | 621 | 113 | block.replace_by_position(result, std::move(col_res)); | 622 | 113 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 119 | return Status::OK(); | 635 | 119 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 406 | const ColumnPtr& col_right_ptr) const { | 592 | 406 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 406 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 406 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 406 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 406 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 407 | if (!left_is_const && !right_is_const) { | 601 | 361 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 361 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 361 | vec_res.resize(col_left->get_data().size()); | 605 | 361 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 361 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 361 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 361 | vec_res); | 609 | | | 610 | 361 | block.replace_by_position(result, std::move(col_res)); | 611 | 361 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 406 | return Status::OK(); | 635 | 406 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 38 | const ColumnPtr& col_right_ptr) const { | 592 | 38 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 38 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 38 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 38 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 38 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 38 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 38 | } else if (!left_is_const && right_is_const) { | 612 | 38 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 38 | vec_res.resize(col_left->size()); | 616 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 38 | col_right->get_element(0), vec_res); | 620 | | | 621 | 38 | block.replace_by_position(result, std::move(col_res)); | 622 | 38 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 38 | return Status::OK(); | 635 | 38 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 31 | const ColumnPtr& col_right_ptr) const { | 592 | 31 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 31 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 31 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 31 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 31 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 31 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 31 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 31 | return Status::OK(); | 635 | 31 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 674 | const ColumnPtr& col_right_ptr) const { | 592 | 674 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 674 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 674 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 674 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 674 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 674 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 659 | } else if (!left_is_const && right_is_const) { | 612 | 659 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 659 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 659 | vec_res.resize(col_left->size()); | 616 | 659 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 659 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 659 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 659 | col_right->get_element(0), vec_res); | 620 | | | 621 | 659 | block.replace_by_position(result, std::move(col_res)); | 622 | 659 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 674 | return Status::OK(); | 635 | 674 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 792 | const ColumnPtr& col_right_ptr) const { | 592 | 792 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 792 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 792 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 792 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 792 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 792 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 770 | } else if (!left_is_const && right_is_const) { | 612 | 770 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 770 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 770 | vec_res.resize(col_left->size()); | 616 | 770 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 770 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 770 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 770 | col_right->get_element(0), vec_res); | 620 | | | 621 | 770 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 792 | return Status::OK(); | 635 | 792 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 20 | const ColumnPtr& col_right_ptr) const { | 592 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 20 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 20 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 20 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 20 | vec_res.resize(col_left->size()); | 616 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 20 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 20 | col_right->get_element(0), vec_res); | 620 | | | 621 | 20 | block.replace_by_position(result, std::move(col_res)); | 622 | 20 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 20 | return Status::OK(); | 635 | 20 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 577 | const ColumnPtr& col_right_ptr) const { | 592 | 577 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 577 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 577 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 577 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 577 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 577 | if (!left_is_const && !right_is_const) { | 601 | 108 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 108 | vec_res.resize(col_left->get_data().size()); | 605 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 108 | vec_res); | 609 | | | 610 | 108 | block.replace_by_position(result, std::move(col_res)); | 611 | 469 | } else if (!left_is_const && right_is_const) { | 612 | 469 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 469 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 469 | vec_res.resize(col_left->size()); | 616 | 469 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 469 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 469 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 469 | col_right->get_element(0), vec_res); | 620 | | | 621 | 469 | block.replace_by_position(result, std::move(col_res)); | 622 | 469 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 577 | return Status::OK(); | 635 | 577 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 30 | const ColumnPtr& col_right_ptr) const { | 592 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 30 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 30 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 30 | return Status::OK(); | 635 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 132 | const ColumnPtr& col_right_ptr) const { | 592 | 132 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 132 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 132 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 132 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 132 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 132 | if (!left_is_const && !right_is_const) { | 601 | 22 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 22 | vec_res.resize(col_left->get_data().size()); | 605 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 22 | vec_res); | 609 | | | 610 | 22 | block.replace_by_position(result, std::move(col_res)); | 611 | 110 | } else if (!left_is_const && right_is_const) { | 612 | 110 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 110 | vec_res.resize(col_left->size()); | 616 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 110 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 110 | col_right->get_element(0), vec_res); | 620 | | | 621 | 110 | block.replace_by_position(result, std::move(col_res)); | 622 | 110 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 132 | return Status::OK(); | 635 | 132 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 90 | const ColumnPtr& col_right_ptr) const { | 592 | 90 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 90 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 90 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 90 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 90 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 90 | if (!left_is_const && !right_is_const) { | 601 | 90 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 90 | vec_res.resize(col_left->get_data().size()); | 605 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 90 | vec_res); | 609 | | | 610 | 90 | block.replace_by_position(result, std::move(col_res)); | 611 | 90 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 90 | return Status::OK(); | 635 | 90 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.06k | const ColumnPtr& col_right_ptr) const { | 592 | 2.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.06k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.06k | if (!left_is_const && !right_is_const) { | 601 | 1.66k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.66k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.66k | vec_res.resize(col_left->get_data().size()); | 605 | 1.66k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.66k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.66k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.66k | vec_res); | 609 | | | 610 | 1.66k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.66k | } else if (!left_is_const && right_is_const) { | 612 | 401 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 401 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 401 | vec_res.resize(col_left->size()); | 616 | 401 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 401 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 401 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 401 | col_right->get_element(0), vec_res); | 620 | | | 621 | 401 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2.06k | return Status::OK(); | 635 | 2.06k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 298 | const ColumnPtr& col_right_ptr) const { | 592 | 298 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 298 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 298 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 298 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 298 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 298 | if (!left_is_const && !right_is_const) { | 601 | 239 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 239 | vec_res.resize(col_left->get_data().size()); | 605 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 239 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 239 | vec_res); | 609 | | | 610 | 239 | block.replace_by_position(result, std::move(col_res)); | 611 | 239 | } else if (!left_is_const && right_is_const) { | 612 | 59 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 59 | vec_res.resize(col_left->size()); | 616 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 59 | col_right->get_element(0), vec_res); | 620 | | | 621 | 59 | block.replace_by_position(result, std::move(col_res)); | 622 | 59 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 298 | return Status::OK(); | 635 | 298 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 151 | const ColumnPtr& col_right_ptr) const { | 592 | 151 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 151 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 151 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 151 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 151 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 151 | if (!left_is_const && !right_is_const) { | 601 | 105 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 105 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 105 | vec_res.resize(col_left->get_data().size()); | 605 | 105 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 105 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 105 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 105 | vec_res); | 609 | | | 610 | 105 | block.replace_by_position(result, std::move(col_res)); | 611 | 105 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 151 | return Status::OK(); | 635 | 151 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3 | const ColumnPtr& col_right_ptr) const { | 592 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 1 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1 | vec_res.resize(col_left->size()); | 616 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1 | col_right->get_element(0), vec_res); | 620 | | | 621 | 1 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.40k | const ColumnPtr& col_right_ptr) const { | 592 | 2.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.40k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.40k | if (!left_is_const && !right_is_const) { | 601 | 222 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 222 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 222 | vec_res.resize(col_left->get_data().size()); | 605 | 222 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 222 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 222 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 222 | vec_res); | 609 | | | 610 | 222 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.17k | } else if (!left_is_const && right_is_const) { | 612 | 1.93k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.93k | vec_res.resize(col_left->size()); | 616 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.93k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.93k | } else if (left_is_const && !right_is_const) { | 623 | 240 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 240 | vec_res.resize(col_right->size()); | 627 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 240 | col_right->get_data(), vec_res); | 631 | | | 632 | 240 | block.replace_by_position(result, std::move(col_res)); | 633 | 240 | } | 634 | 2.40k | return Status::OK(); | 635 | 2.40k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 174 | const ColumnPtr& col_right_ptr) const { | 592 | 174 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 174 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 174 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 174 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 174 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 174 | if (!left_is_const && !right_is_const) { | 601 | 160 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 160 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 160 | vec_res.resize(col_left->get_data().size()); | 605 | 160 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 160 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 160 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 160 | vec_res); | 609 | | | 610 | 160 | block.replace_by_position(result, std::move(col_res)); | 611 | 160 | } else if (!left_is_const && right_is_const) { | 612 | 14 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 14 | vec_res.resize(col_left->size()); | 616 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 14 | col_right->get_element(0), vec_res); | 620 | | | 621 | 14 | block.replace_by_position(result, std::move(col_res)); | 622 | 14 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 174 | return Status::OK(); | 635 | 174 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.87k | const ColumnPtr& col_right_ptr) const { | 592 | 1.87k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.87k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.87k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.87k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.87k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.87k | if (!left_is_const && !right_is_const) { | 601 | 898 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 898 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 898 | vec_res.resize(col_left->get_data().size()); | 605 | 898 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 898 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 898 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 898 | vec_res); | 609 | | | 610 | 898 | block.replace_by_position(result, std::move(col_res)); | 611 | 981 | } else if (!left_is_const && right_is_const) { | 612 | 862 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 862 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 862 | vec_res.resize(col_left->size()); | 616 | 862 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 862 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 862 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 862 | col_right->get_element(0), vec_res); | 620 | | | 621 | 862 | block.replace_by_position(result, std::move(col_res)); | 622 | 862 | } else if (left_is_const && !right_is_const) { | 623 | 119 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 119 | vec_res.resize(col_right->size()); | 627 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 119 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 119 | col_right->get_data(), vec_res); | 631 | | | 632 | 119 | block.replace_by_position(result, std::move(col_res)); | 633 | 119 | } | 634 | 1.87k | return Status::OK(); | 635 | 1.87k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 886 | const ColumnPtr& col_right_ptr) const { | 592 | 886 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 886 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 886 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 886 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 886 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 886 | if (!left_is_const && !right_is_const) { | 601 | 264 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 264 | vec_res.resize(col_left->get_data().size()); | 605 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 264 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 264 | vec_res); | 609 | | | 610 | 264 | block.replace_by_position(result, std::move(col_res)); | 611 | 622 | } else if (!left_is_const && right_is_const) { | 612 | 549 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 549 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 549 | vec_res.resize(col_left->size()); | 616 | 549 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 549 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 549 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 549 | col_right->get_element(0), vec_res); | 620 | | | 621 | 549 | block.replace_by_position(result, std::move(col_res)); | 622 | 549 | } else if (left_is_const && !right_is_const) { | 623 | 73 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 73 | vec_res.resize(col_right->size()); | 627 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 73 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 73 | col_right->get_data(), vec_res); | 631 | | | 632 | 73 | block.replace_by_position(result, std::move(col_res)); | 633 | 73 | } | 634 | 886 | return Status::OK(); | 635 | 886 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 288 | const ColumnPtr& col_right_ptr) const { | 592 | 288 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 288 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 288 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 288 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 288 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 288 | if (!left_is_const && !right_is_const) { | 601 | 132 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 132 | vec_res.resize(col_left->get_data().size()); | 605 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 132 | vec_res); | 609 | | | 610 | 132 | block.replace_by_position(result, std::move(col_res)); | 611 | 156 | } else if (!left_is_const && right_is_const) { | 612 | 60 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 60 | vec_res.resize(col_left->size()); | 616 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 60 | col_right->get_element(0), vec_res); | 620 | | | 621 | 60 | block.replace_by_position(result, std::move(col_res)); | 622 | 96 | } else if (left_is_const && !right_is_const) { | 623 | 96 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 96 | vec_res.resize(col_right->size()); | 627 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 96 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 96 | col_right->get_data(), vec_res); | 631 | | | 632 | 96 | block.replace_by_position(result, std::move(col_res)); | 633 | 96 | } | 634 | 288 | return Status::OK(); | 635 | 288 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 17 | const ColumnPtr& col_right_ptr) const { | 592 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 17 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 17 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 17 | return Status::OK(); | 635 | 17 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 15 | const ColumnPtr& col_right_ptr) const { | 592 | 15 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 15 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 15 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 15 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 15 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 15 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 15 | return Status::OK(); | 635 | 15 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 457 | const ColumnPtr& col_right_ptr) const { | 592 | 457 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 457 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 457 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 457 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 457 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 457 | if (!left_is_const && !right_is_const) { | 601 | 110 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 110 | vec_res.resize(col_left->get_data().size()); | 605 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 110 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 110 | vec_res); | 609 | | | 610 | 110 | block.replace_by_position(result, std::move(col_res)); | 611 | 347 | } else if (!left_is_const && right_is_const) { | 612 | 347 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 347 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 347 | vec_res.resize(col_left->size()); | 616 | 347 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 347 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 347 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 347 | col_right->get_element(0), vec_res); | 620 | | | 621 | 347 | block.replace_by_position(result, std::move(col_res)); | 622 | 347 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 457 | return Status::OK(); | 635 | 457 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 129 | const ColumnPtr& col_right_ptr) const { | 592 | 129 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 129 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 129 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 129 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 129 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 129 | if (!left_is_const && !right_is_const) { | 601 | 129 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 129 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 129 | vec_res.resize(col_left->get_data().size()); | 605 | 129 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 129 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 129 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 129 | vec_res); | 609 | | | 610 | 129 | block.replace_by_position(result, std::move(col_res)); | 611 | 129 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 129 | return Status::OK(); | 635 | 129 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.20k | const ColumnPtr& col_right_ptr) const { | 592 | 1.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.20k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.20k | if (!left_is_const && !right_is_const) { | 601 | 135 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 135 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 135 | vec_res.resize(col_left->get_data().size()); | 605 | 135 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 135 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 135 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 135 | vec_res); | 609 | | | 610 | 135 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.06k | } else if (!left_is_const && right_is_const) { | 612 | 1.06k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.06k | vec_res.resize(col_left->size()); | 616 | 1.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.06k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.06k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.06k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.06k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.06k | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.20k | return Status::OK(); | 635 | 1.20k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 12 | const ColumnPtr& col_right_ptr) const { | 592 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 12 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 12 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 12 | } else if (!left_is_const && right_is_const) { | 612 | 12 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 12 | vec_res.resize(col_left->size()); | 616 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 12 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 12 | col_right->get_element(0), vec_res); | 620 | | | 621 | 12 | block.replace_by_position(result, std::move(col_res)); | 622 | 12 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 12 | return Status::OK(); | 635 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 546 | const ColumnPtr& col_right_ptr) const { | 592 | 546 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 546 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 546 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 546 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 546 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 546 | if (!left_is_const && !right_is_const) { | 601 | 397 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 397 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 397 | vec_res.resize(col_left->get_data().size()); | 605 | 397 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 397 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 397 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 397 | vec_res); | 609 | | | 610 | 397 | block.replace_by_position(result, std::move(col_res)); | 611 | 397 | } else if (!left_is_const && right_is_const) { | 612 | 146 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 146 | vec_res.resize(col_left->size()); | 616 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 146 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 146 | col_right->get_element(0), vec_res); | 620 | | | 621 | 146 | block.replace_by_position(result, std::move(col_res)); | 622 | 146 | } else if (left_is_const && !right_is_const) { | 623 | 5 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 5 | vec_res.resize(col_right->size()); | 627 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 5 | col_right->get_data(), vec_res); | 631 | | | 632 | 5 | block.replace_by_position(result, std::move(col_res)); | 633 | 5 | } | 634 | 546 | return Status::OK(); | 635 | 546 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 69 | const ColumnPtr& col_right_ptr) const { | 592 | 69 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 69 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 69 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 69 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 69 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 69 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 69 | } else if (!left_is_const && right_is_const) { | 612 | 69 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 69 | vec_res.resize(col_left->size()); | 616 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 69 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 69 | col_right->get_element(0), vec_res); | 620 | | | 621 | 69 | block.replace_by_position(result, std::move(col_res)); | 622 | 69 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 69 | return Status::OK(); | 635 | 69 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 64 | const ColumnPtr& col_right_ptr) const { | 592 | 64 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 64 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 64 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 64 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 64 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 64 | if (!left_is_const && !right_is_const) { | 601 | 26 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 26 | vec_res.resize(col_left->get_data().size()); | 605 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 26 | vec_res); | 609 | | | 610 | 26 | block.replace_by_position(result, std::move(col_res)); | 611 | 38 | } else if (!left_is_const && right_is_const) { | 612 | 38 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 38 | vec_res.resize(col_left->size()); | 616 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 38 | col_right->get_element(0), vec_res); | 620 | | | 621 | 38 | block.replace_by_position(result, std::move(col_res)); | 622 | 38 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 64 | return Status::OK(); | 635 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 53 | const ColumnPtr& col_right_ptr) const { | 592 | 53 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 53 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 53 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 53 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 53 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 53 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 52 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 52 | vec_res.resize(col_left->size()); | 616 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 52 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 52 | col_right->get_element(0), vec_res); | 620 | | | 621 | 52 | block.replace_by_position(result, std::move(col_res)); | 622 | 52 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 53 | return Status::OK(); | 635 | 53 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 51 | const ColumnPtr& col_right_ptr) const { | 592 | 51 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 51 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 51 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 51 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 51 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 51 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 51 | } else if (!left_is_const && right_is_const) { | 612 | 51 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 51 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 51 | vec_res.resize(col_left->size()); | 616 | 51 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 51 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 51 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 51 | col_right->get_element(0), vec_res); | 620 | | | 621 | 51 | block.replace_by_position(result, std::move(col_res)); | 622 | 51 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 51 | return Status::OK(); | 635 | 51 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.23k | const ColumnPtr& col_right_ptr) const { | 592 | 6.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.23k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.23k | if (!left_is_const && !right_is_const) { | 601 | 22 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 22 | vec_res.resize(col_left->get_data().size()); | 605 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 22 | vec_res); | 609 | | | 610 | 22 | block.replace_by_position(result, std::move(col_res)); | 611 | 6.21k | } else if (!left_is_const && right_is_const) { | 612 | 6.19k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.19k | vec_res.resize(col_left->size()); | 616 | 6.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.19k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.19k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.19k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.19k | block.replace_by_position(result, std::move(col_res)); | 622 | 6.19k | } else if (left_is_const && !right_is_const) { | 623 | 35 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 35 | vec_res.resize(col_right->size()); | 627 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 35 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 35 | col_right->get_data(), vec_res); | 631 | | | 632 | 35 | block.replace_by_position(result, std::move(col_res)); | 633 | 35 | } | 634 | 6.23k | return Status::OK(); | 635 | 6.23k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 733 | const ColumnPtr& col_right_ptr) const { | 592 | 733 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 733 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 733 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 733 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 733 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 733 | if (!left_is_const && !right_is_const) { | 601 | 37 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 37 | vec_res.resize(col_left->get_data().size()); | 605 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 37 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 37 | vec_res); | 609 | | | 610 | 37 | block.replace_by_position(result, std::move(col_res)); | 611 | 696 | } else if (!left_is_const && right_is_const) { | 612 | 649 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 649 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 649 | vec_res.resize(col_left->size()); | 616 | 649 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 649 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 649 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 649 | col_right->get_element(0), vec_res); | 620 | | | 621 | 649 | block.replace_by_position(result, std::move(col_res)); | 622 | 649 | } else if (left_is_const && !right_is_const) { | 623 | 48 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 48 | vec_res.resize(col_right->size()); | 627 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 48 | col_right->get_data(), vec_res); | 631 | | | 632 | 48 | block.replace_by_position(result, std::move(col_res)); | 633 | 48 | } | 634 | 733 | return Status::OK(); | 635 | 733 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 30 | const ColumnPtr& col_right_ptr) const { | 592 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 30 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 30 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 30 | } else if (!left_is_const && right_is_const) { | 612 | 30 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 30 | vec_res.resize(col_left->size()); | 616 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 30 | col_right->get_element(0), vec_res); | 620 | | | 621 | 30 | block.replace_by_position(result, std::move(col_res)); | 622 | 30 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 30 | return Status::OK(); | 635 | 30 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 417 | const ColumnPtr& col_right_ptr) const { | 592 | 417 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 417 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 417 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 417 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 417 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 417 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 313 | } else if (!left_is_const && right_is_const) { | 612 | 313 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 313 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 313 | vec_res.resize(col_left->size()); | 616 | 313 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 313 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 313 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 313 | col_right->get_element(0), vec_res); | 620 | | | 621 | 313 | block.replace_by_position(result, std::move(col_res)); | 622 | 313 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 417 | return Status::OK(); | 635 | 417 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 20 | const ColumnPtr& col_right_ptr) const { | 592 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 20 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 20 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 20 | return Status::OK(); | 635 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 111 | const ColumnPtr& col_right_ptr) const { | 592 | 111 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 111 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 111 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 111 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 111 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 111 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 91 | } else if (!left_is_const && right_is_const) { | 612 | 91 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 91 | vec_res.resize(col_left->size()); | 616 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 91 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 91 | col_right->get_element(0), vec_res); | 620 | | | 621 | 91 | block.replace_by_position(result, std::move(col_res)); | 622 | 91 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 111 | return Status::OK(); | 635 | 111 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
636 | | |
637 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
638 | 2.93k | const ColumnWithTypeAndName& col_right) const { |
639 | 2.93k | auto call = [&](const auto& type) -> bool { |
640 | 2.93k | using DispatchType = std::decay_t<decltype(type)>; |
641 | 2.93k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
642 | 2.93k | block, result, col_left, col_right); |
643 | 2.93k | return true; |
644 | 2.93k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 113 | auto call = [&](const auto& type) -> bool { | 640 | 113 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 113 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 113 | block, result, col_left, col_right); | 643 | 113 | return true; | 644 | 113 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 110 | auto call = [&](const auto& type) -> bool { | 640 | 110 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 110 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 110 | block, result, col_left, col_right); | 643 | 110 | return true; | 644 | 110 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 847 | auto call = [&](const auto& type) -> bool { | 640 | 847 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 847 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 847 | block, result, col_left, col_right); | 643 | 847 | return true; | 644 | 847 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 18 | auto call = [&](const auto& type) -> bool { | 640 | 18 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 18 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 18 | block, result, col_left, col_right); | 643 | 18 | return true; | 644 | 18 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 64 | auto call = [&](const auto& type) -> bool { | 640 | 64 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 64 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 64 | block, result, col_left, col_right); | 643 | 64 | return true; | 644 | 64 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 28 | auto call = [&](const auto& type) -> bool { | 640 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 28 | block, result, col_left, col_right); | 643 | 28 | return true; | 644 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 30 | auto call = [&](const auto& type) -> bool { | 640 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 30 | block, result, col_left, col_right); | 643 | 30 | return true; | 644 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 8 | auto call = [&](const auto& type) -> bool { | 640 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 8 | block, result, col_left, col_right); | 643 | 8 | return true; | 644 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 67 | auto call = [&](const auto& type) -> bool { | 640 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 67 | block, result, col_left, col_right); | 643 | 67 | return true; | 644 | 67 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 624 | auto call = [&](const auto& type) -> bool { | 640 | 624 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 624 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 624 | block, result, col_left, col_right); | 643 | 624 | return true; | 644 | 624 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 2 | auto call = [&](const auto& type) -> bool { | 640 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 2 | block, result, col_left, col_right); | 643 | 2 | return true; | 644 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 4 | auto call = [&](const auto& type) -> bool { | 640 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 4 | block, result, col_left, col_right); | 643 | 4 | return true; | 644 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 66 | auto call = [&](const auto& type) -> bool { | 640 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 66 | block, result, col_left, col_right); | 643 | 66 | return true; | 644 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 38 | auto call = [&](const auto& type) -> bool { | 640 | 38 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 38 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 38 | block, result, col_left, col_right); | 643 | 38 | return true; | 644 | 38 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 11 | auto call = [&](const auto& type) -> bool { | 640 | 11 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 11 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 11 | block, result, col_left, col_right); | 643 | 11 | return true; | 644 | 11 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 171 | auto call = [&](const auto& type) -> bool { | 640 | 171 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 171 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 171 | block, result, col_left, col_right); | 643 | 171 | return true; | 644 | 171 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 186 | auto call = [&](const auto& type) -> bool { | 640 | 186 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 186 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 186 | block, result, col_left, col_right); | 643 | 186 | return true; | 644 | 186 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 361 | auto call = [&](const auto& type) -> bool { | 640 | 361 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 361 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 361 | block, result, col_left, col_right); | 643 | 361 | return true; | 644 | 361 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 1 | auto call = [&](const auto& type) -> bool { | 640 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1 | block, result, col_left, col_right); | 643 | 1 | return true; | 644 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 7 | auto call = [&](const auto& type) -> bool { | 640 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 7 | block, result, col_left, col_right); | 643 | 7 | return true; | 644 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 90 | auto call = [&](const auto& type) -> bool { | 640 | 90 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 90 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 90 | block, result, col_left, col_right); | 643 | 90 | return true; | 644 | 90 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 81 | auto call = [&](const auto& type) -> bool { | 640 | 81 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 81 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 81 | block, result, col_left, col_right); | 643 | 81 | return true; | 644 | 81 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 6 | auto call = [&](const auto& type) -> bool { | 640 | 6 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 6 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 6 | block, result, col_left, col_right); | 643 | 6 | return true; | 644 | 6 | }; |
|
645 | | |
646 | 2.93k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
647 | 0 | return Status::RuntimeError( |
648 | 0 | "type of left column {} is not equal to type of right column {}", |
649 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
650 | 0 | } |
651 | | |
652 | 2.93k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
654 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
655 | 0 | } |
656 | 2.93k | return Status::OK(); |
657 | 2.93k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.08k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.08k | auto call = [&](const auto& type) -> bool { | 640 | 1.08k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.08k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.08k | block, result, col_left, col_right); | 643 | 1.08k | return true; | 644 | 1.08k | }; | 645 | | | 646 | 1.08k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 1.08k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 1.08k | return Status::OK(); | 657 | 1.08k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 122 | const ColumnWithTypeAndName& col_right) const { | 639 | 122 | auto call = [&](const auto& type) -> bool { | 640 | 122 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 122 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 122 | block, result, col_left, col_right); | 643 | 122 | return true; | 644 | 122 | }; | 645 | | | 646 | 122 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 122 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 122 | return Status::OK(); | 657 | 122 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 701 | const ColumnWithTypeAndName& col_right) const { | 639 | 701 | auto call = [&](const auto& type) -> bool { | 640 | 701 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 701 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 701 | block, result, col_left, col_right); | 643 | 701 | return true; | 644 | 701 | }; | 645 | | | 646 | 701 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 701 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 701 | return Status::OK(); | 657 | 701 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 119 | const ColumnWithTypeAndName& col_right) const { | 639 | 119 | auto call = [&](const auto& type) -> bool { | 640 | 119 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 119 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 119 | block, result, col_left, col_right); | 643 | 119 | return true; | 644 | 119 | }; | 645 | | | 646 | 119 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 119 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 119 | return Status::OK(); | 657 | 119 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 719 | const ColumnWithTypeAndName& col_right) const { | 639 | 719 | auto call = [&](const auto& type) -> bool { | 640 | 719 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 719 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 719 | block, result, col_left, col_right); | 643 | 719 | return true; | 644 | 719 | }; | 645 | | | 646 | 719 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 719 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 719 | return Status::OK(); | 657 | 719 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 184 | const ColumnWithTypeAndName& col_right) const { | 639 | 184 | auto call = [&](const auto& type) -> bool { | 640 | 184 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 184 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 184 | block, result, col_left, col_right); | 643 | 184 | return true; | 644 | 184 | }; | 645 | | | 646 | 184 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 184 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 184 | return Status::OK(); | 657 | 184 | } |
|
658 | | |
659 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
660 | 24.4k | const IColumn* c1) const { |
661 | 24.4k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
662 | 24.4k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
663 | 24.4k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
664 | 24.4k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
665 | 24.4k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
667 | 0 | c0->get_name(), c1->get_name(), name); |
668 | 0 | } |
669 | 24.4k | DCHECK(!(c0_const && c1_const)); |
670 | 24.4k | const ColumnString::Chars* c0_const_chars = nullptr; |
671 | 24.4k | const ColumnString::Chars* c1_const_chars = nullptr; |
672 | 24.4k | ColumnString::Offset c0_const_size = 0; |
673 | 24.4k | ColumnString::Offset c1_const_size = 0; |
674 | | |
675 | 24.4k | if (c0_const) { |
676 | 95 | const ColumnString* c0_const_string = |
677 | 95 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
678 | | |
679 | 95 | if (c0_const_string) { |
680 | 95 | c0_const_chars = &c0_const_string->get_chars(); |
681 | 95 | c0_const_size = c0_const_string->get_offsets()[0]; |
682 | 95 | } else { |
683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
684 | 0 | c0->get_name(), name); |
685 | 0 | } |
686 | 95 | } |
687 | | |
688 | 24.4k | if (c1_const) { |
689 | 23.4k | const ColumnString* c1_const_string = |
690 | 23.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
691 | | |
692 | 23.4k | if (c1_const_string) { |
693 | 23.4k | c1_const_chars = &c1_const_string->get_chars(); |
694 | 23.4k | c1_const_size = c1_const_string->get_offsets()[0]; |
695 | 23.4k | } else { |
696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
697 | 0 | c1->get_name(), name); |
698 | 0 | } |
699 | 23.4k | } |
700 | | |
701 | 24.4k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
702 | | |
703 | 24.4k | auto c_res = ColumnUInt8::create(); |
704 | 24.4k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
705 | 24.4k | vec_res.resize(c0->size()); |
706 | | |
707 | 24.4k | if (c0_string && c1_string) { |
708 | 870 | StringImpl::string_vector_string_vector( |
709 | 870 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
710 | 870 | c1_string->get_offsets(), vec_res); |
711 | 23.5k | } else if (c0_string && c1_const) { |
712 | 23.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
713 | 23.4k | *c1_const_chars, c1_const_size, vec_res); |
714 | 23.4k | } else if (c0_const && c1_string) { |
715 | 95 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
716 | 95 | c1_string->get_chars(), c1_string->get_offsets(), |
717 | 95 | vec_res); |
718 | 18.4E | } else { |
719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
720 | 18.4E | c0->get_name(), c1->get_name(), name); |
721 | 18.4E | } |
722 | 24.4k | block.replace_by_position(result, std::move(c_res)); |
723 | 24.4k | return Status::OK(); |
724 | 24.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 21.9k | const IColumn* c1) const { | 661 | 21.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 21.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 21.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 21.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 21.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 21.9k | DCHECK(!(c0_const && c1_const)); | 670 | 21.9k | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 21.9k | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 21.9k | ColumnString::Offset c0_const_size = 0; | 673 | 21.9k | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 21.9k | if (c0_const) { | 676 | 19 | const ColumnString* c0_const_string = | 677 | 19 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 19 | if (c0_const_string) { | 680 | 19 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 19 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 19 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 19 | } | 687 | | | 688 | 21.9k | if (c1_const) { | 689 | 21.5k | const ColumnString* c1_const_string = | 690 | 21.5k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 21.5k | if (c1_const_string) { | 693 | 21.5k | c1_const_chars = &c1_const_string->get_chars(); | 694 | 21.5k | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 21.5k | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 21.5k | } | 700 | | | 701 | 21.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 21.9k | auto c_res = ColumnUInt8::create(); | 704 | 21.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 21.9k | vec_res.resize(c0->size()); | 706 | | | 707 | 21.9k | if (c0_string && c1_string) { | 708 | 436 | StringImpl::string_vector_string_vector( | 709 | 436 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 436 | c1_string->get_offsets(), vec_res); | 711 | 21.5k | } else if (c0_string && c1_const) { | 712 | 21.5k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 21.5k | *c1_const_chars, c1_const_size, vec_res); | 714 | 21.5k | } else if (c0_const && c1_string) { | 715 | 19 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 19 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 19 | vec_res); | 718 | 18.4E | } else { | 719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 18.4E | c0->get_name(), c1->get_name(), name); | 721 | 18.4E | } | 722 | 21.9k | block.replace_by_position(result, std::move(c_res)); | 723 | 21.9k | return Status::OK(); | 724 | 21.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 153 | const IColumn* c1) const { | 661 | 153 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 153 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 153 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 153 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 153 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 153 | DCHECK(!(c0_const && c1_const)); | 670 | 153 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 153 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 153 | ColumnString::Offset c0_const_size = 0; | 673 | 153 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 153 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 153 | if (c1_const) { | 689 | 138 | const ColumnString* c1_const_string = | 690 | 138 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 138 | if (c1_const_string) { | 693 | 138 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 138 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 138 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 138 | } | 700 | | | 701 | 153 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 153 | auto c_res = ColumnUInt8::create(); | 704 | 153 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 153 | vec_res.resize(c0->size()); | 706 | | | 707 | 153 | if (c0_string && c1_string) { | 708 | 15 | StringImpl::string_vector_string_vector( | 709 | 15 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 15 | c1_string->get_offsets(), vec_res); | 711 | 138 | } else if (c0_string && c1_const) { | 712 | 138 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 138 | *c1_const_chars, c1_const_size, vec_res); | 714 | 138 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 153 | block.replace_by_position(result, std::move(c_res)); | 723 | 153 | return Status::OK(); | 724 | 153 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 204 | const IColumn* c1) const { | 661 | 204 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 204 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 204 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 204 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 204 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 204 | DCHECK(!(c0_const && c1_const)); | 670 | 204 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 204 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 204 | ColumnString::Offset c0_const_size = 0; | 673 | 204 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 204 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 204 | if (c1_const) { | 689 | 202 | const ColumnString* c1_const_string = | 690 | 202 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 202 | if (c1_const_string) { | 693 | 202 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 202 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 202 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 202 | } | 700 | | | 701 | 204 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 204 | auto c_res = ColumnUInt8::create(); | 704 | 204 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 204 | vec_res.resize(c0->size()); | 706 | | | 707 | 204 | if (c0_string && c1_string) { | 708 | 2 | StringImpl::string_vector_string_vector( | 709 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 2 | c1_string->get_offsets(), vec_res); | 711 | 202 | } else if (c0_string && c1_const) { | 712 | 202 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 202 | *c1_const_chars, c1_const_size, vec_res); | 714 | 202 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 204 | block.replace_by_position(result, std::move(c_res)); | 723 | 204 | return Status::OK(); | 724 | 204 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 827 | const IColumn* c1) const { | 661 | 827 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 827 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 827 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 827 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 827 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 827 | DCHECK(!(c0_const && c1_const)); | 670 | 827 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 827 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 827 | ColumnString::Offset c0_const_size = 0; | 673 | 827 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 827 | if (c0_const) { | 676 | 70 | const ColumnString* c0_const_string = | 677 | 70 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 70 | if (c0_const_string) { | 680 | 70 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 70 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 70 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 70 | } | 687 | | | 688 | 827 | if (c1_const) { | 689 | 726 | const ColumnString* c1_const_string = | 690 | 726 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 726 | if (c1_const_string) { | 693 | 726 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 726 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 726 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 726 | } | 700 | | | 701 | 827 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 827 | auto c_res = ColumnUInt8::create(); | 704 | 827 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 827 | vec_res.resize(c0->size()); | 706 | | | 707 | 827 | if (c0_string && c1_string) { | 708 | 31 | StringImpl::string_vector_string_vector( | 709 | 31 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 31 | c1_string->get_offsets(), vec_res); | 711 | 796 | } else if (c0_string && c1_const) { | 712 | 726 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 726 | *c1_const_chars, c1_const_size, vec_res); | 714 | 726 | } else if (c0_const && c1_string) { | 715 | 70 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 70 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 70 | vec_res); | 718 | 70 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 827 | block.replace_by_position(result, std::move(c_res)); | 723 | 827 | return Status::OK(); | 724 | 827 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 500 | const IColumn* c1) const { | 661 | 500 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 500 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 500 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 500 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 500 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 500 | DCHECK(!(c0_const && c1_const)); | 670 | 500 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 500 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 500 | ColumnString::Offset c0_const_size = 0; | 673 | 500 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 500 | if (c0_const) { | 676 | 6 | const ColumnString* c0_const_string = | 677 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 6 | if (c0_const_string) { | 680 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 6 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 6 | } | 687 | | | 688 | 500 | if (c1_const) { | 689 | 108 | const ColumnString* c1_const_string = | 690 | 108 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 108 | if (c1_const_string) { | 693 | 108 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 108 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 108 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 108 | } | 700 | | | 701 | 500 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 500 | auto c_res = ColumnUInt8::create(); | 704 | 500 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 500 | vec_res.resize(c0->size()); | 706 | | | 707 | 500 | if (c0_string && c1_string) { | 708 | 386 | StringImpl::string_vector_string_vector( | 709 | 386 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 386 | c1_string->get_offsets(), vec_res); | 711 | 386 | } else if (c0_string && c1_const) { | 712 | 108 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 108 | *c1_const_chars, c1_const_size, vec_res); | 714 | 108 | } else if (c0_const && c1_string) { | 715 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 6 | vec_res); | 718 | 6 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 500 | block.replace_by_position(result, std::move(c_res)); | 723 | 500 | return Status::OK(); | 724 | 500 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 750 | const IColumn* c1) const { | 661 | 750 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 750 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 750 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 750 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 750 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 750 | DCHECK(!(c0_const && c1_const)); | 670 | 750 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 750 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 750 | ColumnString::Offset c0_const_size = 0; | 673 | 750 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 750 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 750 | if (c1_const) { | 689 | 750 | const ColumnString* c1_const_string = | 690 | 750 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 750 | if (c1_const_string) { | 693 | 750 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 750 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 750 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 750 | } | 700 | | | 701 | 750 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 750 | auto c_res = ColumnUInt8::create(); | 704 | 750 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 750 | vec_res.resize(c0->size()); | 706 | | | 707 | 750 | if (c0_string && c1_string) { | 708 | 0 | StringImpl::string_vector_string_vector( | 709 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 0 | c1_string->get_offsets(), vec_res); | 711 | 750 | } else if (c0_string && c1_const) { | 712 | 750 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 750 | *c1_const_chars, c1_const_size, vec_res); | 714 | 750 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 750 | block.replace_by_position(result, std::move(c_res)); | 723 | 750 | return Status::OK(); | 724 | 750 | } |
|
725 | | |
726 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
727 | 160 | const IColumn* c1) const { |
728 | 160 | bool c0_const = is_column_const(*c0); |
729 | 160 | bool c1_const = is_column_const(*c1); |
730 | | |
731 | 160 | DCHECK(!(c0_const && c1_const)); |
732 | | |
733 | 160 | auto c_res = ColumnUInt8::create(); |
734 | 160 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
735 | 160 | vec_res.resize(c0->size()); |
736 | | |
737 | 160 | if (c0_const) { |
738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
739 | 159 | } else if (c1_const) { |
740 | 135 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
741 | 135 | } else { |
742 | 24 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
743 | 24 | } |
744 | | |
745 | 160 | block.replace_by_position(result, std::move(c_res)); |
746 | 160 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 35 | const IColumn* c1) const { | 728 | 35 | bool c0_const = is_column_const(*c0); | 729 | 35 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 35 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 35 | auto c_res = ColumnUInt8::create(); | 734 | 35 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 35 | vec_res.resize(c0->size()); | 736 | | | 737 | 35 | if (c0_const) { | 738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 34 | } else if (c1_const) { | 740 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 18 | } else { | 742 | 16 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 16 | } | 744 | | | 745 | 35 | block.replace_by_position(result, std::move(c_res)); | 746 | 35 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 10 | const IColumn* c1) const { | 728 | 10 | bool c0_const = is_column_const(*c0); | 729 | 10 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 10 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 10 | auto c_res = ColumnUInt8::create(); | 734 | 10 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 10 | vec_res.resize(c0->size()); | 736 | | | 737 | 10 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 10 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 2 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 2 | } | 744 | | | 745 | 10 | block.replace_by_position(result, std::move(c_res)); | 746 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 9 | const IColumn* c1) const { | 728 | 9 | bool c0_const = is_column_const(*c0); | 729 | 9 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 9 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 9 | auto c_res = ColumnUInt8::create(); | 734 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 9 | vec_res.resize(c0->size()); | 736 | | | 737 | 9 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 9 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 9 | block.replace_by_position(result, std::move(c_res)); | 746 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 43 | const IColumn* c1) const { | 728 | 43 | bool c0_const = is_column_const(*c0); | 729 | 43 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 43 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 43 | auto c_res = ColumnUInt8::create(); | 734 | 43 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 43 | vec_res.resize(c0->size()); | 736 | | | 737 | 43 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 43 | } else if (c1_const) { | 740 | 42 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 42 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 43 | block.replace_by_position(result, std::move(c_res)); | 746 | 43 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 12 | const IColumn* c1) const { | 728 | 12 | bool c0_const = is_column_const(*c0); | 729 | 12 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 12 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 12 | auto c_res = ColumnUInt8::create(); | 734 | 12 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 12 | vec_res.resize(c0->size()); | 736 | | | 737 | 12 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 12 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 4 | } | 744 | | | 745 | 12 | block.replace_by_position(result, std::move(c_res)); | 746 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 51 | const IColumn* c1) const { | 728 | 51 | bool c0_const = is_column_const(*c0); | 729 | 51 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 51 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 51 | auto c_res = ColumnUInt8::create(); | 734 | 51 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 51 | vec_res.resize(c0->size()); | 736 | | | 737 | 51 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 51 | } else if (c1_const) { | 740 | 51 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 51 | } else { | 742 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 0 | } | 744 | | | 745 | 51 | block.replace_by_position(result, std::move(c_res)); | 746 | 51 | } |
|
747 | | |
748 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
749 | 160 | const ColumnWithTypeAndName& c1) const { |
750 | 160 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
751 | 160 | return Status::OK(); |
752 | 160 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 35 | const ColumnWithTypeAndName& c1) const { | 750 | 35 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 35 | return Status::OK(); | 752 | 35 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 10 | const ColumnWithTypeAndName& c1) const { | 750 | 10 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 10 | return Status::OK(); | 752 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 9 | const ColumnWithTypeAndName& c1) const { | 750 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 9 | return Status::OK(); | 752 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 43 | const ColumnWithTypeAndName& c1) const { | 750 | 43 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 43 | return Status::OK(); | 752 | 43 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 12 | const ColumnWithTypeAndName& c1) const { | 750 | 12 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 12 | return Status::OK(); | 752 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 51 | const ColumnWithTypeAndName& c1) const { | 750 | 51 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 51 | return Status::OK(); | 752 | 51 | } |
|
753 | | |
754 | | public: |
755 | 262 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 83 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 41 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 43 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 73 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
|
756 | | |
757 | 287k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 257k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 1.26k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.22k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 8.43k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 757 | 4.04k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 9.57k | size_t get_number_of_arguments() const override { return 2; } |
|
758 | | |
759 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
760 | 3.96k | const VExprSPtrs& arguments) const override { |
761 | 3.96k | auto op = comparison_zonemap_detail::op_from_name(name); |
762 | 3.96k | DORIS_CHECK(op.has_value()); |
763 | 3.96k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
764 | 3.96k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 2.03k | const VExprSPtrs& arguments) const override { | 761 | 2.03k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 2.03k | DORIS_CHECK(op.has_value()); | 763 | 2.03k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 2.03k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 221 | const VExprSPtrs& arguments) const override { | 761 | 221 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 221 | DORIS_CHECK(op.has_value()); | 763 | 221 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 221 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 381 | const VExprSPtrs& arguments) const override { | 761 | 381 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 381 | DORIS_CHECK(op.has_value()); | 763 | 381 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 381 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 433 | const VExprSPtrs& arguments) const override { | 761 | 433 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 433 | DORIS_CHECK(op.has_value()); | 763 | 433 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 433 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 624 | const VExprSPtrs& arguments) const override { | 761 | 624 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 624 | DORIS_CHECK(op.has_value()); | 763 | 624 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 624 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 274 | const VExprSPtrs& arguments) const override { | 761 | 274 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 274 | DORIS_CHECK(op.has_value()); | 763 | 274 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 274 | } |
|
765 | | |
766 | 32.0k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
767 | 32.0k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 32.0k | return comparison_zonemap_detail::can_evaluate(arguments) || |
771 | 32.0k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); |
772 | 32.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 15.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 15.1k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 15.1k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 15.1k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 15.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.49k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.49k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.49k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.49k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.49k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 5.71k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 5.71k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 5.71k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 5.71k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 5.71k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.05k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.05k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.05k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.05k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.05k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.08k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.08k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.08k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.08k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.08k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.57k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.57k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.57k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.57k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.57k | } |
|
773 | | |
774 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
775 | 14 | const VExprSPtrs& arguments) const override { |
776 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
777 | 14 | DORIS_CHECK(op.has_value()); |
778 | 14 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
779 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 4 | const VExprSPtrs& arguments) const override { | 776 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 4 | DORIS_CHECK(op.has_value()); | 778 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 3 | const VExprSPtrs& arguments) const override { | 776 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 3 | DORIS_CHECK(op.has_value()); | 778 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 7 | const VExprSPtrs& arguments) const override { | 776 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 7 | DORIS_CHECK(op.has_value()); | 778 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 7 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
780 | | |
781 | 838 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
782 | 838 | auto op = comparison_zonemap_detail::op_from_name(name); |
783 | 838 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
784 | 838 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 366 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 366 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 366 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 366 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 3 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 3 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 100 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 100 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 100 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 100 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 223 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 9 | } |
|
785 | | |
786 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
787 | 19 | const VExprSPtrs& arguments) const override { |
788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); |
789 | 19 | DORIS_CHECK(op.has_value()); |
790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
791 | 19 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 787 | 19 | const VExprSPtrs& arguments) const override { | 788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); | 789 | 19 | DORIS_CHECK(op.has_value()); | 790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 791 | 19 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
792 | | |
793 | 342 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
794 | 342 | auto op = comparison_zonemap_detail::op_from_name(name); |
795 | 342 | return op == comparison_zonemap_detail::Op::EQ && |
796 | 342 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
797 | 342 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 173 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 173 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 173 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 173 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 173 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 1 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 1 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 1 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 30 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 30 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 30 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 30 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 4 | } |
|
798 | | |
799 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
800 | 287k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
801 | 287k | return std::make_shared<DataTypeUInt8>(); |
802 | 287k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 257k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 257k | return std::make_shared<DataTypeUInt8>(); | 802 | 257k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 1.26k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 1.26k | return std::make_shared<DataTypeUInt8>(); | 802 | 1.26k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.22k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.22k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.22k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 8.43k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 8.43k | return std::make_shared<DataTypeUInt8>(); | 802 | 8.43k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 4.04k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 4.04k | return std::make_shared<DataTypeUInt8>(); | 802 | 4.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 9.59k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 9.59k | return std::make_shared<DataTypeUInt8>(); | 802 | 9.59k | } |
|
803 | | |
804 | | Status evaluate_inverted_index( |
805 | | const ColumnsWithTypeAndName& arguments, |
806 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
807 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
808 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
809 | 1.31k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
810 | 1.31k | DCHECK(arguments.size() == 1); |
811 | 1.31k | DCHECK(data_type_with_names.size() == 1); |
812 | 1.31k | DCHECK(iterators.size() == 1); |
813 | 1.31k | auto* iter = iterators[0]; |
814 | 1.31k | auto data_type_with_name = data_type_with_names[0]; |
815 | 1.31k | if (iter == nullptr) { |
816 | 0 | return Status::OK(); |
817 | 0 | } |
818 | 1.31k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
819 | 304 | return Status::OK(); |
820 | 304 | } |
821 | 1.00k | segment_v2::InvertedIndexQueryType query_type; |
822 | 1.00k | std::string_view name_view(name); |
823 | 1.00k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
824 | 698 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
825 | 698 | } else if (name_view == NameLess::name) { |
826 | 73 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
827 | 237 | } else if (name_view == NameLessOrEquals::name) { |
828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
829 | 156 | } else if (name_view == NameGreater::name) { |
830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
832 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
833 | 18.4E | } else { |
834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
835 | 18.4E | } |
836 | | |
837 | 1.01k | if (segment_v2::is_range_query(query_type) && |
838 | 1.01k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
840 | 133 | return Status::OK(); |
841 | 133 | } |
842 | 879 | Field param_value; |
843 | 879 | arguments[0].column->get(0, param_value); |
844 | 879 | if (param_value.is_null()) { |
845 | 2 | return Status::OK(); |
846 | 2 | } |
847 | 877 | segment_v2::InvertedIndexParam param; |
848 | 877 | param.column_name = data_type_with_name.first; |
849 | 877 | param.column_type = data_type_with_name.second; |
850 | 877 | param.query_value = param_value; |
851 | 877 | param.query_type = query_type; |
852 | 877 | param.num_rows = num_rows; |
853 | 877 | param.roaring = std::make_shared<roaring::Roaring>(); |
854 | 877 | param.analyzer_ctx = analyzer_ctx; |
855 | 877 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
856 | 731 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
857 | 731 | if (iter->has_null()) { |
858 | 729 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
859 | 729 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
860 | 729 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
861 | 729 | } |
862 | 731 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
863 | 731 | bitmap_result = result; |
864 | 731 | bitmap_result.mask_out_null(); |
865 | | |
866 | 731 | if (name_view == NameNotEquals::name) { |
867 | 57 | roaring::Roaring full_result; |
868 | 57 | full_result.addRange(0, num_rows); |
869 | 57 | bitmap_result.op_not(&full_result); |
870 | 57 | } |
871 | | |
872 | 731 | return Status::OK(); |
873 | 731 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 663 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 663 | DCHECK(arguments.size() == 1); | 811 | 663 | DCHECK(data_type_with_names.size() == 1); | 812 | 663 | DCHECK(iterators.size() == 1); | 813 | 663 | auto* iter = iterators[0]; | 814 | 663 | auto data_type_with_name = data_type_with_names[0]; | 815 | 663 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 663 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 33 | return Status::OK(); | 820 | 33 | } | 821 | 630 | segment_v2::InvertedIndexQueryType query_type; | 822 | 630 | std::string_view name_view(name); | 823 | 633 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 633 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 18.4E | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 18.4E | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 633 | if (segment_v2::is_range_query(query_type) && | 838 | 633 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 633 | Field param_value; | 843 | 633 | arguments[0].column->get(0, param_value); | 844 | 633 | if (param_value.is_null()) { | 845 | 2 | return Status::OK(); | 846 | 2 | } | 847 | 631 | segment_v2::InvertedIndexParam param; | 848 | 631 | param.column_name = data_type_with_name.first; | 849 | 631 | param.column_type = data_type_with_name.second; | 850 | 631 | param.query_value = param_value; | 851 | 631 | param.query_type = query_type; | 852 | 631 | param.num_rows = num_rows; | 853 | 631 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 631 | param.analyzer_ctx = analyzer_ctx; | 855 | 631 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 592 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 592 | if (iter->has_null()) { | 858 | 590 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 590 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 590 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 590 | } | 862 | 592 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 592 | bitmap_result = result; | 864 | 592 | bitmap_result.mask_out_null(); | 865 | | | 866 | 592 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 592 | return Status::OK(); | 873 | 592 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 74 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 74 | DCHECK(arguments.size() == 1); | 811 | 74 | DCHECK(data_type_with_names.size() == 1); | 812 | 74 | DCHECK(iterators.size() == 1); | 813 | 74 | auto* iter = iterators[0]; | 814 | 74 | auto data_type_with_name = data_type_with_names[0]; | 815 | 74 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 74 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 10 | return Status::OK(); | 820 | 10 | } | 821 | 64 | segment_v2::InvertedIndexQueryType query_type; | 822 | 64 | std::string_view name_view(name); | 823 | 65 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 65 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 18.4E | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 18.4E | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 65 | if (segment_v2::is_range_query(query_type) && | 838 | 65 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 65 | Field param_value; | 843 | 65 | arguments[0].column->get(0, param_value); | 844 | 65 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 65 | segment_v2::InvertedIndexParam param; | 848 | 65 | param.column_name = data_type_with_name.first; | 849 | 65 | param.column_type = data_type_with_name.second; | 850 | 65 | param.query_value = param_value; | 851 | 65 | param.query_type = query_type; | 852 | 65 | param.num_rows = num_rows; | 853 | 65 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 65 | param.analyzer_ctx = analyzer_ctx; | 855 | 65 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 58 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 58 | if (iter->has_null()) { | 858 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 58 | } | 862 | 58 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 58 | bitmap_result = result; | 864 | 58 | bitmap_result.mask_out_null(); | 865 | | | 866 | 58 | if (name_view == NameNotEquals::name) { | 867 | 57 | roaring::Roaring full_result; | 868 | 57 | full_result.addRange(0, num_rows); | 869 | 57 | bitmap_result.op_not(&full_result); | 870 | 57 | } | 871 | | | 872 | 58 | return Status::OK(); | 873 | 58 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 105 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 105 | DCHECK(arguments.size() == 1); | 811 | 105 | DCHECK(data_type_with_names.size() == 1); | 812 | 105 | DCHECK(iterators.size() == 1); | 813 | 105 | auto* iter = iterators[0]; | 814 | 105 | auto data_type_with_name = data_type_with_names[0]; | 815 | 105 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 105 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 39 | return Status::OK(); | 820 | 39 | } | 821 | 66 | segment_v2::InvertedIndexQueryType query_type; | 822 | 66 | std::string_view name_view(name); | 823 | 67 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 66 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 66 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 67 | } else if (name_view == NameGreater::name) { | 830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 67 | if (segment_v2::is_range_query(query_type) && | 838 | 67 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 17 | return Status::OK(); | 841 | 17 | } | 842 | 50 | Field param_value; | 843 | 50 | arguments[0].column->get(0, param_value); | 844 | 50 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 50 | segment_v2::InvertedIndexParam param; | 848 | 50 | param.column_name = data_type_with_name.first; | 849 | 50 | param.column_type = data_type_with_name.second; | 850 | 50 | param.query_value = param_value; | 851 | 50 | param.query_type = query_type; | 852 | 50 | param.num_rows = num_rows; | 853 | 50 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 50 | param.analyzer_ctx = analyzer_ctx; | 855 | 50 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 31 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 31 | if (iter->has_null()) { | 858 | 31 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 31 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 31 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 31 | } | 862 | 31 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 31 | bitmap_result = result; | 864 | 31 | bitmap_result.mask_out_null(); | 865 | | | 866 | 31 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 31 | return Status::OK(); | 873 | 31 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 179 | DCHECK(arguments.size() == 1); | 811 | 179 | DCHECK(data_type_with_names.size() == 1); | 812 | 179 | DCHECK(iterators.size() == 1); | 813 | 179 | auto* iter = iterators[0]; | 814 | 179 | auto data_type_with_name = data_type_with_names[0]; | 815 | 179 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 86 | return Status::OK(); | 820 | 86 | } | 821 | 93 | segment_v2::InvertedIndexQueryType query_type; | 822 | 93 | std::string_view name_view(name); | 823 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 93 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 93 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 93 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 93 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 93 | if (segment_v2::is_range_query(query_type) && | 838 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 47 | return Status::OK(); | 841 | 47 | } | 842 | 46 | Field param_value; | 843 | 46 | arguments[0].column->get(0, param_value); | 844 | 46 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 46 | segment_v2::InvertedIndexParam param; | 848 | 46 | param.column_name = data_type_with_name.first; | 849 | 46 | param.column_type = data_type_with_name.second; | 850 | 46 | param.query_value = param_value; | 851 | 46 | param.query_type = query_type; | 852 | 46 | param.num_rows = num_rows; | 853 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 46 | param.analyzer_ctx = analyzer_ctx; | 855 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 5 | if (iter->has_null()) { | 858 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 5 | } | 862 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 5 | bitmap_result = result; | 864 | 5 | bitmap_result.mask_out_null(); | 865 | | | 866 | 5 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 5 | return Status::OK(); | 873 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 116 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 116 | DCHECK(arguments.size() == 1); | 811 | 116 | DCHECK(data_type_with_names.size() == 1); | 812 | 116 | DCHECK(iterators.size() == 1); | 813 | 116 | auto* iter = iterators[0]; | 814 | 116 | auto data_type_with_name = data_type_with_names[0]; | 815 | 116 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 116 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 43 | return Status::OK(); | 820 | 43 | } | 821 | 73 | segment_v2::InvertedIndexQueryType query_type; | 822 | 73 | std::string_view name_view(name); | 823 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 73 | } else if (name_view == NameLess::name) { | 826 | 73 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 73 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 73 | if (segment_v2::is_range_query(query_type) && | 838 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 18 | return Status::OK(); | 841 | 18 | } | 842 | 55 | Field param_value; | 843 | 55 | arguments[0].column->get(0, param_value); | 844 | 55 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 55 | segment_v2::InvertedIndexParam param; | 848 | 55 | param.column_name = data_type_with_name.first; | 849 | 55 | param.column_type = data_type_with_name.second; | 850 | 55 | param.query_value = param_value; | 851 | 55 | param.query_type = query_type; | 852 | 55 | param.num_rows = num_rows; | 853 | 55 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 55 | param.analyzer_ctx = analyzer_ctx; | 855 | 55 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 36 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 36 | if (iter->has_null()) { | 858 | 36 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 36 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 36 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 36 | } | 862 | 36 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 36 | bitmap_result = result; | 864 | 36 | bitmap_result.mask_out_null(); | 865 | | | 866 | 36 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 36 | return Status::OK(); | 873 | 36 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 175 | DCHECK(arguments.size() == 1); | 811 | 175 | DCHECK(data_type_with_names.size() == 1); | 812 | 175 | DCHECK(iterators.size() == 1); | 813 | 175 | auto* iter = iterators[0]; | 814 | 175 | auto data_type_with_name = data_type_with_names[0]; | 815 | 175 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 93 | return Status::OK(); | 820 | 93 | } | 821 | 82 | segment_v2::InvertedIndexQueryType query_type; | 822 | 82 | std::string_view name_view(name); | 823 | 82 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 82 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 82 | } else if (name_view == NameLessOrEquals::name) { | 828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 81 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 1 | } else { | 834 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 1 | } | 836 | | | 837 | 81 | if (segment_v2::is_range_query(query_type) && | 838 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 51 | return Status::OK(); | 841 | 51 | } | 842 | 30 | Field param_value; | 843 | 30 | arguments[0].column->get(0, param_value); | 844 | 30 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 30 | segment_v2::InvertedIndexParam param; | 848 | 30 | param.column_name = data_type_with_name.first; | 849 | 30 | param.column_type = data_type_with_name.second; | 850 | 30 | param.query_value = param_value; | 851 | 30 | param.query_type = query_type; | 852 | 30 | param.num_rows = num_rows; | 853 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 30 | param.analyzer_ctx = analyzer_ctx; | 855 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 9 | if (iter->has_null()) { | 858 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 9 | } | 862 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 9 | bitmap_result = result; | 864 | 9 | bitmap_result.mask_out_null(); | 865 | | | 866 | 9 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 9 | return Status::OK(); | 873 | 9 | } |
|
874 | | |
875 | | // NOLINTNEXTLINE(readability-function-size) |
876 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
877 | 95.1k | uint32_t result, size_t input_rows_count) const override { |
878 | 95.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
879 | 95.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
880 | | |
881 | 95.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
882 | 95.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
883 | 95.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
884 | 95.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
885 | | |
886 | 95.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
887 | 95.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
888 | | |
889 | | /// The case when arguments are the same (tautological comparison). Return constant. |
890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
892 | 95.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
893 | 95.1k | col_left_untyped == col_right_untyped) { |
894 | | /// Always true: =, <=, >= |
895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
899 | 6 | block.get_by_position(result).column = |
900 | 6 | DataTypeUInt8() |
901 | 6 | .create_column_const(input_rows_count, |
902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) |
903 | 6 | ->convert_to_full_column_if_const(); |
904 | 6 | return Status::OK(); |
905 | 6 | } else { |
906 | 0 | block.get_by_position(result).column = |
907 | 0 | DataTypeUInt8() |
908 | 0 | .create_column_const(input_rows_count, |
909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
910 | 0 | ->convert_to_full_column_if_const(); |
911 | 0 | return Status::OK(); |
912 | 0 | } |
913 | 6 | } |
914 | | |
915 | 157k | auto can_compare = [](PrimitiveType t) -> bool { |
916 | 157k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
917 | 157k | is_timestamp_ns_type(t) || is_timestamptz_type(t); |
918 | 157k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 61.3k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 61.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 61.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 61.3k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 4.62k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 4.62k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.62k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.62k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 46.5k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 46.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 46.5k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 46.5k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 7.14k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 7.14k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 7.14k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 7.14k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 20.8k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 20.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 20.8k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 20.8k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 17.3k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 17.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 17.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 17.3k | }; |
|
919 | | |
920 | 95.1k | if (can_compare(left_type->get_primitive_type()) && |
921 | 95.1k | can_compare(right_type->get_primitive_type())) { |
922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
923 | 62.8k | if (!left_type->equals_ignore_precision(*right_type)) { |
924 | 70 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
925 | 70 | get_name(), left_type->get_name(), |
926 | 70 | right_type->get_name()); |
927 | 70 | } |
928 | 62.8k | } |
929 | | |
930 | 95.0k | auto compare_type = left_type->get_primitive_type(); |
931 | 95.0k | switch (compare_type) { |
932 | 224 | case TYPE_BOOLEAN: |
933 | 224 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
934 | 4.70k | case TYPE_DATEV2: |
935 | 4.70k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
936 | 873 | case TYPE_DATETIMEV2: |
937 | 873 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
938 | 905 | case TYPE_TIMESTAMP_NS: |
939 | 905 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
940 | 22 | case TYPE_TIMESTAMPTZ: |
941 | 22 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
942 | 10.3k | case TYPE_TINYINT: |
943 | 10.3k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
944 | 3.04k | case TYPE_SMALLINT: |
945 | 3.04k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
946 | 26.6k | case TYPE_INT: |
947 | 26.6k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
948 | 11.5k | case TYPE_BIGINT: |
949 | 11.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
950 | 676 | case TYPE_LARGEINT: |
951 | 676 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
952 | 34 | case TYPE_IPV4: |
953 | 34 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
954 | 33 | case TYPE_IPV6: |
955 | 33 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
956 | 4.86k | case TYPE_UUID: |
957 | 4.86k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
958 | 717 | case TYPE_FLOAT: |
959 | 717 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
960 | 2.81k | case TYPE_DOUBLE: |
961 | 2.81k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
962 | 52 | case TYPE_TIMEV2: |
963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
964 | 0 | case TYPE_DECIMALV2: |
965 | 303 | case TYPE_DECIMAL32: |
966 | 886 | case TYPE_DECIMAL64: |
967 | 2.86k | case TYPE_DECIMAL128I: |
968 | 2.93k | case TYPE_DECIMAL256: |
969 | 2.93k | return execute_decimal(block, result, col_with_type_and_name_left, |
970 | 2.93k | col_with_type_and_name_right); |
971 | 843 | case TYPE_CHAR: |
972 | 9.32k | case TYPE_VARCHAR: |
973 | 24.4k | case TYPE_STRING: |
974 | 24.4k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
975 | 160 | default: |
976 | 160 | return execute_generic(block, result, col_with_type_and_name_left, |
977 | 160 | col_with_type_and_name_right); |
978 | 95.0k | } |
979 | 0 | return Status::OK(); |
980 | 95.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 43.6k | uint32_t result, size_t input_rows_count) const override { | 878 | 43.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 43.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 43.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 43.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 43.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 43.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 43.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 43.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 43.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 43.6k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 6 | block.get_by_position(result).column = | 900 | 6 | DataTypeUInt8() | 901 | 6 | .create_column_const(input_rows_count, | 902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 6 | ->convert_to_full_column_if_const(); | 904 | 6 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 6 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 43.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 43.6k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 43.6k | }; | 919 | | | 920 | 43.6k | if (can_compare(left_type->get_primitive_type()) && | 921 | 43.6k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 17.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 20 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 20 | get_name(), left_type->get_name(), | 926 | 20 | right_type->get_name()); | 927 | 20 | } | 928 | 17.7k | } | 929 | | | 930 | 43.6k | auto compare_type = left_type->get_primitive_type(); | 931 | 43.6k | switch (compare_type) { | 932 | 100 | case TYPE_BOOLEAN: | 933 | 100 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 517 | case TYPE_DATEV2: | 935 | 517 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 384 | case TYPE_DATETIMEV2: | 937 | 384 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 200 | case TYPE_TIMESTAMP_NS: | 939 | 200 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 13 | case TYPE_TIMESTAMPTZ: | 941 | 13 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 6.03k | case TYPE_TINYINT: | 943 | 6.03k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 444 | case TYPE_SMALLINT: | 945 | 444 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 3.17k | case TYPE_INT: | 947 | 3.17k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 5.94k | case TYPE_BIGINT: | 949 | 5.94k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 88 | case TYPE_LARGEINT: | 951 | 88 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 12 | case TYPE_IPV4: | 953 | 12 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 16 | case TYPE_IPV6: | 955 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 2.79k | case TYPE_UUID: | 957 | 2.79k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 70 | case TYPE_FLOAT: | 959 | 70 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 705 | case TYPE_DOUBLE: | 961 | 705 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 52 | case TYPE_TIMEV2: | 963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 113 | case TYPE_DECIMAL32: | 966 | 223 | case TYPE_DECIMAL64: | 967 | 1.06k | case TYPE_DECIMAL128I: | 968 | 1.08k | case TYPE_DECIMAL256: | 969 | 1.08k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.08k | col_with_type_and_name_right); | 971 | 598 | case TYPE_CHAR: | 972 | 7.54k | case TYPE_VARCHAR: | 973 | 21.9k | case TYPE_STRING: | 974 | 21.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 35 | default: | 976 | 35 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 35 | col_with_type_and_name_right); | 978 | 43.6k | } | 979 | 0 | return Status::OK(); | 980 | 43.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 2.45k | uint32_t result, size_t input_rows_count) const override { | 878 | 2.45k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 2.45k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 2.45k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 2.45k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 2.45k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 2.45k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 2.45k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 2.45k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 2.45k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 2.45k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 2.45k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 2.45k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 2.45k | }; | 919 | | | 920 | 2.45k | if (can_compare(left_type->get_primitive_type()) && | 921 | 2.45k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 2.17k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 2.17k | } | 929 | | | 930 | 2.44k | auto compare_type = left_type->get_primitive_type(); | 931 | 2.44k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 70 | case TYPE_DATEV2: | 935 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 0 | case TYPE_DATETIMEV2: | 937 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 11 | case TYPE_TIMESTAMP_NS: | 939 | 11 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 0 | case TYPE_TIMESTAMPTZ: | 941 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 84 | case TYPE_TINYINT: | 943 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 0 | case TYPE_SMALLINT: | 945 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.07k | case TYPE_INT: | 947 | 1.07k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 809 | case TYPE_BIGINT: | 949 | 809 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 0 | case TYPE_LARGEINT: | 951 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 0 | case TYPE_UUID: | 957 | 0 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 48 | case TYPE_FLOAT: | 959 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 63 | case TYPE_DOUBLE: | 961 | 63 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 0 | case TYPE_DECIMAL32: | 966 | 64 | case TYPE_DECIMAL64: | 967 | 92 | case TYPE_DECIMAL128I: | 968 | 122 | case TYPE_DECIMAL256: | 969 | 122 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 122 | col_with_type_and_name_right); | 971 | 1 | case TYPE_CHAR: | 972 | 56 | case TYPE_VARCHAR: | 973 | 153 | case TYPE_STRING: | 974 | 153 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 10 | default: | 976 | 10 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 10 | col_with_type_and_name_right); | 978 | 2.44k | } | 979 | 0 | return Status::OK(); | 980 | 2.44k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 24.0k | uint32_t result, size_t input_rows_count) const override { | 878 | 24.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 24.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 24.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 24.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 24.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 24.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 24.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 24.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 24.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 24.0k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 24.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 24.0k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 24.0k | }; | 919 | | | 920 | 24.0k | if (can_compare(left_type->get_primitive_type()) && | 921 | 24.0k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 22.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 22.5k | } | 929 | | | 930 | 24.0k | auto compare_type = left_type->get_primitive_type(); | 931 | 24.0k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 1.02k | case TYPE_DATEV2: | 935 | 1.02k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 3 | case TYPE_DATETIMEV2: | 937 | 3 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 72 | case TYPE_TIMESTAMP_NS: | 939 | 72 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 1.72k | case TYPE_TINYINT: | 943 | 1.72k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 2.34k | case TYPE_SMALLINT: | 945 | 2.34k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 13.6k | case TYPE_INT: | 947 | 13.6k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 2.42k | case TYPE_BIGINT: | 949 | 2.42k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 250 | case TYPE_LARGEINT: | 951 | 250 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 4 | case TYPE_IPV4: | 953 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 611 | case TYPE_UUID: | 957 | 611 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 419 | case TYPE_FLOAT: | 959 | 419 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 604 | case TYPE_DOUBLE: | 961 | 604 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 8 | case TYPE_DECIMAL32: | 966 | 75 | case TYPE_DECIMAL64: | 967 | 699 | case TYPE_DECIMAL128I: | 968 | 701 | case TYPE_DECIMAL256: | 969 | 701 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 701 | col_with_type_and_name_right); | 971 | 14 | case TYPE_CHAR: | 972 | 102 | case TYPE_VARCHAR: | 973 | 204 | case TYPE_STRING: | 974 | 204 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 9 | default: | 976 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 9 | col_with_type_and_name_right); | 978 | 24.0k | } | 979 | 0 | return Status::OK(); | 980 | 24.0k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 4.33k | uint32_t result, size_t input_rows_count) const override { | 878 | 4.33k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 4.33k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 4.33k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 4.33k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 4.33k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 4.33k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 4.33k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 4.33k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 4.33k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 4.33k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 4.33k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.33k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.33k | }; | 919 | | | 920 | 4.33k | if (can_compare(left_type->get_primitive_type()) && | 921 | 4.33k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 2.81k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 2.81k | } | 929 | | | 930 | 4.32k | auto compare_type = left_type->get_primitive_type(); | 931 | 4.32k | switch (compare_type) { | 932 | 22 | case TYPE_BOOLEAN: | 933 | 22 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 489 | case TYPE_DATEV2: | 935 | 489 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 119 | case TYPE_DATETIMEV2: | 937 | 119 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 407 | case TYPE_TIMESTAMP_NS: | 939 | 407 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 38 | case TYPE_TINYINT: | 943 | 38 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 31 | case TYPE_SMALLINT: | 945 | 31 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 674 | case TYPE_INT: | 947 | 674 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 792 | case TYPE_BIGINT: | 949 | 792 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 20 | case TYPE_LARGEINT: | 951 | 20 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 1 | case TYPE_IPV4: | 953 | 1 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 577 | case TYPE_UUID: | 957 | 577 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 30 | case TYPE_FLOAT: | 959 | 30 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 132 | case TYPE_DOUBLE: | 961 | 132 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 4 | case TYPE_DECIMAL32: | 966 | 70 | case TYPE_DECIMAL64: | 967 | 108 | case TYPE_DECIMAL128I: | 968 | 119 | case TYPE_DECIMAL256: | 969 | 119 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 119 | col_with_type_and_name_right); | 971 | 27 | case TYPE_CHAR: | 972 | 665 | case TYPE_VARCHAR: | 973 | 827 | case TYPE_STRING: | 974 | 827 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 43 | default: | 976 | 43 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 43 | col_with_type_and_name_right); | 978 | 4.32k | } | 979 | 0 | return Status::OK(); | 980 | 4.32k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 11.2k | uint32_t result, size_t input_rows_count) const override { | 878 | 11.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 11.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 11.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 11.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 11.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 11.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 11.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 11.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 11.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 11.2k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 11.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 11.2k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 11.2k | }; | 919 | | | 920 | 11.2k | if (can_compare(left_type->get_primitive_type()) && | 921 | 11.2k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 9.60k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 9.60k | } | 929 | | | 930 | 11.2k | auto compare_type = left_type->get_primitive_type(); | 931 | 11.2k | switch (compare_type) { | 932 | 90 | case TYPE_BOOLEAN: | 933 | 90 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 2.06k | case TYPE_DATEV2: | 935 | 2.06k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 298 | case TYPE_DATETIMEV2: | 937 | 298 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 151 | case TYPE_TIMESTAMP_NS: | 939 | 151 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 3 | case TYPE_TIMESTAMPTZ: | 941 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 2.40k | case TYPE_TINYINT: | 943 | 2.40k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 174 | case TYPE_SMALLINT: | 945 | 174 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.87k | case TYPE_INT: | 947 | 1.87k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 886 | case TYPE_BIGINT: | 949 | 886 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 288 | case TYPE_LARGEINT: | 951 | 288 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 17 | case TYPE_IPV4: | 953 | 17 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 15 | case TYPE_IPV6: | 955 | 15 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 457 | case TYPE_UUID: | 957 | 457 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 130 | case TYPE_FLOAT: | 959 | 130 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 1.20k | case TYPE_DOUBLE: | 961 | 1.20k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 171 | case TYPE_DECIMAL32: | 966 | 357 | case TYPE_DECIMAL64: | 967 | 718 | case TYPE_DECIMAL128I: | 968 | 719 | case TYPE_DECIMAL256: | 969 | 719 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 719 | col_with_type_and_name_right); | 971 | 172 | case TYPE_CHAR: | 972 | 361 | case TYPE_VARCHAR: | 973 | 500 | case TYPE_STRING: | 974 | 500 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 12 | default: | 976 | 12 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 12 | col_with_type_and_name_right); | 978 | 11.2k | } | 979 | 0 | return Status::OK(); | 980 | 11.2k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 9.34k | uint32_t result, size_t input_rows_count) const override { | 878 | 9.34k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 9.34k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 9.34k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 9.34k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 9.34k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 9.34k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 9.34k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 9.34k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 9.34k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 9.34k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 9.34k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 9.34k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 9.34k | }; | 919 | | | 920 | 9.34k | if (can_compare(left_type->get_primitive_type()) && | 921 | 9.34k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 8.00k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 8.00k | } | 929 | | | 930 | 9.33k | auto compare_type = left_type->get_primitive_type(); | 931 | 9.33k | switch (compare_type) { | 932 | 12 | case TYPE_BOOLEAN: | 933 | 12 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 546 | case TYPE_DATEV2: | 935 | 546 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 69 | case TYPE_DATETIMEV2: | 937 | 69 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 64 | case TYPE_TIMESTAMP_NS: | 939 | 64 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 53 | case TYPE_TINYINT: | 943 | 53 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 51 | case TYPE_SMALLINT: | 945 | 51 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 6.23k | case TYPE_INT: | 947 | 6.23k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 733 | case TYPE_BIGINT: | 949 | 733 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 30 | case TYPE_LARGEINT: | 951 | 30 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 417 | case TYPE_UUID: | 957 | 417 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 20 | case TYPE_FLOAT: | 959 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 111 | case TYPE_DOUBLE: | 961 | 111 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 7 | case TYPE_DECIMAL32: | 966 | 97 | case TYPE_DECIMAL64: | 967 | 178 | case TYPE_DECIMAL128I: | 968 | 184 | case TYPE_DECIMAL256: | 969 | 184 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 184 | col_with_type_and_name_right); | 971 | 31 | case TYPE_CHAR: | 972 | 596 | case TYPE_VARCHAR: | 973 | 750 | case TYPE_STRING: | 974 | 750 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 51 | default: | 976 | 51 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 51 | col_with_type_and_name_right); | 978 | 9.33k | } | 979 | 0 | return Status::OK(); | 980 | 9.33k | } |
|
981 | | }; |
982 | | |
983 | | } // namespace doris |