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 <limits> |
24 | | #include <type_traits> |
25 | | |
26 | | #include "common/logging.h" |
27 | | #include "core/accurate_comparison.h" |
28 | | #include "core/assert_cast.h" |
29 | | #include "core/column/column_const.h" |
30 | | #include "core/column/column_decimal.h" |
31 | | #include "core/column/column_nullable.h" |
32 | | #include "core/column/column_string.h" |
33 | | #include "core/data_type/data_type_number.h" |
34 | | #include "core/data_type/data_type_string.h" |
35 | | #include "core/data_type/define_primitive_type.h" |
36 | | #include "core/decimal_comparison.h" |
37 | | #include "core/field.h" |
38 | | #include "core/memcmp_small.h" |
39 | | #include "core/value/vdatetime_value.h" |
40 | | #include "exprs/function/function.h" |
41 | | #include "exprs/function/function_helpers.h" |
42 | | #include "exprs/function/functions_logical.h" |
43 | | #include "storage/index/index_reader_helper.h" |
44 | | |
45 | | namespace doris { |
46 | | |
47 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
48 | | * The comparison functions always return 0 or 1 (UInt8). |
49 | | * |
50 | | * You can compare the following types: |
51 | | * - numbers and decimals; |
52 | | * - strings and fixed strings; |
53 | | * - dates; |
54 | | * - datetimes; |
55 | | * within each group, but not from different groups; |
56 | | * - tuples (lexicographic comparison). |
57 | | * |
58 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
59 | | */ |
60 | | |
61 | | template <typename A, typename B, typename Op> |
62 | | struct NumComparisonImpl { |
63 | | /// 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. |
64 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
65 | 11.4k | PaddedPODArray<UInt8>& c) { |
66 | 11.4k | size_t size = a.size(); |
67 | 11.4k | const A* __restrict a_pos = a.data(); |
68 | 11.4k | const B* __restrict b_pos = b.data(); |
69 | 11.4k | UInt8* __restrict c_pos = c.data(); |
70 | 11.4k | const A* __restrict a_end = a_pos + size; |
71 | | |
72 | 11.2M | while (a_pos < a_end) { |
73 | 11.2M | *c_pos = Op::apply(*a_pos, *b_pos); |
74 | 11.2M | ++a_pos; |
75 | 11.2M | ++b_pos; |
76 | 11.2M | ++c_pos; |
77 | 11.2M | } |
78 | 11.4k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 76 | PaddedPODArray<UInt8>& c) { | 66 | 76 | size_t size = a.size(); | 67 | 76 | const A* __restrict a_pos = a.data(); | 68 | 76 | const B* __restrict b_pos = b.data(); | 69 | 76 | UInt8* __restrict c_pos = c.data(); | 70 | 76 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 152 | while (a_pos < a_end) { | 73 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 76 | ++a_pos; | 75 | 76 | ++b_pos; | 76 | 76 | ++c_pos; | 77 | 76 | } | 78 | 76 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 243 | PaddedPODArray<UInt8>& c) { | 66 | 243 | size_t size = a.size(); | 67 | 243 | const A* __restrict a_pos = a.data(); | 68 | 243 | const B* __restrict b_pos = b.data(); | 69 | 243 | UInt8* __restrict c_pos = c.data(); | 70 | 243 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 492 | while (a_pos < a_end) { | 73 | 249 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 249 | ++a_pos; | 75 | 249 | ++b_pos; | 76 | 249 | ++c_pos; | 77 | 249 | } | 78 | 243 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 299 | PaddedPODArray<UInt8>& c) { | 66 | 299 | size_t size = a.size(); | 67 | 299 | const A* __restrict a_pos = a.data(); | 68 | 299 | const B* __restrict b_pos = b.data(); | 69 | 299 | UInt8* __restrict c_pos = c.data(); | 70 | 299 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 616 | while (a_pos < a_end) { | 73 | 317 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 317 | ++a_pos; | 75 | 317 | ++b_pos; | 76 | 317 | ++c_pos; | 77 | 317 | } | 78 | 299 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 3 | PaddedPODArray<UInt8>& c) { | 66 | 3 | size_t size = a.size(); | 67 | 3 | const A* __restrict a_pos = a.data(); | 68 | 3 | const B* __restrict b_pos = b.data(); | 69 | 3 | UInt8* __restrict c_pos = c.data(); | 70 | 3 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 13 | while (a_pos < a_end) { | 73 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 10 | ++a_pos; | 75 | 10 | ++b_pos; | 76 | 10 | ++c_pos; | 77 | 10 | } | 78 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 614 | PaddedPODArray<UInt8>& c) { | 66 | 614 | size_t size = a.size(); | 67 | 614 | const A* __restrict a_pos = a.data(); | 68 | 614 | const B* __restrict b_pos = b.data(); | 69 | 614 | UInt8* __restrict c_pos = c.data(); | 70 | 614 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.96k | while (a_pos < a_end) { | 73 | 4.34k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.34k | ++a_pos; | 75 | 4.34k | ++b_pos; | 76 | 4.34k | ++c_pos; | 77 | 4.34k | } | 78 | 614 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 126 | PaddedPODArray<UInt8>& c) { | 66 | 126 | size_t size = a.size(); | 67 | 126 | const A* __restrict a_pos = a.data(); | 68 | 126 | const B* __restrict b_pos = b.data(); | 69 | 126 | UInt8* __restrict c_pos = c.data(); | 70 | 126 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 567 | while (a_pos < a_end) { | 73 | 441 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 441 | ++a_pos; | 75 | 441 | ++b_pos; | 76 | 441 | ++c_pos; | 77 | 441 | } | 78 | 126 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 378 | PaddedPODArray<UInt8>& c) { | 66 | 378 | size_t size = a.size(); | 67 | 378 | const A* __restrict a_pos = a.data(); | 68 | 378 | const B* __restrict b_pos = b.data(); | 69 | 378 | UInt8* __restrict c_pos = c.data(); | 70 | 378 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 132k | while (a_pos < a_end) { | 73 | 132k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 132k | ++a_pos; | 75 | 132k | ++b_pos; | 76 | 132k | ++c_pos; | 77 | 132k | } | 78 | 378 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 354 | PaddedPODArray<UInt8>& c) { | 66 | 354 | size_t size = a.size(); | 67 | 354 | const A* __restrict a_pos = a.data(); | 68 | 354 | const B* __restrict b_pos = b.data(); | 69 | 354 | UInt8* __restrict c_pos = c.data(); | 70 | 354 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 12.2k | while (a_pos < a_end) { | 73 | 11.8k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 11.8k | ++a_pos; | 75 | 11.8k | ++b_pos; | 76 | 11.8k | ++c_pos; | 77 | 11.8k | } | 78 | 354 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 100 | PaddedPODArray<UInt8>& c) { | 66 | 100 | size_t size = a.size(); | 67 | 100 | const A* __restrict a_pos = a.data(); | 68 | 100 | const B* __restrict b_pos = b.data(); | 69 | 100 | UInt8* __restrict c_pos = c.data(); | 70 | 100 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 213 | while (a_pos < a_end) { | 73 | 113 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 113 | ++a_pos; | 75 | 113 | ++b_pos; | 76 | 113 | ++c_pos; | 77 | 113 | } | 78 | 100 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 24 | PaddedPODArray<UInt8>& c) { | 66 | 24 | size_t size = a.size(); | 67 | 24 | const A* __restrict a_pos = a.data(); | 68 | 24 | const B* __restrict b_pos = b.data(); | 69 | 24 | UInt8* __restrict c_pos = c.data(); | 70 | 24 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 48 | while (a_pos < a_end) { | 73 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 24 | ++a_pos; | 75 | 24 | ++b_pos; | 76 | 24 | ++c_pos; | 77 | 24 | } | 78 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 115 | PaddedPODArray<UInt8>& c) { | 66 | 115 | size_t size = a.size(); | 67 | 115 | const A* __restrict a_pos = a.data(); | 68 | 115 | const B* __restrict b_pos = b.data(); | 69 | 115 | UInt8* __restrict c_pos = c.data(); | 70 | 115 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 249 | while (a_pos < a_end) { | 73 | 134 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 134 | ++a_pos; | 75 | 134 | ++b_pos; | 76 | 134 | ++c_pos; | 77 | 134 | } | 78 | 115 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 104 | PaddedPODArray<UInt8>& c) { | 66 | 104 | size_t size = a.size(); | 67 | 104 | const A* __restrict a_pos = a.data(); | 68 | 104 | const B* __restrict b_pos = b.data(); | 69 | 104 | UInt8* __restrict c_pos = c.data(); | 70 | 104 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 229 | while (a_pos < a_end) { | 73 | 125 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 125 | ++a_pos; | 75 | 125 | ++b_pos; | 76 | 125 | ++c_pos; | 77 | 125 | } | 78 | 104 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 4 | PaddedPODArray<UInt8>& c) { | 66 | 4 | size_t size = a.size(); | 67 | 4 | const A* __restrict a_pos = a.data(); | 68 | 4 | const B* __restrict b_pos = b.data(); | 69 | 4 | UInt8* __restrict c_pos = c.data(); | 70 | 4 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 8 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 4 | } |
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 | 65 | 39 | PaddedPODArray<UInt8>& c) { | 66 | 39 | size_t size = a.size(); | 67 | 39 | const A* __restrict a_pos = a.data(); | 68 | 39 | const B* __restrict b_pos = b.data(); | 69 | 39 | UInt8* __restrict c_pos = c.data(); | 70 | 39 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 108 | while (a_pos < a_end) { | 73 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 69 | ++a_pos; | 75 | 69 | ++b_pos; | 76 | 69 | ++c_pos; | 77 | 69 | } | 78 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE 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 | 65 | 54 | PaddedPODArray<UInt8>& c) { | 66 | 54 | size_t size = a.size(); | 67 | 54 | const A* __restrict a_pos = a.data(); | 68 | 54 | const B* __restrict b_pos = b.data(); | 69 | 54 | UInt8* __restrict c_pos = c.data(); | 70 | 54 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 243 | while (a_pos < a_end) { | 73 | 189 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 189 | ++a_pos; | 75 | 189 | ++b_pos; | 76 | 189 | ++c_pos; | 77 | 189 | } | 78 | 54 | } |
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 | 65 | 425 | PaddedPODArray<UInt8>& c) { | 66 | 425 | size_t size = a.size(); | 67 | 425 | const A* __restrict a_pos = a.data(); | 68 | 425 | const B* __restrict b_pos = b.data(); | 69 | 425 | UInt8* __restrict c_pos = c.data(); | 70 | 425 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 330k | while (a_pos < a_end) { | 73 | 330k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 330k | ++a_pos; | 75 | 330k | ++b_pos; | 76 | 330k | ++c_pos; | 77 | 330k | } | 78 | 425 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 393 | PaddedPODArray<UInt8>& c) { | 66 | 393 | size_t size = a.size(); | 67 | 393 | const A* __restrict a_pos = a.data(); | 68 | 393 | const B* __restrict b_pos = b.data(); | 69 | 393 | UInt8* __restrict c_pos = c.data(); | 70 | 393 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 25.1k | while (a_pos < a_end) { | 73 | 24.7k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 24.7k | ++a_pos; | 75 | 24.7k | ++b_pos; | 76 | 24.7k | ++c_pos; | 77 | 24.7k | } | 78 | 393 | } |
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 _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
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 | 65 | 987 | PaddedPODArray<UInt8>& c) { | 66 | 987 | size_t size = a.size(); | 67 | 987 | const A* __restrict a_pos = a.data(); | 68 | 987 | const B* __restrict b_pos = b.data(); | 69 | 987 | UInt8* __restrict c_pos = c.data(); | 70 | 987 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.72M | while (a_pos < a_end) { | 73 | 2.72M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 2.72M | ++a_pos; | 75 | 2.72M | ++b_pos; | 76 | 2.72M | ++c_pos; | 77 | 2.72M | } | 78 | 987 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 11 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 203 | PaddedPODArray<UInt8>& c) { | 66 | 203 | size_t size = a.size(); | 67 | 203 | const A* __restrict a_pos = a.data(); | 68 | 203 | const B* __restrict b_pos = b.data(); | 69 | 203 | UInt8* __restrict c_pos = c.data(); | 70 | 203 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.07k | while (a_pos < a_end) { | 73 | 1.87k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.87k | ++a_pos; | 75 | 1.87k | ++b_pos; | 76 | 1.87k | ++c_pos; | 77 | 1.87k | } | 78 | 203 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 442 | PaddedPODArray<UInt8>& c) { | 66 | 442 | size_t size = a.size(); | 67 | 442 | const A* __restrict a_pos = a.data(); | 68 | 442 | const B* __restrict b_pos = b.data(); | 69 | 442 | UInt8* __restrict c_pos = c.data(); | 70 | 442 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.12k | while (a_pos < a_end) { | 73 | 3.68k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.68k | ++a_pos; | 75 | 3.68k | ++b_pos; | 76 | 3.68k | ++c_pos; | 77 | 3.68k | } | 78 | 442 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1.99k | PaddedPODArray<UInt8>& c) { | 66 | 1.99k | size_t size = a.size(); | 67 | 1.99k | const A* __restrict a_pos = a.data(); | 68 | 1.99k | const B* __restrict b_pos = b.data(); | 69 | 1.99k | UInt8* __restrict c_pos = c.data(); | 70 | 1.99k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.21M | while (a_pos < a_end) { | 73 | 6.21M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.21M | ++a_pos; | 75 | 6.21M | ++b_pos; | 76 | 6.21M | ++c_pos; | 77 | 6.21M | } | 78 | 1.99k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 133 | PaddedPODArray<UInt8>& c) { | 66 | 133 | size_t size = a.size(); | 67 | 133 | const A* __restrict a_pos = a.data(); | 68 | 133 | const B* __restrict b_pos = b.data(); | 69 | 133 | UInt8* __restrict c_pos = c.data(); | 70 | 133 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.78k | while (a_pos < a_end) { | 73 | 1.65k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.65k | ++a_pos; | 75 | 1.65k | ++b_pos; | 76 | 1.65k | ++c_pos; | 77 | 1.65k | } | 78 | 133 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 96 | while (a_pos < a_end) { | 73 | 80 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 80 | ++a_pos; | 75 | 80 | ++b_pos; | 76 | 80 | ++c_pos; | 77 | 80 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 43 | PaddedPODArray<UInt8>& c) { | 66 | 43 | size_t size = a.size(); | 67 | 43 | const A* __restrict a_pos = a.data(); | 68 | 43 | const B* __restrict b_pos = b.data(); | 69 | 43 | UInt8* __restrict c_pos = c.data(); | 70 | 43 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 141 | while (a_pos < a_end) { | 73 | 98 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 98 | ++a_pos; | 75 | 98 | ++b_pos; | 76 | 98 | ++c_pos; | 77 | 98 | } | 78 | 43 | } |
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 | 65 | 7 | PaddedPODArray<UInt8>& c) { | 66 | 7 | size_t size = a.size(); | 67 | 7 | const A* __restrict a_pos = a.data(); | 68 | 7 | const B* __restrict b_pos = b.data(); | 69 | 7 | UInt8* __restrict c_pos = c.data(); | 70 | 7 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 38 | while (a_pos < a_end) { | 73 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 31 | ++a_pos; | 75 | 31 | ++b_pos; | 76 | 31 | ++c_pos; | 77 | 31 | } | 78 | 7 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 6 | PaddedPODArray<UInt8>& c) { | 66 | 6 | size_t size = a.size(); | 67 | 6 | const A* __restrict a_pos = a.data(); | 68 | 6 | const B* __restrict b_pos = b.data(); | 69 | 6 | UInt8* __restrict c_pos = c.data(); | 70 | 6 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 70 | while (a_pos < a_end) { | 73 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 64 | ++a_pos; | 75 | 64 | ++b_pos; | 76 | 64 | ++c_pos; | 77 | 64 | } | 78 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 11 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 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 | 65 | 3 | PaddedPODArray<UInt8>& c) { | 66 | 3 | size_t size = a.size(); | 67 | 3 | const A* __restrict a_pos = a.data(); | 68 | 3 | const B* __restrict b_pos = b.data(); | 69 | 3 | UInt8* __restrict c_pos = c.data(); | 70 | 3 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 7 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 3 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 9 | PaddedPODArray<UInt8>& c) { | 66 | 9 | size_t size = a.size(); | 67 | 9 | const A* __restrict a_pos = a.data(); | 68 | 9 | const B* __restrict b_pos = b.data(); | 69 | 9 | UInt8* __restrict c_pos = c.data(); | 70 | 9 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 65 | while (a_pos < a_end) { | 73 | 56 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 56 | ++a_pos; | 75 | 56 | ++b_pos; | 76 | 56 | ++c_pos; | 77 | 56 | } | 78 | 9 | } |
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 | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2 | while (a_pos < a_end) { | 73 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1 | ++a_pos; | 75 | 1 | ++b_pos; | 76 | 1 | ++c_pos; | 77 | 1 | } | 78 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 35 | PaddedPODArray<UInt8>& c) { | 66 | 35 | size_t size = a.size(); | 67 | 35 | const A* __restrict a_pos = a.data(); | 68 | 35 | const B* __restrict b_pos = b.data(); | 69 | 35 | UInt8* __restrict c_pos = c.data(); | 70 | 35 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 141 | while (a_pos < a_end) { | 73 | 106 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 106 | ++a_pos; | 75 | 106 | ++b_pos; | 76 | 106 | ++c_pos; | 77 | 106 | } | 78 | 35 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 81 | PaddedPODArray<UInt8>& c) { | 66 | 81 | size_t size = a.size(); | 67 | 81 | const A* __restrict a_pos = a.data(); | 68 | 81 | const B* __restrict b_pos = b.data(); | 69 | 81 | UInt8* __restrict c_pos = c.data(); | 70 | 81 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 162 | while (a_pos < a_end) { | 73 | 81 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 81 | ++a_pos; | 75 | 81 | ++b_pos; | 76 | 81 | ++c_pos; | 77 | 81 | } | 78 | 81 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.79k | PaddedPODArray<UInt8>& c) { | 66 | 1.79k | size_t size = a.size(); | 67 | 1.79k | const A* __restrict a_pos = a.data(); | 68 | 1.79k | const B* __restrict b_pos = b.data(); | 69 | 1.79k | UInt8* __restrict c_pos = c.data(); | 70 | 1.79k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.80M | while (a_pos < a_end) { | 73 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.80M | ++a_pos; | 75 | 1.80M | ++b_pos; | 76 | 1.80M | ++c_pos; | 77 | 1.80M | } | 78 | 1.79k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 245 | PaddedPODArray<UInt8>& c) { | 66 | 245 | size_t size = a.size(); | 67 | 245 | const A* __restrict a_pos = a.data(); | 68 | 245 | const B* __restrict b_pos = b.data(); | 69 | 245 | UInt8* __restrict c_pos = c.data(); | 70 | 245 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 490 | while (a_pos < a_end) { | 73 | 245 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 245 | ++a_pos; | 75 | 245 | ++b_pos; | 76 | 245 | ++c_pos; | 77 | 245 | } | 78 | 245 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 11 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 539 | PaddedPODArray<UInt8>& c) { | 66 | 539 | size_t size = a.size(); | 67 | 539 | const A* __restrict a_pos = a.data(); | 68 | 539 | const B* __restrict b_pos = b.data(); | 69 | 539 | UInt8* __restrict c_pos = c.data(); | 70 | 539 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.36k | while (a_pos < a_end) { | 73 | 3.82k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.82k | ++a_pos; | 75 | 3.82k | ++b_pos; | 76 | 3.82k | ++c_pos; | 77 | 3.82k | } | 78 | 539 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 112 | PaddedPODArray<UInt8>& c) { | 66 | 112 | size_t size = a.size(); | 67 | 112 | const A* __restrict a_pos = a.data(); | 68 | 112 | const B* __restrict b_pos = b.data(); | 69 | 112 | UInt8* __restrict c_pos = c.data(); | 70 | 112 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 225 | while (a_pos < a_end) { | 73 | 113 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 113 | ++a_pos; | 75 | 113 | ++b_pos; | 76 | 113 | ++c_pos; | 77 | 113 | } | 78 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 170 | PaddedPODArray<UInt8>& c) { | 66 | 170 | size_t size = a.size(); | 67 | 170 | const A* __restrict a_pos = a.data(); | 68 | 170 | const B* __restrict b_pos = b.data(); | 69 | 170 | UInt8* __restrict c_pos = c.data(); | 70 | 170 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 842 | while (a_pos < a_end) { | 73 | 672 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 672 | ++a_pos; | 75 | 672 | ++b_pos; | 76 | 672 | ++c_pos; | 77 | 672 | } | 78 | 170 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 212 | PaddedPODArray<UInt8>& c) { | 66 | 212 | size_t size = a.size(); | 67 | 212 | const A* __restrict a_pos = a.data(); | 68 | 212 | const B* __restrict b_pos = b.data(); | 69 | 212 | UInt8* __restrict c_pos = c.data(); | 70 | 212 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.71k | while (a_pos < a_end) { | 73 | 5.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.50k | ++a_pos; | 75 | 5.50k | ++b_pos; | 76 | 5.50k | ++c_pos; | 77 | 5.50k | } | 78 | 212 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 156 | PaddedPODArray<UInt8>& c) { | 66 | 156 | size_t size = a.size(); | 67 | 156 | const A* __restrict a_pos = a.data(); | 68 | 156 | const B* __restrict b_pos = b.data(); | 69 | 156 | UInt8* __restrict c_pos = c.data(); | 70 | 156 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 423 | while (a_pos < a_end) { | 73 | 267 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 267 | ++a_pos; | 75 | 267 | ++b_pos; | 76 | 267 | ++c_pos; | 77 | 267 | } | 78 | 156 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 131 | PaddedPODArray<UInt8>& c) { | 66 | 131 | size_t size = a.size(); | 67 | 131 | const A* __restrict a_pos = a.data(); | 68 | 131 | const B* __restrict b_pos = b.data(); | 69 | 131 | UInt8* __restrict c_pos = c.data(); | 70 | 131 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 281 | while (a_pos < a_end) { | 73 | 150 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 150 | ++a_pos; | 75 | 150 | ++b_pos; | 76 | 150 | ++c_pos; | 77 | 150 | } | 78 | 131 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 134 | PaddedPODArray<UInt8>& c) { | 66 | 134 | size_t size = a.size(); | 67 | 134 | const A* __restrict a_pos = a.data(); | 68 | 134 | const B* __restrict b_pos = b.data(); | 69 | 134 | UInt8* __restrict c_pos = c.data(); | 70 | 134 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 300 | while (a_pos < a_end) { | 73 | 166 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 166 | ++a_pos; | 75 | 166 | ++b_pos; | 76 | 166 | ++c_pos; | 77 | 166 | } | 78 | 134 | } |
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 | 65 | 424 | PaddedPODArray<UInt8>& c) { | 66 | 424 | size_t size = a.size(); | 67 | 424 | const A* __restrict a_pos = a.data(); | 68 | 424 | const B* __restrict b_pos = b.data(); | 69 | 424 | UInt8* __restrict c_pos = c.data(); | 70 | 424 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.65k | while (a_pos < a_end) { | 73 | 6.22k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.22k | ++a_pos; | 75 | 6.22k | ++b_pos; | 76 | 6.22k | ++c_pos; | 77 | 6.22k | } | 78 | 424 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 65 | 2 | PaddedPODArray<UInt8>& c) { | 66 | 2 | size_t size = a.size(); | 67 | 2 | const A* __restrict a_pos = a.data(); | 68 | 2 | const B* __restrict b_pos = b.data(); | 69 | 2 | UInt8* __restrict c_pos = c.data(); | 70 | 2 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 11 | while (a_pos < a_end) { | 73 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 9 | ++a_pos; | 75 | 9 | ++b_pos; | 76 | 9 | ++c_pos; | 77 | 9 | } | 78 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1 | PaddedPODArray<UInt8>& c) { | 66 | 1 | size_t size = a.size(); | 67 | 1 | const A* __restrict a_pos = a.data(); | 68 | 1 | const B* __restrict b_pos = b.data(); | 69 | 1 | UInt8* __restrict c_pos = c.data(); | 70 | 1 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5 | while (a_pos < a_end) { | 73 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4 | ++a_pos; | 75 | 4 | ++b_pos; | 76 | 4 | ++c_pos; | 77 | 4 | } | 78 | 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 | 65 | 34 | PaddedPODArray<UInt8>& c) { | 66 | 34 | size_t size = a.size(); | 67 | 34 | const A* __restrict a_pos = a.data(); | 68 | 34 | const B* __restrict b_pos = b.data(); | 69 | 34 | UInt8* __restrict c_pos = c.data(); | 70 | 34 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 935 | while (a_pos < a_end) { | 73 | 901 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 901 | ++a_pos; | 75 | 901 | ++b_pos; | 76 | 901 | ++c_pos; | 77 | 901 | } | 78 | 34 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 39 | PaddedPODArray<UInt8>& c) { | 66 | 39 | size_t size = a.size(); | 67 | 39 | const A* __restrict a_pos = a.data(); | 68 | 39 | const B* __restrict b_pos = b.data(); | 69 | 39 | UInt8* __restrict c_pos = c.data(); | 70 | 39 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 213 | while (a_pos < a_end) { | 73 | 174 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 174 | ++a_pos; | 75 | 174 | ++b_pos; | 76 | 174 | ++c_pos; | 77 | 174 | } | 78 | 39 | } |
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 _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 20 | PaddedPODArray<UInt8>& c) { | 66 | 20 | size_t size = a.size(); | 67 | 20 | const A* __restrict a_pos = a.data(); | 68 | 20 | const B* __restrict b_pos = b.data(); | 69 | 20 | UInt8* __restrict c_pos = c.data(); | 70 | 20 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 59 | while (a_pos < a_end) { | 73 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 39 | ++a_pos; | 75 | 39 | ++b_pos; | 76 | 39 | ++c_pos; | 77 | 39 | } | 78 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
79 | | |
80 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
81 | 154k | PaddedPODArray<UInt8>& c) { |
82 | 154k | size_t size = a.size(); |
83 | 154k | const A* __restrict a_pos = a.data(); |
84 | 154k | UInt8* __restrict c_pos = c.data(); |
85 | 154k | const A* __restrict a_end = a_pos + size; |
86 | | |
87 | 150M | while (a_pos < a_end) { |
88 | 150M | *c_pos = Op::apply(*a_pos, b); |
89 | 150M | ++a_pos; |
90 | 150M | ++c_pos; |
91 | 150M | } |
92 | 154k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 1.52k | PaddedPODArray<UInt8>& c) { | 82 | 1.52k | size_t size = a.size(); | 83 | 1.52k | const A* __restrict a_pos = a.data(); | 84 | 1.52k | UInt8* __restrict c_pos = c.data(); | 85 | 1.52k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.97k | while (a_pos < a_end) { | 88 | 3.45k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.45k | ++a_pos; | 90 | 3.45k | ++c_pos; | 91 | 3.45k | } | 92 | 1.52k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 819 | PaddedPODArray<UInt8>& c) { | 82 | 819 | size_t size = a.size(); | 83 | 819 | const A* __restrict a_pos = a.data(); | 84 | 819 | UInt8* __restrict c_pos = c.data(); | 85 | 819 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 203k | while (a_pos < a_end) { | 88 | 202k | *c_pos = Op::apply(*a_pos, b); | 89 | 202k | ++a_pos; | 90 | 202k | ++c_pos; | 91 | 202k | } | 92 | 819 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 411 | PaddedPODArray<UInt8>& c) { | 82 | 411 | size_t size = a.size(); | 83 | 411 | const A* __restrict a_pos = a.data(); | 84 | 411 | UInt8* __restrict c_pos = c.data(); | 85 | 411 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 100k | *c_pos = Op::apply(*a_pos, b); | 89 | 100k | ++a_pos; | 90 | 100k | ++c_pos; | 91 | 100k | } | 92 | 411 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 4.70k | PaddedPODArray<UInt8>& c) { | 82 | 4.70k | size_t size = a.size(); | 83 | 4.70k | const A* __restrict a_pos = a.data(); | 84 | 4.70k | UInt8* __restrict c_pos = c.data(); | 85 | 4.70k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9.16M | while (a_pos < a_end) { | 88 | 9.16M | *c_pos = Op::apply(*a_pos, b); | 89 | 9.16M | ++a_pos; | 90 | 9.16M | ++c_pos; | 91 | 9.16M | } | 92 | 4.70k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.21k | PaddedPODArray<UInt8>& c) { | 82 | 1.21k | size_t size = a.size(); | 83 | 1.21k | const A* __restrict a_pos = a.data(); | 84 | 1.21k | UInt8* __restrict c_pos = c.data(); | 85 | 1.21k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 127k | while (a_pos < a_end) { | 88 | 126k | *c_pos = Op::apply(*a_pos, b); | 89 | 126k | ++a_pos; | 90 | 126k | ++c_pos; | 91 | 126k | } | 92 | 1.21k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 30.6k | PaddedPODArray<UInt8>& c) { | 82 | 30.6k | size_t size = a.size(); | 83 | 30.6k | const A* __restrict a_pos = a.data(); | 84 | 30.6k | UInt8* __restrict c_pos = c.data(); | 85 | 30.6k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.03M | while (a_pos < a_end) { | 88 | 2.00M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.00M | ++a_pos; | 90 | 2.00M | ++c_pos; | 91 | 2.00M | } | 92 | 30.6k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 22.6k | PaddedPODArray<UInt8>& c) { | 82 | 22.6k | size_t size = a.size(); | 83 | 22.6k | const A* __restrict a_pos = a.data(); | 84 | 22.6k | UInt8* __restrict c_pos = c.data(); | 85 | 22.6k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.86M | while (a_pos < a_end) { | 88 | 2.83M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.83M | ++a_pos; | 90 | 2.83M | ++c_pos; | 91 | 2.83M | } | 92 | 22.6k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 57 | PaddedPODArray<UInt8>& c) { | 82 | 57 | size_t size = a.size(); | 83 | 57 | const A* __restrict a_pos = a.data(); | 84 | 57 | UInt8* __restrict c_pos = c.data(); | 85 | 57 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 101k | *c_pos = Op::apply(*a_pos, b); | 89 | 101k | ++a_pos; | 90 | 101k | ++c_pos; | 91 | 101k | } | 92 | 57 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13 | PaddedPODArray<UInt8>& c) { | 82 | 13 | size_t size = a.size(); | 83 | 13 | const A* __restrict a_pos = a.data(); | 84 | 13 | UInt8* __restrict c_pos = c.data(); | 85 | 13 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 127 | while (a_pos < a_end) { | 88 | 114 | *c_pos = Op::apply(*a_pos, b); | 89 | 114 | ++a_pos; | 90 | 114 | ++c_pos; | 91 | 114 | } | 92 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 6 | PaddedPODArray<UInt8>& c) { | 82 | 6 | size_t size = a.size(); | 83 | 6 | const A* __restrict a_pos = a.data(); | 84 | 6 | UInt8* __restrict c_pos = c.data(); | 85 | 6 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 12 | while (a_pos < a_end) { | 88 | 6 | *c_pos = Op::apply(*a_pos, b); | 89 | 6 | ++a_pos; | 90 | 6 | ++c_pos; | 91 | 6 | } | 92 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 4 | PaddedPODArray<UInt8>& c) { | 82 | 4 | size_t size = a.size(); | 83 | 4 | const A* __restrict a_pos = a.data(); | 84 | 4 | UInt8* __restrict c_pos = c.data(); | 85 | 4 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 26 | while (a_pos < a_end) { | 88 | 22 | *c_pos = Op::apply(*a_pos, b); | 89 | 22 | ++a_pos; | 90 | 22 | ++c_pos; | 91 | 22 | } | 92 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 389 | PaddedPODArray<UInt8>& c) { | 82 | 389 | size_t size = a.size(); | 83 | 389 | const A* __restrict a_pos = a.data(); | 84 | 389 | UInt8* __restrict c_pos = c.data(); | 85 | 389 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 701k | while (a_pos < a_end) { | 88 | 701k | *c_pos = Op::apply(*a_pos, b); | 89 | 701k | ++a_pos; | 90 | 701k | ++c_pos; | 91 | 701k | } | 92 | 389 | } |
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 | 81 | 39 | PaddedPODArray<UInt8>& c) { | 82 | 39 | size_t size = a.size(); | 83 | 39 | const A* __restrict a_pos = a.data(); | 84 | 39 | UInt8* __restrict c_pos = c.data(); | 85 | 39 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 98 | while (a_pos < a_end) { | 88 | 59 | *c_pos = Op::apply(*a_pos, b); | 89 | 59 | ++a_pos; | 90 | 59 | ++c_pos; | 91 | 59 | } | 92 | 39 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 2 | PaddedPODArray<UInt8>& c) { | 82 | 2 | size_t size = a.size(); | 83 | 2 | const A* __restrict a_pos = a.data(); | 84 | 2 | UInt8* __restrict c_pos = c.data(); | 85 | 2 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4 | while (a_pos < a_end) { | 88 | 2 | *c_pos = Op::apply(*a_pos, b); | 89 | 2 | ++a_pos; | 90 | 2 | ++c_pos; | 91 | 2 | } | 92 | 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 | 81 | 44 | PaddedPODArray<UInt8>& c) { | 82 | 44 | size_t size = a.size(); | 83 | 44 | const A* __restrict a_pos = a.data(); | 84 | 44 | UInt8* __restrict c_pos = c.data(); | 85 | 44 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.24k | while (a_pos < a_end) { | 88 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.19k | ++a_pos; | 90 | 1.19k | ++c_pos; | 91 | 1.19k | } | 92 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 26 | PaddedPODArray<UInt8>& c) { | 82 | 26 | size_t size = a.size(); | 83 | 26 | const A* __restrict a_pos = a.data(); | 84 | 26 | UInt8* __restrict c_pos = c.data(); | 85 | 26 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 802 | while (a_pos < a_end) { | 88 | 776 | *c_pos = Op::apply(*a_pos, b); | 89 | 776 | ++a_pos; | 90 | 776 | ++c_pos; | 91 | 776 | } | 92 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.73k | PaddedPODArray<UInt8>& c) { | 82 | 2.73k | size_t size = a.size(); | 83 | 2.73k | const A* __restrict a_pos = a.data(); | 84 | 2.73k | UInt8* __restrict c_pos = c.data(); | 85 | 2.73k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 657k | while (a_pos < a_end) { | 88 | 655k | *c_pos = Op::apply(*a_pos, b); | 89 | 655k | ++a_pos; | 90 | 655k | ++c_pos; | 91 | 655k | } | 92 | 2.73k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.92k | PaddedPODArray<UInt8>& c) { | 82 | 1.92k | size_t size = a.size(); | 83 | 1.92k | const A* __restrict a_pos = a.data(); | 84 | 1.92k | UInt8* __restrict c_pos = c.data(); | 85 | 1.92k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 269k | while (a_pos < a_end) { | 88 | 267k | *c_pos = Op::apply(*a_pos, b); | 89 | 267k | ++a_pos; | 90 | 267k | ++c_pos; | 91 | 267k | } | 92 | 1.92k | } |
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 _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 28 | PaddedPODArray<UInt8>& c) { | 82 | 28 | size_t size = a.size(); | 83 | 28 | const A* __restrict a_pos = a.data(); | 84 | 28 | UInt8* __restrict c_pos = c.data(); | 85 | 28 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 70 | while (a_pos < a_end) { | 88 | 42 | *c_pos = Op::apply(*a_pos, b); | 89 | 42 | ++a_pos; | 90 | 42 | ++c_pos; | 91 | 42 | } | 92 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 40 | PaddedPODArray<UInt8>& c) { | 82 | 40 | size_t size = a.size(); | 83 | 40 | const A* __restrict a_pos = a.data(); | 84 | 40 | UInt8* __restrict c_pos = c.data(); | 85 | 40 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 282 | while (a_pos < a_end) { | 88 | 242 | *c_pos = Op::apply(*a_pos, b); | 89 | 242 | ++a_pos; | 90 | 242 | ++c_pos; | 91 | 242 | } | 92 | 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 | 81 | 157 | PaddedPODArray<UInt8>& c) { | 82 | 157 | size_t size = a.size(); | 83 | 157 | const A* __restrict a_pos = a.data(); | 84 | 157 | UInt8* __restrict c_pos = c.data(); | 85 | 157 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 743 | while (a_pos < a_end) { | 88 | 586 | *c_pos = Op::apply(*a_pos, b); | 89 | 586 | ++a_pos; | 90 | 586 | ++c_pos; | 91 | 586 | } | 92 | 157 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 532 | PaddedPODArray<UInt8>& c) { | 82 | 532 | size_t size = a.size(); | 83 | 532 | const A* __restrict a_pos = a.data(); | 84 | 532 | UInt8* __restrict c_pos = c.data(); | 85 | 532 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.34M | while (a_pos < a_end) { | 88 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.34M | ++a_pos; | 90 | 1.34M | ++c_pos; | 91 | 1.34M | } | 92 | 532 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 94 | PaddedPODArray<UInt8>& c) { | 82 | 94 | size_t size = a.size(); | 83 | 94 | const A* __restrict a_pos = a.data(); | 84 | 94 | UInt8* __restrict c_pos = c.data(); | 85 | 94 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 210 | while (a_pos < a_end) { | 88 | 116 | *c_pos = Op::apply(*a_pos, b); | 89 | 116 | ++a_pos; | 90 | 116 | ++c_pos; | 91 | 116 | } | 92 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 337 | PaddedPODArray<UInt8>& c) { | 82 | 337 | size_t size = a.size(); | 83 | 337 | const A* __restrict a_pos = a.data(); | 84 | 337 | UInt8* __restrict c_pos = c.data(); | 85 | 337 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 45.4k | while (a_pos < a_end) { | 88 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 45.1k | ++a_pos; | 90 | 45.1k | ++c_pos; | 91 | 45.1k | } | 92 | 337 | } |
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 | 81 | 1 | PaddedPODArray<UInt8>& c) { | 82 | 1 | size_t size = a.size(); | 83 | 1 | const A* __restrict a_pos = a.data(); | 84 | 1 | UInt8* __restrict c_pos = c.data(); | 85 | 1 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 8 | while (a_pos < a_end) { | 88 | 7 | *c_pos = Op::apply(*a_pos, b); | 89 | 7 | ++a_pos; | 90 | 7 | ++c_pos; | 91 | 7 | } | 92 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 385 | PaddedPODArray<UInt8>& c) { | 82 | 385 | size_t size = a.size(); | 83 | 385 | const A* __restrict a_pos = a.data(); | 84 | 385 | UInt8* __restrict c_pos = c.data(); | 85 | 385 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.02k | while (a_pos < a_end) { | 88 | 3.63k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.63k | ++a_pos; | 90 | 3.63k | ++c_pos; | 91 | 3.63k | } | 92 | 385 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 61 | PaddedPODArray<UInt8>& c) { | 82 | 61 | size_t size = a.size(); | 83 | 61 | const A* __restrict a_pos = a.data(); | 84 | 61 | UInt8* __restrict c_pos = c.data(); | 85 | 61 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.34k | while (a_pos < a_end) { | 88 | 2.28k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.28k | ++a_pos; | 90 | 2.28k | ++c_pos; | 91 | 2.28k | } | 92 | 61 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 564 | PaddedPODArray<UInt8>& c) { | 82 | 564 | size_t size = a.size(); | 83 | 564 | const A* __restrict a_pos = a.data(); | 84 | 564 | UInt8* __restrict c_pos = c.data(); | 85 | 564 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 7.96k | while (a_pos < a_end) { | 88 | 7.40k | *c_pos = Op::apply(*a_pos, b); | 89 | 7.40k | ++a_pos; | 90 | 7.40k | ++c_pos; | 91 | 7.40k | } | 92 | 564 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 268 | PaddedPODArray<UInt8>& c) { | 82 | 268 | size_t size = a.size(); | 83 | 268 | const A* __restrict a_pos = a.data(); | 84 | 268 | UInt8* __restrict c_pos = c.data(); | 85 | 268 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 12.7k | while (a_pos < a_end) { | 88 | 12.4k | *c_pos = Op::apply(*a_pos, b); | 89 | 12.4k | ++a_pos; | 90 | 12.4k | ++c_pos; | 91 | 12.4k | } | 92 | 268 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 18.2k | PaddedPODArray<UInt8>& c) { | 82 | 18.2k | size_t size = a.size(); | 83 | 18.2k | const A* __restrict a_pos = a.data(); | 84 | 18.2k | UInt8* __restrict c_pos = c.data(); | 85 | 18.2k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.44M | while (a_pos < a_end) { | 88 | 1.42M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.42M | ++a_pos; | 90 | 1.42M | ++c_pos; | 91 | 1.42M | } | 92 | 18.2k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 5.72k | PaddedPODArray<UInt8>& c) { | 82 | 5.72k | size_t size = a.size(); | 83 | 5.72k | const A* __restrict a_pos = a.data(); | 84 | 5.72k | UInt8* __restrict c_pos = c.data(); | 85 | 5.72k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.42M | while (a_pos < a_end) { | 88 | 4.41M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.41M | ++a_pos; | 90 | 4.41M | ++c_pos; | 91 | 4.41M | } | 92 | 5.72k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13.1k | PaddedPODArray<UInt8>& c) { | 82 | 13.1k | size_t size = a.size(); | 83 | 13.1k | const A* __restrict a_pos = a.data(); | 84 | 13.1k | UInt8* __restrict c_pos = c.data(); | 85 | 13.1k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 171k | while (a_pos < a_end) { | 88 | 158k | *c_pos = Op::apply(*a_pos, b); | 89 | 158k | ++a_pos; | 90 | 158k | ++c_pos; | 91 | 158k | } | 92 | 13.1k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.40k | PaddedPODArray<UInt8>& c) { | 82 | 1.40k | size_t size = a.size(); | 83 | 1.40k | const A* __restrict a_pos = a.data(); | 84 | 1.40k | UInt8* __restrict c_pos = c.data(); | 85 | 1.40k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.96k | while (a_pos < a_end) { | 88 | 2.55k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.55k | ++a_pos; | 90 | 2.55k | ++c_pos; | 91 | 2.55k | } | 92 | 1.40k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 202 | PaddedPODArray<UInt8>& c) { | 82 | 202 | size_t size = a.size(); | 83 | 202 | const A* __restrict a_pos = a.data(); | 84 | 202 | UInt8* __restrict c_pos = c.data(); | 85 | 202 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.74k | while (a_pos < a_end) { | 88 | 1.54k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.54k | ++a_pos; | 90 | 1.54k | ++c_pos; | 91 | 1.54k | } | 92 | 202 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 22 | PaddedPODArray<UInt8>& c) { | 82 | 22 | size_t size = a.size(); | 83 | 22 | const A* __restrict a_pos = a.data(); | 84 | 22 | UInt8* __restrict c_pos = c.data(); | 85 | 22 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 86.0k | while (a_pos < a_end) { | 88 | 86.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 86.0k | ++a_pos; | 90 | 86.0k | ++c_pos; | 91 | 86.0k | } | 92 | 22 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1 | PaddedPODArray<UInt8>& c) { | 82 | 1 | size_t size = a.size(); | 83 | 1 | const A* __restrict a_pos = a.data(); | 84 | 1 | UInt8* __restrict c_pos = c.data(); | 85 | 1 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9 | while (a_pos < a_end) { | 88 | 8 | *c_pos = Op::apply(*a_pos, b); | 89 | 8 | ++a_pos; | 90 | 8 | ++c_pos; | 91 | 8 | } | 92 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 216 | PaddedPODArray<UInt8>& c) { | 82 | 216 | size_t size = a.size(); | 83 | 216 | const A* __restrict a_pos = a.data(); | 84 | 216 | UInt8* __restrict c_pos = c.data(); | 85 | 216 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.77k | while (a_pos < a_end) { | 88 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.55k | ++a_pos; | 90 | 3.55k | ++c_pos; | 91 | 3.55k | } | 92 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 26 | PaddedPODArray<UInt8>& c) { | 82 | 26 | size_t size = a.size(); | 83 | 26 | const A* __restrict a_pos = a.data(); | 84 | 26 | UInt8* __restrict c_pos = c.data(); | 85 | 26 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 64 | while (a_pos < a_end) { | 88 | 38 | *c_pos = Op::apply(*a_pos, b); | 89 | 38 | ++a_pos; | 90 | 38 | ++c_pos; | 91 | 38 | } | 92 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 2.43k | PaddedPODArray<UInt8>& c) { | 82 | 2.43k | size_t size = a.size(); | 83 | 2.43k | const A* __restrict a_pos = a.data(); | 84 | 2.43k | UInt8* __restrict c_pos = c.data(); | 85 | 2.43k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 346k | while (a_pos < a_end) { | 88 | 344k | *c_pos = Op::apply(*a_pos, b); | 89 | 344k | ++a_pos; | 90 | 344k | ++c_pos; | 91 | 344k | } | 92 | 2.43k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 211 | PaddedPODArray<UInt8>& c) { | 82 | 211 | size_t size = a.size(); | 83 | 211 | const A* __restrict a_pos = a.data(); | 84 | 211 | UInt8* __restrict c_pos = c.data(); | 85 | 211 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 316k | while (a_pos < a_end) { | 88 | 316k | *c_pos = Op::apply(*a_pos, b); | 89 | 316k | ++a_pos; | 90 | 316k | ++c_pos; | 91 | 316k | } | 92 | 211 | } |
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 | 81 | 158 | PaddedPODArray<UInt8>& c) { | 82 | 158 | size_t size = a.size(); | 83 | 158 | const A* __restrict a_pos = a.data(); | 84 | 158 | UInt8* __restrict c_pos = c.data(); | 85 | 158 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 192k | while (a_pos < a_end) { | 88 | 191k | *c_pos = Op::apply(*a_pos, b); | 89 | 191k | ++a_pos; | 90 | 191k | ++c_pos; | 91 | 191k | } | 92 | 158 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 334 | PaddedPODArray<UInt8>& c) { | 82 | 334 | size_t size = a.size(); | 83 | 334 | const A* __restrict a_pos = a.data(); | 84 | 334 | UInt8* __restrict c_pos = c.data(); | 85 | 334 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 167k | while (a_pos < a_end) { | 88 | 167k | *c_pos = Op::apply(*a_pos, b); | 89 | 167k | ++a_pos; | 90 | 167k | ++c_pos; | 91 | 167k | } | 92 | 334 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 1.60k | PaddedPODArray<UInt8>& c) { | 82 | 1.60k | size_t size = a.size(); | 83 | 1.60k | const A* __restrict a_pos = a.data(); | 84 | 1.60k | UInt8* __restrict c_pos = c.data(); | 85 | 1.60k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.66M | while (a_pos < a_end) { | 88 | 4.66M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.66M | ++a_pos; | 90 | 4.66M | ++c_pos; | 91 | 4.66M | } | 92 | 1.60k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 4.34k | PaddedPODArray<UInt8>& c) { | 82 | 4.34k | size_t size = a.size(); | 83 | 4.34k | const A* __restrict a_pos = a.data(); | 84 | 4.34k | UInt8* __restrict c_pos = c.data(); | 85 | 4.34k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 27.7M | while (a_pos < a_end) { | 88 | 27.7M | *c_pos = Op::apply(*a_pos, b); | 89 | 27.7M | ++a_pos; | 90 | 27.7M | ++c_pos; | 91 | 27.7M | } | 92 | 4.34k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 611 | PaddedPODArray<UInt8>& c) { | 82 | 611 | size_t size = a.size(); | 83 | 611 | const A* __restrict a_pos = a.data(); | 84 | 611 | UInt8* __restrict c_pos = c.data(); | 85 | 611 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 30.6k | while (a_pos < a_end) { | 88 | 30.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 30.0k | ++a_pos; | 90 | 30.0k | ++c_pos; | 91 | 30.0k | } | 92 | 611 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 493 | PaddedPODArray<UInt8>& c) { | 82 | 493 | size_t size = a.size(); | 83 | 493 | const A* __restrict a_pos = a.data(); | 84 | 493 | UInt8* __restrict c_pos = c.data(); | 85 | 493 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 29.3k | while (a_pos < a_end) { | 88 | 28.8k | *c_pos = Op::apply(*a_pos, b); | 89 | 28.8k | ++a_pos; | 90 | 28.8k | ++c_pos; | 91 | 28.8k | } | 92 | 493 | } |
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 | 81 | 89 | PaddedPODArray<UInt8>& c) { | 82 | 89 | size_t size = a.size(); | 83 | 89 | const A* __restrict a_pos = a.data(); | 84 | 89 | UInt8* __restrict c_pos = c.data(); | 85 | 89 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 122k | while (a_pos < a_end) { | 88 | 122k | *c_pos = Op::apply(*a_pos, b); | 89 | 122k | ++a_pos; | 90 | 122k | ++c_pos; | 91 | 122k | } | 92 | 89 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 280 | PaddedPODArray<UInt8>& c) { | 82 | 280 | size_t size = a.size(); | 83 | 280 | const A* __restrict a_pos = a.data(); | 84 | 280 | UInt8* __restrict c_pos = c.data(); | 85 | 280 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 121k | while (a_pos < a_end) { | 88 | 120k | *c_pos = Op::apply(*a_pos, b); | 89 | 120k | ++a_pos; | 90 | 120k | ++c_pos; | 91 | 120k | } | 92 | 280 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 134 | PaddedPODArray<UInt8>& c) { | 82 | 134 | size_t size = a.size(); | 83 | 134 | const A* __restrict a_pos = a.data(); | 84 | 134 | UInt8* __restrict c_pos = c.data(); | 85 | 134 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 170k | while (a_pos < a_end) { | 88 | 170k | *c_pos = Op::apply(*a_pos, b); | 89 | 170k | ++a_pos; | 90 | 170k | ++c_pos; | 91 | 170k | } | 92 | 134 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 373 | PaddedPODArray<UInt8>& c) { | 82 | 373 | size_t size = a.size(); | 83 | 373 | const A* __restrict a_pos = a.data(); | 84 | 373 | UInt8* __restrict c_pos = c.data(); | 85 | 373 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 85.4k | while (a_pos < a_end) { | 88 | 85.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 85.0k | ++a_pos; | 90 | 85.0k | ++c_pos; | 91 | 85.0k | } | 92 | 373 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 13.2k | PaddedPODArray<UInt8>& c) { | 82 | 13.2k | size_t size = a.size(); | 83 | 13.2k | const A* __restrict a_pos = a.data(); | 84 | 13.2k | UInt8* __restrict c_pos = c.data(); | 85 | 13.2k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 44.0M | while (a_pos < a_end) { | 88 | 44.0M | *c_pos = Op::apply(*a_pos, b); | 89 | 44.0M | ++a_pos; | 90 | 44.0M | ++c_pos; | 91 | 44.0M | } | 92 | 13.2k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 19.4k | PaddedPODArray<UInt8>& c) { | 82 | 19.4k | size_t size = a.size(); | 83 | 19.4k | const A* __restrict a_pos = a.data(); | 84 | 19.4k | UInt8* __restrict c_pos = c.data(); | 85 | 19.4k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 47.7M | while (a_pos < a_end) { | 88 | 47.7M | *c_pos = Op::apply(*a_pos, b); | 89 | 47.7M | ++a_pos; | 90 | 47.7M | ++c_pos; | 91 | 47.7M | } | 92 | 19.4k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 795 | PaddedPODArray<UInt8>& c) { | 82 | 795 | size_t size = a.size(); | 83 | 795 | const A* __restrict a_pos = a.data(); | 84 | 795 | UInt8* __restrict c_pos = c.data(); | 85 | 795 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 40.8k | while (a_pos < a_end) { | 88 | 40.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 40.0k | ++a_pos; | 90 | 40.0k | ++c_pos; | 91 | 40.0k | } | 92 | 795 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 819 | PaddedPODArray<UInt8>& c) { | 82 | 819 | size_t size = a.size(); | 83 | 819 | const A* __restrict a_pos = a.data(); | 84 | 819 | UInt8* __restrict c_pos = c.data(); | 85 | 819 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 36.2k | while (a_pos < a_end) { | 88 | 35.4k | *c_pos = Op::apply(*a_pos, b); | 89 | 35.4k | ++a_pos; | 90 | 35.4k | ++c_pos; | 91 | 35.4k | } | 92 | 819 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 42 | PaddedPODArray<UInt8>& c) { | 82 | 42 | size_t size = a.size(); | 83 | 42 | const A* __restrict a_pos = a.data(); | 84 | 42 | UInt8* __restrict c_pos = c.data(); | 85 | 42 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 130k | while (a_pos < a_end) { | 88 | 130k | *c_pos = Op::apply(*a_pos, b); | 89 | 130k | ++a_pos; | 90 | 130k | ++c_pos; | 91 | 130k | } | 92 | 42 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 40 | PaddedPODArray<UInt8>& c) { | 82 | 40 | size_t size = a.size(); | 83 | 40 | const A* __restrict a_pos = a.data(); | 84 | 40 | UInt8* __restrict c_pos = c.data(); | 85 | 40 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 120k | while (a_pos < a_end) { | 88 | 120k | *c_pos = Op::apply(*a_pos, b); | 89 | 120k | ++a_pos; | 90 | 120k | ++c_pos; | 91 | 120k | } | 92 | 40 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10 | PaddedPODArray<UInt8>& c) { | 82 | 10 | size_t size = a.size(); | 83 | 10 | const A* __restrict a_pos = a.data(); | 84 | 10 | UInt8* __restrict c_pos = c.data(); | 85 | 10 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 110 | while (a_pos < a_end) { | 88 | 100 | *c_pos = Op::apply(*a_pos, b); | 89 | 100 | ++a_pos; | 90 | 100 | ++c_pos; | 91 | 100 | } | 92 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10 | PaddedPODArray<UInt8>& c) { | 82 | 10 | size_t size = a.size(); | 83 | 10 | const A* __restrict a_pos = a.data(); | 84 | 10 | UInt8* __restrict c_pos = c.data(); | 85 | 10 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 110 | while (a_pos < a_end) { | 88 | 100 | *c_pos = Op::apply(*a_pos, b); | 89 | 100 | ++a_pos; | 90 | 100 | ++c_pos; | 91 | 100 | } | 92 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 108 | PaddedPODArray<UInt8>& c) { | 82 | 108 | size_t size = a.size(); | 83 | 108 | const A* __restrict a_pos = a.data(); | 84 | 108 | UInt8* __restrict c_pos = c.data(); | 85 | 108 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 218 | while (a_pos < a_end) { | 88 | 110 | *c_pos = Op::apply(*a_pos, b); | 89 | 110 | ++a_pos; | 90 | 110 | ++c_pos; | 91 | 110 | } | 92 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 104 | PaddedPODArray<UInt8>& c) { | 82 | 104 | size_t size = a.size(); | 83 | 104 | const A* __restrict a_pos = a.data(); | 84 | 104 | UInt8* __restrict c_pos = c.data(); | 85 | 104 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 208 | while (a_pos < a_end) { | 88 | 104 | *c_pos = Op::apply(*a_pos, b); | 89 | 104 | ++a_pos; | 90 | 104 | ++c_pos; | 91 | 104 | } | 92 | 104 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 122 | PaddedPODArray<UInt8>& c) { | 82 | 122 | size_t size = a.size(); | 83 | 122 | const A* __restrict a_pos = a.data(); | 84 | 122 | UInt8* __restrict c_pos = c.data(); | 85 | 122 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 356k | while (a_pos < a_end) { | 88 | 355k | *c_pos = Op::apply(*a_pos, b); | 89 | 355k | ++a_pos; | 90 | 355k | ++c_pos; | 91 | 355k | } | 92 | 122 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 119 | PaddedPODArray<UInt8>& c) { | 82 | 119 | size_t size = a.size(); | 83 | 119 | const A* __restrict a_pos = a.data(); | 84 | 119 | UInt8* __restrict c_pos = c.data(); | 85 | 119 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 275k | while (a_pos < a_end) { | 88 | 275k | *c_pos = Op::apply(*a_pos, b); | 89 | 275k | ++a_pos; | 90 | 275k | ++c_pos; | 91 | 275k | } | 92 | 119 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
93 | | |
94 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
95 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
96 | 5 | } 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 Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 94 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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_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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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: _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_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_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_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_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: _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_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_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_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE 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: _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 |
97 | | }; |
98 | | |
99 | | /// Generic version, implemented for columns of same type. |
100 | | template <typename Op> |
101 | | struct GenericComparisonImpl { |
102 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
103 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
104 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
105 | 11 | } |
106 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 6 | } | 106 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 1 | } | 106 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 1 | } | 106 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 102 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 104 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 105 | 3 | } | 106 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
107 | | |
108 | 125 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 125 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
110 | 403k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
111 | 403k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
112 | 403k | } |
113 | 125 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 18 | } | 113 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 8 | } | 113 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 8 | } | 113 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 8 | } | 113 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 41 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 41 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 183k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 182k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 182k | } | 113 | 41 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 47 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 47 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 220k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 220k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 220k | } | 113 | 47 | } |
|
114 | | |
115 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
116 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
117 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE 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 |
118 | | }; |
119 | | |
120 | | template <typename Op> |
121 | | struct StringComparisonImpl { |
122 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
123 | | const ColumnString::Offsets& a_offsets, |
124 | | const ColumnString::Chars& b_data, |
125 | | const ColumnString::Offsets& b_offsets, |
126 | 403 | PaddedPODArray<UInt8>& c) { |
127 | 403 | size_t size = a_offsets.size(); |
128 | 403 | ColumnString::Offset prev_a_offset = 0; |
129 | 403 | ColumnString::Offset prev_b_offset = 0; |
130 | 403 | const auto* a_pos = a_data.data(); |
131 | 403 | const auto* b_pos = b_data.data(); |
132 | | |
133 | 1.08k | for (size_t i = 0; i < size; ++i) { |
134 | 677 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
135 | 677 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
136 | 677 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
137 | 677 | 0); |
138 | | |
139 | 677 | prev_a_offset = a_offsets[i]; |
140 | 677 | prev_b_offset = b_offsets[i]; |
141 | 677 | } |
142 | 403 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 2 | PaddedPODArray<UInt8>& c) { | 127 | 2 | size_t size = a_offsets.size(); | 128 | 2 | ColumnString::Offset prev_a_offset = 0; | 129 | 2 | ColumnString::Offset prev_b_offset = 0; | 130 | 2 | const auto* a_pos = a_data.data(); | 131 | 2 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 49 | for (size_t i = 0; i < size; ++i) { | 134 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 47 | 0); | 138 | | | 139 | 47 | prev_a_offset = a_offsets[i]; | 140 | 47 | prev_b_offset = b_offsets[i]; | 141 | 47 | } | 142 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 39 | PaddedPODArray<UInt8>& c) { | 127 | 39 | size_t size = a_offsets.size(); | 128 | 39 | ColumnString::Offset prev_a_offset = 0; | 129 | 39 | ColumnString::Offset prev_b_offset = 0; | 130 | 39 | const auto* a_pos = a_data.data(); | 131 | 39 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 303 | for (size_t i = 0; i < size; ++i) { | 134 | 264 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 264 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 264 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 264 | 0); | 138 | | | 139 | 264 | prev_a_offset = a_offsets[i]; | 140 | 264 | prev_b_offset = b_offsets[i]; | 141 | 264 | } | 142 | 39 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 362 | PaddedPODArray<UInt8>& c) { | 127 | 362 | size_t size = a_offsets.size(); | 128 | 362 | ColumnString::Offset prev_a_offset = 0; | 129 | 362 | ColumnString::Offset prev_b_offset = 0; | 130 | 362 | const auto* a_pos = a_data.data(); | 131 | 362 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 728 | for (size_t i = 0; i < size; ++i) { | 134 | 366 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 366 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 366 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 366 | 0); | 138 | | | 139 | 366 | prev_a_offset = a_offsets[i]; | 140 | 366 | prev_b_offset = b_offsets[i]; | 141 | 366 | } | 142 | 362 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
143 | | |
144 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
145 | | const ColumnString::Offsets& a_offsets, |
146 | | const ColumnString::Chars& b_data, |
147 | | ColumnString::Offset b_size, |
148 | 3.01k | PaddedPODArray<UInt8>& c) { |
149 | 3.01k | size_t size = a_offsets.size(); |
150 | 3.01k | ColumnString::Offset prev_a_offset = 0; |
151 | 3.01k | const auto* a_pos = a_data.data(); |
152 | 3.01k | const auto* b_pos = b_data.data(); |
153 | | |
154 | 1.65M | for (size_t i = 0; i < size; ++i) { |
155 | 1.65M | c[i] = Op::apply( |
156 | 1.65M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
157 | 1.65M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
158 | 1.65M | 0); |
159 | | |
160 | 1.65M | prev_a_offset = a_offsets[i]; |
161 | 1.65M | } |
162 | 3.01k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 192 | PaddedPODArray<UInt8>& c) { | 149 | 192 | size_t size = a_offsets.size(); | 150 | 192 | ColumnString::Offset prev_a_offset = 0; | 151 | 192 | const auto* a_pos = a_data.data(); | 152 | 192 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 324k | for (size_t i = 0; i < size; ++i) { | 155 | 323k | c[i] = Op::apply( | 156 | 323k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 323k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 323k | 0); | 159 | | | 160 | 323k | prev_a_offset = a_offsets[i]; | 161 | 323k | } | 162 | 192 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 253 | PaddedPODArray<UInt8>& c) { | 149 | 253 | size_t size = a_offsets.size(); | 150 | 253 | ColumnString::Offset prev_a_offset = 0; | 151 | 253 | const auto* a_pos = a_data.data(); | 152 | 253 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 71.5k | for (size_t i = 0; i < size; ++i) { | 155 | 71.2k | c[i] = Op::apply( | 156 | 71.2k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 71.2k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 71.2k | 0); | 159 | | | 160 | 71.2k | prev_a_offset = a_offsets[i]; | 161 | 71.2k | } | 162 | 253 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 641 | PaddedPODArray<UInt8>& c) { | 149 | 641 | size_t size = a_offsets.size(); | 150 | 641 | ColumnString::Offset prev_a_offset = 0; | 151 | 641 | const auto* a_pos = a_data.data(); | 152 | 641 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 608k | for (size_t i = 0; i < size; ++i) { | 155 | 608k | c[i] = Op::apply( | 156 | 608k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 608k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 608k | 0); | 159 | | | 160 | 608k | prev_a_offset = a_offsets[i]; | 161 | 608k | } | 162 | 641 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 1.93k | PaddedPODArray<UInt8>& c) { | 149 | 1.93k | size_t size = a_offsets.size(); | 150 | 1.93k | ColumnString::Offset prev_a_offset = 0; | 151 | 1.93k | const auto* a_pos = a_data.data(); | 152 | 1.93k | const auto* b_pos = b_data.data(); | 153 | | | 154 | 649k | for (size_t i = 0; i < size; ++i) { | 155 | 647k | c[i] = Op::apply( | 156 | 647k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 647k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 647k | 0); | 159 | | | 160 | 647k | prev_a_offset = a_offsets[i]; | 161 | 647k | } | 162 | 1.93k | } |
|
163 | | |
164 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
165 | | ColumnString::Offset a_size, |
166 | | const ColumnString::Chars& b_data, |
167 | | const ColumnString::Offsets& b_offsets, |
168 | 0 | PaddedPODArray<UInt8>& c) { |
169 | 0 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
170 | 0 | a_data, a_size, c); |
171 | 0 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
172 | | }; |
173 | | |
174 | | template <bool positive> |
175 | | struct StringEqualsImpl { |
176 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
177 | | const ColumnString::Offsets& a_offsets, |
178 | | const ColumnString::Chars& b_data, |
179 | | const ColumnString::Offsets& b_offsets, |
180 | 469 | PaddedPODArray<UInt8>& c) { |
181 | 469 | size_t size = a_offsets.size(); |
182 | 469 | ColumnString::Offset prev_a_offset = 0; |
183 | 469 | ColumnString::Offset prev_b_offset = 0; |
184 | 469 | const auto* a_pos = a_data.data(); |
185 | 469 | const auto* b_pos = b_data.data(); |
186 | | |
187 | 1.40k | for (size_t i = 0; i < size; ++i) { |
188 | 940 | auto a_size = a_offsets[i] - prev_a_offset; |
189 | 940 | auto b_size = b_offsets[i] - prev_b_offset; |
190 | | |
191 | 940 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
192 | 940 | b_pos + prev_b_offset, b_size); |
193 | | |
194 | 940 | prev_a_offset = a_offsets[i]; |
195 | 940 | prev_b_offset = b_offsets[i]; |
196 | 940 | } |
197 | 469 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 468 | PaddedPODArray<UInt8>& c) { | 181 | 468 | size_t size = a_offsets.size(); | 182 | 468 | ColumnString::Offset prev_a_offset = 0; | 183 | 468 | ColumnString::Offset prev_b_offset = 0; | 184 | 468 | const auto* a_pos = a_data.data(); | 185 | 468 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 1.40k | for (size_t i = 0; i < size; ++i) { | 188 | 936 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 936 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 936 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 936 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 936 | prev_a_offset = a_offsets[i]; | 195 | 936 | prev_b_offset = b_offsets[i]; | 196 | 936 | } | 197 | 468 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 1 | PaddedPODArray<UInt8>& c) { | 181 | 1 | size_t size = a_offsets.size(); | 182 | 1 | ColumnString::Offset prev_a_offset = 0; | 183 | 1 | ColumnString::Offset prev_b_offset = 0; | 184 | 1 | const auto* a_pos = a_data.data(); | 185 | 1 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 5 | for (size_t i = 0; i < size; ++i) { | 188 | 4 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 4 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 4 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 4 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 4 | prev_a_offset = a_offsets[i]; | 195 | 4 | prev_b_offset = b_offsets[i]; | 196 | 4 | } | 197 | 1 | } |
|
198 | | |
199 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
200 | | const ColumnString::Offsets& a_offsets, |
201 | | const ColumnString::Chars& b_data, |
202 | | ColumnString::Offset b_size, |
203 | 22.0k | PaddedPODArray<UInt8>& c) { |
204 | 22.0k | size_t size = a_offsets.size(); |
205 | 22.0k | if (b_size == 0) { |
206 | 1 | auto* __restrict data = c.data(); |
207 | 1 | auto* __restrict offsets = a_offsets.data(); |
208 | | |
209 | 1 | ColumnString::Offset prev_a_offset = 0; |
210 | 4 | for (size_t i = 0; i < size; ++i) { |
211 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
212 | 3 | prev_a_offset = offsets[i]; |
213 | 3 | } |
214 | 22.0k | } else { |
215 | 22.0k | ColumnString::Offset prev_a_offset = 0; |
216 | 22.0k | const auto* a_pos = a_data.data(); |
217 | 22.0k | const auto* b_pos = b_data.data(); |
218 | 9.00M | for (size_t i = 0; i < size; ++i) { |
219 | 8.97M | auto a_size = a_offsets[i] - prev_a_offset; |
220 | 8.97M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
221 | 8.97M | b_pos, b_size); |
222 | 8.97M | prev_a_offset = a_offsets[i]; |
223 | 8.97M | } |
224 | 22.0k | } |
225 | 22.0k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 20.5k | PaddedPODArray<UInt8>& c) { | 204 | 20.5k | size_t size = a_offsets.size(); | 205 | 20.5k | if (b_size == 0) { | 206 | 0 | auto* __restrict data = c.data(); | 207 | 0 | auto* __restrict offsets = a_offsets.data(); | 208 | |
| 209 | 0 | ColumnString::Offset prev_a_offset = 0; | 210 | 0 | for (size_t i = 0; i < size; ++i) { | 211 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 0 | prev_a_offset = offsets[i]; | 213 | 0 | } | 214 | 20.5k | } else { | 215 | 20.5k | ColumnString::Offset prev_a_offset = 0; | 216 | 20.5k | const auto* a_pos = a_data.data(); | 217 | 20.5k | const auto* b_pos = b_data.data(); | 218 | 8.03M | for (size_t i = 0; i < size; ++i) { | 219 | 8.01M | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 8.01M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 8.01M | b_pos, b_size); | 222 | 8.01M | prev_a_offset = a_offsets[i]; | 223 | 8.01M | } | 224 | 20.5k | } | 225 | 20.5k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 1.50k | PaddedPODArray<UInt8>& c) { | 204 | 1.50k | size_t size = a_offsets.size(); | 205 | 1.50k | if (b_size == 0) { | 206 | 1 | auto* __restrict data = c.data(); | 207 | 1 | auto* __restrict offsets = a_offsets.data(); | 208 | | | 209 | 1 | ColumnString::Offset prev_a_offset = 0; | 210 | 4 | for (size_t i = 0; i < size; ++i) { | 211 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 3 | prev_a_offset = offsets[i]; | 213 | 3 | } | 214 | 1.50k | } else { | 215 | 1.50k | ColumnString::Offset prev_a_offset = 0; | 216 | 1.50k | const auto* a_pos = a_data.data(); | 217 | 1.50k | const auto* b_pos = b_data.data(); | 218 | 962k | for (size_t i = 0; i < size; ++i) { | 219 | 960k | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 960k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 960k | b_pos, b_size); | 222 | 960k | prev_a_offset = a_offsets[i]; | 223 | 960k | } | 224 | 1.50k | } | 225 | 1.50k | } |
|
226 | | |
227 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
228 | | ColumnString::Offset a_size, |
229 | | const ColumnString::Chars& b_data, |
230 | | const ColumnString::Offsets& b_offsets, |
231 | 0 | PaddedPODArray<UInt8>& c) { |
232 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
233 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
234 | | }; |
235 | | |
236 | | template <PrimitiveType PT> |
237 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
238 | | |
239 | | template <PrimitiveType PT> |
240 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
241 | | |
242 | | struct NameEquals { |
243 | | static constexpr auto name = "eq"; |
244 | | }; |
245 | | struct NameNotEquals { |
246 | | static constexpr auto name = "ne"; |
247 | | }; |
248 | | struct NameLess { |
249 | | static constexpr auto name = "lt"; |
250 | | }; |
251 | | struct NameGreater { |
252 | | static constexpr auto name = "gt"; |
253 | | }; |
254 | | struct NameLessOrEquals { |
255 | | static constexpr auto name = "le"; |
256 | | }; |
257 | | struct NameGreaterOrEquals { |
258 | | static constexpr auto name = "ge"; |
259 | | }; |
260 | | |
261 | | template <template <PrimitiveType> class Op, typename Name> |
262 | | class FunctionComparison : public IFunction { |
263 | | public: |
264 | | static constexpr auto name = Name::name; |
265 | 454k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 265 | 420k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 265 | 1.33k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 265 | 6.29k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 265 | 9.92k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 265 | 3.12k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 265 | 13.1k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
266 | | |
267 | 454k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 267 | 420k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 267 | 1.33k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 267 | 6.29k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 267 | 9.94k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 267 | 3.12k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 267 | 13.1k | FunctionComparison() = default; |
|
268 | | |
269 | 1.21M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 269 | 1.17M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 269 | 1.17k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 269 | 6.59k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 269 | 16.2k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 269 | 3.23k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 269 | 15.2k | double execute_cost() const override { return 0.5; } |
|
270 | | |
271 | | private: |
272 | | template <PrimitiveType PT> |
273 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
274 | 165k | const ColumnPtr& col_right_ptr) const { |
275 | 165k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
276 | 165k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
277 | | |
278 | 165k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
279 | 165k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
280 | | |
281 | 165k | DCHECK(!(left_is_const && right_is_const)); |
282 | | |
283 | 165k | if (!left_is_const && !right_is_const) { |
284 | 11.4k | auto col_res = ColumnUInt8::create(); |
285 | | |
286 | 11.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
287 | 11.4k | vec_res.resize(col_left->get_data().size()); |
288 | 11.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
289 | 11.4k | typename PrimitiveTypeTraits<PT>::CppType, |
290 | 11.4k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
291 | 11.4k | vec_res); |
292 | | |
293 | 11.4k | block.replace_by_position(result, std::move(col_res)); |
294 | 154k | } else if (!left_is_const && right_is_const) { |
295 | 154k | auto col_res = ColumnUInt8::create(); |
296 | | |
297 | 154k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
298 | 154k | vec_res.resize(col_left->size()); |
299 | 154k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
300 | 154k | typename PrimitiveTypeTraits<PT>::CppType, |
301 | 154k | Op<PT>>::vector_constant(col_left->get_data(), |
302 | 154k | col_right->get_element(0), vec_res); |
303 | | |
304 | 154k | block.replace_by_position(result, std::move(col_res)); |
305 | 18.4E | } else if (left_is_const && !right_is_const) { |
306 | 4 | auto col_res = ColumnUInt8::create(); |
307 | | |
308 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); |
309 | 4 | vec_res.resize(col_right->size()); |
310 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
311 | 4 | typename PrimitiveTypeTraits<PT>::CppType, |
312 | 4 | Op<PT>>::constant_vector(col_left->get_element(0), |
313 | 4 | col_right->get_data(), vec_res); |
314 | | |
315 | 4 | block.replace_by_position(result, std::move(col_res)); |
316 | 4 | } |
317 | 165k | return Status::OK(); |
318 | 165k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.59k | const ColumnPtr& col_right_ptr) const { | 275 | 1.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.59k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.59k | if (!left_is_const && !right_is_const) { | 284 | 76 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 76 | vec_res.resize(col_left->get_data().size()); | 288 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 76 | vec_res); | 292 | | | 293 | 76 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.52k | } else if (!left_is_const && right_is_const) { | 295 | 1.52k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.52k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.52k | vec_res.resize(col_left->size()); | 299 | 1.52k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.52k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.52k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.52k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.52k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.59k | return Status::OK(); | 318 | 1.59k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.06k | const ColumnPtr& col_right_ptr) const { | 275 | 1.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.06k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.06k | if (!left_is_const && !right_is_const) { | 284 | 243 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 243 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 243 | vec_res.resize(col_left->get_data().size()); | 288 | 243 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 243 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 243 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 243 | vec_res); | 292 | | | 293 | 243 | block.replace_by_position(result, std::move(col_res)); | 294 | 819 | } else if (!left_is_const && right_is_const) { | 295 | 819 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 819 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 819 | vec_res.resize(col_left->size()); | 299 | 819 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 819 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 819 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 819 | col_right->get_element(0), vec_res); | 303 | | | 304 | 819 | block.replace_by_position(result, std::move(col_res)); | 305 | 819 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.06k | return Status::OK(); | 318 | 1.06k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 710 | const ColumnPtr& col_right_ptr) const { | 275 | 710 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 710 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 710 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 710 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 710 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 710 | if (!left_is_const && !right_is_const) { | 284 | 299 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 299 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 299 | vec_res.resize(col_left->get_data().size()); | 288 | 299 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 299 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 299 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 299 | vec_res); | 292 | | | 293 | 299 | block.replace_by_position(result, std::move(col_res)); | 294 | 411 | } else if (!left_is_const && right_is_const) { | 295 | 411 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 411 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 411 | vec_res.resize(col_left->size()); | 299 | 411 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 411 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 411 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 411 | col_right->get_element(0), vec_res); | 303 | | | 304 | 411 | block.replace_by_position(result, std::move(col_res)); | 305 | 411 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 710 | return Status::OK(); | 318 | 710 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3 | const ColumnPtr& col_right_ptr) const { | 275 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3 | if (!left_is_const && !right_is_const) { | 284 | 3 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 3 | vec_res.resize(col_left->get_data().size()); | 288 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 3 | vec_res); | 292 | | | 293 | 3 | block.replace_by_position(result, std::move(col_res)); | 294 | 3 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 3 | return Status::OK(); | 318 | 3 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 5.31k | const ColumnPtr& col_right_ptr) const { | 275 | 5.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 5.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 5.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 5.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 5.31k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 5.31k | if (!left_is_const && !right_is_const) { | 284 | 614 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 614 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 614 | vec_res.resize(col_left->get_data().size()); | 288 | 614 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 614 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 614 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 614 | vec_res); | 292 | | | 293 | 614 | block.replace_by_position(result, std::move(col_res)); | 294 | 4.70k | } else if (!left_is_const && right_is_const) { | 295 | 4.70k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 4.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 4.70k | vec_res.resize(col_left->size()); | 299 | 4.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 4.70k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 4.70k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 4.70k | col_right->get_element(0), vec_res); | 303 | | | 304 | 4.70k | block.replace_by_position(result, std::move(col_res)); | 305 | 4.70k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 5.31k | return Status::OK(); | 318 | 5.31k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.34k | const ColumnPtr& col_right_ptr) const { | 275 | 1.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.34k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.34k | if (!left_is_const && !right_is_const) { | 284 | 126 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 126 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 126 | vec_res.resize(col_left->get_data().size()); | 288 | 126 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 126 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 126 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 126 | vec_res); | 292 | | | 293 | 126 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.21k | } else if (!left_is_const && right_is_const) { | 295 | 1.21k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.21k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.21k | vec_res.resize(col_left->size()); | 299 | 1.21k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.21k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.21k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.21k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.21k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.21k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.34k | return Status::OK(); | 318 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 30.9k | const ColumnPtr& col_right_ptr) const { | 275 | 30.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 30.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 30.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 30.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 30.9k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 30.9k | if (!left_is_const && !right_is_const) { | 284 | 378 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 378 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 378 | vec_res.resize(col_left->get_data().size()); | 288 | 378 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 378 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 378 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 378 | vec_res); | 292 | | | 293 | 378 | block.replace_by_position(result, std::move(col_res)); | 294 | 30.6k | } else if (!left_is_const && right_is_const) { | 295 | 30.6k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 30.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 30.6k | vec_res.resize(col_left->size()); | 299 | 30.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 30.6k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 30.6k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 30.6k | col_right->get_element(0), vec_res); | 303 | | | 304 | 30.6k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 4 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 4 | vec_res.resize(col_right->size()); | 310 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 4 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 4 | col_right->get_data(), vec_res); | 314 | | | 315 | 4 | block.replace_by_position(result, std::move(col_res)); | 316 | 4 | } | 317 | 30.9k | return Status::OK(); | 318 | 30.9k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 23.0k | const ColumnPtr& col_right_ptr) const { | 275 | 23.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 23.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 23.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 23.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 23.0k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 23.0k | if (!left_is_const && !right_is_const) { | 284 | 354 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 354 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 354 | vec_res.resize(col_left->get_data().size()); | 288 | 354 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 354 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 354 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 354 | vec_res); | 292 | | | 293 | 354 | block.replace_by_position(result, std::move(col_res)); | 294 | 22.6k | } else if (!left_is_const && right_is_const) { | 295 | 22.6k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 22.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 22.6k | vec_res.resize(col_left->size()); | 299 | 22.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 22.6k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 22.6k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 22.6k | col_right->get_element(0), vec_res); | 303 | | | 304 | 22.6k | block.replace_by_position(result, std::move(col_res)); | 305 | 22.6k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 23.0k | return Status::OK(); | 318 | 23.0k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 157 | const ColumnPtr& col_right_ptr) const { | 275 | 157 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 157 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 157 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 157 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 157 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 157 | if (!left_is_const && !right_is_const) { | 284 | 100 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 100 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 100 | vec_res.resize(col_left->get_data().size()); | 288 | 100 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 100 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 100 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 100 | vec_res); | 292 | | | 293 | 100 | block.replace_by_position(result, std::move(col_res)); | 294 | 100 | } else if (!left_is_const && right_is_const) { | 295 | 57 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 57 | vec_res.resize(col_left->size()); | 299 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 57 | col_right->get_element(0), vec_res); | 303 | | | 304 | 57 | block.replace_by_position(result, std::move(col_res)); | 305 | 57 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 157 | return Status::OK(); | 318 | 157 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 28 | const ColumnPtr& col_right_ptr) const { | 275 | 28 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 28 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 28 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 28 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 28 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 28 | if (!left_is_const && !right_is_const) { | 284 | 15 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 15 | vec_res.resize(col_left->get_data().size()); | 288 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 15 | vec_res); | 292 | | | 293 | 15 | block.replace_by_position(result, std::move(col_res)); | 294 | 15 | } else if (!left_is_const && right_is_const) { | 295 | 13 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 13 | vec_res.resize(col_left->size()); | 299 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 13 | col_right->get_element(0), vec_res); | 303 | | | 304 | 13 | block.replace_by_position(result, std::move(col_res)); | 305 | 13 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 28 | return Status::OK(); | 318 | 28 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 30 | const ColumnPtr& col_right_ptr) const { | 275 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 30 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 30 | if (!left_is_const && !right_is_const) { | 284 | 24 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 24 | vec_res.resize(col_left->get_data().size()); | 288 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 24 | vec_res); | 292 | | | 293 | 24 | block.replace_by_position(result, std::move(col_res)); | 294 | 24 | } else if (!left_is_const && right_is_const) { | 295 | 6 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 6 | vec_res.resize(col_left->size()); | 299 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 6 | col_right->get_element(0), vec_res); | 303 | | | 304 | 6 | block.replace_by_position(result, std::move(col_res)); | 305 | 6 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 30 | return Status::OK(); | 318 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 118 | const ColumnPtr& col_right_ptr) const { | 275 | 118 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 118 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 118 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 118 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 118 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 119 | if (!left_is_const && !right_is_const) { | 284 | 115 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 115 | vec_res.resize(col_left->get_data().size()); | 288 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 115 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 115 | vec_res); | 292 | | | 293 | 115 | block.replace_by_position(result, std::move(col_res)); | 294 | 115 | } else if (!left_is_const && right_is_const) { | 295 | 4 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 4 | vec_res.resize(col_left->size()); | 299 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 4 | col_right->get_element(0), vec_res); | 303 | | | 304 | 4 | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 118 | return Status::OK(); | 318 | 118 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 493 | const ColumnPtr& col_right_ptr) const { | 275 | 493 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 493 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 493 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 493 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 493 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 493 | if (!left_is_const && !right_is_const) { | 284 | 104 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 104 | vec_res.resize(col_left->get_data().size()); | 288 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 104 | vec_res); | 292 | | | 293 | 104 | block.replace_by_position(result, std::move(col_res)); | 294 | 389 | } else if (!left_is_const && right_is_const) { | 295 | 389 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 389 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 389 | vec_res.resize(col_left->size()); | 299 | 389 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 389 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 389 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 389 | col_right->get_element(0), vec_res); | 303 | | | 304 | 389 | block.replace_by_position(result, std::move(col_res)); | 305 | 389 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 493 | return Status::OK(); | 318 | 493 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 4 | const ColumnPtr& col_right_ptr) const { | 275 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 4 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 4 | if (!left_is_const && !right_is_const) { | 284 | 4 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 4 | vec_res.resize(col_left->get_data().size()); | 288 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 4 | vec_res); | 292 | | | 293 | 4 | block.replace_by_position(result, std::move(col_res)); | 294 | 4 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 4 | return Status::OK(); | 318 | 4 | } |
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 | 274 | 78 | const ColumnPtr& col_right_ptr) const { | 275 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 78 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 78 | if (!left_is_const && !right_is_const) { | 284 | 39 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 39 | vec_res.resize(col_left->get_data().size()); | 288 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 39 | vec_res); | 292 | | | 293 | 39 | block.replace_by_position(result, std::move(col_res)); | 294 | 39 | } else if (!left_is_const && right_is_const) { | 295 | 39 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 39 | vec_res.resize(col_left->size()); | 299 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 39 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 39 | col_right->get_element(0), vec_res); | 303 | | | 304 | 39 | block.replace_by_position(result, std::move(col_res)); | 305 | 39 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 78 | return Status::OK(); | 318 | 78 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 2 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2 | vec_res.resize(col_left->size()); | 299 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2 | col_right->get_element(0), vec_res); | 303 | | | 304 | 2 | block.replace_by_position(result, std::move(col_res)); | 305 | 2 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
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 | 274 | 98 | const ColumnPtr& col_right_ptr) const { | 275 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 98 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 98 | if (!left_is_const && !right_is_const) { | 284 | 54 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 54 | vec_res.resize(col_left->get_data().size()); | 288 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 54 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 54 | vec_res); | 292 | | | 293 | 54 | block.replace_by_position(result, std::move(col_res)); | 294 | 54 | } else if (!left_is_const && right_is_const) { | 295 | 44 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 44 | vec_res.resize(col_left->size()); | 299 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 44 | col_right->get_element(0), vec_res); | 303 | | | 304 | 44 | block.replace_by_position(result, std::move(col_res)); | 305 | 44 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 98 | return Status::OK(); | 318 | 98 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 26 | const ColumnPtr& col_right_ptr) const { | 275 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 26 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 26 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 26 | } else if (!left_is_const && right_is_const) { | 295 | 26 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 26 | vec_res.resize(col_left->size()); | 299 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 26 | col_right->get_element(0), vec_res); | 303 | | | 304 | 26 | block.replace_by_position(result, std::move(col_res)); | 305 | 26 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 26 | return Status::OK(); | 318 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3.15k | const ColumnPtr& col_right_ptr) const { | 275 | 3.15k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.15k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.15k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.15k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.15k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.15k | if (!left_is_const && !right_is_const) { | 284 | 425 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 425 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 425 | vec_res.resize(col_left->get_data().size()); | 288 | 425 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 425 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 425 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 425 | vec_res); | 292 | | | 293 | 425 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.73k | } else if (!left_is_const && right_is_const) { | 295 | 2.73k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.73k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.73k | vec_res.resize(col_left->size()); | 299 | 2.73k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.73k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.73k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.73k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.73k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.73k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 3.15k | return Status::OK(); | 318 | 3.15k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.31k | const ColumnPtr& col_right_ptr) const { | 275 | 2.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.31k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.31k | if (!left_is_const && !right_is_const) { | 284 | 393 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 393 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 393 | vec_res.resize(col_left->get_data().size()); | 288 | 393 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 393 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 393 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 393 | vec_res); | 292 | | | 293 | 393 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.92k | } else if (!left_is_const && right_is_const) { | 295 | 1.92k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.92k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.92k | vec_res.resize(col_left->size()); | 299 | 1.92k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.92k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.92k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.92k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.92k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.92k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2.31k | return Status::OK(); | 318 | 2.31k | } |
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_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 47 | const ColumnPtr& col_right_ptr) const { | 275 | 47 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 47 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 47 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 47 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 47 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 47 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 27 | } else if (!left_is_const && right_is_const) { | 295 | 27 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 27 | vec_res.resize(col_left->size()); | 299 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 27 | col_right->get_element(0), vec_res); | 303 | | | 304 | 27 | block.replace_by_position(result, std::move(col_res)); | 305 | 27 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 47 | return Status::OK(); | 318 | 47 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 60 | const ColumnPtr& col_right_ptr) const { | 275 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 60 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 60 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 40 | } else if (!left_is_const && right_is_const) { | 295 | 40 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 40 | vec_res.resize(col_left->size()); | 299 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 40 | col_right->get_element(0), vec_res); | 303 | | | 304 | 40 | block.replace_by_position(result, std::move(col_res)); | 305 | 40 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 60 | return Status::OK(); | 318 | 60 | } |
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 | 274 | 1.14k | const ColumnPtr& col_right_ptr) const { | 275 | 1.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.14k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.14k | if (!left_is_const && !right_is_const) { | 284 | 987 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 987 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 987 | vec_res.resize(col_left->get_data().size()); | 288 | 987 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 987 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 987 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 987 | vec_res); | 292 | | | 293 | 987 | block.replace_by_position(result, std::move(col_res)); | 294 | 987 | } else if (!left_is_const && right_is_const) { | 295 | 157 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 157 | vec_res.resize(col_left->size()); | 299 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 157 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 157 | col_right->get_element(0), vec_res); | 303 | | | 304 | 157 | block.replace_by_position(result, std::move(col_res)); | 305 | 157 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.14k | return Status::OK(); | 318 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 94 | const ColumnPtr& col_right_ptr) const { | 275 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 94 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 94 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 94 | } else if (!left_is_const && right_is_const) { | 295 | 94 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 94 | vec_res.resize(col_left->size()); | 299 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 94 | col_right->get_element(0), vec_res); | 303 | | | 304 | 94 | block.replace_by_position(result, std::move(col_res)); | 305 | 94 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 94 | return Status::OK(); | 318 | 94 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 587 | const ColumnPtr& col_right_ptr) const { | 275 | 587 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 587 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 587 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 587 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 587 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 587 | if (!left_is_const && !right_is_const) { | 284 | 203 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 203 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 203 | vec_res.resize(col_left->get_data().size()); | 288 | 203 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 203 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 203 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 203 | vec_res); | 292 | | | 293 | 203 | block.replace_by_position(result, std::move(col_res)); | 294 | 384 | } else if (!left_is_const && right_is_const) { | 295 | 384 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 384 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 384 | vec_res.resize(col_left->size()); | 299 | 384 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 384 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 384 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 384 | col_right->get_element(0), vec_res); | 303 | | | 304 | 384 | block.replace_by_position(result, std::move(col_res)); | 305 | 384 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 587 | return Status::OK(); | 318 | 587 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.00k | const ColumnPtr& col_right_ptr) const { | 275 | 1.00k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.00k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.00k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.00k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.00k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.00k | if (!left_is_const && !right_is_const) { | 284 | 442 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 442 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 442 | vec_res.resize(col_left->get_data().size()); | 288 | 442 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 442 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 442 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 442 | vec_res); | 292 | | | 293 | 442 | block.replace_by_position(result, std::move(col_res)); | 294 | 564 | } else if (!left_is_const && right_is_const) { | 295 | 564 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 564 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 564 | vec_res.resize(col_left->size()); | 299 | 564 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 564 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 564 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 564 | col_right->get_element(0), vec_res); | 303 | | | 304 | 564 | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.00k | return Status::OK(); | 318 | 1.00k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 20.2k | const ColumnPtr& col_right_ptr) const { | 275 | 20.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 20.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 20.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 20.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 20.2k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 20.2k | if (!left_is_const && !right_is_const) { | 284 | 1.99k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.99k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.99k | vec_res.resize(col_left->get_data().size()); | 288 | 1.99k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.99k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.99k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.99k | vec_res); | 292 | | | 293 | 1.99k | block.replace_by_position(result, std::move(col_res)); | 294 | 18.2k | } else if (!left_is_const && right_is_const) { | 295 | 18.2k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 18.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 18.2k | vec_res.resize(col_left->size()); | 299 | 18.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 18.2k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 18.2k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 18.2k | col_right->get_element(0), vec_res); | 303 | | | 304 | 18.2k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 20.2k | return Status::OK(); | 318 | 20.2k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 13.3k | const ColumnPtr& col_right_ptr) const { | 275 | 13.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 13.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 13.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 13.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 13.3k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 13.3k | if (!left_is_const && !right_is_const) { | 284 | 133 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 133 | vec_res.resize(col_left->get_data().size()); | 288 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 133 | vec_res); | 292 | | | 293 | 133 | block.replace_by_position(result, std::move(col_res)); | 294 | 13.1k | } else if (!left_is_const && right_is_const) { | 295 | 13.1k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 13.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 13.1k | vec_res.resize(col_left->size()); | 299 | 13.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 13.1k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 13.1k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 13.1k | col_right->get_element(0), vec_res); | 303 | | | 304 | 13.1k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 13.3k | return Status::OK(); | 318 | 13.3k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 218 | const ColumnPtr& col_right_ptr) const { | 275 | 218 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 218 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 218 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 218 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 218 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 218 | if (!left_is_const && !right_is_const) { | 284 | 16 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 16 | vec_res.resize(col_left->get_data().size()); | 288 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 16 | vec_res); | 292 | | | 293 | 16 | block.replace_by_position(result, std::move(col_res)); | 294 | 202 | } else if (!left_is_const && right_is_const) { | 295 | 202 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 202 | vec_res.resize(col_left->size()); | 299 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 202 | col_right->get_element(0), vec_res); | 303 | | | 304 | 202 | block.replace_by_position(result, std::move(col_res)); | 305 | 202 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 218 | return Status::OK(); | 318 | 218 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 1 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1 | vec_res.resize(col_left->size()); | 299 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1 | col_right->get_element(0), vec_res); | 303 | | | 304 | 1 | block.replace_by_position(result, std::move(col_res)); | 305 | 1 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 236 | const ColumnPtr& col_right_ptr) const { | 275 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 236 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 236 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 216 | } else if (!left_is_const && right_is_const) { | 295 | 216 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 216 | vec_res.resize(col_left->size()); | 299 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 216 | col_right->get_element(0), vec_res); | 303 | | | 304 | 216 | block.replace_by_position(result, std::move(col_res)); | 305 | 216 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 236 | return Status::OK(); | 318 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.48k | const ColumnPtr& col_right_ptr) const { | 275 | 2.48k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.48k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.48k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.48k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.48k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.48k | if (!left_is_const && !right_is_const) { | 284 | 43 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 43 | vec_res.resize(col_left->get_data().size()); | 288 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 43 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 43 | vec_res); | 292 | | | 293 | 43 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.43k | } else if (!left_is_const && right_is_const) { | 295 | 2.43k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.43k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.43k | vec_res.resize(col_left->size()); | 299 | 2.43k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.43k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.43k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.43k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.43k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.43k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2.48k | return Status::OK(); | 318 | 2.48k | } |
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 | 274 | 158 | const ColumnPtr& col_right_ptr) const { | 275 | 158 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 158 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 158 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 158 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 158 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 158 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 158 | } else if (!left_is_const && right_is_const) { | 295 | 158 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 158 | vec_res.resize(col_left->size()); | 299 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 158 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 158 | col_right->get_element(0), vec_res); | 303 | | | 304 | 158 | block.replace_by_position(result, std::move(col_res)); | 305 | 158 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 158 | return Status::OK(); | 318 | 158 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.60k | const ColumnPtr& col_right_ptr) const { | 275 | 1.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.60k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.60k | if (!left_is_const && !right_is_const) { | 284 | 7 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 7 | vec_res.resize(col_left->get_data().size()); | 288 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 7 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 7 | vec_res); | 292 | | | 293 | 7 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.60k | } else if (!left_is_const && right_is_const) { | 295 | 1.60k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.60k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.60k | vec_res.resize(col_left->size()); | 299 | 1.60k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.60k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.60k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.60k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.60k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.60k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.60k | return Status::OK(); | 318 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 616 | const ColumnPtr& col_right_ptr) const { | 275 | 616 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 616 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 616 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 616 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 616 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 616 | if (!left_is_const && !right_is_const) { | 284 | 6 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 6 | vec_res.resize(col_left->get_data().size()); | 288 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 6 | vec_res); | 292 | | | 293 | 6 | block.replace_by_position(result, std::move(col_res)); | 294 | 610 | } else if (!left_is_const && right_is_const) { | 295 | 610 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 610 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 610 | vec_res.resize(col_left->size()); | 299 | 610 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 610 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 610 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 610 | col_right->get_element(0), vec_res); | 303 | | | 304 | 610 | block.replace_by_position(result, std::move(col_res)); | 305 | 610 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 616 | return Status::OK(); | 318 | 616 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 89 | const ColumnPtr& col_right_ptr) const { | 275 | 89 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 89 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 89 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 89 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 89 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 89 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 89 | } else if (!left_is_const && right_is_const) { | 295 | 89 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 89 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 89 | vec_res.resize(col_left->size()); | 299 | 89 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 89 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 89 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 89 | col_right->get_element(0), vec_res); | 303 | | | 304 | 89 | block.replace_by_position(result, std::move(col_res)); | 305 | 89 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 89 | return Status::OK(); | 318 | 89 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 134 | const ColumnPtr& col_right_ptr) const { | 275 | 134 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 134 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 134 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 134 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 134 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 134 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 134 | } else if (!left_is_const && right_is_const) { | 295 | 134 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 134 | vec_res.resize(col_left->size()); | 299 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 134 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 134 | col_right->get_element(0), vec_res); | 303 | | | 304 | 134 | block.replace_by_position(result, std::move(col_res)); | 305 | 134 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 134 | return Status::OK(); | 318 | 134 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 13.2k | const ColumnPtr& col_right_ptr) const { | 275 | 13.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 13.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 13.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 13.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 13.2k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 13.2k | if (!left_is_const && !right_is_const) { | 284 | 3 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 3 | vec_res.resize(col_left->get_data().size()); | 288 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 3 | vec_res); | 292 | | | 293 | 3 | block.replace_by_position(result, std::move(col_res)); | 294 | 13.2k | } else if (!left_is_const && right_is_const) { | 295 | 13.2k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 13.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 13.2k | vec_res.resize(col_left->size()); | 299 | 13.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 13.2k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 13.2k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 13.2k | col_right->get_element(0), vec_res); | 303 | | | 304 | 13.2k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 13.2k | return Status::OK(); | 318 | 13.2k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 804 | const ColumnPtr& col_right_ptr) const { | 275 | 804 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 804 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 804 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 804 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 804 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 804 | if (!left_is_const && !right_is_const) { | 284 | 9 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 9 | vec_res.resize(col_left->get_data().size()); | 288 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 9 | vec_res); | 292 | | | 293 | 9 | block.replace_by_position(result, std::move(col_res)); | 294 | 795 | } else if (!left_is_const && right_is_const) { | 295 | 795 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 795 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 795 | vec_res.resize(col_left->size()); | 299 | 795 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 795 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 795 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 795 | col_right->get_element(0), vec_res); | 303 | | | 304 | 795 | block.replace_by_position(result, std::move(col_res)); | 305 | 795 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 804 | return Status::OK(); | 318 | 804 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 42 | const ColumnPtr& col_right_ptr) const { | 275 | 42 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 42 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 42 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 42 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 42 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 42 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 42 | } else if (!left_is_const && right_is_const) { | 295 | 42 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 42 | vec_res.resize(col_left->size()); | 299 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 42 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 42 | col_right->get_element(0), vec_res); | 303 | | | 304 | 42 | block.replace_by_position(result, std::move(col_res)); | 305 | 42 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 42 | return Status::OK(); | 318 | 42 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 11 | const ColumnPtr& col_right_ptr) const { | 275 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 11 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 11 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 10 | } else if (!left_is_const && right_is_const) { | 295 | 10 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10 | vec_res.resize(col_left->size()); | 299 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10 | col_right->get_element(0), vec_res); | 303 | | | 304 | 10 | block.replace_by_position(result, std::move(col_res)); | 305 | 10 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 11 | return Status::OK(); | 318 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1 | const ColumnPtr& col_right_ptr) const { | 275 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 1 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1 | return Status::OK(); | 318 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 128 | const ColumnPtr& col_right_ptr) const { | 275 | 128 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 128 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 128 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 128 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 128 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 128 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 108 | } else if (!left_is_const && right_is_const) { | 295 | 108 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 108 | vec_res.resize(col_left->size()); | 299 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 108 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 108 | col_right->get_element(0), vec_res); | 303 | | | 304 | 108 | block.replace_by_position(result, std::move(col_res)); | 305 | 108 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 128 | return Status::OK(); | 318 | 128 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 157 | const ColumnPtr& col_right_ptr) const { | 275 | 157 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 157 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 157 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 157 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 157 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 157 | if (!left_is_const && !right_is_const) { | 284 | 35 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 35 | vec_res.resize(col_left->get_data().size()); | 288 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 35 | vec_res); | 292 | | | 293 | 35 | block.replace_by_position(result, std::move(col_res)); | 294 | 122 | } else if (!left_is_const && right_is_const) { | 295 | 122 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 122 | vec_res.resize(col_left->size()); | 299 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 122 | col_right->get_element(0), vec_res); | 303 | | | 304 | 122 | block.replace_by_position(result, std::move(col_res)); | 305 | 122 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 157 | return Status::OK(); | 318 | 157 | } |
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 | 274 | 81 | const ColumnPtr& col_right_ptr) const { | 275 | 81 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 81 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 81 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 81 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 81 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 81 | if (!left_is_const && !right_is_const) { | 284 | 81 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 81 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 81 | vec_res.resize(col_left->get_data().size()); | 288 | 81 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 81 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 81 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 81 | vec_res); | 292 | | | 293 | 81 | block.replace_by_position(result, std::move(col_res)); | 294 | 81 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 81 | return Status::OK(); | 318 | 81 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.32k | const ColumnPtr& col_right_ptr) const { | 275 | 2.32k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.32k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.32k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.32k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.32k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.32k | if (!left_is_const && !right_is_const) { | 284 | 1.79k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.79k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.79k | vec_res.resize(col_left->get_data().size()); | 288 | 1.79k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.79k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.79k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.79k | vec_res); | 292 | | | 293 | 1.79k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.79k | } else if (!left_is_const && right_is_const) { | 295 | 532 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 532 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 532 | vec_res.resize(col_left->size()); | 299 | 532 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 532 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 532 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 532 | col_right->get_element(0), vec_res); | 303 | | | 304 | 532 | block.replace_by_position(result, std::move(col_res)); | 305 | 532 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2.32k | return Status::OK(); | 318 | 2.32k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 582 | const ColumnPtr& col_right_ptr) const { | 275 | 582 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 582 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 582 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 582 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 582 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 582 | if (!left_is_const && !right_is_const) { | 284 | 245 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 245 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 245 | vec_res.resize(col_left->get_data().size()); | 288 | 245 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 245 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 245 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 245 | vec_res); | 292 | | | 293 | 245 | block.replace_by_position(result, std::move(col_res)); | 294 | 337 | } else if (!left_is_const && right_is_const) { | 295 | 337 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 337 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 337 | vec_res.resize(col_left->size()); | 299 | 337 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 337 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 337 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 337 | col_right->get_element(0), vec_res); | 303 | | | 304 | 337 | block.replace_by_position(result, std::move(col_res)); | 305 | 337 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 582 | return Status::OK(); | 318 | 582 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3 | const ColumnPtr& col_right_ptr) const { | 275 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 1 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1 | vec_res.resize(col_left->size()); | 299 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1 | col_right->get_element(0), vec_res); | 303 | | | 304 | 1 | block.replace_by_position(result, std::move(col_res)); | 305 | 1 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 3 | return Status::OK(); | 318 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 600 | const ColumnPtr& col_right_ptr) const { | 275 | 600 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 600 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 600 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 600 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 600 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 600 | if (!left_is_const && !right_is_const) { | 284 | 539 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 539 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 539 | vec_res.resize(col_left->get_data().size()); | 288 | 539 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 539 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 539 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 539 | vec_res); | 292 | | | 293 | 539 | block.replace_by_position(result, std::move(col_res)); | 294 | 539 | } else if (!left_is_const && right_is_const) { | 295 | 61 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 61 | vec_res.resize(col_left->size()); | 299 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 61 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 61 | col_right->get_element(0), vec_res); | 303 | | | 304 | 61 | block.replace_by_position(result, std::move(col_res)); | 305 | 61 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 600 | return Status::OK(); | 318 | 600 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 379 | const ColumnPtr& col_right_ptr) const { | 275 | 379 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 379 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 379 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 379 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 379 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 380 | if (!left_is_const && !right_is_const) { | 284 | 112 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 112 | vec_res.resize(col_left->get_data().size()); | 288 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 112 | vec_res); | 292 | | | 293 | 112 | block.replace_by_position(result, std::move(col_res)); | 294 | 268 | } else if (!left_is_const && right_is_const) { | 295 | 268 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 268 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 268 | vec_res.resize(col_left->size()); | 299 | 268 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 268 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 268 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 268 | col_right->get_element(0), vec_res); | 303 | | | 304 | 268 | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 379 | return Status::OK(); | 318 | 379 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 5.88k | const ColumnPtr& col_right_ptr) const { | 275 | 5.88k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 5.88k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 5.88k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 5.88k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 5.88k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 5.89k | if (!left_is_const && !right_is_const) { | 284 | 170 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 170 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 170 | vec_res.resize(col_left->get_data().size()); | 288 | 170 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 170 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 170 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 170 | vec_res); | 292 | | | 293 | 170 | block.replace_by_position(result, std::move(col_res)); | 294 | 5.72k | } else if (!left_is_const && right_is_const) { | 295 | 5.72k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 5.72k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 5.72k | vec_res.resize(col_left->size()); | 299 | 5.72k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 5.72k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 5.72k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 5.72k | col_right->get_element(0), vec_res); | 303 | | | 304 | 5.72k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 5.88k | return Status::OK(); | 318 | 5.88k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.61k | const ColumnPtr& col_right_ptr) const { | 275 | 1.61k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.61k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.61k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.61k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.61k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.61k | if (!left_is_const && !right_is_const) { | 284 | 212 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 212 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 212 | vec_res.resize(col_left->get_data().size()); | 288 | 212 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 212 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 212 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 212 | vec_res); | 292 | | | 293 | 212 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.40k | } else if (!left_is_const && right_is_const) { | 295 | 1.40k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.40k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.40k | vec_res.resize(col_left->size()); | 299 | 1.40k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.40k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.40k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.40k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.40k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.40k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 1.61k | return Status::OK(); | 318 | 1.61k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 178 | const ColumnPtr& col_right_ptr) const { | 275 | 178 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 178 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 178 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 178 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 178 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 178 | if (!left_is_const && !right_is_const) { | 284 | 156 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 156 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 156 | vec_res.resize(col_left->get_data().size()); | 288 | 156 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 156 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 156 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 156 | vec_res); | 292 | | | 293 | 156 | block.replace_by_position(result, std::move(col_res)); | 294 | 156 | } else if (!left_is_const && right_is_const) { | 295 | 22 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 22 | vec_res.resize(col_left->size()); | 299 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 22 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 22 | col_right->get_element(0), vec_res); | 303 | | | 304 | 22 | block.replace_by_position(result, std::move(col_res)); | 305 | 22 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 178 | return Status::OK(); | 318 | 178 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 16 | const ColumnPtr& col_right_ptr) const { | 275 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 16 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 16 | if (!left_is_const && !right_is_const) { | 284 | 16 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 16 | vec_res.resize(col_left->get_data().size()); | 288 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 16 | vec_res); | 292 | | | 293 | 16 | block.replace_by_position(result, std::move(col_res)); | 294 | 16 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 16 | return Status::OK(); | 318 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 16 | const ColumnPtr& col_right_ptr) const { | 275 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 16 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 16 | if (!left_is_const && !right_is_const) { | 284 | 16 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 16 | vec_res.resize(col_left->get_data().size()); | 288 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 16 | vec_res); | 292 | | | 293 | 16 | block.replace_by_position(result, std::move(col_res)); | 294 | 16 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 16 | return Status::OK(); | 318 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 157 | const ColumnPtr& col_right_ptr) const { | 275 | 157 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 157 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 157 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 157 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 157 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 157 | if (!left_is_const && !right_is_const) { | 284 | 131 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 131 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 131 | vec_res.resize(col_left->get_data().size()); | 288 | 131 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 131 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 131 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 131 | vec_res); | 292 | | | 293 | 131 | block.replace_by_position(result, std::move(col_res)); | 294 | 131 | } else if (!left_is_const && right_is_const) { | 295 | 26 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 26 | vec_res.resize(col_left->size()); | 299 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 26 | col_right->get_element(0), vec_res); | 303 | | | 304 | 26 | block.replace_by_position(result, std::move(col_res)); | 305 | 26 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 157 | return Status::OK(); | 318 | 157 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 345 | const ColumnPtr& col_right_ptr) const { | 275 | 345 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 345 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 345 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 345 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 345 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 345 | if (!left_is_const && !right_is_const) { | 284 | 134 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 134 | vec_res.resize(col_left->get_data().size()); | 288 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 134 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 134 | vec_res); | 292 | | | 293 | 134 | block.replace_by_position(result, std::move(col_res)); | 294 | 211 | } else if (!left_is_const && right_is_const) { | 295 | 211 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 211 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 211 | vec_res.resize(col_left->size()); | 299 | 211 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 211 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 211 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 211 | col_right->get_element(0), vec_res); | 303 | | | 304 | 211 | block.replace_by_position(result, std::move(col_res)); | 305 | 211 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 345 | return Status::OK(); | 318 | 345 | } |
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 | 274 | 334 | const ColumnPtr& col_right_ptr) const { | 275 | 334 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 334 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 334 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 334 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 334 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 334 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 334 | } else if (!left_is_const && right_is_const) { | 295 | 334 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 334 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 334 | vec_res.resize(col_left->size()); | 299 | 334 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 334 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 334 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 334 | col_right->get_element(0), vec_res); | 303 | | | 304 | 334 | block.replace_by_position(result, std::move(col_res)); | 305 | 334 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 334 | return Status::OK(); | 318 | 334 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 4.76k | const ColumnPtr& col_right_ptr) const { | 275 | 4.76k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 4.76k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 4.76k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 4.76k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 4.76k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 4.77k | if (!left_is_const && !right_is_const) { | 284 | 424 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 424 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 424 | vec_res.resize(col_left->get_data().size()); | 288 | 424 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 424 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 424 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 424 | vec_res); | 292 | | | 293 | 424 | block.replace_by_position(result, std::move(col_res)); | 294 | 4.34k | } else if (!left_is_const && right_is_const) { | 295 | 4.34k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 4.34k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 4.34k | vec_res.resize(col_left->size()); | 299 | 4.34k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 4.34k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 4.34k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 4.34k | col_right->get_element(0), vec_res); | 303 | | | 304 | 4.34k | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 4.76k | return Status::OK(); | 318 | 4.76k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 493 | const ColumnPtr& col_right_ptr) const { | 275 | 493 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 493 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 493 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 493 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 493 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 493 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 493 | } else if (!left_is_const && right_is_const) { | 295 | 493 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 493 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 493 | vec_res.resize(col_left->size()); | 299 | 493 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 493 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 493 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 493 | col_right->get_element(0), vec_res); | 303 | | | 304 | 493 | block.replace_by_position(result, std::move(col_res)); | 305 | 493 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 493 | return Status::OK(); | 318 | 493 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 2 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 2 | vec_res.resize(col_left->get_data().size()); | 288 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 2 | vec_res); | 292 | | | 293 | 2 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 0 | auto col_res = ColumnUInt8::create(); | 296 | |
| 297 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 0 | vec_res.resize(col_left->size()); | 299 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 0 | col_right->get_element(0), vec_res); | 303 | |
| 304 | 0 | block.replace_by_position(result, std::move(col_res)); | 305 | 0 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 281 | const ColumnPtr& col_right_ptr) const { | 275 | 281 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 281 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 281 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 281 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 281 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 281 | if (!left_is_const && !right_is_const) { | 284 | 1 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1 | vec_res.resize(col_left->get_data().size()); | 288 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1 | vec_res); | 292 | | | 293 | 1 | block.replace_by_position(result, std::move(col_res)); | 294 | 280 | } else if (!left_is_const && right_is_const) { | 295 | 280 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 280 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 280 | vec_res.resize(col_left->size()); | 299 | 280 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 280 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 280 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 280 | col_right->get_element(0), vec_res); | 303 | | | 304 | 280 | block.replace_by_position(result, std::move(col_res)); | 305 | 280 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 281 | return Status::OK(); | 318 | 281 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 373 | const ColumnPtr& col_right_ptr) const { | 275 | 373 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 373 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 373 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 373 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 373 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 373 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 373 | } else if (!left_is_const && right_is_const) { | 295 | 373 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 373 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 373 | vec_res.resize(col_left->size()); | 299 | 373 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 373 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 373 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 373 | col_right->get_element(0), vec_res); | 303 | | | 304 | 373 | block.replace_by_position(result, std::move(col_res)); | 305 | 373 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 373 | return Status::OK(); | 318 | 373 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 19.4k | const ColumnPtr& col_right_ptr) const { | 275 | 19.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 19.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 19.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 19.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 19.4k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 19.4k | if (!left_is_const && !right_is_const) { | 284 | 34 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 34 | vec_res.resize(col_left->get_data().size()); | 288 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 34 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 34 | vec_res); | 292 | | | 293 | 34 | block.replace_by_position(result, std::move(col_res)); | 294 | 19.4k | } else if (!left_is_const && right_is_const) { | 295 | 19.4k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 19.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 19.4k | vec_res.resize(col_left->size()); | 299 | 19.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 19.4k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 19.4k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 19.4k | col_right->get_element(0), vec_res); | 303 | | | 304 | 19.4k | block.replace_by_position(result, std::move(col_res)); | 305 | 19.4k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 19.4k | return Status::OK(); | 318 | 19.4k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 858 | const ColumnPtr& col_right_ptr) const { | 275 | 858 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 858 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 858 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 858 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 858 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 858 | if (!left_is_const && !right_is_const) { | 284 | 39 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 39 | vec_res.resize(col_left->get_data().size()); | 288 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 39 | vec_res); | 292 | | | 293 | 39 | block.replace_by_position(result, std::move(col_res)); | 294 | 819 | } else if (!left_is_const && right_is_const) { | 295 | 819 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 819 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 819 | vec_res.resize(col_left->size()); | 299 | 819 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 819 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 819 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 819 | col_right->get_element(0), vec_res); | 303 | | | 304 | 819 | block.replace_by_position(result, std::move(col_res)); | 305 | 819 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 858 | return Status::OK(); | 318 | 858 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 40 | const ColumnPtr& col_right_ptr) const { | 275 | 40 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 40 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 40 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 40 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 40 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 40 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 40 | } else if (!left_is_const && right_is_const) { | 295 | 40 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 40 | vec_res.resize(col_left->size()); | 299 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 40 | col_right->get_element(0), vec_res); | 303 | | | 304 | 40 | block.replace_by_position(result, std::move(col_res)); | 305 | 40 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 40 | return Status::OK(); | 318 | 40 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 10 | const ColumnPtr& col_right_ptr) const { | 275 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 10 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 10 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 10 | } else if (!left_is_const && right_is_const) { | 295 | 10 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10 | vec_res.resize(col_left->size()); | 299 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10 | col_right->get_element(0), vec_res); | 303 | | | 304 | 10 | block.replace_by_position(result, std::move(col_res)); | 305 | 10 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 10 | return Status::OK(); | 318 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 124 | const ColumnPtr& col_right_ptr) const { | 275 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 124 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 124 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 104 | } else if (!left_is_const && right_is_const) { | 295 | 104 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 104 | vec_res.resize(col_left->size()); | 299 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 104 | col_right->get_element(0), vec_res); | 303 | | | 304 | 104 | block.replace_by_position(result, std::move(col_res)); | 305 | 104 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 124 | return Status::OK(); | 318 | 124 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 138 | const ColumnPtr& col_right_ptr) const { | 275 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 138 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 139 | if (!left_is_const && !right_is_const) { | 284 | 20 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 20 | vec_res.resize(col_left->get_data().size()); | 288 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 20 | vec_res); | 292 | | | 293 | 20 | block.replace_by_position(result, std::move(col_res)); | 294 | 119 | } else if (!left_is_const && right_is_const) { | 295 | 119 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 119 | vec_res.resize(col_left->size()); | 299 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 119 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 119 | col_right->get_element(0), vec_res); | 303 | | | 304 | 119 | block.replace_by_position(result, std::move(col_res)); | 305 | 18.4E | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 138 | return Status::OK(); | 318 | 138 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
319 | | |
320 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
321 | 149k | const ColumnWithTypeAndName& col_right) const { |
322 | 149k | auto call = [&](const auto& type) -> bool { |
323 | 149k | using DispatchType = std::decay_t<decltype(type)>; |
324 | 149k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
325 | 149k | block, result, col_left, col_right); |
326 | 149k | return true; |
327 | 149k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 270 | auto call = [&](const auto& type) -> bool { | 323 | 270 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 270 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 270 | block, result, col_left, col_right); | 326 | 270 | return true; | 327 | 270 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 283 | auto call = [&](const auto& type) -> bool { | 323 | 283 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 283 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 283 | block, result, col_left, col_right); | 326 | 283 | return true; | 327 | 283 | }; |
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 | 322 | 1.21k | auto call = [&](const auto& type) -> bool { | 323 | 1.21k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.21k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.21k | block, result, col_left, col_right); | 326 | 1.21k | return true; | 327 | 1.21k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 30 | auto call = [&](const auto& type) -> bool { | 323 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 30 | block, result, col_left, col_right); | 326 | 30 | return true; | 327 | 30 | }; |
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 | 322 | 61 | auto call = [&](const auto& type) -> bool { | 323 | 61 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 61 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 61 | block, result, col_left, col_right); | 326 | 61 | return true; | 327 | 61 | }; |
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 | 322 | 324 | auto call = [&](const auto& type) -> bool { | 323 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 324 | block, result, col_left, col_right); | 326 | 324 | return true; | 327 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 30 | auto call = [&](const auto& type) -> bool { | 323 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 30 | block, result, col_left, col_right); | 326 | 30 | return true; | 327 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 46 | auto call = [&](const auto& type) -> bool { | 323 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 46 | block, result, col_left, col_right); | 326 | 46 | return true; | 327 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 1.59k | auto call = [&](const auto& type) -> bool { | 323 | 1.59k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.59k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.59k | block, result, col_left, col_right); | 326 | 1.59k | return true; | 327 | 1.59k | }; |
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 | 322 | 1.43k | auto call = [&](const auto& type) -> bool { | 323 | 1.43k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.43k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.43k | block, result, col_left, col_right); | 326 | 1.43k | return true; | 327 | 1.43k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 2 | auto call = [&](const auto& type) -> bool { | 323 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 2 | block, result, col_left, col_right); | 326 | 2 | return true; | 327 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 9 | auto call = [&](const auto& type) -> bool { | 323 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 9 | block, result, col_left, col_right); | 326 | 9 | return true; | 327 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 283 | auto call = [&](const auto& type) -> bool { | 323 | 283 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 283 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 283 | block, result, col_left, col_right); | 326 | 283 | return true; | 327 | 283 | }; |
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 | 322 | 85 | auto call = [&](const auto& type) -> bool { | 323 | 85 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 85 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 85 | block, result, col_left, col_right); | 326 | 85 | return true; | 327 | 85 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 27 | auto call = [&](const auto& type) -> bool { | 323 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 27 | block, result, col_left, col_right); | 326 | 27 | return true; | 327 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 223 | auto call = [&](const auto& type) -> bool { | 323 | 223 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 223 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 223 | block, result, col_left, col_right); | 326 | 223 | return true; | 327 | 223 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 249 | auto call = [&](const auto& type) -> bool { | 323 | 249 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 249 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 249 | block, result, col_left, col_right); | 326 | 249 | return true; | 327 | 249 | }; |
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 | 322 | 457 | auto call = [&](const auto& type) -> bool { | 323 | 457 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 457 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 457 | block, result, col_left, col_right); | 326 | 457 | return true; | 327 | 457 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 1 | auto call = [&](const auto& type) -> bool { | 323 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1 | block, result, col_left, col_right); | 326 | 1 | return true; | 327 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 4 | auto call = [&](const auto& type) -> bool { | 323 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 4 | block, result, col_left, col_right); | 326 | 4 | return true; | 327 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 142k | auto call = [&](const auto& type) -> bool { | 323 | 142k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 142k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 142k | block, result, col_left, col_right); | 326 | 142k | return true; | 327 | 142k | }; |
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 | 322 | 779 | auto call = [&](const auto& type) -> bool { | 323 | 779 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 779 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 779 | block, result, col_left, col_right); | 326 | 779 | return true; | 327 | 779 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 22 | auto call = [&](const auto& type) -> bool { | 323 | 22 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 22 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 22 | block, result, col_left, col_right); | 326 | 22 | return true; | 327 | 22 | }; |
|
328 | | |
329 | 149k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
330 | 0 | return Status::RuntimeError( |
331 | 0 | "type of left column {} is not equal to type of right column {}", |
332 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
333 | 0 | } |
334 | | |
335 | 149k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
337 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
338 | 0 | } |
339 | 149k | return Status::OK(); |
340 | 149k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.80k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.80k | auto call = [&](const auto& type) -> bool { | 323 | 1.80k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.80k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.80k | block, result, col_left, col_right); | 326 | 1.80k | return true; | 327 | 1.80k | }; | 328 | | | 329 | 1.80k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 1.80k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 1.80k | return Status::OK(); | 340 | 1.80k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 415 | const ColumnWithTypeAndName& col_right) const { | 322 | 415 | auto call = [&](const auto& type) -> bool { | 323 | 415 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 415 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 415 | block, result, col_left, col_right); | 326 | 415 | return true; | 327 | 415 | }; | 328 | | | 329 | 415 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 415 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 415 | return Status::OK(); | 340 | 415 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 3.07k | const ColumnWithTypeAndName& col_right) const { | 322 | 3.07k | auto call = [&](const auto& type) -> bool { | 323 | 3.07k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 3.07k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 3.07k | block, result, col_left, col_right); | 326 | 3.07k | return true; | 327 | 3.07k | }; | 328 | | | 329 | 3.07k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 3.07k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 3.07k | return Status::OK(); | 340 | 3.07k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 404 | const ColumnWithTypeAndName& col_right) const { | 322 | 404 | auto call = [&](const auto& type) -> bool { | 323 | 404 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 404 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 404 | block, result, col_left, col_right); | 326 | 404 | return true; | 327 | 404 | }; | 328 | | | 329 | 404 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 404 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 404 | return Status::OK(); | 340 | 404 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 930 | const ColumnWithTypeAndName& col_right) const { | 322 | 930 | auto call = [&](const auto& type) -> bool { | 323 | 930 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 930 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 930 | block, result, col_left, col_right); | 326 | 930 | return true; | 327 | 930 | }; | 328 | | | 329 | 930 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 930 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 930 | return Status::OK(); | 340 | 930 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 142k | const ColumnWithTypeAndName& col_right) const { | 322 | 142k | auto call = [&](const auto& type) -> bool { | 323 | 142k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 142k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 142k | block, result, col_left, col_right); | 326 | 142k | return true; | 327 | 142k | }; | 328 | | | 329 | 142k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 330 | 0 | return Status::RuntimeError( | 331 | 0 | "type of left column {} is not equal to type of right column {}", | 332 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 333 | 0 | } | 334 | | | 335 | 142k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 336 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 337 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 338 | 0 | } | 339 | 142k | return Status::OK(); | 340 | 142k | } |
|
341 | | |
342 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
343 | 25.9k | const IColumn* c1) const { |
344 | 25.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
345 | 25.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
346 | 25.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
347 | 25.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
348 | 25.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
350 | 0 | c0->get_name(), c1->get_name(), name); |
351 | 0 | } |
352 | 25.9k | DCHECK(!(c0_const && c1_const)); |
353 | 25.9k | const ColumnString::Chars* c0_const_chars = nullptr; |
354 | 25.9k | const ColumnString::Chars* c1_const_chars = nullptr; |
355 | 25.9k | ColumnString::Offset c0_const_size = 0; |
356 | 25.9k | ColumnString::Offset c1_const_size = 0; |
357 | | |
358 | 25.9k | if (c0_const) { |
359 | 0 | const ColumnString* c0_const_string = |
360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
361 | |
|
362 | 0 | if (c0_const_string) { |
363 | 0 | c0_const_chars = &c0_const_string->get_chars(); |
364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; |
365 | 0 | } else { |
366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
367 | 0 | c0->get_name(), name); |
368 | 0 | } |
369 | 0 | } |
370 | | |
371 | 25.9k | if (c1_const) { |
372 | 25.0k | const ColumnString* c1_const_string = |
373 | 25.0k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
374 | | |
375 | 25.0k | if (c1_const_string) { |
376 | 25.0k | c1_const_chars = &c1_const_string->get_chars(); |
377 | 25.0k | c1_const_size = c1_const_string->get_offsets()[0]; |
378 | 18.4E | } else { |
379 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
380 | 18.4E | c1->get_name(), name); |
381 | 18.4E | } |
382 | 25.0k | } |
383 | | |
384 | 25.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
385 | | |
386 | 25.9k | auto c_res = ColumnUInt8::create(); |
387 | 25.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
388 | 25.9k | vec_res.resize(c0->size()); |
389 | | |
390 | 25.9k | if (c0_string && c1_string) { |
391 | 872 | StringImpl::string_vector_string_vector( |
392 | 872 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
393 | 872 | c1_string->get_offsets(), vec_res); |
394 | 25.0k | } else if (c0_string && c1_const) { |
395 | 25.0k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
396 | 25.0k | *c1_const_chars, c1_const_size, vec_res); |
397 | 25.0k | } else if (c0_const && c1_string) { |
398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), |
400 | 0 | vec_res); |
401 | 0 | } else { |
402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
403 | 0 | c0->get_name(), c1->get_name(), name); |
404 | 0 | } |
405 | 25.9k | block.replace_by_position(result, std::move(c_res)); |
406 | 25.9k | return Status::OK(); |
407 | 25.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 20.9k | const IColumn* c1) const { | 344 | 20.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 20.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 20.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 20.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 20.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 20.9k | DCHECK(!(c0_const && c1_const)); | 353 | 20.9k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 20.9k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 20.9k | ColumnString::Offset c0_const_size = 0; | 356 | 20.9k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 20.9k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 20.9k | if (c1_const) { | 372 | 20.5k | const ColumnString* c1_const_string = | 373 | 20.5k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 20.5k | if (c1_const_string) { | 376 | 20.5k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 20.5k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 18.4E | } else { | 379 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 18.4E | c1->get_name(), name); | 381 | 18.4E | } | 382 | 20.5k | } | 383 | | | 384 | 20.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 20.9k | auto c_res = ColumnUInt8::create(); | 387 | 20.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 20.9k | vec_res.resize(c0->size()); | 389 | | | 390 | 20.9k | if (c0_string && c1_string) { | 391 | 468 | StringImpl::string_vector_string_vector( | 392 | 468 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 468 | c1_string->get_offsets(), vec_res); | 394 | 20.5k | } else if (c0_string && c1_const) { | 395 | 20.5k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 20.5k | *c1_const_chars, c1_const_size, vec_res); | 397 | 20.5k | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 20.9k | block.replace_by_position(result, std::move(c_res)); | 406 | 20.9k | return Status::OK(); | 407 | 20.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 1.50k | const IColumn* c1) const { | 344 | 1.50k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 1.50k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 1.50k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 1.50k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 1.50k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 1.50k | DCHECK(!(c0_const && c1_const)); | 353 | 1.50k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 1.50k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 1.50k | ColumnString::Offset c0_const_size = 0; | 356 | 1.50k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 1.50k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 1.50k | if (c1_const) { | 372 | 1.50k | const ColumnString* c1_const_string = | 373 | 1.50k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 1.50k | if (c1_const_string) { | 376 | 1.50k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 1.50k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 1.50k | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 1.50k | } | 383 | | | 384 | 1.50k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 1.50k | auto c_res = ColumnUInt8::create(); | 387 | 1.50k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 1.50k | vec_res.resize(c0->size()); | 389 | | | 390 | 1.50k | if (c0_string && c1_string) { | 391 | 1 | StringImpl::string_vector_string_vector( | 392 | 1 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 1 | c1_string->get_offsets(), vec_res); | 394 | 1.50k | } else if (c0_string && c1_const) { | 395 | 1.50k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 1.50k | *c1_const_chars, c1_const_size, vec_res); | 397 | 1.50k | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 1.50k | block.replace_by_position(result, std::move(c_res)); | 406 | 1.50k | return Status::OK(); | 407 | 1.50k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 194 | const IColumn* c1) const { | 344 | 194 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 194 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 194 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 194 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 194 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 194 | DCHECK(!(c0_const && c1_const)); | 353 | 194 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 194 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 194 | ColumnString::Offset c0_const_size = 0; | 356 | 194 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 194 | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 194 | if (c1_const) { | 372 | 192 | const ColumnString* c1_const_string = | 373 | 192 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 192 | if (c1_const_string) { | 376 | 192 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 192 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 192 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 192 | } | 383 | | | 384 | 194 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 194 | auto c_res = ColumnUInt8::create(); | 387 | 194 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 194 | vec_res.resize(c0->size()); | 389 | | | 390 | 194 | if (c0_string && c1_string) { | 391 | 2 | StringImpl::string_vector_string_vector( | 392 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 2 | c1_string->get_offsets(), vec_res); | 394 | 192 | } else if (c0_string && c1_const) { | 395 | 192 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 192 | *c1_const_chars, c1_const_size, vec_res); | 397 | 192 | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 194 | block.replace_by_position(result, std::move(c_res)); | 406 | 194 | return Status::OK(); | 407 | 194 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 680 | const IColumn* c1) const { | 344 | 680 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 680 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 680 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 680 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 680 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 680 | DCHECK(!(c0_const && c1_const)); | 353 | 680 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 680 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 680 | ColumnString::Offset c0_const_size = 0; | 356 | 680 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 680 | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 680 | if (c1_const) { | 372 | 641 | const ColumnString* c1_const_string = | 373 | 641 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 641 | if (c1_const_string) { | 376 | 641 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 641 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 641 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 641 | } | 383 | | | 384 | 680 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 680 | auto c_res = ColumnUInt8::create(); | 387 | 680 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 680 | vec_res.resize(c0->size()); | 389 | | | 390 | 680 | if (c0_string && c1_string) { | 391 | 39 | StringImpl::string_vector_string_vector( | 392 | 39 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 39 | c1_string->get_offsets(), vec_res); | 394 | 641 | } else if (c0_string && c1_const) { | 395 | 641 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 641 | *c1_const_chars, c1_const_size, vec_res); | 397 | 641 | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 0 | } else { | 402 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 0 | c0->get_name(), c1->get_name(), name); | 404 | 0 | } | 405 | 680 | block.replace_by_position(result, std::move(c_res)); | 406 | 680 | return Status::OK(); | 407 | 680 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 615 | const IColumn* c1) const { | 344 | 615 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 615 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 615 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 615 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 615 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 615 | DCHECK(!(c0_const && c1_const)); | 353 | 615 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 615 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 615 | ColumnString::Offset c0_const_size = 0; | 356 | 615 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 615 | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 615 | if (c1_const) { | 372 | 252 | const ColumnString* c1_const_string = | 373 | 252 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 253 | if (c1_const_string) { | 376 | 253 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 253 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 18.4E | } else { | 379 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 18.4E | c1->get_name(), name); | 381 | 18.4E | } | 382 | 252 | } | 383 | | | 384 | 616 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 616 | auto c_res = ColumnUInt8::create(); | 387 | 616 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 616 | vec_res.resize(c0->size()); | 389 | | | 390 | 616 | if (c0_string && c1_string) { | 391 | 362 | StringImpl::string_vector_string_vector( | 392 | 362 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 362 | c1_string->get_offsets(), vec_res); | 394 | 362 | } else if (c0_string && c1_const) { | 395 | 253 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 253 | *c1_const_chars, c1_const_size, vec_res); | 397 | 253 | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 1 | } else { | 402 | 1 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 1 | c0->get_name(), c1->get_name(), name); | 404 | 1 | } | 405 | 615 | block.replace_by_position(result, std::move(c_res)); | 406 | 615 | return Status::OK(); | 407 | 616 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 1.93k | const IColumn* c1) const { | 344 | 1.93k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 1.93k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 1.93k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 1.93k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 1.93k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 349 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 350 | 0 | c0->get_name(), c1->get_name(), name); | 351 | 0 | } | 352 | 1.93k | DCHECK(!(c0_const && c1_const)); | 353 | 1.93k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 1.93k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 1.93k | ColumnString::Offset c0_const_size = 0; | 356 | 1.93k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 1.93k | if (c0_const) { | 359 | 0 | const ColumnString* c0_const_string = | 360 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 361 | |
| 362 | 0 | if (c0_const_string) { | 363 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 364 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 365 | 0 | } else { | 366 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 367 | 0 | c0->get_name(), name); | 368 | 0 | } | 369 | 0 | } | 370 | | | 371 | 1.93k | if (c1_const) { | 372 | 1.93k | const ColumnString* c1_const_string = | 373 | 1.93k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 1.93k | if (c1_const_string) { | 376 | 1.93k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 1.93k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 1.93k | } else { | 379 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 1 | c1->get_name(), name); | 381 | 1 | } | 382 | 1.93k | } | 383 | | | 384 | 1.93k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 1.93k | auto c_res = ColumnUInt8::create(); | 387 | 1.93k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 1.93k | vec_res.resize(c0->size()); | 389 | | | 390 | 1.93k | if (c0_string && c1_string) { | 391 | 0 | StringImpl::string_vector_string_vector( | 392 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 0 | c1_string->get_offsets(), vec_res); | 394 | 1.93k | } else if (c0_string && c1_const) { | 395 | 1.93k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 1.93k | *c1_const_chars, c1_const_size, vec_res); | 397 | 18.4E | } else if (c0_const && c1_string) { | 398 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 399 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 400 | 0 | vec_res); | 401 | 18.4E | } else { | 402 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 403 | 18.4E | c0->get_name(), c1->get_name(), name); | 404 | 18.4E | } | 405 | 1.93k | block.replace_by_position(result, std::move(c_res)); | 406 | 1.93k | return Status::OK(); | 407 | 1.93k | } |
|
408 | | |
409 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
410 | 134 | const IColumn* c1) const { |
411 | 134 | bool c0_const = is_column_const(*c0); |
412 | 134 | bool c1_const = is_column_const(*c1); |
413 | | |
414 | 134 | DCHECK(!(c0_const && c1_const)); |
415 | | |
416 | 134 | auto c_res = ColumnUInt8::create(); |
417 | 134 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
418 | 134 | vec_res.resize(c0->size()); |
419 | | |
420 | 134 | if (c0_const) { |
421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
422 | 134 | } else if (c1_const) { |
423 | 125 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
424 | 125 | } else { |
425 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
426 | 9 | } |
427 | | |
428 | 134 | block.replace_by_position(result, std::move(c_res)); |
429 | 134 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 17 | const IColumn* c1) const { | 411 | 17 | bool c0_const = is_column_const(*c0); | 412 | 17 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 17 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 17 | auto c_res = ColumnUInt8::create(); | 417 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 17 | vec_res.resize(c0->size()); | 419 | | | 420 | 17 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 17 | } else if (c1_const) { | 423 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 13 | } else { | 425 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 4 | } | 427 | | | 428 | 17 | block.replace_by_position(result, std::move(c_res)); | 429 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 8 | const IColumn* c1) const { | 411 | 8 | bool c0_const = is_column_const(*c0); | 412 | 8 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 8 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 8 | auto c_res = ColumnUInt8::create(); | 417 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 8 | vec_res.resize(c0->size()); | 419 | | | 420 | 8 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 8 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 8 | block.replace_by_position(result, std::move(c_res)); | 429 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 9 | const IColumn* c1) const { | 411 | 9 | bool c0_const = is_column_const(*c0); | 412 | 9 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 9 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 9 | auto c_res = ColumnUInt8::create(); | 417 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 9 | vec_res.resize(c0->size()); | 419 | | | 420 | 9 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 9 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 9 | block.replace_by_position(result, std::move(c_res)); | 429 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 48 | const IColumn* c1) const { | 411 | 48 | bool c0_const = is_column_const(*c0); | 412 | 48 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 48 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 48 | auto c_res = ColumnUInt8::create(); | 417 | 48 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 48 | vec_res.resize(c0->size()); | 419 | | | 420 | 48 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 48 | } else if (c1_const) { | 423 | 47 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 47 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 48 | block.replace_by_position(result, std::move(c_res)); | 429 | 48 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 11 | const IColumn* c1) const { | 411 | 11 | bool c0_const = is_column_const(*c0); | 412 | 11 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 11 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 11 | auto c_res = ColumnUInt8::create(); | 417 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 11 | vec_res.resize(c0->size()); | 419 | | | 420 | 11 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 11 | } else if (c1_const) { | 423 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 8 | } else { | 425 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 3 | } | 427 | | | 428 | 11 | block.replace_by_position(result, std::move(c_res)); | 429 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 410 | 41 | const IColumn* c1) const { | 411 | 41 | bool c0_const = is_column_const(*c0); | 412 | 41 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 41 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 41 | auto c_res = ColumnUInt8::create(); | 417 | 41 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 41 | vec_res.resize(c0->size()); | 419 | | | 420 | 41 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 41 | } else if (c1_const) { | 423 | 41 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 41 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 41 | block.replace_by_position(result, std::move(c_res)); | 429 | 41 | } |
|
430 | | |
431 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
432 | 134 | const ColumnWithTypeAndName& c1) const { |
433 | 134 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
434 | 134 | return Status::OK(); |
435 | 134 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 17 | const ColumnWithTypeAndName& c1) const { | 433 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 17 | return Status::OK(); | 435 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 8 | const ColumnWithTypeAndName& c1) const { | 433 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 8 | return Status::OK(); | 435 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 9 | const ColumnWithTypeAndName& c1) const { | 433 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 9 | return Status::OK(); | 435 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 48 | const ColumnWithTypeAndName& c1) const { | 433 | 48 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 48 | return Status::OK(); | 435 | 48 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 11 | const ColumnWithTypeAndName& c1) const { | 433 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 11 | return Status::OK(); | 435 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 432 | 41 | const ColumnWithTypeAndName& c1) const { | 433 | 41 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 41 | return Status::OK(); | 435 | 41 | } |
|
436 | | |
437 | | public: |
438 | 222 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 1 | String get_name() const override { return name; } |
|
439 | | |
440 | 454k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 420k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 1.32k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 440 | 6.28k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 9.91k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 440 | 3.11k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 13.0k | size_t get_number_of_arguments() const override { return 2; } |
|
441 | | |
442 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
443 | 454k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
444 | 454k | return std::make_shared<DataTypeUInt8>(); |
445 | 454k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 420k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 420k | return std::make_shared<DataTypeUInt8>(); | 445 | 420k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 1.32k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 1.32k | return std::make_shared<DataTypeUInt8>(); | 445 | 1.32k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 6.28k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 6.28k | return std::make_shared<DataTypeUInt8>(); | 445 | 6.28k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 9.93k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 9.93k | return std::make_shared<DataTypeUInt8>(); | 445 | 9.93k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 3.11k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 3.11k | return std::make_shared<DataTypeUInt8>(); | 445 | 3.11k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 13.1k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 13.1k | return std::make_shared<DataTypeUInt8>(); | 445 | 13.1k | } |
|
446 | | |
447 | | Status evaluate_inverted_index( |
448 | | const ColumnsWithTypeAndName& arguments, |
449 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
450 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
451 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
452 | 1.77k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
453 | 1.77k | DCHECK(arguments.size() == 1); |
454 | 1.77k | DCHECK(data_type_with_names.size() == 1); |
455 | 1.77k | DCHECK(iterators.size() == 1); |
456 | 1.77k | auto* iter = iterators[0]; |
457 | 1.77k | auto data_type_with_name = data_type_with_names[0]; |
458 | 1.77k | if (iter == nullptr) { |
459 | 0 | return Status::OK(); |
460 | 0 | } |
461 | 1.77k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
462 | 440 | return Status::OK(); |
463 | 440 | } |
464 | 1.33k | segment_v2::InvertedIndexQueryType query_type; |
465 | 1.33k | std::string_view name_view(name); |
466 | 1.33k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
467 | 874 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
468 | 874 | } else if (name_view == NameLess::name) { |
469 | 109 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
470 | 348 | } else if (name_view == NameLessOrEquals::name) { |
471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
472 | 250 | } else if (name_view == NameGreater::name) { |
473 | 114 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
474 | 136 | } else if (name_view == NameGreaterOrEquals::name) { |
475 | 135 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
476 | 135 | } else { |
477 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
478 | 1 | } |
479 | | |
480 | 1.33k | if (segment_v2::is_range_query(query_type) && |
481 | 1.33k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
483 | 171 | return Status::OK(); |
484 | 171 | } |
485 | 1.15k | Field param_value; |
486 | 1.15k | arguments[0].column->get(0, param_value); |
487 | 1.15k | if (param_value.is_null()) { |
488 | 2 | return Status::OK(); |
489 | 2 | } |
490 | 1.15k | segment_v2::InvertedIndexParam param; |
491 | 1.15k | param.column_name = data_type_with_name.first; |
492 | 1.15k | param.column_type = data_type_with_name.second; |
493 | 1.15k | param.query_value = param_value; |
494 | 1.15k | param.query_type = query_type; |
495 | 1.15k | param.num_rows = num_rows; |
496 | 1.15k | param.roaring = std::make_shared<roaring::Roaring>(); |
497 | 1.15k | param.analyzer_ctx = analyzer_ctx; |
498 | 1.15k | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
499 | 1.00k | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
500 | 1.00k | if (iter->has_null()) { |
501 | 1.00k | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
502 | 1.00k | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
503 | 1.00k | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
504 | 1.00k | } |
505 | 1.00k | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
506 | 1.00k | bitmap_result = result; |
507 | 1.00k | bitmap_result.mask_out_null(); |
508 | | |
509 | 1.00k | if (name_view == NameNotEquals::name) { |
510 | 61 | roaring::Roaring full_result; |
511 | 61 | full_result.addRange(0, num_rows); |
512 | 61 | bitmap_result.op_not(&full_result); |
513 | 61 | } |
514 | | |
515 | 1.00k | return Status::OK(); |
516 | 1.00k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 886 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 886 | DCHECK(arguments.size() == 1); | 454 | 886 | DCHECK(data_type_with_names.size() == 1); | 455 | 886 | DCHECK(iterators.size() == 1); | 456 | 886 | auto* iter = iterators[0]; | 457 | 886 | auto data_type_with_name = data_type_with_names[0]; | 458 | 886 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 886 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 82 | return Status::OK(); | 463 | 82 | } | 464 | 804 | segment_v2::InvertedIndexQueryType query_type; | 465 | 804 | std::string_view name_view(name); | 466 | 804 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 804 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 804 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 0 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 0 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 0 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 804 | if (segment_v2::is_range_query(query_type) && | 481 | 804 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 0 | return Status::OK(); | 484 | 0 | } | 485 | 804 | Field param_value; | 486 | 804 | arguments[0].column->get(0, param_value); | 487 | 804 | if (param_value.is_null()) { | 488 | 2 | return Status::OK(); | 489 | 2 | } | 490 | 802 | segment_v2::InvertedIndexParam param; | 491 | 802 | param.column_name = data_type_with_name.first; | 492 | 802 | param.column_type = data_type_with_name.second; | 493 | 802 | param.query_value = param_value; | 494 | 802 | param.query_type = query_type; | 495 | 802 | param.num_rows = num_rows; | 496 | 802 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 802 | param.analyzer_ctx = analyzer_ctx; | 498 | 802 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 753 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 753 | if (iter->has_null()) { | 501 | 753 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 753 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 753 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 753 | } | 505 | 753 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 753 | bitmap_result = result; | 507 | 753 | bitmap_result.mask_out_null(); | 508 | | | 509 | 753 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 753 | return Status::OK(); | 516 | 753 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 78 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 78 | DCHECK(arguments.size() == 1); | 454 | 78 | DCHECK(data_type_with_names.size() == 1); | 455 | 78 | DCHECK(iterators.size() == 1); | 456 | 78 | auto* iter = iterators[0]; | 457 | 78 | auto data_type_with_name = data_type_with_names[0]; | 458 | 78 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 78 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 8 | return Status::OK(); | 463 | 8 | } | 464 | 70 | segment_v2::InvertedIndexQueryType query_type; | 465 | 70 | std::string_view name_view(name); | 466 | 70 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 70 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 70 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 0 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 0 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 0 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 70 | if (segment_v2::is_range_query(query_type) && | 481 | 70 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 0 | return Status::OK(); | 484 | 0 | } | 485 | 70 | Field param_value; | 486 | 70 | arguments[0].column->get(0, param_value); | 487 | 70 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 70 | segment_v2::InvertedIndexParam param; | 491 | 70 | param.column_name = data_type_with_name.first; | 492 | 70 | param.column_type = data_type_with_name.second; | 493 | 70 | param.query_value = param_value; | 494 | 70 | param.query_type = query_type; | 495 | 70 | param.num_rows = num_rows; | 496 | 70 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 70 | param.analyzer_ctx = analyzer_ctx; | 498 | 70 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 63 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 63 | if (iter->has_null()) { | 501 | 63 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 63 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 63 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 63 | } | 505 | 63 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 63 | bitmap_result = result; | 507 | 63 | bitmap_result.mask_out_null(); | 508 | | | 509 | 63 | if (name_view == NameNotEquals::name) { | 510 | 61 | roaring::Roaring full_result; | 511 | 61 | full_result.addRange(0, num_rows); | 512 | 61 | bitmap_result.op_not(&full_result); | 513 | 61 | } | 514 | | | 515 | 63 | return Status::OK(); | 516 | 63 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 176 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 176 | DCHECK(arguments.size() == 1); | 454 | 176 | DCHECK(data_type_with_names.size() == 1); | 455 | 176 | DCHECK(iterators.size() == 1); | 456 | 176 | auto* iter = iterators[0]; | 457 | 176 | auto data_type_with_name = data_type_with_names[0]; | 458 | 176 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 176 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 62 | return Status::OK(); | 463 | 62 | } | 464 | 114 | segment_v2::InvertedIndexQueryType query_type; | 465 | 114 | std::string_view name_view(name); | 466 | 114 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 114 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 114 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 114 | } else if (name_view == NameGreater::name) { | 473 | 114 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 114 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 0 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 114 | if (segment_v2::is_range_query(query_type) && | 481 | 114 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 28 | return Status::OK(); | 484 | 28 | } | 485 | 86 | Field param_value; | 486 | 86 | arguments[0].column->get(0, param_value); | 487 | 86 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 86 | segment_v2::InvertedIndexParam param; | 491 | 86 | param.column_name = data_type_with_name.first; | 492 | 86 | param.column_type = data_type_with_name.second; | 493 | 86 | param.query_value = param_value; | 494 | 86 | param.query_type = query_type; | 495 | 86 | param.num_rows = num_rows; | 496 | 86 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 86 | param.analyzer_ctx = analyzer_ctx; | 498 | 86 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 67 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 67 | if (iter->has_null()) { | 501 | 67 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 67 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 67 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 67 | } | 505 | 67 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 67 | bitmap_result = result; | 507 | 67 | bitmap_result.mask_out_null(); | 508 | | | 509 | 67 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 67 | return Status::OK(); | 516 | 67 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 249 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 249 | DCHECK(arguments.size() == 1); | 454 | 249 | DCHECK(data_type_with_names.size() == 1); | 455 | 249 | DCHECK(iterators.size() == 1); | 456 | 249 | auto* iter = iterators[0]; | 457 | 249 | auto data_type_with_name = data_type_with_names[0]; | 458 | 249 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 249 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 114 | return Status::OK(); | 463 | 114 | } | 464 | 135 | segment_v2::InvertedIndexQueryType query_type; | 465 | 135 | std::string_view name_view(name); | 466 | 135 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 135 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 135 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 135 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 135 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 135 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 135 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 135 | if (segment_v2::is_range_query(query_type) && | 481 | 135 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 59 | return Status::OK(); | 484 | 59 | } | 485 | 76 | Field param_value; | 486 | 76 | arguments[0].column->get(0, param_value); | 487 | 76 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 76 | segment_v2::InvertedIndexParam param; | 491 | 76 | param.column_name = data_type_with_name.first; | 492 | 76 | param.column_type = data_type_with_name.second; | 493 | 76 | param.query_value = param_value; | 494 | 76 | param.query_type = query_type; | 495 | 76 | param.num_rows = num_rows; | 496 | 76 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 76 | param.analyzer_ctx = analyzer_ctx; | 498 | 76 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 34 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 34 | if (iter->has_null()) { | 501 | 34 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 34 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 34 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 34 | } | 505 | 34 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 34 | bitmap_result = result; | 507 | 34 | bitmap_result.mask_out_null(); | 508 | | | 509 | 34 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 34 | return Status::OK(); | 516 | 34 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 171 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 171 | DCHECK(arguments.size() == 1); | 454 | 171 | DCHECK(data_type_with_names.size() == 1); | 455 | 171 | DCHECK(iterators.size() == 1); | 456 | 171 | auto* iter = iterators[0]; | 457 | 171 | auto data_type_with_name = data_type_with_names[0]; | 458 | 171 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 171 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 61 | return Status::OK(); | 463 | 61 | } | 464 | 110 | segment_v2::InvertedIndexQueryType query_type; | 465 | 110 | std::string_view name_view(name); | 466 | 110 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 110 | } else if (name_view == NameLess::name) { | 469 | 109 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 109 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 1 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 1 | } else { | 477 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 1 | } | 479 | | | 480 | 109 | if (segment_v2::is_range_query(query_type) && | 481 | 111 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 26 | return Status::OK(); | 484 | 26 | } | 485 | 83 | Field param_value; | 486 | 83 | arguments[0].column->get(0, param_value); | 487 | 83 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 83 | segment_v2::InvertedIndexParam param; | 491 | 83 | param.column_name = data_type_with_name.first; | 492 | 83 | param.column_type = data_type_with_name.second; | 493 | 83 | param.query_value = param_value; | 494 | 83 | param.query_type = query_type; | 495 | 83 | param.num_rows = num_rows; | 496 | 83 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 83 | param.analyzer_ctx = analyzer_ctx; | 498 | 83 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 64 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 67 | if (iter->has_null()) { | 501 | 67 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 67 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 67 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 67 | } | 505 | 64 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 64 | bitmap_result = result; | 507 | 64 | bitmap_result.mask_out_null(); | 508 | | | 509 | 64 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 64 | return Status::OK(); | 516 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 211 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 211 | DCHECK(arguments.size() == 1); | 454 | 211 | DCHECK(data_type_with_names.size() == 1); | 455 | 211 | DCHECK(iterators.size() == 1); | 456 | 211 | auto* iter = iterators[0]; | 457 | 211 | auto data_type_with_name = data_type_with_names[0]; | 458 | 211 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 211 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 113 | return Status::OK(); | 463 | 113 | } | 464 | 98 | segment_v2::InvertedIndexQueryType query_type; | 465 | 98 | std::string_view name_view(name); | 466 | 98 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 98 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 98 | } else if (name_view == NameLessOrEquals::name) { | 471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 98 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 0 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 98 | if (segment_v2::is_range_query(query_type) && | 481 | 98 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 58 | return Status::OK(); | 484 | 58 | } | 485 | 40 | Field param_value; | 486 | 40 | arguments[0].column->get(0, param_value); | 487 | 40 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 40 | segment_v2::InvertedIndexParam param; | 491 | 40 | param.column_name = data_type_with_name.first; | 492 | 40 | param.column_type = data_type_with_name.second; | 493 | 40 | param.query_value = param_value; | 494 | 40 | param.query_type = query_type; | 495 | 40 | param.num_rows = num_rows; | 496 | 40 | param.roaring = std::make_shared<roaring::Roaring>(); | 497 | 40 | param.analyzer_ctx = analyzer_ctx; | 498 | 40 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 499 | 20 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 500 | 20 | if (iter->has_null()) { | 501 | 19 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 502 | 19 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 503 | 19 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 504 | 19 | } | 505 | 20 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 506 | 20 | bitmap_result = result; | 507 | 20 | bitmap_result.mask_out_null(); | 508 | | | 509 | 20 | if (name_view == NameNotEquals::name) { | 510 | 0 | roaring::Roaring full_result; | 511 | 0 | full_result.addRange(0, num_rows); | 512 | 0 | bitmap_result.op_not(&full_result); | 513 | 0 | } | 514 | | | 515 | 20 | return Status::OK(); | 516 | 20 | } |
|
517 | | |
518 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
519 | 341k | uint32_t result, size_t input_rows_count) const override { |
520 | 341k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
521 | 341k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
522 | | |
523 | 341k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
524 | 341k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
525 | 341k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
526 | 341k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
527 | | |
528 | 341k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
529 | 341k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
530 | | |
531 | | /// The case when arguments are the same (tautological comparison). Return constant. |
532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
534 | 341k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
535 | 341k | col_left_untyped == col_right_untyped) { |
536 | | /// Always true: =, <=, >= |
537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
541 | 0 | block.get_by_position(result).column = |
542 | 0 | DataTypeUInt8() |
543 | 0 | .create_column_const(input_rows_count, |
544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
545 | 0 | ->convert_to_full_column_if_const(); |
546 | 0 | return Status::OK(); |
547 | 0 | } else { |
548 | 0 | block.get_by_position(result).column = |
549 | 0 | DataTypeUInt8() |
550 | 0 | .create_column_const(input_rows_count, |
551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
552 | 0 | ->convert_to_full_column_if_const(); |
553 | 0 | return Status::OK(); |
554 | 0 | } |
555 | 0 | } |
556 | | |
557 | 507k | auto can_compare = [](PrimitiveType t) -> bool { |
558 | 507k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
559 | 507k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 152k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 152k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 152k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 13.4k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 13.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 13.4k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 81.8k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 81.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 81.8k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 35.1k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 35.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 35.1k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 25.9k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 25.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 25.9k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 557 | 198k | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 198k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 198k | }; |
|
560 | | |
561 | 341k | if (can_compare(left_type->get_primitive_type()) && |
562 | 341k | can_compare(right_type->get_primitive_type())) { |
563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
564 | 166k | if (!left_type->equals_ignore_precision(*right_type)) { |
565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
566 | 0 | get_name(), left_type->get_name(), |
567 | 0 | right_type->get_name()); |
568 | 0 | } |
569 | 166k | } |
570 | | |
571 | 341k | auto compare_type = left_type->get_primitive_type(); |
572 | 341k | switch (compare_type) { |
573 | 2.16k | case TYPE_BOOLEAN: |
574 | 2.16k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
575 | 10.9k | case TYPE_DATEV2: |
576 | 10.9k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
577 | 2.49k | case TYPE_DATETIMEV2: |
578 | 2.49k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
579 | 12 | case TYPE_TIMESTAMPTZ: |
580 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
581 | 6.96k | case TYPE_TINYINT: |
582 | 6.96k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
583 | 3.25k | case TYPE_SMALLINT: |
584 | 3.25k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
585 | 92.9k | case TYPE_INT: |
586 | 92.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
587 | 41.9k | case TYPE_BIGINT: |
588 | 41.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
589 | 635 | case TYPE_LARGEINT: |
590 | 635 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
591 | 67 | case TYPE_IPV4: |
592 | 67 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
593 | 48 | case TYPE_IPV6: |
594 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
595 | 811 | case TYPE_FLOAT: |
596 | 811 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
597 | 3.67k | case TYPE_DOUBLE: |
598 | 3.67k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
599 | 4 | case TYPE_TIMEV2: |
600 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
601 | 0 | case TYPE_DECIMALV2: |
602 | 552 | case TYPE_DECIMAL32: |
603 | 145k | case TYPE_DECIMAL64: |
604 | 149k | case TYPE_DECIMAL128I: |
605 | 149k | case TYPE_DECIMAL256: |
606 | 149k | return execute_decimal(block, result, col_with_type_and_name_left, |
607 | 149k | col_with_type_and_name_right); |
608 | 1.34k | case TYPE_CHAR: |
609 | 10.2k | case TYPE_VARCHAR: |
610 | 25.9k | case TYPE_STRING: |
611 | 25.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
612 | 134 | default: |
613 | 134 | return execute_generic(block, result, col_with_type_and_name_left, |
614 | 134 | col_with_type_and_name_right); |
615 | 341k | } |
616 | 0 | return Status::OK(); |
617 | 341k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 87.6k | uint32_t result, size_t input_rows_count) const override { | 520 | 87.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 87.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 87.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 87.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 87.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 87.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 87.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 87.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 87.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 87.6k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 87.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 87.6k | }; | 560 | | | 561 | 87.6k | if (can_compare(left_type->get_primitive_type()) && | 562 | 87.6k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 64.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 64.8k | } | 570 | | | 571 | 87.6k | auto compare_type = left_type->get_primitive_type(); | 572 | 87.6k | switch (compare_type) { | 573 | 1.59k | case TYPE_BOOLEAN: | 574 | 1.59k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.06k | case TYPE_DATEV2: | 576 | 1.06k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 710 | case TYPE_DATETIMEV2: | 578 | 710 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 3 | case TYPE_TIMESTAMPTZ: | 580 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 5.31k | case TYPE_TINYINT: | 582 | 5.31k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 1.34k | case TYPE_SMALLINT: | 584 | 1.34k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 31.0k | case TYPE_INT: | 586 | 31.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 23.0k | case TYPE_BIGINT: | 588 | 23.0k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 157 | case TYPE_LARGEINT: | 590 | 157 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 28 | case TYPE_IPV4: | 592 | 28 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 30 | case TYPE_IPV6: | 594 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 119 | case TYPE_FLOAT: | 596 | 119 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 493 | case TYPE_DOUBLE: | 598 | 493 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 4 | case TYPE_TIMEV2: | 600 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 270 | case TYPE_DECIMAL32: | 603 | 553 | case TYPE_DECIMAL64: | 604 | 1.77k | case TYPE_DECIMAL128I: | 605 | 1.80k | case TYPE_DECIMAL256: | 606 | 1.80k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 1.80k | col_with_type_and_name_right); | 608 | 817 | case TYPE_CHAR: | 609 | 8.06k | case TYPE_VARCHAR: | 610 | 20.9k | case TYPE_STRING: | 611 | 20.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 17 | default: | 613 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 17 | col_with_type_and_name_right); | 615 | 87.6k | } | 616 | 0 | return Status::OK(); | 617 | 87.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 7.71k | uint32_t result, size_t input_rows_count) const override { | 520 | 7.71k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 7.71k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 7.71k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 7.71k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 7.71k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 7.71k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 7.71k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 7.71k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 7.71k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 7.71k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 7.71k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 7.71k | }; | 560 | | | 561 | 7.71k | if (can_compare(left_type->get_primitive_type()) && | 562 | 7.71k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 5.78k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 5.78k | } | 570 | | | 571 | 7.71k | auto compare_type = left_type->get_primitive_type(); | 572 | 7.71k | switch (compare_type) { | 573 | 0 | case TYPE_BOOLEAN: | 574 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 78 | case TYPE_DATEV2: | 576 | 78 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 2 | case TYPE_DATETIMEV2: | 578 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 0 | case TYPE_TIMESTAMPTZ: | 580 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 98 | case TYPE_TINYINT: | 582 | 98 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 26 | case TYPE_SMALLINT: | 584 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 3.15k | case TYPE_INT: | 586 | 3.15k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 2.31k | case TYPE_BIGINT: | 588 | 2.31k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 0 | case TYPE_LARGEINT: | 590 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 0 | case TYPE_IPV4: | 592 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 0 | case TYPE_IPV6: | 594 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 47 | case TYPE_FLOAT: | 596 | 47 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 60 | case TYPE_DOUBLE: | 598 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 0 | case TYPE_DECIMAL32: | 603 | 61 | case TYPE_DECIMAL64: | 604 | 385 | case TYPE_DECIMAL128I: | 605 | 415 | case TYPE_DECIMAL256: | 606 | 415 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 415 | col_with_type_and_name_right); | 608 | 17 | case TYPE_CHAR: | 609 | 339 | case TYPE_VARCHAR: | 610 | 1.50k | case TYPE_STRING: | 611 | 1.50k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 8 | default: | 613 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 8 | col_with_type_and_name_right); | 615 | 7.71k | } | 616 | 0 | return Status::OK(); | 617 | 7.71k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 42.5k | uint32_t result, size_t input_rows_count) const override { | 520 | 42.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 42.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 42.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 42.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 42.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 42.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 42.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 42.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 42.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 42.5k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 42.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 42.5k | }; | 560 | | | 561 | 42.5k | if (can_compare(left_type->get_primitive_type()) && | 562 | 42.5k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 39.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 39.2k | } | 570 | | | 571 | 42.5k | auto compare_type = left_type->get_primitive_type(); | 572 | 42.5k | switch (compare_type) { | 573 | 0 | case TYPE_BOOLEAN: | 574 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.14k | case TYPE_DATEV2: | 576 | 1.14k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 94 | case TYPE_DATETIMEV2: | 578 | 94 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 2 | case TYPE_TIMESTAMPTZ: | 580 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 587 | case TYPE_TINYINT: | 582 | 587 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 1.00k | case TYPE_SMALLINT: | 584 | 1.00k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 20.2k | case TYPE_INT: | 586 | 20.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 13.3k | case TYPE_BIGINT: | 588 | 13.3k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 218 | case TYPE_LARGEINT: | 590 | 218 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 2 | case TYPE_IPV4: | 592 | 2 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 1 | case TYPE_IPV6: | 594 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 236 | case TYPE_FLOAT: | 596 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 2.48k | case TYPE_DOUBLE: | 598 | 2.48k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 46 | case TYPE_DECIMAL32: | 603 | 1.64k | case TYPE_DECIMAL64: | 604 | 3.07k | case TYPE_DECIMAL128I: | 605 | 3.07k | case TYPE_DECIMAL256: | 606 | 3.07k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 3.07k | col_with_type_and_name_right); | 608 | 21 | case TYPE_CHAR: | 609 | 83 | case TYPE_VARCHAR: | 610 | 194 | case TYPE_STRING: | 611 | 194 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 9 | default: | 613 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 9 | col_with_type_and_name_right); | 615 | 42.5k | } | 616 | 0 | return Status::OK(); | 617 | 42.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 18.1k | uint32_t result, size_t input_rows_count) const override { | 520 | 18.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 18.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 18.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 18.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 18.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 18.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 18.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 18.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 18.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 18.1k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 18.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 18.1k | }; | 560 | | | 561 | 18.1k | if (can_compare(left_type->get_primitive_type()) && | 562 | 18.1k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 17.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 17.0k | } | 570 | | | 571 | 18.1k | auto compare_type = left_type->get_primitive_type(); | 572 | 18.1k | switch (compare_type) { | 573 | 158 | case TYPE_BOOLEAN: | 574 | 158 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 1.60k | case TYPE_DATEV2: | 576 | 1.60k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 616 | case TYPE_DATETIMEV2: | 578 | 616 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 2 | case TYPE_TIMESTAMPTZ: | 580 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 89 | case TYPE_TINYINT: | 582 | 89 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 134 | case TYPE_SMALLINT: | 584 | 134 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 13.2k | case TYPE_INT: | 586 | 13.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 804 | case TYPE_BIGINT: | 588 | 804 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 42 | case TYPE_LARGEINT: | 590 | 42 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 11 | case TYPE_IPV4: | 592 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 1 | case TYPE_IPV6: | 594 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 128 | case TYPE_FLOAT: | 596 | 128 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 157 | case TYPE_DOUBLE: | 598 | 157 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 9 | case TYPE_DECIMAL32: | 603 | 292 | case TYPE_DECIMAL64: | 604 | 377 | case TYPE_DECIMAL128I: | 605 | 404 | case TYPE_DECIMAL256: | 606 | 404 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 404 | col_with_type_and_name_right); | 608 | 44 | case TYPE_CHAR: | 609 | 282 | case TYPE_VARCHAR: | 610 | 680 | case TYPE_STRING: | 611 | 680 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 48 | default: | 613 | 48 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 48 | col_with_type_and_name_right); | 615 | 18.1k | } | 616 | 0 | return Status::OK(); | 617 | 18.1k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 13.7k | uint32_t result, size_t input_rows_count) const override { | 520 | 13.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 13.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 13.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 13.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 13.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 13.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 13.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 13.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 13.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 13.7k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | | block.get_by_position(result).column = | 542 | | DataTypeUInt8() | 543 | | .create_column_const(input_rows_count, | 544 | | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | | ->convert_to_full_column_if_const(); | 546 | | return Status::OK(); | 547 | 0 | } else { | 548 | 0 | block.get_by_position(result).column = | 549 | 0 | DataTypeUInt8() | 550 | 0 | .create_column_const(input_rows_count, | 551 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | 0 | ->convert_to_full_column_if_const(); | 553 | 0 | return Status::OK(); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 13.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 13.7k | }; | 560 | | | 561 | 13.7k | if (can_compare(left_type->get_primitive_type()) && | 562 | 13.7k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 12.1k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 12.1k | } | 570 | | | 571 | 13.7k | auto compare_type = left_type->get_primitive_type(); | 572 | 13.7k | switch (compare_type) { | 573 | 81 | case TYPE_BOOLEAN: | 574 | 81 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 2.32k | case TYPE_DATEV2: | 576 | 2.32k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 582 | case TYPE_DATETIMEV2: | 578 | 582 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 3 | case TYPE_TIMESTAMPTZ: | 580 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 599 | case TYPE_TINYINT: | 582 | 599 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 379 | case TYPE_SMALLINT: | 584 | 379 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 5.88k | case TYPE_INT: | 586 | 5.88k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 1.61k | case TYPE_BIGINT: | 588 | 1.61k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 178 | case TYPE_LARGEINT: | 590 | 178 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 16 | case TYPE_IPV4: | 592 | 16 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 16 | case TYPE_IPV6: | 594 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 157 | case TYPE_FLOAT: | 596 | 157 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 345 | case TYPE_DOUBLE: | 598 | 345 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 223 | case TYPE_DECIMAL32: | 603 | 472 | case TYPE_DECIMAL64: | 604 | 929 | case TYPE_DECIMAL128I: | 605 | 930 | case TYPE_DECIMAL256: | 606 | 930 | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 930 | col_with_type_and_name_right); | 608 | 156 | case TYPE_CHAR: | 609 | 310 | case TYPE_VARCHAR: | 610 | 614 | case TYPE_STRING: | 611 | 614 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 11 | default: | 613 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 11 | col_with_type_and_name_right); | 615 | 13.7k | } | 616 | 0 | return Status::OK(); | 617 | 13.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 519 | 171k | uint32_t result, size_t input_rows_count) const override { | 520 | 171k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 521 | 171k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 522 | | | 523 | 171k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 524 | 171k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 525 | 171k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 526 | 171k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 527 | | | 528 | 171k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 529 | 171k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 530 | | | 531 | | /// The case when arguments are the same (tautological comparison). Return constant. | 532 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 533 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 534 | 171k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 535 | 171k | col_left_untyped == col_right_untyped) { | 536 | | /// Always true: =, <=, >= | 537 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 538 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 539 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 540 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 541 | 0 | block.get_by_position(result).column = | 542 | 0 | DataTypeUInt8() | 543 | 0 | .create_column_const(input_rows_count, | 544 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 545 | 0 | ->convert_to_full_column_if_const(); | 546 | 0 | return Status::OK(); | 547 | | } else { | 548 | | block.get_by_position(result).column = | 549 | | DataTypeUInt8() | 550 | | .create_column_const(input_rows_count, | 551 | | Field::create_field<TYPE_BOOLEAN>(0)) | 552 | | ->convert_to_full_column_if_const(); | 553 | | return Status::OK(); | 554 | | } | 555 | 0 | } | 556 | | | 557 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 558 | 171k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 559 | 171k | }; | 560 | | | 561 | 171k | if (can_compare(left_type->get_primitive_type()) && | 562 | 171k | can_compare(right_type->get_primitive_type())) { | 563 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 564 | 26.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 565 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 566 | 0 | get_name(), left_type->get_name(), | 567 | 0 | right_type->get_name()); | 568 | 0 | } | 569 | 26.9k | } | 570 | | | 571 | 171k | auto compare_type = left_type->get_primitive_type(); | 572 | 171k | switch (compare_type) { | 573 | 334 | case TYPE_BOOLEAN: | 574 | 334 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 575 | 4.77k | case TYPE_DATEV2: | 576 | 4.77k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 577 | 493 | case TYPE_DATETIMEV2: | 578 | 493 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 579 | 2 | case TYPE_TIMESTAMPTZ: | 580 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 581 | 281 | case TYPE_TINYINT: | 582 | 281 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 583 | 373 | case TYPE_SMALLINT: | 584 | 373 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 585 | 19.4k | case TYPE_INT: | 586 | 19.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 587 | 858 | case TYPE_BIGINT: | 588 | 858 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 589 | 40 | case TYPE_LARGEINT: | 590 | 40 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 591 | 10 | case TYPE_IPV4: | 592 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 593 | 0 | case TYPE_IPV6: | 594 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 595 | 124 | case TYPE_FLOAT: | 596 | 124 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 597 | 138 | case TYPE_DOUBLE: | 598 | 138 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 599 | 0 | case TYPE_TIMEV2: | 600 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 601 | 0 | case TYPE_DECIMALV2: | 602 | 4 | case TYPE_DECIMAL32: | 603 | 142k | case TYPE_DECIMAL64: | 604 | 142k | case TYPE_DECIMAL128I: | 605 | 142k | case TYPE_DECIMAL256: | 606 | 142k | return execute_decimal(block, result, col_with_type_and_name_left, | 607 | 142k | col_with_type_and_name_right); | 608 | 293 | case TYPE_CHAR: | 609 | 1.22k | case TYPE_VARCHAR: | 610 | 1.93k | case TYPE_STRING: | 611 | 1.93k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 612 | 41 | default: | 613 | 41 | return execute_generic(block, result, col_with_type_and_name_left, | 614 | 41 | col_with_type_and_name_right); | 615 | 171k | } | 616 | 0 | return Status::OK(); | 617 | 171k | } |
|
618 | | }; |
619 | | |
620 | | } // namespace doris |