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/memcmp_small.h" |
38 | | #include "core/value/vdatetime_value.h" |
39 | | #include "exprs/function/function.h" |
40 | | #include "exprs/function/function_helpers.h" |
41 | | #include "exprs/function/functions_logical.h" |
42 | | #include "storage/index/index_reader_helper.h" |
43 | | |
44 | | namespace doris { |
45 | | #include "common/compile_check_begin.h" |
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 | 12.2k | PaddedPODArray<UInt8>& c) { |
66 | 12.2k | size_t size = a.size(); |
67 | 12.2k | const A* __restrict a_pos = a.data(); |
68 | 12.2k | const B* __restrict b_pos = b.data(); |
69 | 12.2k | UInt8* __restrict c_pos = c.data(); |
70 | 12.2k | const A* __restrict a_end = a_pos + size; |
71 | | |
72 | 11.4M | while (a_pos < a_end) { |
73 | 11.4M | *c_pos = Op::apply(*a_pos, *b_pos); |
74 | 11.4M | ++a_pos; |
75 | 11.4M | ++b_pos; |
76 | 11.4M | ++c_pos; |
77 | 11.4M | } |
78 | 12.2k | } _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 | 313 | PaddedPODArray<UInt8>& c) { | 66 | 313 | size_t size = a.size(); | 67 | 313 | const A* __restrict a_pos = a.data(); | 68 | 313 | const B* __restrict b_pos = b.data(); | 69 | 313 | UInt8* __restrict c_pos = c.data(); | 70 | 313 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.48k | while (a_pos < a_end) { | 73 | 1.16k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.16k | ++a_pos; | 75 | 1.16k | ++b_pos; | 76 | 1.16k | ++c_pos; | 77 | 1.16k | } | 78 | 313 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 250 | PaddedPODArray<UInt8>& c) { | 66 | 250 | size_t size = a.size(); | 67 | 250 | const A* __restrict a_pos = a.data(); | 68 | 250 | const B* __restrict b_pos = b.data(); | 69 | 250 | UInt8* __restrict c_pos = c.data(); | 70 | 250 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 524 | while (a_pos < a_end) { | 73 | 274 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 274 | ++a_pos; | 75 | 274 | ++b_pos; | 76 | 274 | ++c_pos; | 77 | 274 | } | 78 | 250 | } |
_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 | 12 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 881 | PaddedPODArray<UInt8>& c) { | 66 | 881 | size_t size = a.size(); | 67 | 881 | const A* __restrict a_pos = a.data(); | 68 | 881 | const B* __restrict b_pos = b.data(); | 69 | 881 | UInt8* __restrict c_pos = c.data(); | 70 | 881 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.65k | while (a_pos < a_end) { | 73 | 4.77k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.77k | ++a_pos; | 75 | 4.77k | ++b_pos; | 76 | 4.77k | ++c_pos; | 77 | 4.77k | } | 78 | 881 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 116 | PaddedPODArray<UInt8>& c) { | 66 | 116 | size_t size = a.size(); | 67 | 116 | const A* __restrict a_pos = a.data(); | 68 | 116 | const B* __restrict b_pos = b.data(); | 69 | 116 | UInt8* __restrict c_pos = c.data(); | 70 | 116 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 532 | while (a_pos < a_end) { | 73 | 416 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 416 | ++a_pos; | 75 | 416 | ++b_pos; | 76 | 416 | ++c_pos; | 77 | 416 | } | 78 | 116 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 303 | PaddedPODArray<UInt8>& c) { | 66 | 303 | size_t size = a.size(); | 67 | 303 | const A* __restrict a_pos = a.data(); | 68 | 303 | const B* __restrict b_pos = b.data(); | 69 | 303 | UInt8* __restrict c_pos = c.data(); | 70 | 303 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.25k | while (a_pos < a_end) { | 73 | 1.95k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.95k | ++a_pos; | 75 | 1.95k | ++b_pos; | 76 | 1.95k | ++c_pos; | 77 | 1.95k | } | 78 | 303 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 200 | PaddedPODArray<UInt8>& c) { | 66 | 200 | size_t size = a.size(); | 67 | 200 | const A* __restrict a_pos = a.data(); | 68 | 200 | const B* __restrict b_pos = b.data(); | 69 | 200 | UInt8* __restrict c_pos = c.data(); | 70 | 200 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 11.7k | while (a_pos < a_end) { | 73 | 11.5k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 11.5k | ++a_pos; | 75 | 11.5k | ++b_pos; | 76 | 11.5k | ++c_pos; | 77 | 11.5k | } | 78 | 200 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 84 | PaddedPODArray<UInt8>& c) { | 66 | 84 | size_t size = a.size(); | 67 | 84 | const A* __restrict a_pos = a.data(); | 68 | 84 | const B* __restrict b_pos = b.data(); | 69 | 84 | UInt8* __restrict c_pos = c.data(); | 70 | 84 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 192 | while (a_pos < a_end) { | 73 | 108 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 108 | ++a_pos; | 75 | 108 | ++b_pos; | 76 | 108 | ++c_pos; | 77 | 108 | } | 78 | 84 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 5 | PaddedPODArray<UInt8>& c) { | 66 | 5 | size_t size = a.size(); | 67 | 5 | const A* __restrict a_pos = a.data(); | 68 | 5 | const B* __restrict b_pos = b.data(); | 69 | 5 | UInt8* __restrict c_pos = c.data(); | 70 | 5 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 10 | while (a_pos < a_end) { | 73 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5 | ++a_pos; | 75 | 5 | ++b_pos; | 76 | 5 | ++c_pos; | 77 | 5 | } | 78 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 13 | PaddedPODArray<UInt8>& c) { | 66 | 13 | size_t size = a.size(); | 67 | 13 | const A* __restrict a_pos = a.data(); | 68 | 13 | const B* __restrict b_pos = b.data(); | 69 | 13 | UInt8* __restrict c_pos = c.data(); | 70 | 13 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 26 | while (a_pos < a_end) { | 73 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 13 | ++a_pos; | 75 | 13 | ++b_pos; | 76 | 13 | ++c_pos; | 77 | 13 | } | 78 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 93 | PaddedPODArray<UInt8>& c) { | 66 | 93 | size_t size = a.size(); | 67 | 93 | const A* __restrict a_pos = a.data(); | 68 | 93 | const B* __restrict b_pos = b.data(); | 69 | 93 | UInt8* __restrict c_pos = c.data(); | 70 | 93 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 205 | while (a_pos < a_end) { | 73 | 112 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 112 | ++a_pos; | 75 | 112 | ++b_pos; | 76 | 112 | ++c_pos; | 77 | 112 | } | 78 | 93 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 98 | PaddedPODArray<UInt8>& c) { | 66 | 98 | size_t size = a.size(); | 67 | 98 | const A* __restrict a_pos = a.data(); | 68 | 98 | const B* __restrict b_pos = b.data(); | 69 | 98 | UInt8* __restrict c_pos = c.data(); | 70 | 98 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 217 | while (a_pos < a_end) { | 73 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 119 | ++a_pos; | 75 | 119 | ++b_pos; | 76 | 119 | ++c_pos; | 77 | 119 | } | 78 | 98 | } |
_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 | 64 | PaddedPODArray<UInt8>& c) { | 66 | 64 | size_t size = a.size(); | 67 | 64 | const A* __restrict a_pos = a.data(); | 68 | 64 | const B* __restrict b_pos = b.data(); | 69 | 64 | UInt8* __restrict c_pos = c.data(); | 70 | 64 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 288 | while (a_pos < a_end) { | 73 | 224 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 224 | ++a_pos; | 75 | 224 | ++b_pos; | 76 | 224 | ++c_pos; | 77 | 224 | } | 78 | 64 | } |
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 | 594 | PaddedPODArray<UInt8>& c) { | 66 | 594 | size_t size = a.size(); | 67 | 594 | const A* __restrict a_pos = a.data(); | 68 | 594 | const B* __restrict b_pos = b.data(); | 69 | 594 | UInt8* __restrict c_pos = c.data(); | 70 | 594 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 359k | while (a_pos < a_end) { | 73 | 358k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 358k | ++a_pos; | 75 | 358k | ++b_pos; | 76 | 358k | ++c_pos; | 77 | 358k | } | 78 | 594 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 457 | PaddedPODArray<UInt8>& c) { | 66 | 457 | size_t size = a.size(); | 67 | 457 | const A* __restrict a_pos = a.data(); | 68 | 457 | const B* __restrict b_pos = b.data(); | 69 | 457 | UInt8* __restrict c_pos = c.data(); | 70 | 457 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 25.7k | while (a_pos < a_end) { | 73 | 25.2k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 25.2k | ++a_pos; | 75 | 25.2k | ++b_pos; | 76 | 25.2k | ++c_pos; | 77 | 25.2k | } | 78 | 457 | } |
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 | 1.08k | PaddedPODArray<UInt8>& c) { | 66 | 1.08k | size_t size = a.size(); | 67 | 1.08k | const A* __restrict a_pos = a.data(); | 68 | 1.08k | const B* __restrict b_pos = b.data(); | 69 | 1.08k | UInt8* __restrict c_pos = c.data(); | 70 | 1.08k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 3.80M | while (a_pos < a_end) { | 73 | 3.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.80M | ++a_pos; | 75 | 3.80M | ++b_pos; | 76 | 3.80M | ++c_pos; | 77 | 3.80M | } | 78 | 1.08k | } |
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 | 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 | 12 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 371 | PaddedPODArray<UInt8>& c) { | 66 | 371 | size_t size = a.size(); | 67 | 371 | const A* __restrict a_pos = a.data(); | 68 | 371 | const B* __restrict b_pos = b.data(); | 69 | 371 | UInt8* __restrict c_pos = c.data(); | 70 | 371 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.57k | while (a_pos < a_end) { | 73 | 2.20k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 2.20k | ++a_pos; | 75 | 2.20k | ++b_pos; | 76 | 2.20k | ++c_pos; | 77 | 2.20k | } | 78 | 371 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 624 | PaddedPODArray<UInt8>& c) { | 66 | 624 | size_t size = a.size(); | 67 | 624 | const A* __restrict a_pos = a.data(); | 68 | 624 | const B* __restrict b_pos = b.data(); | 69 | 624 | UInt8* __restrict c_pos = c.data(); | 70 | 624 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.53k | while (a_pos < a_end) { | 73 | 3.90k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 3.90k | ++a_pos; | 75 | 3.90k | ++b_pos; | 76 | 3.90k | ++c_pos; | 77 | 3.90k | } | 78 | 624 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 1.78k | PaddedPODArray<UInt8>& c) { | 66 | 1.78k | size_t size = a.size(); | 67 | 1.78k | const A* __restrict a_pos = a.data(); | 68 | 1.78k | const B* __restrict b_pos = b.data(); | 69 | 1.78k | UInt8* __restrict c_pos = c.data(); | 70 | 1.78k | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.40M | while (a_pos < a_end) { | 73 | 5.40M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.40M | ++a_pos; | 75 | 5.40M | ++b_pos; | 76 | 5.40M | ++c_pos; | 77 | 5.40M | } | 78 | 1.78k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 128 | PaddedPODArray<UInt8>& c) { | 66 | 128 | size_t size = a.size(); | 67 | 128 | const A* __restrict a_pos = a.data(); | 68 | 128 | const B* __restrict b_pos = b.data(); | 69 | 128 | UInt8* __restrict c_pos = c.data(); | 70 | 128 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.63k | while (a_pos < a_end) { | 73 | 1.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.50k | ++a_pos; | 75 | 1.50k | ++b_pos; | 76 | 1.50k | ++c_pos; | 77 | 1.50k | } | 78 | 128 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 40 | PaddedPODArray<UInt8>& c) { | 66 | 40 | size_t size = a.size(); | 67 | 40 | const A* __restrict a_pos = a.data(); | 68 | 40 | const B* __restrict b_pos = b.data(); | 69 | 40 | UInt8* __restrict c_pos = c.data(); | 70 | 40 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 192 | while (a_pos < a_end) { | 73 | 152 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 152 | ++a_pos; | 75 | 152 | ++b_pos; | 76 | 152 | ++c_pos; | 77 | 152 | } | 78 | 40 | } |
_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 | 46 | PaddedPODArray<UInt8>& c) { | 66 | 46 | size_t size = a.size(); | 67 | 46 | const A* __restrict a_pos = a.data(); | 68 | 46 | const B* __restrict b_pos = b.data(); | 69 | 46 | UInt8* __restrict c_pos = c.data(); | 70 | 46 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 144 | 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 | 46 | } |
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 | 10 | PaddedPODArray<UInt8>& c) { | 66 | 10 | size_t size = a.size(); | 67 | 10 | const A* __restrict a_pos = a.data(); | 68 | 10 | const B* __restrict b_pos = b.data(); | 69 | 10 | UInt8* __restrict c_pos = c.data(); | 70 | 10 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 101 | while (a_pos < a_end) { | 73 | 91 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 91 | ++a_pos; | 75 | 91 | ++b_pos; | 76 | 91 | ++c_pos; | 77 | 91 | } | 78 | 10 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_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 | 12 | 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 | 3 | } |
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 | 5 | PaddedPODArray<UInt8>& c) { | 66 | 5 | size_t size = a.size(); | 67 | 5 | const A* __restrict a_pos = a.data(); | 68 | 5 | const B* __restrict b_pos = b.data(); | 69 | 5 | UInt8* __restrict c_pos = c.data(); | 70 | 5 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 21 | 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 | 5 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_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 | 124 | while (a_pos < a_end) { | 73 | 108 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 108 | ++a_pos; | 75 | 108 | ++b_pos; | 76 | 108 | ++c_pos; | 77 | 108 | } | 78 | 16 | } |
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 | 72 | PaddedPODArray<UInt8>& c) { | 66 | 72 | size_t size = a.size(); | 67 | 72 | const A* __restrict a_pos = a.data(); | 68 | 72 | const B* __restrict b_pos = b.data(); | 69 | 72 | UInt8* __restrict c_pos = c.data(); | 70 | 72 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 178 | 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 | 72 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 84 | PaddedPODArray<UInt8>& c) { | 66 | 84 | size_t size = a.size(); | 67 | 84 | const A* __restrict a_pos = a.data(); | 68 | 84 | const B* __restrict b_pos = b.data(); | 69 | 84 | UInt8* __restrict c_pos = c.data(); | 70 | 84 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 168 | while (a_pos < a_end) { | 73 | 84 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 84 | ++a_pos; | 75 | 84 | ++b_pos; | 76 | 84 | ++c_pos; | 77 | 84 | } | 78 | 84 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.72k | PaddedPODArray<UInt8>& c) { | 66 | 1.72k | size_t size = a.size(); | 67 | 1.72k | const A* __restrict a_pos = a.data(); | 68 | 1.72k | const B* __restrict b_pos = b.data(); | 69 | 1.72k | UInt8* __restrict c_pos = c.data(); | 70 | 1.72k | 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.72k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 235 | PaddedPODArray<UInt8>& c) { | 66 | 235 | size_t size = a.size(); | 67 | 235 | const A* __restrict a_pos = a.data(); | 68 | 235 | const B* __restrict b_pos = b.data(); | 69 | 235 | UInt8* __restrict c_pos = c.data(); | 70 | 235 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 470 | while (a_pos < a_end) { | 73 | 235 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 235 | ++a_pos; | 75 | 235 | ++b_pos; | 76 | 235 | ++c_pos; | 77 | 235 | } | 78 | 235 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_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 | 12 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 822 | PaddedPODArray<UInt8>& c) { | 66 | 822 | size_t size = a.size(); | 67 | 822 | const A* __restrict a_pos = a.data(); | 68 | 822 | const B* __restrict b_pos = b.data(); | 69 | 822 | UInt8* __restrict c_pos = c.data(); | 70 | 822 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.07k | while (a_pos < a_end) { | 73 | 4.25k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.25k | ++a_pos; | 75 | 4.25k | ++b_pos; | 76 | 4.25k | ++c_pos; | 77 | 4.25k | } | 78 | 822 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 111 | PaddedPODArray<UInt8>& c) { | 66 | 111 | size_t size = a.size(); | 67 | 111 | const A* __restrict a_pos = a.data(); | 68 | 111 | const B* __restrict b_pos = b.data(); | 69 | 111 | UInt8* __restrict c_pos = c.data(); | 70 | 111 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 224 | 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 | 111 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 152 | PaddedPODArray<UInt8>& c) { | 66 | 152 | size_t size = a.size(); | 67 | 152 | const A* __restrict a_pos = a.data(); | 68 | 152 | const B* __restrict b_pos = b.data(); | 69 | 152 | UInt8* __restrict c_pos = c.data(); | 70 | 152 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 805 | while (a_pos < a_end) { | 73 | 653 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 653 | ++a_pos; | 75 | 653 | ++b_pos; | 76 | 653 | ++c_pos; | 77 | 653 | } | 78 | 152 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 209 | PaddedPODArray<UInt8>& c) { | 66 | 209 | size_t size = a.size(); | 67 | 209 | const A* __restrict a_pos = a.data(); | 68 | 209 | const B* __restrict b_pos = b.data(); | 69 | 209 | UInt8* __restrict c_pos = c.data(); | 70 | 209 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.70k | while (a_pos < a_end) { | 73 | 5.49k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.49k | ++a_pos; | 75 | 5.49k | ++b_pos; | 76 | 5.49k | ++c_pos; | 77 | 5.49k | } | 78 | 209 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 183 | PaddedPODArray<UInt8>& c) { | 66 | 183 | size_t size = a.size(); | 67 | 183 | const A* __restrict a_pos = a.data(); | 68 | 183 | const B* __restrict b_pos = b.data(); | 69 | 183 | UInt8* __restrict c_pos = c.data(); | 70 | 183 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 514 | while (a_pos < a_end) { | 73 | 331 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 331 | ++a_pos; | 75 | 331 | ++b_pos; | 76 | 331 | ++c_pos; | 77 | 331 | } | 78 | 183 | } |
_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 | 128 | PaddedPODArray<UInt8>& c) { | 66 | 128 | size_t size = a.size(); | 67 | 128 | const A* __restrict a_pos = a.data(); | 68 | 128 | const B* __restrict b_pos = b.data(); | 69 | 128 | UInt8* __restrict c_pos = c.data(); | 70 | 128 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 275 | while (a_pos < a_end) { | 73 | 147 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 147 | ++a_pos; | 75 | 147 | ++b_pos; | 76 | 147 | ++c_pos; | 77 | 147 | } | 78 | 128 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 153 | PaddedPODArray<UInt8>& c) { | 66 | 153 | size_t size = a.size(); | 67 | 153 | const A* __restrict a_pos = a.data(); | 68 | 153 | const B* __restrict b_pos = b.data(); | 69 | 153 | UInt8* __restrict c_pos = c.data(); | 70 | 153 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 351 | while (a_pos < a_end) { | 73 | 198 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 198 | ++a_pos; | 75 | 198 | ++b_pos; | 76 | 198 | ++c_pos; | 77 | 198 | } | 78 | 153 | } |
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 | 432 | PaddedPODArray<UInt8>& c) { | 66 | 432 | size_t size = a.size(); | 67 | 432 | const A* __restrict a_pos = a.data(); | 68 | 432 | const B* __restrict b_pos = b.data(); | 69 | 432 | UInt8* __restrict c_pos = c.data(); | 70 | 432 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.79k | while (a_pos < a_end) { | 73 | 6.36k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.36k | ++a_pos; | 75 | 6.36k | ++b_pos; | 76 | 6.36k | ++c_pos; | 77 | 6.36k | } | 78 | 432 | } |
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 | 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 | 12 | 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 | 3 | } |
_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 | 45 | PaddedPODArray<UInt8>& c) { | 66 | 45 | size_t size = a.size(); | 67 | 45 | const A* __restrict a_pos = a.data(); | 68 | 45 | const B* __restrict b_pos = b.data(); | 69 | 45 | UInt8* __restrict c_pos = c.data(); | 70 | 45 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 991 | while (a_pos < a_end) { | 73 | 946 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 946 | ++a_pos; | 75 | 946 | ++b_pos; | 76 | 946 | ++c_pos; | 77 | 946 | } | 78 | 45 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 70 | PaddedPODArray<UInt8>& c) { | 66 | 70 | size_t size = a.size(); | 67 | 70 | const A* __restrict a_pos = a.data(); | 68 | 70 | const B* __restrict b_pos = b.data(); | 69 | 70 | UInt8* __restrict c_pos = c.data(); | 70 | 70 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 336 | while (a_pos < a_end) { | 73 | 266 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 266 | ++a_pos; | 75 | 266 | ++b_pos; | 76 | 266 | ++c_pos; | 77 | 266 | } | 78 | 70 | } |
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 | 17.1k | PaddedPODArray<UInt8>& c) { |
82 | 17.1k | size_t size = a.size(); |
83 | 17.1k | const A* __restrict a_pos = a.data(); |
84 | 17.1k | UInt8* __restrict c_pos = c.data(); |
85 | 17.1k | const A* __restrict a_end = a_pos + size; |
86 | | |
87 | 26.1M | while (a_pos < a_end) { |
88 | 26.0M | *c_pos = Op::apply(*a_pos, b); |
89 | 26.0M | ++a_pos; |
90 | 26.0M | ++c_pos; |
91 | 26.0M | } |
92 | 17.1k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ 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 | 165 | while (a_pos < a_end) { | 88 | 139 | *c_pos = Op::apply(*a_pos, b); | 89 | 139 | ++a_pos; | 90 | 139 | ++c_pos; | 91 | 139 | } | 92 | 26 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 561 | PaddedPODArray<UInt8>& c) { | 82 | 561 | size_t size = a.size(); | 83 | 561 | const A* __restrict a_pos = a.data(); | 84 | 561 | UInt8* __restrict c_pos = c.data(); | 85 | 561 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 204k | while (a_pos < a_end) { | 88 | 203k | *c_pos = Op::apply(*a_pos, b); | 89 | 203k | ++a_pos; | 90 | 203k | ++c_pos; | 91 | 203k | } | 92 | 561 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 251 | PaddedPODArray<UInt8>& c) { | 82 | 251 | size_t size = a.size(); | 83 | 251 | const A* __restrict a_pos = a.data(); | 84 | 251 | UInt8* __restrict c_pos = c.data(); | 85 | 251 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 100k | 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 | 251 | } |
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 | 2.61k | PaddedPODArray<UInt8>& c) { | 82 | 2.61k | size_t size = a.size(); | 83 | 2.61k | const A* __restrict a_pos = a.data(); | 84 | 2.61k | UInt8* __restrict c_pos = c.data(); | 85 | 2.61k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 8.99M | while (a_pos < a_end) { | 88 | 8.99M | *c_pos = Op::apply(*a_pos, b); | 89 | 8.99M | ++a_pos; | 90 | 8.99M | ++c_pos; | 91 | 8.99M | } | 92 | 2.61k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 461 | PaddedPODArray<UInt8>& c) { | 82 | 461 | size_t size = a.size(); | 83 | 461 | const A* __restrict a_pos = a.data(); | 84 | 461 | UInt8* __restrict c_pos = c.data(); | 85 | 461 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 102k | 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 | 461 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.59k | PaddedPODArray<UInt8>& c) { | 82 | 1.59k | size_t size = a.size(); | 83 | 1.59k | const A* __restrict a_pos = a.data(); | 84 | 1.59k | UInt8* __restrict c_pos = c.data(); | 85 | 1.59k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 207k | while (a_pos < a_end) { | 88 | 205k | *c_pos = Op::apply(*a_pos, b); | 89 | 205k | ++a_pos; | 90 | 205k | ++c_pos; | 91 | 205k | } | 92 | 1.59k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 740 | PaddedPODArray<UInt8>& c) { | 82 | 740 | size_t size = a.size(); | 83 | 740 | const A* __restrict a_pos = a.data(); | 84 | 740 | UInt8* __restrict c_pos = c.data(); | 85 | 740 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 355k | while (a_pos < a_end) { | 88 | 354k | *c_pos = Op::apply(*a_pos, b); | 89 | 354k | ++a_pos; | 90 | 354k | ++c_pos; | 91 | 354k | } | 92 | 740 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 24 | PaddedPODArray<UInt8>& c) { | 82 | 24 | size_t size = a.size(); | 83 | 24 | const A* __restrict a_pos = a.data(); | 84 | 24 | UInt8* __restrict c_pos = c.data(); | 85 | 24 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 100k | 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 | 24 | } |
_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 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 151 | PaddedPODArray<UInt8>& c) { | 82 | 151 | size_t size = a.size(); | 83 | 151 | const A* __restrict a_pos = a.data(); | 84 | 151 | UInt8* __restrict c_pos = c.data(); | 85 | 151 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 700k | while (a_pos < a_end) { | 88 | 700k | *c_pos = Op::apply(*a_pos, b); | 89 | 700k | ++a_pos; | 90 | 700k | ++c_pos; | 91 | 700k | } | 92 | 151 | } |
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 | 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 | 5 | while (a_pos < a_end) { | 88 | 3 | *c_pos = Op::apply(*a_pos, b); | 89 | 3 | ++a_pos; | 90 | 3 | ++c_pos; | 91 | 3 | } | 92 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE 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 | 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 | 78 | while (a_pos < a_end) { | 88 | 50 | *c_pos = Op::apply(*a_pos, b); | 89 | 50 | ++a_pos; | 90 | 50 | ++c_pos; | 91 | 50 | } | 92 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 65 | PaddedPODArray<UInt8>& c) { | 82 | 65 | size_t size = a.size(); | 83 | 65 | const A* __restrict a_pos = a.data(); | 84 | 65 | UInt8* __restrict c_pos = c.data(); | 85 | 65 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 434 | while (a_pos < a_end) { | 88 | 369 | *c_pos = Op::apply(*a_pos, b); | 89 | 369 | ++a_pos; | 90 | 369 | ++c_pos; | 91 | 369 | } | 92 | 65 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 25 | PaddedPODArray<UInt8>& c) { | 82 | 25 | size_t size = a.size(); | 83 | 25 | const A* __restrict a_pos = a.data(); | 84 | 25 | UInt8* __restrict c_pos = c.data(); | 85 | 25 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.06k | while (a_pos < a_end) { | 88 | 1.04k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.04k | ++a_pos; | 90 | 1.04k | ++c_pos; | 91 | 1.04k | } | 92 | 25 | } |
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 | 32 | PaddedPODArray<UInt8>& c) { | 82 | 32 | size_t size = a.size(); | 83 | 32 | const A* __restrict a_pos = a.data(); | 84 | 32 | UInt8* __restrict c_pos = c.data(); | 85 | 32 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 80 | while (a_pos < a_end) { | 88 | 48 | *c_pos = Op::apply(*a_pos, b); | 89 | 48 | ++a_pos; | 90 | 48 | ++c_pos; | 91 | 48 | } | 92 | 32 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 52 | PaddedPODArray<UInt8>& c) { | 82 | 52 | size_t size = a.size(); | 83 | 52 | const A* __restrict a_pos = a.data(); | 84 | 52 | UInt8* __restrict c_pos = c.data(); | 85 | 52 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 312 | while (a_pos < a_end) { | 88 | 260 | *c_pos = Op::apply(*a_pos, b); | 89 | 260 | ++a_pos; | 90 | 260 | ++c_pos; | 91 | 260 | } | 92 | 52 | } |
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 | 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 | 12 | while (a_pos < a_end) { | 88 | 10 | *c_pos = Op::apply(*a_pos, b); | 89 | 10 | ++a_pos; | 90 | 10 | ++c_pos; | 91 | 10 | } | 92 | 2 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 331 | PaddedPODArray<UInt8>& c) { | 82 | 331 | size_t size = a.size(); | 83 | 331 | const A* __restrict a_pos = a.data(); | 84 | 331 | UInt8* __restrict c_pos = c.data(); | 85 | 331 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.67M | while (a_pos < a_end) { | 88 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.67M | ++a_pos; | 90 | 1.67M | ++c_pos; | 91 | 1.67M | } | 92 | 331 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_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 | 6 | while (a_pos < a_end) { | 88 | 4 | *c_pos = Op::apply(*a_pos, b); | 89 | 4 | ++a_pos; | 90 | 4 | ++c_pos; | 91 | 4 | } | 92 | 2 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 279 | while (a_pos < a_end) { | 88 | 218 | *c_pos = Op::apply(*a_pos, b); | 89 | 218 | ++a_pos; | 90 | 218 | ++c_pos; | 91 | 218 | } | 92 | 61 | } |
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 | 417 | PaddedPODArray<UInt8>& c) { | 82 | 417 | size_t size = a.size(); | 83 | 417 | const A* __restrict a_pos = a.data(); | 84 | 417 | UInt8* __restrict c_pos = c.data(); | 85 | 417 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.19k | while (a_pos < a_end) { | 88 | 3.77k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.77k | ++a_pos; | 90 | 3.77k | ++c_pos; | 91 | 3.77k | } | 92 | 417 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 34 | PaddedPODArray<UInt8>& c) { | 82 | 34 | size_t size = a.size(); | 83 | 34 | const A* __restrict a_pos = a.data(); | 84 | 34 | UInt8* __restrict c_pos = c.data(); | 85 | 34 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 132 | while (a_pos < a_end) { | 88 | 98 | *c_pos = Op::apply(*a_pos, b); | 89 | 98 | ++a_pos; | 90 | 98 | ++c_pos; | 91 | 98 | } | 92 | 34 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 413 | PaddedPODArray<UInt8>& c) { | 82 | 413 | size_t size = a.size(); | 83 | 413 | const A* __restrict a_pos = a.data(); | 84 | 413 | UInt8* __restrict c_pos = c.data(); | 85 | 413 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.65k | while (a_pos < a_end) { | 88 | 3.24k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.24k | ++a_pos; | 90 | 3.24k | ++c_pos; | 91 | 3.24k | } | 92 | 413 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 20 | PaddedPODArray<UInt8>& c) { | 82 | 20 | size_t size = a.size(); | 83 | 20 | const A* __restrict a_pos = a.data(); | 84 | 20 | UInt8* __restrict c_pos = c.data(); | 85 | 20 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 49 | while (a_pos < a_end) { | 88 | 29 | *c_pos = Op::apply(*a_pos, b); | 89 | 29 | ++a_pos; | 90 | 29 | ++c_pos; | 91 | 29 | } | 92 | 20 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.81k | PaddedPODArray<UInt8>& c) { | 82 | 1.81k | size_t size = a.size(); | 83 | 1.81k | const A* __restrict a_pos = a.data(); | 84 | 1.81k | UInt8* __restrict c_pos = c.data(); | 85 | 1.81k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 14.8k | while (a_pos < a_end) { | 88 | 13.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 13.0k | ++a_pos; | 90 | 13.0k | ++c_pos; | 91 | 13.0k | } | 92 | 1.81k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 541 | PaddedPODArray<UInt8>& c) { | 82 | 541 | size_t size = a.size(); | 83 | 541 | const A* __restrict a_pos = a.data(); | 84 | 541 | UInt8* __restrict c_pos = c.data(); | 85 | 541 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.30k | while (a_pos < a_end) { | 88 | 2.76k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.76k | ++a_pos; | 90 | 2.76k | ++c_pos; | 91 | 2.76k | } | 92 | 541 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.06k | PaddedPODArray<UInt8>& c) { | 82 | 1.06k | size_t size = a.size(); | 83 | 1.06k | const A* __restrict a_pos = a.data(); | 84 | 1.06k | UInt8* __restrict c_pos = c.data(); | 85 | 1.06k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 122k | while (a_pos < a_end) { | 88 | 121k | *c_pos = Op::apply(*a_pos, b); | 89 | 121k | ++a_pos; | 90 | 121k | ++c_pos; | 91 | 121k | } | 92 | 1.06k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 501 | PaddedPODArray<UInt8>& c) { | 82 | 501 | size_t size = a.size(); | 83 | 501 | const A* __restrict a_pos = a.data(); | 84 | 501 | UInt8* __restrict c_pos = c.data(); | 85 | 501 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.50k | while (a_pos < a_end) { | 88 | 999 | *c_pos = Op::apply(*a_pos, b); | 89 | 999 | ++a_pos; | 90 | 999 | ++c_pos; | 91 | 999 | } | 92 | 501 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 207 | PaddedPODArray<UInt8>& c) { | 82 | 207 | size_t size = a.size(); | 83 | 207 | const A* __restrict a_pos = a.data(); | 84 | 207 | UInt8* __restrict c_pos = c.data(); | 85 | 207 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.75k | 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 | 207 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 14 | PaddedPODArray<UInt8>& c) { | 82 | 14 | size_t size = a.size(); | 83 | 14 | const A* __restrict a_pos = a.data(); | 84 | 14 | UInt8* __restrict c_pos = c.data(); | 85 | 14 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 100k | 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 | 14 | } |
_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 | 208 | PaddedPODArray<UInt8>& c) { | 82 | 208 | size_t size = a.size(); | 83 | 208 | const A* __restrict a_pos = a.data(); | 84 | 208 | UInt8* __restrict c_pos = c.data(); | 85 | 208 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.62k | while (a_pos < a_end) { | 88 | 2.42k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.42k | ++a_pos; | 90 | 2.42k | ++c_pos; | 91 | 2.42k | } | 92 | 208 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_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 | 11 | while (a_pos < a_end) { | 88 | 10 | *c_pos = Op::apply(*a_pos, b); | 89 | 10 | ++a_pos; | 90 | 10 | ++c_pos; | 91 | 10 | } | 92 | 1 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 509 | PaddedPODArray<UInt8>& c) { | 82 | 509 | size_t size = a.size(); | 83 | 509 | const A* __restrict a_pos = a.data(); | 84 | 509 | UInt8* __restrict c_pos = c.data(); | 85 | 509 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 7.49k | while (a_pos < a_end) { | 88 | 6.98k | *c_pos = Op::apply(*a_pos, b); | 89 | 6.98k | ++a_pos; | 90 | 6.98k | ++c_pos; | 91 | 6.98k | } | 92 | 509 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 190 | PaddedPODArray<UInt8>& c) { | 82 | 190 | size_t size = a.size(); | 83 | 190 | const A* __restrict a_pos = a.data(); | 84 | 190 | UInt8* __restrict c_pos = c.data(); | 85 | 190 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 607k | while (a_pos < a_end) { | 88 | 607k | *c_pos = Op::apply(*a_pos, b); | 89 | 607k | ++a_pos; | 90 | 607k | ++c_pos; | 91 | 607k | } | 92 | 190 | } |
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 | 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 | 43.7k | while (a_pos < a_end) { | 88 | 43.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 43.7k | ++a_pos; | 90 | 43.7k | ++c_pos; | 91 | 43.7k | } | 92 | 10 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ 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 | 49.5k | while (a_pos < a_end) { | 88 | 49.5k | *c_pos = Op::apply(*a_pos, b); | 89 | 49.5k | ++a_pos; | 90 | 49.5k | ++c_pos; | 91 | 49.5k | } | 92 | 13 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 525 | PaddedPODArray<UInt8>& c) { | 82 | 525 | size_t size = a.size(); | 83 | 525 | const A* __restrict a_pos = a.data(); | 84 | 525 | UInt8* __restrict c_pos = c.data(); | 85 | 525 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.82M | while (a_pos < a_end) { | 88 | 1.82M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.82M | ++a_pos; | 90 | 1.82M | ++c_pos; | 91 | 1.82M | } | 92 | 525 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 149 | PaddedPODArray<UInt8>& c) { | 82 | 149 | size_t size = a.size(); | 83 | 149 | const A* __restrict a_pos = a.data(); | 84 | 149 | UInt8* __restrict c_pos = c.data(); | 85 | 149 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 628k | while (a_pos < a_end) { | 88 | 628k | *c_pos = Op::apply(*a_pos, b); | 89 | 628k | ++a_pos; | 90 | 628k | ++c_pos; | 91 | 628k | } | 92 | 149 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 146 | PaddedPODArray<UInt8>& c) { | 82 | 146 | size_t size = a.size(); | 83 | 146 | const A* __restrict a_pos = a.data(); | 84 | 146 | UInt8* __restrict c_pos = c.data(); | 85 | 146 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 555 | while (a_pos < a_end) { | 88 | 409 | *c_pos = Op::apply(*a_pos, b); | 89 | 409 | ++a_pos; | 90 | 409 | ++c_pos; | 91 | 409 | } | 92 | 146 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 43 | PaddedPODArray<UInt8>& c) { | 82 | 43 | size_t size = a.size(); | 83 | 43 | const A* __restrict a_pos = a.data(); | 84 | 43 | UInt8* __restrict c_pos = c.data(); | 85 | 43 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 92 | while (a_pos < a_end) { | 88 | 49 | *c_pos = Op::apply(*a_pos, b); | 89 | 49 | ++a_pos; | 90 | 49 | ++c_pos; | 91 | 49 | } | 92 | 43 | } |
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 | 75 | PaddedPODArray<UInt8>& c) { | 82 | 75 | size_t size = a.size(); | 83 | 75 | const A* __restrict a_pos = a.data(); | 84 | 75 | UInt8* __restrict c_pos = c.data(); | 85 | 75 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 67.1k | while (a_pos < a_end) { | 88 | 67.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 67.0k | ++a_pos; | 90 | 67.0k | ++c_pos; | 91 | 67.0k | } | 92 | 75 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 91 | PaddedPODArray<UInt8>& c) { | 82 | 91 | size_t size = a.size(); | 83 | 91 | const A* __restrict a_pos = a.data(); | 84 | 91 | UInt8* __restrict c_pos = c.data(); | 85 | 91 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 22.2k | while (a_pos < a_end) { | 88 | 22.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 22.1k | ++a_pos; | 90 | 22.1k | ++c_pos; | 91 | 22.1k | } | 92 | 91 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 103 | PaddedPODArray<UInt8>& c) { | 82 | 103 | size_t size = a.size(); | 83 | 103 | const A* __restrict a_pos = a.data(); | 84 | 103 | UInt8* __restrict c_pos = c.data(); | 85 | 103 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 27.0k | while (a_pos < a_end) { | 88 | 26.9k | *c_pos = Op::apply(*a_pos, b); | 89 | 26.9k | ++a_pos; | 90 | 26.9k | ++c_pos; | 91 | 26.9k | } | 92 | 103 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 152 | PaddedPODArray<UInt8>& c) { | 82 | 152 | size_t size = a.size(); | 83 | 152 | const A* __restrict a_pos = a.data(); | 84 | 152 | UInt8* __restrict c_pos = c.data(); | 85 | 152 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 15.3k | while (a_pos < a_end) { | 88 | 15.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 15.1k | ++a_pos; | 90 | 15.1k | ++c_pos; | 91 | 15.1k | } | 92 | 152 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.13k | PaddedPODArray<UInt8>& c) { | 82 | 1.13k | size_t size = a.size(); | 83 | 1.13k | const A* __restrict a_pos = a.data(); | 84 | 1.13k | UInt8* __restrict c_pos = c.data(); | 85 | 1.13k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.36M | while (a_pos < a_end) { | 88 | 4.36M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.36M | ++a_pos; | 90 | 4.36M | ++c_pos; | 91 | 4.36M | } | 92 | 1.13k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.13k | PaddedPODArray<UInt8>& c) { | 82 | 1.13k | size_t size = a.size(); | 83 | 1.13k | const A* __restrict a_pos = a.data(); | 84 | 1.13k | UInt8* __restrict c_pos = c.data(); | 85 | 1.13k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.34M | while (a_pos < a_end) { | 88 | 4.34M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.34M | ++a_pos; | 90 | 4.34M | ++c_pos; | 91 | 4.34M | } | 92 | 1.13k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 138 | PaddedPODArray<UInt8>& c) { | 82 | 138 | size_t size = a.size(); | 83 | 138 | const A* __restrict a_pos = a.data(); | 84 | 138 | UInt8* __restrict c_pos = c.data(); | 85 | 138 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 5.41k | while (a_pos < a_end) { | 88 | 5.27k | *c_pos = Op::apply(*a_pos, b); | 89 | 5.27k | ++a_pos; | 90 | 5.27k | ++c_pos; | 91 | 5.27k | } | 92 | 138 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 217 | PaddedPODArray<UInt8>& c) { | 82 | 217 | size_t size = a.size(); | 83 | 217 | const A* __restrict a_pos = a.data(); | 84 | 217 | UInt8* __restrict c_pos = c.data(); | 85 | 217 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.15k | while (a_pos < a_end) { | 88 | 1.93k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.93k | ++a_pos; | 90 | 1.93k | ++c_pos; | 91 | 1.93k | } | 92 | 217 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 21 | PaddedPODArray<UInt8>& c) { | 82 | 21 | size_t size = a.size(); | 83 | 21 | const A* __restrict a_pos = a.data(); | 84 | 21 | UInt8* __restrict c_pos = c.data(); | 85 | 21 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 95.8k | while (a_pos < a_end) { | 88 | 95.8k | *c_pos = Op::apply(*a_pos, b); | 89 | 95.8k | ++a_pos; | 90 | 95.8k | ++c_pos; | 91 | 95.8k | } | 92 | 21 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 8 | PaddedPODArray<UInt8>& c) { | 82 | 8 | size_t size = a.size(); | 83 | 8 | const A* __restrict a_pos = a.data(); | 84 | 8 | UInt8* __restrict c_pos = c.data(); | 85 | 8 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 33.8k | while (a_pos < a_end) { | 88 | 33.8k | *c_pos = Op::apply(*a_pos, b); | 89 | 33.8k | ++a_pos; | 90 | 33.8k | ++c_pos; | 91 | 33.8k | } | 92 | 8 | } |
_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 | 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 | 15 | while (a_pos < a_end) { | 88 | 9 | *c_pos = Op::apply(*a_pos, b); | 89 | 9 | ++a_pos; | 90 | 9 | ++c_pos; | 91 | 9 | } | 92 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 118 | PaddedPODArray<UInt8>& c) { | 82 | 118 | size_t size = a.size(); | 83 | 118 | const A* __restrict a_pos = a.data(); | 84 | 118 | UInt8* __restrict c_pos = c.data(); | 85 | 118 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 664k | while (a_pos < a_end) { | 88 | 664k | *c_pos = Op::apply(*a_pos, b); | 89 | 664k | ++a_pos; | 90 | 664k | ++c_pos; | 91 | 664k | } | 92 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 95 | PaddedPODArray<UInt8>& c) { | 82 | 95 | size_t size = a.size(); | 83 | 95 | const A* __restrict a_pos = a.data(); | 84 | 95 | UInt8* __restrict c_pos = c.data(); | 85 | 95 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 600k | while (a_pos < a_end) { | 88 | 600k | *c_pos = Op::apply(*a_pos, b); | 89 | 600k | ++a_pos; | 90 | 600k | ++c_pos; | 91 | 600k | } | 92 | 95 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
93 | | |
94 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
95 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
96 | 8 | } 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 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 95 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 96 | 8 | } |
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 | 95 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 95 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
110 | 207k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
111 | 207k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
112 | 207k | } |
113 | 95 | } _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 | 33 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 33 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 147k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 147k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 147k | } | 113 | 33 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 25 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 25 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 59.9k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 59.8k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 59.8k | } | 113 | 25 | } |
|
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 | 423 | PaddedPODArray<UInt8>& c) { |
127 | 423 | size_t size = a_offsets.size(); |
128 | 423 | ColumnString::Offset prev_a_offset = 0; |
129 | 423 | ColumnString::Offset prev_b_offset = 0; |
130 | 423 | const auto* a_pos = a_data.data(); |
131 | 423 | const auto* b_pos = b_data.data(); |
132 | | |
133 | 1.11k | for (size_t i = 0; i < size; ++i) { |
134 | 693 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
135 | 693 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
136 | 693 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
137 | 693 | 0); |
138 | | |
139 | 693 | prev_a_offset = a_offsets[i]; |
140 | 693 | prev_b_offset = b_offsets[i]; |
141 | 693 | } |
142 | 423 | } _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 | 43 | PaddedPODArray<UInt8>& c) { | 127 | 43 | size_t size = a_offsets.size(); | 128 | 43 | ColumnString::Offset prev_a_offset = 0; | 129 | 43 | ColumnString::Offset prev_b_offset = 0; | 130 | 43 | const auto* a_pos = a_data.data(); | 131 | 43 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 307 | 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 | 43 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 126 | 378 | PaddedPODArray<UInt8>& c) { | 127 | 378 | size_t size = a_offsets.size(); | 128 | 378 | ColumnString::Offset prev_a_offset = 0; | 129 | 378 | ColumnString::Offset prev_b_offset = 0; | 130 | 378 | const auto* a_pos = a_data.data(); | 131 | 378 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 760 | for (size_t i = 0; i < size; ++i) { | 134 | 382 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 382 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 382 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 382 | 0); | 138 | | | 139 | 382 | prev_a_offset = a_offsets[i]; | 140 | 382 | prev_b_offset = b_offsets[i]; | 141 | 382 | } | 142 | 378 | } |
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 | 851 | PaddedPODArray<UInt8>& c) { |
149 | 851 | size_t size = a_offsets.size(); |
150 | 851 | ColumnString::Offset prev_a_offset = 0; |
151 | 851 | const auto* a_pos = a_data.data(); |
152 | 851 | const auto* b_pos = b_data.data(); |
153 | | |
154 | 1.32M | for (size_t i = 0; i < size; ++i) { |
155 | 1.32M | c[i] = Op::apply( |
156 | 1.32M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
157 | 1.32M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
158 | 1.32M | 0); |
159 | | |
160 | 1.32M | prev_a_offset = a_offsets[i]; |
161 | 1.32M | } |
162 | 851 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 201 | PaddedPODArray<UInt8>& c) { | 149 | 201 | size_t size = a_offsets.size(); | 150 | 201 | ColumnString::Offset prev_a_offset = 0; | 151 | 201 | const auto* a_pos = a_data.data(); | 152 | 201 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 596k | for (size_t i = 0; i < size; ++i) { | 155 | 595k | c[i] = Op::apply( | 156 | 595k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 595k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 595k | 0); | 159 | | | 160 | 595k | prev_a_offset = a_offsets[i]; | 161 | 595k | } | 162 | 201 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 136 | PaddedPODArray<UInt8>& c) { | 149 | 136 | size_t size = a_offsets.size(); | 150 | 136 | ColumnString::Offset prev_a_offset = 0; | 151 | 136 | const auto* a_pos = a_data.data(); | 152 | 136 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 71.8k | for (size_t i = 0; i < size; ++i) { | 155 | 71.7k | c[i] = Op::apply( | 156 | 71.7k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 71.7k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 71.7k | 0); | 159 | | | 160 | 71.7k | prev_a_offset = a_offsets[i]; | 161 | 71.7k | } | 162 | 136 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 247 | PaddedPODArray<UInt8>& c) { | 149 | 247 | size_t size = a_offsets.size(); | 150 | 247 | ColumnString::Offset prev_a_offset = 0; | 151 | 247 | const auto* a_pos = a_data.data(); | 152 | 247 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 227k | for (size_t i = 0; i < size; ++i) { | 155 | 227k | c[i] = Op::apply( | 156 | 227k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 227k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 227k | 0); | 159 | | | 160 | 227k | prev_a_offset = a_offsets[i]; | 161 | 227k | } | 162 | 247 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 267 | PaddedPODArray<UInt8>& c) { | 149 | 267 | size_t size = a_offsets.size(); | 150 | 267 | ColumnString::Offset prev_a_offset = 0; | 151 | 267 | const auto* a_pos = a_data.data(); | 152 | 267 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 433k | for (size_t i = 0; i < size; ++i) { | 155 | 432k | c[i] = Op::apply( | 156 | 432k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 432k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 432k | 0); | 159 | | | 160 | 432k | prev_a_offset = a_offsets[i]; | 161 | 432k | } | 162 | 267 | } |
|
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 | 416 | PaddedPODArray<UInt8>& c) { |
181 | 416 | size_t size = a_offsets.size(); |
182 | 416 | ColumnString::Offset prev_a_offset = 0; |
183 | 416 | ColumnString::Offset prev_b_offset = 0; |
184 | 416 | const auto* a_pos = a_data.data(); |
185 | 416 | const auto* b_pos = b_data.data(); |
186 | | |
187 | 1.13k | for (size_t i = 0; i < size; ++i) { |
188 | 719 | auto a_size = a_offsets[i] - prev_a_offset; |
189 | 719 | auto b_size = b_offsets[i] - prev_b_offset; |
190 | | |
191 | 719 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
192 | 719 | b_pos + prev_b_offset, b_size); |
193 | | |
194 | 719 | prev_a_offset = a_offsets[i]; |
195 | 719 | prev_b_offset = b_offsets[i]; |
196 | 719 | } |
197 | 416 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 415 | PaddedPODArray<UInt8>& c) { | 181 | 415 | size_t size = a_offsets.size(); | 182 | 415 | ColumnString::Offset prev_a_offset = 0; | 183 | 415 | ColumnString::Offset prev_b_offset = 0; | 184 | 415 | const auto* a_pos = a_data.data(); | 185 | 415 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 1.13k | for (size_t i = 0; i < size; ++i) { | 188 | 715 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 715 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 715 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 715 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 715 | prev_a_offset = a_offsets[i]; | 195 | 715 | prev_b_offset = b_offsets[i]; | 196 | 715 | } | 197 | 415 | } |
_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 | 10.8k | PaddedPODArray<UInt8>& c) { |
204 | 10.8k | size_t size = a_offsets.size(); |
205 | 10.8k | if (b_size == 0) { |
206 | 25 | auto* __restrict data = c.data(); |
207 | 25 | auto* __restrict offsets = a_offsets.data(); |
208 | | |
209 | 25 | ColumnString::Offset prev_a_offset = 0; |
210 | 1.10k | for (size_t i = 0; i < size; ++i) { |
211 | 1.07k | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
212 | 1.07k | prev_a_offset = offsets[i]; |
213 | 1.07k | } |
214 | 10.7k | } else { |
215 | 10.7k | ColumnString::Offset prev_a_offset = 0; |
216 | 10.7k | const auto* a_pos = a_data.data(); |
217 | 10.7k | const auto* b_pos = b_data.data(); |
218 | 1.46M | for (size_t i = 0; i < size; ++i) { |
219 | 1.45M | auto a_size = a_offsets[i] - prev_a_offset; |
220 | 1.45M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
221 | 1.45M | b_pos, b_size); |
222 | 1.45M | prev_a_offset = a_offsets[i]; |
223 | 1.45M | } |
224 | 10.7k | } |
225 | 10.8k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 10.6k | PaddedPODArray<UInt8>& c) { | 204 | 10.6k | size_t size = a_offsets.size(); | 205 | 10.6k | 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 | 10.6k | } else { | 215 | 10.6k | ColumnString::Offset prev_a_offset = 0; | 216 | 10.6k | const auto* a_pos = a_data.data(); | 217 | 10.6k | const auto* b_pos = b_data.data(); | 218 | 1.41M | for (size_t i = 0; i < size; ++i) { | 219 | 1.40M | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 1.40M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 1.40M | b_pos, b_size); | 222 | 1.40M | prev_a_offset = a_offsets[i]; | 223 | 1.40M | } | 224 | 10.6k | } | 225 | 10.6k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 126 | PaddedPODArray<UInt8>& c) { | 204 | 126 | size_t size = a_offsets.size(); | 205 | 126 | if (b_size == 0) { | 206 | 25 | auto* __restrict data = c.data(); | 207 | 25 | auto* __restrict offsets = a_offsets.data(); | 208 | | | 209 | 25 | ColumnString::Offset prev_a_offset = 0; | 210 | 1.10k | for (size_t i = 0; i < size; ++i) { | 211 | 1.07k | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 1.07k | prev_a_offset = offsets[i]; | 213 | 1.07k | } | 214 | 101 | } else { | 215 | 101 | ColumnString::Offset prev_a_offset = 0; | 216 | 101 | const auto* a_pos = a_data.data(); | 217 | 101 | const auto* b_pos = b_data.data(); | 218 | 44.2k | for (size_t i = 0; i < size; ++i) { | 219 | 44.1k | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 44.1k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 44.1k | b_pos, b_size); | 222 | 44.1k | prev_a_offset = a_offsets[i]; | 223 | 44.1k | } | 224 | 101 | } | 225 | 126 | } |
|
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 | 301k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 265 | 249k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 265 | 1.13k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 265 | 4.93k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 265 | 21.7k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 265 | 2.74k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 265 | 21.4k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
266 | | |
267 | 301k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 267 | 249k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 267 | 1.13k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 267 | 4.93k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 267 | 21.7k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 267 | 2.74k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 267 | 21.4k | FunctionComparison() = default; |
|
268 | | |
269 | 697k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 269 | 671k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 269 | 534 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 269 | 3.36k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 269 | 9.52k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 269 | 2.23k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 269 | 9.94k | 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 | 29.4k | const ColumnPtr& col_right_ptr) const { |
275 | 29.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
276 | 29.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
277 | | |
278 | 29.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
279 | 29.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
280 | | |
281 | 29.4k | DCHECK(!(left_is_const && right_is_const)); |
282 | | |
283 | 29.4k | if (!left_is_const && !right_is_const) { |
284 | 12.2k | auto col_res = ColumnUInt8::create(); |
285 | | |
286 | 12.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
287 | 12.2k | vec_res.resize(col_left->get_data().size()); |
288 | 12.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
289 | 12.2k | typename PrimitiveTypeTraits<PT>::CppType, |
290 | 12.2k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
291 | 12.2k | vec_res); |
292 | | |
293 | 12.2k | block.replace_by_position(result, std::move(col_res)); |
294 | 17.1k | } else if (!left_is_const && right_is_const) { |
295 | 17.1k | auto col_res = ColumnUInt8::create(); |
296 | | |
297 | 17.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
298 | 17.1k | vec_res.resize(col_left->size()); |
299 | 17.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
300 | 17.1k | typename PrimitiveTypeTraits<PT>::CppType, |
301 | 17.1k | Op<PT>>::vector_constant(col_left->get_data(), |
302 | 17.1k | col_right->get_element(0), vec_res); |
303 | | |
304 | 17.1k | block.replace_by_position(result, std::move(col_res)); |
305 | 18.4E | } else if (left_is_const && !right_is_const) { |
306 | 8 | auto col_res = ColumnUInt8::create(); |
307 | | |
308 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); |
309 | 8 | vec_res.resize(col_right->size()); |
310 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
311 | 8 | typename PrimitiveTypeTraits<PT>::CppType, |
312 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), |
313 | 8 | col_right->get_data(), vec_res); |
314 | | |
315 | 8 | block.replace_by_position(result, std::move(col_res)); |
316 | 8 | } |
317 | 29.4k | return Status::OK(); |
318 | 29.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 102 | const ColumnPtr& col_right_ptr) const { | 275 | 102 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 102 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 102 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 102 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 102 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 102 | 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 | 76 | } 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 | 102 | return Status::OK(); | 318 | 102 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 872 | const ColumnPtr& col_right_ptr) const { | 275 | 872 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 872 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 872 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 872 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 872 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 872 | if (!left_is_const && !right_is_const) { | 284 | 312 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 312 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 312 | vec_res.resize(col_left->get_data().size()); | 288 | 312 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 312 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 312 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 312 | vec_res); | 292 | | | 293 | 312 | block.replace_by_position(result, std::move(col_res)); | 294 | 560 | } else if (!left_is_const && right_is_const) { | 295 | 560 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 560 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 560 | vec_res.resize(col_left->size()); | 299 | 560 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 560 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 560 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 560 | col_right->get_element(0), vec_res); | 303 | | | 304 | 560 | block.replace_by_position(result, std::move(col_res)); | 305 | 560 | } 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 | 872 | return Status::OK(); | 318 | 872 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 501 | const ColumnPtr& col_right_ptr) const { | 275 | 501 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 501 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 501 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 501 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 501 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 501 | if (!left_is_const && !right_is_const) { | 284 | 250 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 250 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 250 | vec_res.resize(col_left->get_data().size()); | 288 | 250 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 250 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 250 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 250 | vec_res); | 292 | | | 293 | 250 | block.replace_by_position(result, std::move(col_res)); | 294 | 251 | } else if (!left_is_const && right_is_const) { | 295 | 251 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 251 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 251 | vec_res.resize(col_left->size()); | 299 | 251 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 251 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 251 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 251 | col_right->get_element(0), vec_res); | 303 | | | 304 | 251 | block.replace_by_position(result, std::move(col_res)); | 305 | 251 | } 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 | 501 | return Status::OK(); | 318 | 501 | } |
_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 | 3.49k | const ColumnPtr& col_right_ptr) const { | 275 | 3.49k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.49k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.49k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.49k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.49k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.49k | if (!left_is_const && !right_is_const) { | 284 | 881 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 881 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 881 | vec_res.resize(col_left->get_data().size()); | 288 | 881 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 881 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 881 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 881 | vec_res); | 292 | | | 293 | 881 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.61k | } else if (!left_is_const && right_is_const) { | 295 | 2.61k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.61k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.61k | vec_res.resize(col_left->size()); | 299 | 2.61k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.61k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.61k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.61k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.61k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.61k | } 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.49k | return Status::OK(); | 318 | 3.49k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 577 | const ColumnPtr& col_right_ptr) const { | 275 | 577 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 577 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 577 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 577 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 577 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 577 | if (!left_is_const && !right_is_const) { | 284 | 116 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 116 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 116 | vec_res.resize(col_left->get_data().size()); | 288 | 116 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 116 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 116 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 116 | vec_res); | 292 | | | 293 | 116 | block.replace_by_position(result, std::move(col_res)); | 294 | 461 | } else if (!left_is_const && right_is_const) { | 295 | 461 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 461 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 461 | vec_res.resize(col_left->size()); | 299 | 461 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 461 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 461 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 461 | col_right->get_element(0), vec_res); | 303 | | | 304 | 461 | block.replace_by_position(result, std::move(col_res)); | 305 | 461 | } 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 | 577 | return Status::OK(); | 318 | 577 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.89k | const ColumnPtr& col_right_ptr) const { | 275 | 1.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.89k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.89k | if (!left_is_const && !right_is_const) { | 284 | 303 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 303 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 303 | vec_res.resize(col_left->get_data().size()); | 288 | 303 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 303 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 303 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 303 | vec_res); | 292 | | | 293 | 303 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.58k | } else if (!left_is_const && right_is_const) { | 295 | 1.58k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.58k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.58k | vec_res.resize(col_left->size()); | 299 | 1.58k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.58k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.58k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.58k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.58k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.58k | } else if (left_is_const && !right_is_const) { | 306 | 8 | auto col_res = ColumnUInt8::create(); | 307 | | | 308 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 8 | vec_res.resize(col_right->size()); | 310 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 8 | col_right->get_data(), vec_res); | 314 | | | 315 | 8 | block.replace_by_position(result, std::move(col_res)); | 316 | 8 | } | 317 | 1.89k | return Status::OK(); | 318 | 1.89k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 940 | const ColumnPtr& col_right_ptr) const { | 275 | 940 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 940 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 940 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 940 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 940 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 940 | if (!left_is_const && !right_is_const) { | 284 | 200 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 200 | vec_res.resize(col_left->get_data().size()); | 288 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 200 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 200 | vec_res); | 292 | | | 293 | 200 | block.replace_by_position(result, std::move(col_res)); | 294 | 740 | } else if (!left_is_const && right_is_const) { | 295 | 740 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 740 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 740 | vec_res.resize(col_left->size()); | 299 | 740 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 740 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 740 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 740 | col_right->get_element(0), vec_res); | 303 | | | 304 | 740 | block.replace_by_position(result, std::move(col_res)); | 305 | 740 | } 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 | 940 | return Status::OK(); | 318 | 940 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 108 | const ColumnPtr& col_right_ptr) const { | 275 | 108 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 108 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 108 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 108 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 108 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 108 | if (!left_is_const && !right_is_const) { | 284 | 84 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 84 | vec_res.resize(col_left->get_data().size()); | 288 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 84 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 84 | vec_res); | 292 | | | 293 | 84 | block.replace_by_position(result, std::move(col_res)); | 294 | 84 | } else if (!left_is_const && right_is_const) { | 295 | 24 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 24 | vec_res.resize(col_left->size()); | 299 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 24 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 24 | col_right->get_element(0), vec_res); | 303 | | | 304 | 24 | block.replace_by_position(result, std::move(col_res)); | 305 | 24 | } 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 | 108 | return Status::OK(); | 318 | 108 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 18 | const ColumnPtr& col_right_ptr) const { | 275 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 18 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 18 | if (!left_is_const && !right_is_const) { | 284 | 5 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 5 | vec_res.resize(col_left->get_data().size()); | 288 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 5 | vec_res); | 292 | | | 293 | 5 | block.replace_by_position(result, std::move(col_res)); | 294 | 13 | } 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 | 18 | return Status::OK(); | 318 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 19 | const ColumnPtr& col_right_ptr) const { | 275 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 19 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 19 | if (!left_is_const && !right_is_const) { | 284 | 13 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 13 | vec_res.resize(col_left->get_data().size()); | 288 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 13 | vec_res); | 292 | | | 293 | 13 | block.replace_by_position(result, std::move(col_res)); | 294 | 13 | } 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 | 19 | return Status::OK(); | 318 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 93 | const ColumnPtr& col_right_ptr) const { | 275 | 93 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 93 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 93 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 93 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 93 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 93 | if (!left_is_const && !right_is_const) { | 284 | 93 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 93 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 93 | vec_res.resize(col_left->get_data().size()); | 288 | 93 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 93 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 93 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 93 | vec_res); | 292 | | | 293 | 93 | block.replace_by_position(result, std::move(col_res)); | 294 | 93 | } 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 | 93 | return Status::OK(); | 318 | 93 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 249 | const ColumnPtr& col_right_ptr) const { | 275 | 249 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 249 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 249 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 249 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 249 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 249 | if (!left_is_const && !right_is_const) { | 284 | 98 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 98 | vec_res.resize(col_left->get_data().size()); | 288 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 98 | vec_res); | 292 | | | 293 | 98 | block.replace_by_position(result, std::move(col_res)); | 294 | 151 | } else if (!left_is_const && right_is_const) { | 295 | 151 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 151 | vec_res.resize(col_left->size()); | 299 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 151 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 151 | col_right->get_element(0), vec_res); | 303 | | | 304 | 151 | block.replace_by_position(result, std::move(col_res)); | 305 | 151 | } 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 | 249 | return Status::OK(); | 318 | 249 | } |
_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 | 41 | const ColumnPtr& col_right_ptr) const { | 275 | 41 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 41 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 41 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 41 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 41 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 41 | 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 | 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 | 41 | return Status::OK(); | 318 | 41 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ 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 | 92 | const ColumnPtr& col_right_ptr) const { | 275 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 92 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 92 | if (!left_is_const && !right_is_const) { | 284 | 64 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 64 | vec_res.resize(col_left->get_data().size()); | 288 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 64 | vec_res); | 292 | | | 293 | 64 | block.replace_by_position(result, std::move(col_res)); | 294 | 64 | } else if (!left_is_const && right_is_const) { | 295 | 28 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 28 | vec_res.resize(col_left->size()); | 299 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 28 | col_right->get_element(0), vec_res); | 303 | | | 304 | 28 | block.replace_by_position(result, std::move(col_res)); | 305 | 28 | } 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 | 92 | return Status::OK(); | 318 | 92 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 659 | const ColumnPtr& col_right_ptr) const { | 275 | 659 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 659 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 659 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 659 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 659 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 659 | if (!left_is_const && !right_is_const) { | 284 | 594 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 594 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 594 | vec_res.resize(col_left->get_data().size()); | 288 | 594 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 594 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 594 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 594 | vec_res); | 292 | | | 293 | 594 | block.replace_by_position(result, std::move(col_res)); | 294 | 594 | } else if (!left_is_const && right_is_const) { | 295 | 65 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 65 | vec_res.resize(col_left->size()); | 299 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 65 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 65 | col_right->get_element(0), vec_res); | 303 | | | 304 | 65 | block.replace_by_position(result, std::move(col_res)); | 305 | 65 | } 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 | 659 | return Status::OK(); | 318 | 659 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 482 | const ColumnPtr& col_right_ptr) const { | 275 | 482 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 482 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 482 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 482 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 482 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 482 | if (!left_is_const && !right_is_const) { | 284 | 457 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 457 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 457 | vec_res.resize(col_left->get_data().size()); | 288 | 457 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 457 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 457 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 457 | vec_res); | 292 | | | 293 | 457 | block.replace_by_position(result, std::move(col_res)); | 294 | 457 | } else if (!left_is_const && right_is_const) { | 295 | 25 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 25 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 25 | vec_res.resize(col_left->size()); | 299 | 25 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 25 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 25 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 25 | col_right->get_element(0), vec_res); | 303 | | | 304 | 25 | block.replace_by_position(result, std::move(col_res)); | 305 | 25 | } 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 | 482 | return Status::OK(); | 318 | 482 | } |
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 | 52 | const ColumnPtr& col_right_ptr) const { | 275 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 52 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 52 | 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 | 32 | } else if (!left_is_const && right_is_const) { | 295 | 32 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 32 | vec_res.resize(col_left->size()); | 299 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 32 | col_right->get_element(0), vec_res); | 303 | | | 304 | 32 | block.replace_by_position(result, std::move(col_res)); | 305 | 32 | } 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 | 52 | return Status::OK(); | 318 | 52 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 71 | const ColumnPtr& col_right_ptr) const { | 275 | 71 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 71 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 71 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 71 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 71 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 71 | if (!left_is_const && !right_is_const) { | 284 | 19 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 19 | vec_res.resize(col_left->get_data().size()); | 288 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 19 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 19 | vec_res); | 292 | | | 293 | 19 | block.replace_by_position(result, std::move(col_res)); | 294 | 52 | } else if (!left_is_const && right_is_const) { | 295 | 52 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 52 | vec_res.resize(col_left->size()); | 299 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 52 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 52 | col_right->get_element(0), vec_res); | 303 | | | 304 | 52 | block.replace_by_position(result, std::move(col_res)); | 305 | 52 | } 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 | 71 | return Status::OK(); | 318 | 71 | } |
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.08k | const ColumnPtr& col_right_ptr) const { | 275 | 1.08k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.08k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.08k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.08k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.08k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.08k | if (!left_is_const && !right_is_const) { | 284 | 1.08k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.08k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.08k | vec_res.resize(col_left->get_data().size()); | 288 | 1.08k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.08k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.08k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.08k | vec_res); | 292 | | | 293 | 1.08k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.08k | } 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 | 1.08k | return Status::OK(); | 318 | 1.08k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_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 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_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_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 784 | const ColumnPtr& col_right_ptr) const { | 275 | 784 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 784 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 784 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 784 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 784 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 786 | if (!left_is_const && !right_is_const) { | 284 | 370 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 370 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 370 | vec_res.resize(col_left->get_data().size()); | 288 | 370 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 370 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 370 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 370 | vec_res); | 292 | | | 293 | 370 | block.replace_by_position(result, std::move(col_res)); | 294 | 417 | } else if (!left_is_const && right_is_const) { | 295 | 417 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 417 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 417 | vec_res.resize(col_left->size()); | 299 | 417 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 417 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 417 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 417 | col_right->get_element(0), vec_res); | 303 | | | 304 | 417 | 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 | 784 | return Status::OK(); | 318 | 784 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.03k | const ColumnPtr& col_right_ptr) const { | 275 | 1.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.03k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.03k | if (!left_is_const && !right_is_const) { | 284 | 624 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 624 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 624 | vec_res.resize(col_left->get_data().size()); | 288 | 624 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 624 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 624 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 624 | vec_res); | 292 | | | 293 | 624 | block.replace_by_position(result, std::move(col_res)); | 294 | 624 | } else if (!left_is_const && right_is_const) { | 295 | 413 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 413 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 413 | vec_res.resize(col_left->size()); | 299 | 413 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 413 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 413 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 413 | col_right->get_element(0), vec_res); | 303 | | | 304 | 413 | 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.03k | return Status::OK(); | 318 | 1.03k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 3.59k | const ColumnPtr& col_right_ptr) const { | 275 | 3.59k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.59k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.59k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.59k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.59k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.59k | if (!left_is_const && !right_is_const) { | 284 | 1.78k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.78k | vec_res.resize(col_left->get_data().size()); | 288 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.78k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.78k | vec_res); | 292 | | | 293 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.81k | } else if (!left_is_const && right_is_const) { | 295 | 1.81k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.81k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.81k | vec_res.resize(col_left->size()); | 299 | 1.81k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.81k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.81k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.81k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.81k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.81k | } 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.59k | return Status::OK(); | 318 | 3.59k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.19k | const ColumnPtr& col_right_ptr) const { | 275 | 1.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.19k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.19k | if (!left_is_const && !right_is_const) { | 284 | 127 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 127 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 127 | vec_res.resize(col_left->get_data().size()); | 288 | 127 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 127 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 127 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 127 | vec_res); | 292 | | | 293 | 127 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.06k | } else if (!left_is_const && right_is_const) { | 295 | 1.06k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.06k | vec_res.resize(col_left->size()); | 299 | 1.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.06k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.06k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.06k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.06k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.06k | } 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.19k | return Status::OK(); | 318 | 1.19k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 247 | const ColumnPtr& col_right_ptr) const { | 275 | 247 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 247 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 247 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 247 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 247 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 247 | if (!left_is_const && !right_is_const) { | 284 | 40 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 40 | vec_res.resize(col_left->get_data().size()); | 288 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 40 | vec_res); | 292 | | | 293 | 40 | block.replace_by_position(result, std::move(col_res)); | 294 | 207 | } else if (!left_is_const && right_is_const) { | 295 | 207 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 207 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 207 | vec_res.resize(col_left->size()); | 299 | 207 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 207 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 207 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 207 | col_right->get_element(0), vec_res); | 303 | | | 304 | 207 | block.replace_by_position(result, std::move(col_res)); | 305 | 207 | } 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 | 247 | return Status::OK(); | 318 | 247 | } |
_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 | 228 | const ColumnPtr& col_right_ptr) const { | 275 | 228 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 228 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 228 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 228 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 228 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 228 | 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 | 208 | } else if (!left_is_const && right_is_const) { | 295 | 208 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 208 | vec_res.resize(col_left->size()); | 299 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 208 | col_right->get_element(0), vec_res); | 303 | | | 304 | 208 | block.replace_by_position(result, std::move(col_res)); | 305 | 208 | } 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 | 228 | return Status::OK(); | 318 | 228 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 555 | const ColumnPtr& col_right_ptr) const { | 275 | 555 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 555 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 555 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 555 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 555 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 555 | if (!left_is_const && !right_is_const) { | 284 | 46 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 46 | vec_res.resize(col_left->get_data().size()); | 288 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 46 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 46 | vec_res); | 292 | | | 293 | 46 | block.replace_by_position(result, std::move(col_res)); | 294 | 509 | } else if (!left_is_const && right_is_const) { | 295 | 509 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 509 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 509 | vec_res.resize(col_left->size()); | 299 | 509 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 509 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 509 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 509 | col_right->get_element(0), vec_res); | 303 | | | 304 | 509 | block.replace_by_position(result, std::move(col_res)); | 305 | 509 | } 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 | 555 | return Status::OK(); | 318 | 555 | } |
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 | 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 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 532 | const ColumnPtr& col_right_ptr) const { | 275 | 532 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 532 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 532 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 532 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 532 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 532 | 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 | 525 | } else if (!left_is_const && right_is_const) { | 295 | 525 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 525 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 525 | vec_res.resize(col_left->size()); | 299 | 525 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 525 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 525 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 525 | col_right->get_element(0), vec_res); | 303 | | | 304 | 525 | block.replace_by_position(result, std::move(col_res)); | 305 | 525 | } 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 | 532 | return Status::OK(); | 318 | 532 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 156 | const ColumnPtr& col_right_ptr) const { | 275 | 156 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 156 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 156 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 156 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 156 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 156 | if (!left_is_const && !right_is_const) { | 284 | 10 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 10 | vec_res.resize(col_left->get_data().size()); | 288 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 10 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 10 | vec_res); | 292 | | | 293 | 10 | block.replace_by_position(result, std::move(col_res)); | 294 | 146 | } else if (!left_is_const && right_is_const) { | 295 | 146 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 146 | vec_res.resize(col_left->size()); | 299 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 146 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 146 | col_right->get_element(0), vec_res); | 303 | | | 304 | 146 | block.replace_by_position(result, std::move(col_res)); | 305 | 146 | } 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 | 156 | return Status::OK(); | 318 | 156 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 75 | const ColumnPtr& col_right_ptr) const { | 275 | 75 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 75 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 75 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 75 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 75 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 75 | 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 | 75 | } else if (!left_is_const && right_is_const) { | 295 | 75 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 75 | vec_res.resize(col_left->size()); | 299 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 75 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 75 | col_right->get_element(0), vec_res); | 303 | | | 304 | 75 | block.replace_by_position(result, std::move(col_res)); | 305 | 75 | } 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 | 75 | return Status::OK(); | 318 | 75 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 103 | const ColumnPtr& col_right_ptr) const { | 275 | 103 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 103 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 103 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 103 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 103 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 103 | 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 | 103 | } else if (!left_is_const && right_is_const) { | 295 | 103 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 103 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 103 | vec_res.resize(col_left->size()); | 299 | 103 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 103 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 103 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 103 | col_right->get_element(0), vec_res); | 303 | | | 304 | 103 | block.replace_by_position(result, std::move(col_res)); | 305 | 103 | } 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 | 103 | return Status::OK(); | 318 | 103 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.13k | const ColumnPtr& col_right_ptr) const { | 275 | 1.13k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.13k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.13k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.13k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.13k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.13k | if (!left_is_const && !right_is_const) { | 284 | 5 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 5 | vec_res.resize(col_left->get_data().size()); | 288 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 5 | vec_res); | 292 | | | 293 | 5 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.13k | } else if (!left_is_const && right_is_const) { | 295 | 1.13k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.13k | vec_res.resize(col_left->size()); | 299 | 1.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.13k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.13k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.13k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.13k | 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.13k | return Status::OK(); | 318 | 1.13k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 154 | const ColumnPtr& col_right_ptr) const { | 275 | 154 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 154 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 154 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 154 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 154 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 154 | 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 | 138 | } else if (!left_is_const && right_is_const) { | 295 | 138 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 138 | vec_res.resize(col_left->size()); | 299 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 138 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 138 | col_right->get_element(0), vec_res); | 303 | | | 304 | 138 | block.replace_by_position(result, std::move(col_res)); | 305 | 138 | } 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 | 154 | return Status::OK(); | 318 | 154 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 21 | const ColumnPtr& col_right_ptr) const { | 275 | 21 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 21 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 21 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 21 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 21 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 21 | 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 | 21 | } else if (!left_is_const && right_is_const) { | 295 | 21 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 21 | vec_res.resize(col_left->size()); | 299 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 21 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 21 | col_right->get_element(0), vec_res); | 303 | | | 304 | 21 | block.replace_by_position(result, std::move(col_res)); | 305 | 21 | } 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 | 21 | return Status::OK(); | 318 | 21 | } |
_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 | 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 | 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 | 20 | } 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 | 26 | return Status::OK(); | 318 | 26 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 190 | const ColumnPtr& col_right_ptr) const { | 275 | 190 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 190 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 190 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 190 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 190 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 190 | if (!left_is_const && !right_is_const) { | 284 | 72 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 72 | vec_res.resize(col_left->get_data().size()); | 288 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 72 | vec_res); | 292 | | | 293 | 72 | block.replace_by_position(result, std::move(col_res)); | 294 | 118 | } else if (!left_is_const && right_is_const) { | 295 | 118 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 118 | vec_res.resize(col_left->size()); | 299 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 118 | col_right->get_element(0), vec_res); | 303 | | | 304 | 118 | block.replace_by_position(result, std::move(col_res)); | 305 | 118 | } 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 | 190 | return Status::OK(); | 318 | 190 | } |
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 | 84 | const ColumnPtr& col_right_ptr) const { | 275 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 84 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 84 | if (!left_is_const && !right_is_const) { | 284 | 84 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 84 | vec_res.resize(col_left->get_data().size()); | 288 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 84 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 84 | vec_res); | 292 | | | 293 | 84 | block.replace_by_position(result, std::move(col_res)); | 294 | 84 | } 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 | 84 | return Status::OK(); | 318 | 84 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.05k | const ColumnPtr& col_right_ptr) const { | 275 | 2.05k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.05k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.05k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.05k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.05k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.05k | if (!left_is_const && !right_is_const) { | 284 | 1.72k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.72k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.72k | vec_res.resize(col_left->get_data().size()); | 288 | 1.72k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.72k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.72k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.72k | vec_res); | 292 | | | 293 | 1.72k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.72k | } else if (!left_is_const && right_is_const) { | 295 | 331 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 331 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 331 | vec_res.resize(col_left->size()); | 299 | 331 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 331 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 331 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 331 | col_right->get_element(0), vec_res); | 303 | | | 304 | 331 | block.replace_by_position(result, std::move(col_res)); | 305 | 331 | } 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.05k | return Status::OK(); | 318 | 2.05k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 296 | const ColumnPtr& col_right_ptr) const { | 275 | 296 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 296 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 296 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 296 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 296 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 296 | if (!left_is_const && !right_is_const) { | 284 | 235 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 235 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 235 | vec_res.resize(col_left->get_data().size()); | 288 | 235 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 235 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 235 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 235 | vec_res); | 292 | | | 293 | 235 | block.replace_by_position(result, std::move(col_res)); | 294 | 235 | } 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 | 296 | return Status::OK(); | 318 | 296 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_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 | 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 | 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 | 4 | return Status::OK(); | 318 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 856 | const ColumnPtr& col_right_ptr) const { | 275 | 856 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 856 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 856 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 856 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 856 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 856 | if (!left_is_const && !right_is_const) { | 284 | 822 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 822 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 822 | vec_res.resize(col_left->get_data().size()); | 288 | 822 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 822 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 822 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 822 | vec_res); | 292 | | | 293 | 822 | block.replace_by_position(result, std::move(col_res)); | 294 | 822 | } else if (!left_is_const && right_is_const) { | 295 | 34 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 34 | vec_res.resize(col_left->size()); | 299 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 34 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 34 | col_right->get_element(0), vec_res); | 303 | | | 304 | 34 | block.replace_by_position(result, std::move(col_res)); | 305 | 34 | } 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 | 856 | return Status::OK(); | 318 | 856 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 129 | const ColumnPtr& col_right_ptr) const { | 275 | 129 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 129 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 129 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 129 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 129 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 130 | if (!left_is_const && !right_is_const) { | 284 | 111 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 111 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 111 | vec_res.resize(col_left->get_data().size()); | 288 | 111 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 111 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 111 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 111 | vec_res); | 292 | | | 293 | 111 | block.replace_by_position(result, std::move(col_res)); | 294 | 111 | } else if (!left_is_const && right_is_const) { | 295 | 20 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 20 | vec_res.resize(col_left->size()); | 299 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 20 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 20 | col_right->get_element(0), vec_res); | 303 | | | 304 | 20 | 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 | 129 | return Status::OK(); | 318 | 129 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 693 | const ColumnPtr& col_right_ptr) const { | 275 | 693 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 693 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 693 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 693 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 693 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 693 | if (!left_is_const && !right_is_const) { | 284 | 152 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 152 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 152 | vec_res.resize(col_left->get_data().size()); | 288 | 152 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 152 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 152 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 152 | vec_res); | 292 | | | 293 | 152 | block.replace_by_position(result, std::move(col_res)); | 294 | 541 | } else if (!left_is_const && right_is_const) { | 295 | 541 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 541 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 541 | vec_res.resize(col_left->size()); | 299 | 541 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 541 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 541 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 541 | col_right->get_element(0), vec_res); | 303 | | | 304 | 541 | block.replace_by_position(result, std::move(col_res)); | 305 | 541 | } 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 | 693 | return Status::OK(); | 318 | 693 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_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 | 209 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 209 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 209 | vec_res.resize(col_left->get_data().size()); | 288 | 209 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 209 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 209 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 209 | vec_res); | 292 | | | 293 | 209 | block.replace_by_position(result, std::move(col_res)); | 294 | 501 | } else if (!left_is_const && right_is_const) { | 295 | 501 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 501 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 501 | vec_res.resize(col_left->size()); | 299 | 501 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 501 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 501 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 501 | col_right->get_element(0), vec_res); | 303 | | | 304 | 501 | block.replace_by_position(result, std::move(col_res)); | 305 | 501 | } 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_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 197 | const ColumnPtr& col_right_ptr) const { | 275 | 197 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 197 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 197 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 197 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 197 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 197 | if (!left_is_const && !right_is_const) { | 284 | 183 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 183 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 183 | vec_res.resize(col_left->get_data().size()); | 288 | 183 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 183 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 183 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 183 | vec_res); | 292 | | | 293 | 183 | block.replace_by_position(result, std::move(col_res)); | 294 | 183 | } else if (!left_is_const && right_is_const) { | 295 | 14 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 14 | vec_res.resize(col_left->size()); | 299 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 14 | col_right->get_element(0), vec_res); | 303 | | | 304 | 14 | block.replace_by_position(result, std::move(col_res)); | 305 | 14 | } 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 | 197 | return Status::OK(); | 318 | 197 | } |
_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 | 129 | const ColumnPtr& col_right_ptr) const { | 275 | 129 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 129 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 129 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 129 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 129 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 129 | if (!left_is_const && !right_is_const) { | 284 | 128 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 128 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 128 | vec_res.resize(col_left->get_data().size()); | 288 | 128 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 128 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 128 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 128 | vec_res); | 292 | | | 293 | 128 | block.replace_by_position(result, std::move(col_res)); | 294 | 128 | } 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 | 129 | return Status::OK(); | 318 | 129 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 343 | const ColumnPtr& col_right_ptr) const { | 275 | 343 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 343 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 343 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 343 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 343 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 343 | if (!left_is_const && !right_is_const) { | 284 | 153 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 153 | vec_res.resize(col_left->get_data().size()); | 288 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 153 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 153 | vec_res); | 292 | | | 293 | 153 | block.replace_by_position(result, std::move(col_res)); | 294 | 190 | } else if (!left_is_const && right_is_const) { | 295 | 190 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 190 | vec_res.resize(col_left->size()); | 299 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 190 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 190 | col_right->get_element(0), vec_res); | 303 | | | 304 | 190 | block.replace_by_position(result, std::move(col_res)); | 305 | 190 | } 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 | 343 | return Status::OK(); | 318 | 343 | } |
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 | 13 | const ColumnPtr& col_right_ptr) const { | 275 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 13 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 13 | 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 | 13 | } 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 | 13 | return Status::OK(); | 318 | 13 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 581 | const ColumnPtr& col_right_ptr) const { | 275 | 581 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 581 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 581 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 581 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 581 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 581 | if (!left_is_const && !right_is_const) { | 284 | 432 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 432 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 432 | vec_res.resize(col_left->get_data().size()); | 288 | 432 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 432 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 432 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 432 | vec_res); | 292 | | | 293 | 432 | block.replace_by_position(result, std::move(col_res)); | 294 | 432 | } else if (!left_is_const && right_is_const) { | 295 | 149 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 149 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 149 | vec_res.resize(col_left->size()); | 299 | 149 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 149 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 149 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 149 | col_right->get_element(0), vec_res); | 303 | | | 304 | 149 | block.replace_by_position(result, std::move(col_res)); | 305 | 149 | } 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 | 581 | return Status::OK(); | 318 | 581 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 43 | const ColumnPtr& col_right_ptr) const { | 275 | 43 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 43 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 43 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 43 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 43 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 43 | 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 | 43 | } else if (!left_is_const && right_is_const) { | 295 | 43 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 43 | vec_res.resize(col_left->size()); | 299 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 43 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 43 | col_right->get_element(0), vec_res); | 303 | | | 304 | 43 | block.replace_by_position(result, std::move(col_res)); | 305 | 43 | } 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 | 43 | return Status::OK(); | 318 | 43 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 92 | const ColumnPtr& col_right_ptr) const { | 275 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 92 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 92 | 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 | 91 | } else if (!left_is_const && right_is_const) { | 295 | 91 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 91 | vec_res.resize(col_left->size()); | 299 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 91 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 91 | col_right->get_element(0), vec_res); | 303 | | | 304 | 91 | block.replace_by_position(result, std::move(col_res)); | 305 | 91 | } 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 | 92 | return Status::OK(); | 318 | 92 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 152 | const ColumnPtr& col_right_ptr) const { | 275 | 152 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 152 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 152 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 152 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 152 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 152 | 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 | 152 | } else if (!left_is_const && right_is_const) { | 295 | 152 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 152 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 152 | vec_res.resize(col_left->size()); | 299 | 152 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 152 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 152 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 152 | col_right->get_element(0), vec_res); | 303 | | | 304 | 152 | block.replace_by_position(result, std::move(col_res)); | 305 | 152 | } 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 | 152 | return Status::OK(); | 318 | 152 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.18k | const ColumnPtr& col_right_ptr) const { | 275 | 1.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.18k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.18k | if (!left_is_const && !right_is_const) { | 284 | 45 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 45 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 45 | vec_res.resize(col_left->get_data().size()); | 288 | 45 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 45 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 45 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 45 | vec_res); | 292 | | | 293 | 45 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.13k | } else if (!left_is_const && right_is_const) { | 295 | 1.13k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.13k | vec_res.resize(col_left->size()); | 299 | 1.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.13k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.13k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.13k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.13k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.13k | } 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.18k | return Status::OK(); | 318 | 1.18k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 287 | const ColumnPtr& col_right_ptr) const { | 275 | 287 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 287 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 287 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 287 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 287 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 287 | if (!left_is_const && !right_is_const) { | 284 | 70 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 70 | vec_res.resize(col_left->get_data().size()); | 288 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 70 | vec_res); | 292 | | | 293 | 70 | block.replace_by_position(result, std::move(col_res)); | 294 | 217 | } else if (!left_is_const && right_is_const) { | 295 | 217 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 217 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 217 | vec_res.resize(col_left->size()); | 299 | 217 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 217 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 217 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 217 | col_right->get_element(0), vec_res); | 303 | | | 304 | 217 | block.replace_by_position(result, std::move(col_res)); | 305 | 217 | } 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 | 287 | return Status::OK(); | 318 | 287 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 8 | const ColumnPtr& col_right_ptr) const { | 275 | 8 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 8 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 8 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 8 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 8 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 8 | 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 | 8 | } else if (!left_is_const && right_is_const) { | 295 | 8 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 8 | vec_res.resize(col_left->size()); | 299 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 8 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 8 | col_right->get_element(0), vec_res); | 303 | | | 304 | 8 | block.replace_by_position(result, std::move(col_res)); | 305 | 8 | } 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 | 8 | return Status::OK(); | 318 | 8 | } |
_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 | 20 | const ColumnPtr& col_right_ptr) const { | 275 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 20 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 20 | 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 | 20 | } 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 | 20 | return Status::OK(); | 318 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 115 | const ColumnPtr& col_right_ptr) const { | 275 | 115 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 115 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 115 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 115 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 115 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 115 | 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 | 95 | } else if (!left_is_const && right_is_const) { | 295 | 95 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 95 | vec_res.resize(col_left->size()); | 299 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 95 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 95 | col_right->get_element(0), vec_res); | 303 | | | 304 | 95 | block.replace_by_position(result, std::move(col_res)); | 305 | 95 | } 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 | 115 | return Status::OK(); | 318 | 115 | } |
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 | 3.40k | const ColumnWithTypeAndName& col_right) const { |
322 | 3.40k | auto call = [&](const auto& type) -> bool { |
323 | 3.40k | using DispatchType = std::decay_t<decltype(type)>; |
324 | 3.40k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
325 | 3.40k | block, result, col_left, col_right); |
326 | 3.40k | return true; |
327 | 3.40k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 156 | auto call = [&](const auto& type) -> bool { | 323 | 156 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 156 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 156 | block, result, col_left, col_right); | 326 | 156 | return true; | 327 | 156 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 153 | auto call = [&](const auto& type) -> bool { | 323 | 153 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 153 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 153 | block, result, col_left, col_right); | 326 | 153 | return true; | 327 | 153 | }; |
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 | 941 | auto call = [&](const auto& type) -> bool { | 323 | 941 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 941 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 941 | block, result, col_left, col_right); | 326 | 941 | return true; | 327 | 941 | }; |
_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 | 28 | auto call = [&](const auto& type) -> bool { | 323 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 28 | block, result, col_left, col_right); | 326 | 28 | return true; | 327 | 28 | }; |
_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 | 12 | auto call = [&](const auto& type) -> bool { | 323 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 12 | block, result, col_left, col_right); | 326 | 12 | return true; | 327 | 12 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 66 | auto call = [&](const auto& type) -> bool { | 323 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 66 | block, result, col_left, col_right); | 326 | 66 | return true; | 327 | 66 | }; |
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 | 876 | auto call = [&](const auto& type) -> bool { | 323 | 876 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 876 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 876 | block, result, col_left, col_right); | 326 | 876 | return true; | 327 | 876 | }; |
_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 | 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 29 | auto call = [&](const auto& type) -> bool { | 323 | 29 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 29 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 29 | block, result, col_left, col_right); | 326 | 29 | return true; | 327 | 29 | }; |
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 | 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 | }; |
_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 | 205 | auto call = [&](const auto& type) -> bool { | 323 | 205 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 205 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 205 | block, result, col_left, col_right); | 326 | 205 | return true; | 327 | 205 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 221 | auto call = [&](const auto& type) -> bool { | 323 | 221 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 221 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 221 | block, result, col_left, col_right); | 326 | 221 | return true; | 327 | 221 | }; |
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 | 402 | auto call = [&](const auto& type) -> bool { | 323 | 402 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 402 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 402 | block, result, col_left, col_right); | 326 | 402 | return true; | 327 | 402 | }; |
_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 | 8 | auto call = [&](const auto& type) -> bool { | 323 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 8 | block, result, col_left, col_right); | 326 | 8 | return true; | 327 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 31 | auto call = [&](const auto& type) -> bool { | 323 | 31 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 31 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 31 | block, result, col_left, col_right); | 326 | 31 | return true; | 327 | 31 | }; |
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 | 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_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 | 3.40k | 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.40k | 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.40k | return Status::OK(); |
340 | 3.40k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.28k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.28k | auto call = [&](const auto& type) -> bool { | 323 | 1.28k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.28k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.28k | block, result, col_left, col_right); | 326 | 1.28k | return true; | 327 | 1.28k | }; | 328 | | | 329 | 1.28k | 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.28k | 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.28k | return Status::OK(); | 340 | 1.28k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 119 | const ColumnWithTypeAndName& col_right) const { | 322 | 119 | auto call = [&](const auto& type) -> bool { | 323 | 119 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 119 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 119 | block, result, col_left, col_right); | 326 | 119 | return true; | 327 | 119 | }; | 328 | | | 329 | 119 | 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 | 119 | 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 | 119 | return Status::OK(); | 340 | 119 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 956 | const ColumnWithTypeAndName& col_right) const { | 322 | 956 | auto call = [&](const auto& type) -> bool { | 323 | 956 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 956 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 956 | block, result, col_left, col_right); | 326 | 956 | return true; | 327 | 956 | }; | 328 | | | 329 | 956 | 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 | 956 | 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 | 956 | return Status::OK(); | 340 | 956 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 118 | const ColumnWithTypeAndName& col_right) const { | 322 | 118 | auto call = [&](const auto& type) -> bool { | 323 | 118 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 118 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 118 | block, result, col_left, col_right); | 326 | 118 | return true; | 327 | 118 | }; | 328 | | | 329 | 118 | 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 | 118 | 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 | 118 | return Status::OK(); | 340 | 118 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 829 | const ColumnWithTypeAndName& col_right) const { | 322 | 829 | auto call = [&](const auto& type) -> bool { | 323 | 829 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 829 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 829 | block, result, col_left, col_right); | 326 | 829 | return true; | 327 | 829 | }; | 328 | | | 329 | 829 | 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 | 829 | 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 | 829 | return Status::OK(); | 340 | 829 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 107 | const ColumnWithTypeAndName& col_right) const { | 322 | 107 | auto call = [&](const auto& type) -> bool { | 323 | 107 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 107 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 107 | block, result, col_left, col_right); | 326 | 107 | return true; | 327 | 107 | }; | 328 | | | 329 | 107 | 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 | 107 | 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 | 107 | return Status::OK(); | 340 | 107 | } |
|
341 | | |
342 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
343 | 12.5k | const IColumn* c1) const { |
344 | 12.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
345 | 12.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
346 | 12.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
347 | 12.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
348 | 12.5k | 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 | 12.5k | DCHECK(!(c0_const && c1_const)); |
353 | 12.5k | const ColumnString::Chars* c0_const_chars = nullptr; |
354 | 12.5k | const ColumnString::Chars* c1_const_chars = nullptr; |
355 | 12.5k | ColumnString::Offset c0_const_size = 0; |
356 | 12.5k | ColumnString::Offset c1_const_size = 0; |
357 | | |
358 | 12.5k | 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 | 12.5k | if (c1_const) { |
372 | 11.6k | const ColumnString* c1_const_string = |
373 | 11.6k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
374 | | |
375 | 11.6k | if (c1_const_string) { |
376 | 11.6k | c1_const_chars = &c1_const_string->get_chars(); |
377 | 11.6k | c1_const_size = c1_const_string->get_offsets()[0]; |
378 | 11.6k | } else { |
379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
380 | 0 | c1->get_name(), name); |
381 | 0 | } |
382 | 11.6k | } |
383 | | |
384 | 12.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
385 | | |
386 | 12.5k | auto c_res = ColumnUInt8::create(); |
387 | 12.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
388 | 12.5k | vec_res.resize(c0->size()); |
389 | | |
390 | 12.5k | if (c0_string && c1_string) { |
391 | 839 | StringImpl::string_vector_string_vector( |
392 | 839 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
393 | 839 | c1_string->get_offsets(), vec_res); |
394 | 11.6k | } else if (c0_string && c1_const) { |
395 | 11.6k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
396 | 11.6k | *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 | 12.5k | block.replace_by_position(result, std::move(c_res)); |
406 | 12.5k | return Status::OK(); |
407 | 12.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 11.1k | const IColumn* c1) const { | 344 | 11.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 11.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 11.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 11.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 11.1k | 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 | 11.1k | DCHECK(!(c0_const && c1_const)); | 353 | 11.1k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 11.1k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 11.1k | ColumnString::Offset c0_const_size = 0; | 356 | 11.1k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 11.1k | 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 | 11.1k | if (c1_const) { | 372 | 10.6k | const ColumnString* c1_const_string = | 373 | 10.6k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 10.6k | if (c1_const_string) { | 376 | 10.6k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 10.6k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 10.6k | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 10.6k | } | 383 | | | 384 | 11.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 11.1k | auto c_res = ColumnUInt8::create(); | 387 | 11.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 11.1k | vec_res.resize(c0->size()); | 389 | | | 390 | 11.1k | if (c0_string && c1_string) { | 391 | 415 | StringImpl::string_vector_string_vector( | 392 | 415 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 415 | c1_string->get_offsets(), vec_res); | 394 | 10.6k | } else if (c0_string && c1_const) { | 395 | 10.6k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 10.6k | *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 | 11.1k | block.replace_by_position(result, std::move(c_res)); | 406 | 11.1k | return Status::OK(); | 407 | 11.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 127 | const IColumn* c1) const { | 344 | 127 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 127 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 127 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 127 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 127 | 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 | 127 | DCHECK(!(c0_const && c1_const)); | 353 | 127 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 127 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 127 | ColumnString::Offset c0_const_size = 0; | 356 | 127 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 127 | 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 | 127 | if (c1_const) { | 372 | 126 | const ColumnString* c1_const_string = | 373 | 126 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 126 | if (c1_const_string) { | 376 | 126 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 126 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 126 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 126 | } | 383 | | | 384 | 127 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 127 | auto c_res = ColumnUInt8::create(); | 387 | 127 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 127 | vec_res.resize(c0->size()); | 389 | | | 390 | 127 | 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 | 126 | } else if (c0_string && c1_const) { | 395 | 126 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 126 | *c1_const_chars, c1_const_size, vec_res); | 397 | 126 | } 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 | 127 | block.replace_by_position(result, std::move(c_res)); | 406 | 127 | return Status::OK(); | 407 | 127 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 203 | const IColumn* c1) const { | 344 | 203 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 203 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 203 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 203 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 203 | 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 | 203 | DCHECK(!(c0_const && c1_const)); | 353 | 203 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 203 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 203 | ColumnString::Offset c0_const_size = 0; | 356 | 203 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 203 | 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 | 203 | if (c1_const) { | 372 | 201 | const ColumnString* c1_const_string = | 373 | 201 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 201 | if (c1_const_string) { | 376 | 201 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 201 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 201 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 201 | } | 383 | | | 384 | 203 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 203 | auto c_res = ColumnUInt8::create(); | 387 | 203 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 203 | vec_res.resize(c0->size()); | 389 | | | 390 | 203 | 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 | 201 | } else if (c0_string && c1_const) { | 395 | 201 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 201 | *c1_const_chars, c1_const_size, vec_res); | 397 | 201 | } 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 | 203 | block.replace_by_position(result, std::move(c_res)); | 406 | 203 | return Status::OK(); | 407 | 203 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 290 | const IColumn* c1) const { | 344 | 290 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 290 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 290 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 290 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 290 | 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 | 290 | DCHECK(!(c0_const && c1_const)); | 353 | 290 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 290 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 290 | ColumnString::Offset c0_const_size = 0; | 356 | 290 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 290 | 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 | 290 | if (c1_const) { | 372 | 247 | const ColumnString* c1_const_string = | 373 | 247 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 247 | if (c1_const_string) { | 376 | 247 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 247 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 247 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 247 | } | 383 | | | 384 | 290 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 290 | auto c_res = ColumnUInt8::create(); | 387 | 290 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 290 | vec_res.resize(c0->size()); | 389 | | | 390 | 290 | if (c0_string && c1_string) { | 391 | 43 | StringImpl::string_vector_string_vector( | 392 | 43 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 43 | c1_string->get_offsets(), vec_res); | 394 | 247 | } else if (c0_string && c1_const) { | 395 | 247 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 247 | *c1_const_chars, c1_const_size, vec_res); | 397 | 247 | } 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 | 290 | block.replace_by_position(result, std::move(c_res)); | 406 | 290 | return Status::OK(); | 407 | 290 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 514 | const IColumn* c1) const { | 344 | 514 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 514 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 514 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 514 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 514 | 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 | 514 | DCHECK(!(c0_const && c1_const)); | 353 | 514 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 514 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 514 | ColumnString::Offset c0_const_size = 0; | 356 | 514 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 514 | 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 | 514 | if (c1_const) { | 372 | 136 | const ColumnString* c1_const_string = | 373 | 136 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 136 | if (c1_const_string) { | 376 | 136 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 136 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 136 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 136 | } | 383 | | | 384 | 514 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 514 | auto c_res = ColumnUInt8::create(); | 387 | 514 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 514 | vec_res.resize(c0->size()); | 389 | | | 390 | 514 | if (c0_string && c1_string) { | 391 | 378 | StringImpl::string_vector_string_vector( | 392 | 378 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 378 | c1_string->get_offsets(), vec_res); | 394 | 378 | } else if (c0_string && c1_const) { | 395 | 136 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 136 | *c1_const_chars, c1_const_size, vec_res); | 397 | 136 | } 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 | 514 | block.replace_by_position(result, std::move(c_res)); | 406 | 514 | return Status::OK(); | 407 | 514 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 267 | const IColumn* c1) const { | 344 | 267 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 267 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 267 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 267 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 267 | 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 | 267 | DCHECK(!(c0_const && c1_const)); | 353 | 267 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 267 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 267 | ColumnString::Offset c0_const_size = 0; | 356 | 267 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 267 | 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 | 267 | if (c1_const) { | 372 | 267 | const ColumnString* c1_const_string = | 373 | 267 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 267 | if (c1_const_string) { | 376 | 267 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 267 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 267 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 267 | } | 383 | | | 384 | 267 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 267 | auto c_res = ColumnUInt8::create(); | 387 | 267 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 267 | vec_res.resize(c0->size()); | 389 | | | 390 | 267 | 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 | 267 | } else if (c0_string && c1_const) { | 395 | 267 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 267 | *c1_const_chars, c1_const_size, vec_res); | 397 | 267 | } 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 | 267 | block.replace_by_position(result, std::move(c_res)); | 406 | 267 | return Status::OK(); | 407 | 267 | } |
|
408 | | |
409 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
410 | 104 | const IColumn* c1) const { |
411 | 104 | bool c0_const = is_column_const(*c0); |
412 | 104 | bool c1_const = is_column_const(*c1); |
413 | | |
414 | 104 | DCHECK(!(c0_const && c1_const)); |
415 | | |
416 | 104 | auto c_res = ColumnUInt8::create(); |
417 | 104 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
418 | 104 | vec_res.resize(c0->size()); |
419 | | |
420 | 104 | if (c0_const) { |
421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
422 | 104 | } else if (c1_const) { |
423 | 95 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
424 | 95 | } else { |
425 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
426 | 9 | } |
427 | | |
428 | 104 | block.replace_by_position(result, std::move(c_res)); |
429 | 104 | } _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 | 26 | const IColumn* c1) const { | 411 | 26 | bool c0_const = is_column_const(*c0); | 412 | 26 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 26 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 26 | auto c_res = ColumnUInt8::create(); | 417 | 26 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 26 | vec_res.resize(c0->size()); | 419 | | | 420 | 26 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 26 | } else if (c1_const) { | 423 | 25 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 25 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 26 | block.replace_by_position(result, std::move(c_res)); | 429 | 26 | } |
_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 | 33 | const IColumn* c1) const { | 411 | 33 | bool c0_const = is_column_const(*c0); | 412 | 33 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 33 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 33 | auto c_res = ColumnUInt8::create(); | 417 | 33 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 33 | vec_res.resize(c0->size()); | 419 | | | 420 | 33 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 33 | } else if (c1_const) { | 423 | 33 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 33 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 33 | block.replace_by_position(result, std::move(c_res)); | 429 | 33 | } |
|
430 | | |
431 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
432 | 104 | const ColumnWithTypeAndName& c1) const { |
433 | 104 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
434 | 104 | return Status::OK(); |
435 | 104 | } _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 | 26 | const ColumnWithTypeAndName& c1) const { | 433 | 26 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 26 | return Status::OK(); | 435 | 26 | } |
_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 | 33 | const ColumnWithTypeAndName& c1) const { | 433 | 33 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 33 | return Status::OK(); | 435 | 33 | } |
|
436 | | |
437 | | public: |
438 | 215 | 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 | 33 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 38 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 79 | 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 | 300k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 248k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 1.12k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 440 | 4.92k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 21.7k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 440 | 2.73k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 21.4k | 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 | 300k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
444 | 300k | return std::make_shared<DataTypeUInt8>(); |
445 | 300k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 248k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 248k | return std::make_shared<DataTypeUInt8>(); | 445 | 248k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 1.12k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 1.12k | return std::make_shared<DataTypeUInt8>(); | 445 | 1.12k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 4.92k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 4.92k | return std::make_shared<DataTypeUInt8>(); | 445 | 4.92k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 21.7k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 21.7k | return std::make_shared<DataTypeUInt8>(); | 445 | 21.7k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 2.73k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 2.73k | return std::make_shared<DataTypeUInt8>(); | 445 | 2.73k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 21.4k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 21.4k | return std::make_shared<DataTypeUInt8>(); | 445 | 21.4k | } |
|
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.59k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
453 | 1.59k | DCHECK(arguments.size() == 1); |
454 | 1.59k | DCHECK(data_type_with_names.size() == 1); |
455 | 1.59k | DCHECK(iterators.size() == 1); |
456 | 1.59k | auto* iter = iterators[0]; |
457 | 1.59k | auto data_type_with_name = data_type_with_names[0]; |
458 | 1.59k | if (iter == nullptr) { |
459 | 0 | return Status::OK(); |
460 | 0 | } |
461 | 1.59k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
462 | 422 | return Status::OK(); |
463 | 422 | } |
464 | 1.16k | segment_v2::InvertedIndexQueryType query_type; |
465 | 1.16k | std::string_view name_view(name); |
466 | 1.16k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
467 | 722 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
468 | 722 | } else if (name_view == NameLess::name) { |
469 | 110 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
470 | 337 | } else if (name_view == NameLessOrEquals::name) { |
471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
472 | 239 | } else if (name_view == NameGreater::name) { |
473 | 114 | 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 | 18.4E | } else { |
477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
478 | 18.4E | } |
479 | | |
480 | 1.17k | if (segment_v2::is_range_query(query_type) && |
481 | 1.17k | 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.00k | Field param_value; |
486 | 1.00k | arguments[0].column->get(0, param_value); |
487 | 1.00k | if (param_value.is_null()) { |
488 | 2 | return Status::OK(); |
489 | 2 | } |
490 | 1.00k | auto param_type = arguments[0].type->get_primitive_type(); |
491 | 1.00k | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; |
492 | 1.00k | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( |
493 | 1.00k | param_type, ¶m_value, query_param)); |
494 | | |
495 | 1.00k | segment_v2::InvertedIndexParam param; |
496 | 1.00k | param.column_name = data_type_with_name.first; |
497 | 1.00k | param.column_type = data_type_with_name.second; |
498 | 1.00k | param.query_value = query_param->get_value(); |
499 | 1.00k | param.query_type = query_type; |
500 | 1.00k | param.num_rows = num_rows; |
501 | 1.00k | param.roaring = std::make_shared<roaring::Roaring>(); |
502 | 1.00k | param.analyzer_ctx = analyzer_ctx; |
503 | 1.00k | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
504 | 857 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
505 | 857 | if (iter->has_null()) { |
506 | 855 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
507 | 855 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
508 | 855 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
509 | 855 | } |
510 | 857 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
511 | 857 | bitmap_result = result; |
512 | 857 | bitmap_result.mask_out_null(); |
513 | | |
514 | 857 | if (name_view == NameNotEquals::name) { |
515 | 62 | roaring::Roaring full_result; |
516 | 62 | full_result.addRange(0, num_rows); |
517 | 62 | bitmap_result.op_not(&full_result); |
518 | 62 | } |
519 | | |
520 | 857 | return Status::OK(); |
521 | 857 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 712 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 712 | DCHECK(arguments.size() == 1); | 454 | 712 | DCHECK(data_type_with_names.size() == 1); | 455 | 712 | DCHECK(iterators.size() == 1); | 456 | 712 | auto* iter = iterators[0]; | 457 | 712 | auto data_type_with_name = data_type_with_names[0]; | 458 | 712 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 712 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 64 | return Status::OK(); | 463 | 64 | } | 464 | 648 | segment_v2::InvertedIndexQueryType query_type; | 465 | 648 | std::string_view name_view(name); | 466 | 652 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 652 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 18.4E | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 18.4E | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 479 | | | 480 | 652 | if (segment_v2::is_range_query(query_type) && | 481 | 652 | 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 | 652 | Field param_value; | 486 | 652 | arguments[0].column->get(0, param_value); | 487 | 652 | if (param_value.is_null()) { | 488 | 2 | return Status::OK(); | 489 | 2 | } | 490 | 650 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 650 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 650 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 650 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 650 | segment_v2::InvertedIndexParam param; | 496 | 650 | param.column_name = data_type_with_name.first; | 497 | 650 | param.column_type = data_type_with_name.second; | 498 | 650 | param.query_value = query_param->get_value(); | 499 | 650 | param.query_type = query_type; | 500 | 650 | param.num_rows = num_rows; | 501 | 650 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 650 | param.analyzer_ctx = analyzer_ctx; | 503 | 650 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 609 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 609 | if (iter->has_null()) { | 506 | 609 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 609 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 609 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 609 | } | 510 | 609 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 609 | bitmap_result = result; | 512 | 609 | bitmap_result.mask_out_null(); | 513 | | | 514 | 609 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 609 | return Status::OK(); | 521 | 609 | } |
_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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 70 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 70 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 70 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 70 | segment_v2::InvertedIndexParam param; | 496 | 70 | param.column_name = data_type_with_name.first; | 497 | 70 | param.column_type = data_type_with_name.second; | 498 | 70 | param.query_value = query_param->get_value(); | 499 | 70 | param.query_type = query_type; | 500 | 70 | param.num_rows = num_rows; | 501 | 70 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 70 | param.analyzer_ctx = analyzer_ctx; | 503 | 70 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 63 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 63 | if (iter->has_null()) { | 506 | 61 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 61 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 61 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 61 | } | 510 | 63 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 63 | bitmap_result = result; | 512 | 63 | bitmap_result.mask_out_null(); | 513 | | | 514 | 63 | if (name_view == NameNotEquals::name) { | 515 | 62 | roaring::Roaring full_result; | 516 | 62 | full_result.addRange(0, num_rows); | 517 | 62 | bitmap_result.op_not(&full_result); | 518 | 62 | } | 519 | | | 520 | 63 | return Status::OK(); | 521 | 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 | 174 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 174 | DCHECK(arguments.size() == 1); | 454 | 174 | DCHECK(data_type_with_names.size() == 1); | 455 | 174 | DCHECK(iterators.size() == 1); | 456 | 174 | auto* iter = iterators[0]; | 457 | 174 | auto data_type_with_name = data_type_with_names[0]; | 458 | 174 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 174 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 62 | return Status::OK(); | 463 | 62 | } | 464 | 112 | segment_v2::InvertedIndexQueryType query_type; | 465 | 112 | 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 | 112 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 112 | } 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 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 86 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 86 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 86 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 86 | segment_v2::InvertedIndexParam param; | 496 | 86 | param.column_name = data_type_with_name.first; | 497 | 86 | param.column_type = data_type_with_name.second; | 498 | 86 | param.query_value = query_param->get_value(); | 499 | 86 | param.query_type = query_type; | 500 | 86 | param.num_rows = num_rows; | 501 | 86 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 86 | param.analyzer_ctx = analyzer_ctx; | 503 | 86 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 67 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 67 | if (iter->has_null()) { | 506 | 67 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 67 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 67 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 67 | } | 510 | 67 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 67 | bitmap_result = result; | 512 | 67 | bitmap_result.mask_out_null(); | 513 | | | 514 | 67 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 67 | return Status::OK(); | 521 | 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 | 246 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 246 | DCHECK(arguments.size() == 1); | 454 | 246 | DCHECK(data_type_with_names.size() == 1); | 455 | 246 | DCHECK(iterators.size() == 1); | 456 | 246 | auto* iter = iterators[0]; | 457 | 246 | auto data_type_with_name = data_type_with_names[0]; | 458 | 246 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 246 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 114 | return Status::OK(); | 463 | 114 | } | 464 | 132 | segment_v2::InvertedIndexQueryType query_type; | 465 | 132 | 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 | 132 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 132 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 132 | } 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 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 76 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 76 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 76 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 76 | segment_v2::InvertedIndexParam param; | 496 | 76 | param.column_name = data_type_with_name.first; | 497 | 76 | param.column_type = data_type_with_name.second; | 498 | 76 | param.query_value = query_param->get_value(); | 499 | 76 | param.query_type = query_type; | 500 | 76 | param.num_rows = num_rows; | 501 | 76 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 76 | param.analyzer_ctx = analyzer_ctx; | 503 | 76 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 34 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 34 | if (iter->has_null()) { | 506 | 33 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 33 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 33 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 33 | } | 510 | 34 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 34 | bitmap_result = result; | 512 | 34 | bitmap_result.mask_out_null(); | 513 | | | 514 | 34 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 34 | return Status::OK(); | 521 | 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 | 110 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 110 | } 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 | 110 | if (segment_v2::is_range_query(query_type) && | 481 | 110 | 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 | 84 | Field param_value; | 486 | 84 | arguments[0].column->get(0, param_value); | 487 | 84 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 84 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 84 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 84 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 84 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 84 | segment_v2::InvertedIndexParam param; | 496 | 84 | param.column_name = data_type_with_name.first; | 497 | 84 | param.column_type = data_type_with_name.second; | 498 | 84 | param.query_value = query_param->get_value(); | 499 | 84 | param.query_type = query_type; | 500 | 84 | param.num_rows = num_rows; | 501 | 84 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 84 | param.analyzer_ctx = analyzer_ctx; | 503 | 84 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 65 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 66 | if (iter->has_null()) { | 506 | 66 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 66 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 66 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 66 | } | 510 | 65 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 65 | bitmap_result = result; | 512 | 65 | bitmap_result.mask_out_null(); | 513 | | | 514 | 65 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 65 | return Status::OK(); | 521 | 65 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 210 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 210 | DCHECK(arguments.size() == 1); | 454 | 210 | DCHECK(data_type_with_names.size() == 1); | 455 | 210 | DCHECK(iterators.size() == 1); | 456 | 210 | auto* iter = iterators[0]; | 457 | 210 | auto data_type_with_name = data_type_with_names[0]; | 458 | 210 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 210 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 113 | return Status::OK(); | 463 | 113 | } | 464 | 97 | segment_v2::InvertedIndexQueryType query_type; | 465 | 97 | 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 | 97 | } 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 | 18.4E | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 18.4E | } else { | 477 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 18.4E | } | 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 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 40 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 40 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 40 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 40 | segment_v2::InvertedIndexParam param; | 496 | 40 | param.column_name = data_type_with_name.first; | 497 | 40 | param.column_type = data_type_with_name.second; | 498 | 40 | param.query_value = query_param->get_value(); | 499 | 40 | param.query_type = query_type; | 500 | 40 | param.num_rows = num_rows; | 501 | 40 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 40 | param.analyzer_ctx = analyzer_ctx; | 503 | 40 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 19 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 19 | if (iter->has_null()) { | 506 | 19 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 19 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 19 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 19 | } | 510 | 19 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 19 | bitmap_result = result; | 512 | 19 | bitmap_result.mask_out_null(); | 513 | | | 514 | 19 | if (name_view == NameNotEquals::name) { | 515 | 0 | roaring::Roaring full_result; | 516 | 0 | full_result.addRange(0, num_rows); | 517 | 0 | bitmap_result.op_not(&full_result); | 518 | 0 | } | 519 | | | 520 | 19 | return Status::OK(); | 521 | 19 | } |
|
522 | | |
523 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
524 | 45.4k | uint32_t result, size_t input_rows_count) const override { |
525 | 45.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
526 | 45.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
527 | | |
528 | 45.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
529 | 45.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
530 | 45.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
531 | 45.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
532 | | |
533 | 45.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
534 | 45.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
535 | | |
536 | | /// The case when arguments are the same (tautological comparison). Return constant. |
537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
539 | 45.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
540 | 45.5k | col_left_untyped == col_right_untyped) { |
541 | | /// Always true: =, <=, >= |
542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
546 | 0 | block.get_by_position(result).column = |
547 | 0 | DataTypeUInt8() |
548 | 0 | .create_column_const(input_rows_count, |
549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
550 | 0 | ->convert_to_full_column_if_const(); |
551 | 0 | return Status::OK(); |
552 | 0 | } else { |
553 | 0 | block.get_by_position(result).column = |
554 | 0 | DataTypeUInt8() |
555 | 0 | .create_column_const(input_rows_count, |
556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
557 | 0 | ->convert_to_full_column_if_const(); |
558 | 0 | return Status::OK(); |
559 | 0 | } |
560 | 0 | } |
561 | | |
562 | 74.9k | auto can_compare = [](PrimitiveType t) -> bool { |
563 | 74.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
564 | 74.9k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 30.1k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 30.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 30.1k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 3.04k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 3.04k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 3.04k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 18.6k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 18.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 18.6k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 5.29k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 5.29k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 5.29k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 12.4k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 12.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 12.4k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 5.44k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 5.44k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 5.44k | }; |
|
565 | | |
566 | 45.4k | if (can_compare(left_type->get_primitive_type()) && |
567 | 45.4k | can_compare(right_type->get_primitive_type())) { |
568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
569 | 29.5k | if (!left_type->equals_ignore_precision(*right_type)) { |
570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
571 | 0 | get_name(), left_type->get_name(), |
572 | 0 | right_type->get_name()); |
573 | 0 | } |
574 | 29.5k | } |
575 | | |
576 | 45.4k | auto compare_type = left_type->get_primitive_type(); |
577 | 45.4k | switch (compare_type) { |
578 | 209 | case TYPE_BOOLEAN: |
579 | 209 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
580 | 5.16k | case TYPE_DATEV2: |
581 | 5.16k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
582 | 998 | case TYPE_DATETIMEV2: |
583 | 998 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
584 | 16 | case TYPE_TIMESTAMPTZ: |
585 | 16 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
586 | 5.39k | case TYPE_TINYINT: |
587 | 5.39k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
588 | 1.99k | case TYPE_SMALLINT: |
589 | 1.99k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
590 | 9.16k | case TYPE_INT: |
591 | 9.16k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
592 | 3.76k | case TYPE_BIGINT: |
593 | 3.76k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
594 | 581 | case TYPE_LARGEINT: |
595 | 581 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
596 | 57 | case TYPE_IPV4: |
597 | 57 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
598 | 37 | case TYPE_IPV6: |
599 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
600 | 548 | case TYPE_FLOAT: |
601 | 548 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
602 | 1.52k | case TYPE_DOUBLE: |
603 | 1.52k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
604 | 0 | case TYPE_TIME: |
605 | 4 | case TYPE_TIMEV2: |
606 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
607 | 0 | case TYPE_DECIMALV2: |
608 | 382 | case TYPE_DECIMAL32: |
609 | 943 | case TYPE_DECIMAL64: |
610 | 3.29k | case TYPE_DECIMAL128I: |
611 | 3.40k | case TYPE_DECIMAL256: |
612 | 3.40k | return execute_decimal(block, result, col_with_type_and_name_left, |
613 | 3.40k | col_with_type_and_name_right); |
614 | 761 | case TYPE_CHAR: |
615 | 6.61k | case TYPE_VARCHAR: |
616 | 12.5k | case TYPE_STRING: |
617 | 12.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
618 | 104 | default: |
619 | 104 | return execute_generic(block, result, col_with_type_and_name_left, |
620 | 104 | col_with_type_and_name_right); |
621 | 45.4k | } |
622 | 0 | return Status::OK(); |
623 | 45.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 21.2k | uint32_t result, size_t input_rows_count) const override { | 525 | 21.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 21.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 21.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 21.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 21.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 21.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 21.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 21.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 21.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 21.2k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | 0 | block.get_by_position(result).column = | 547 | 0 | DataTypeUInt8() | 548 | 0 | .create_column_const(input_rows_count, | 549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | 0 | ->convert_to_full_column_if_const(); | 551 | 0 | return Status::OK(); | 552 | | } else { | 553 | | block.get_by_position(result).column = | 554 | | DataTypeUInt8() | 555 | | .create_column_const(input_rows_count, | 556 | | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | | ->convert_to_full_column_if_const(); | 558 | | return Status::OK(); | 559 | | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 21.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 21.2k | }; | 565 | | | 566 | 21.2k | if (can_compare(left_type->get_primitive_type()) && | 567 | 21.2k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 8.87k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 8.87k | } | 575 | | | 576 | 21.2k | auto compare_type = left_type->get_primitive_type(); | 577 | 21.2k | switch (compare_type) { | 578 | 102 | case TYPE_BOOLEAN: | 579 | 102 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 873 | case TYPE_DATEV2: | 581 | 873 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 501 | case TYPE_DATETIMEV2: | 583 | 501 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 3.49k | case TYPE_TINYINT: | 587 | 3.49k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 577 | case TYPE_SMALLINT: | 589 | 577 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.89k | case TYPE_INT: | 591 | 1.89k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 940 | case TYPE_BIGINT: | 593 | 940 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 108 | case TYPE_LARGEINT: | 595 | 108 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 18 | case TYPE_IPV4: | 597 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 19 | case TYPE_IPV6: | 599 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 93 | case TYPE_FLOAT: | 601 | 93 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 249 | case TYPE_DOUBLE: | 603 | 249 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 4 | case TYPE_TIMEV2: | 606 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 156 | case TYPE_DECIMAL32: | 609 | 309 | case TYPE_DECIMAL64: | 610 | 1.25k | case TYPE_DECIMAL128I: | 611 | 1.28k | case TYPE_DECIMAL256: | 612 | 1.28k | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 1.28k | col_with_type_and_name_right); | 614 | 507 | case TYPE_CHAR: | 615 | 5.79k | case TYPE_VARCHAR: | 616 | 11.1k | case TYPE_STRING: | 617 | 11.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 17 | default: | 619 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 17 | col_with_type_and_name_right); | 621 | 21.2k | } | 622 | 0 | return Status::OK(); | 623 | 21.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 1.65k | uint32_t result, size_t input_rows_count) const override { | 525 | 1.65k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 1.65k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 1.65k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 1.65k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 1.65k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 1.65k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 1.65k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 1.65k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 1.65k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 1.65k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | | block.get_by_position(result).column = | 547 | | DataTypeUInt8() | 548 | | .create_column_const(input_rows_count, | 549 | | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | | ->convert_to_full_column_if_const(); | 551 | | return Status::OK(); | 552 | 0 | } else { | 553 | 0 | block.get_by_position(result).column = | 554 | 0 | DataTypeUInt8() | 555 | 0 | .create_column_const(input_rows_count, | 556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | 0 | ->convert_to_full_column_if_const(); | 558 | 0 | return Status::OK(); | 559 | 0 | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 1.65k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 1.65k | }; | 565 | | | 566 | 1.65k | if (can_compare(left_type->get_primitive_type()) && | 567 | 1.65k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 1.39k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 1.39k | } | 575 | | | 576 | 1.65k | auto compare_type = left_type->get_primitive_type(); | 577 | 1.65k | switch (compare_type) { | 578 | 0 | case TYPE_BOOLEAN: | 579 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 41 | case TYPE_DATEV2: | 581 | 41 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 0 | case TYPE_DATETIMEV2: | 583 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 0 | case TYPE_TIMESTAMPTZ: | 585 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 92 | case TYPE_TINYINT: | 587 | 92 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 0 | case TYPE_SMALLINT: | 589 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 659 | case TYPE_INT: | 591 | 659 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 482 | case TYPE_BIGINT: | 593 | 482 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 0 | case TYPE_LARGEINT: | 595 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 0 | case TYPE_IPV4: | 597 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 0 | case TYPE_IPV6: | 599 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 52 | case TYPE_FLOAT: | 601 | 52 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 71 | case TYPE_DOUBLE: | 603 | 71 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 0 | case TYPE_DECIMAL32: | 609 | 61 | case TYPE_DECIMAL64: | 610 | 89 | case TYPE_DECIMAL128I: | 611 | 119 | case TYPE_DECIMAL256: | 612 | 119 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 119 | col_with_type_and_name_right); | 614 | 1 | case TYPE_CHAR: | 615 | 30 | case TYPE_VARCHAR: | 616 | 127 | case TYPE_STRING: | 617 | 127 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 8 | default: | 619 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 8 | col_with_type_and_name_right); | 621 | 1.65k | } | 622 | 0 | return Status::OK(); | 623 | 1.65k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 9.90k | uint32_t result, size_t input_rows_count) const override { | 525 | 9.90k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 9.90k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 9.90k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 9.90k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 9.90k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 9.90k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 9.90k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 9.90k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 9.90k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 9.90k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | | block.get_by_position(result).column = | 547 | | DataTypeUInt8() | 548 | | .create_column_const(input_rows_count, | 549 | | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | | ->convert_to_full_column_if_const(); | 551 | | return Status::OK(); | 552 | 0 | } else { | 553 | 0 | block.get_by_position(result).column = | 554 | 0 | DataTypeUInt8() | 555 | 0 | .create_column_const(input_rows_count, | 556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | 0 | ->convert_to_full_column_if_const(); | 558 | 0 | return Status::OK(); | 559 | 0 | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 9.90k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 9.90k | }; | 565 | | | 566 | 9.90k | if (can_compare(left_type->get_primitive_type()) && | 567 | 9.90k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 8.73k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 8.73k | } | 575 | | | 576 | 9.90k | auto compare_type = left_type->get_primitive_type(); | 577 | 9.90k | switch (compare_type) { | 578 | 0 | case TYPE_BOOLEAN: | 579 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 1.08k | case TYPE_DATEV2: | 581 | 1.08k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 2 | case TYPE_DATETIMEV2: | 583 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 786 | case TYPE_TINYINT: | 587 | 786 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 1.03k | case TYPE_SMALLINT: | 589 | 1.03k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 3.60k | case TYPE_INT: | 591 | 3.60k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 1.19k | case TYPE_BIGINT: | 593 | 1.19k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 247 | case TYPE_LARGEINT: | 595 | 247 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 2 | case TYPE_IPV4: | 597 | 2 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 1 | case TYPE_IPV6: | 599 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 228 | case TYPE_FLOAT: | 601 | 228 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 555 | case TYPE_DOUBLE: | 603 | 555 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 12 | case TYPE_DECIMAL32: | 609 | 78 | case TYPE_DECIMAL64: | 610 | 954 | case TYPE_DECIMAL128I: | 611 | 956 | case TYPE_DECIMAL256: | 612 | 956 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 956 | col_with_type_and_name_right); | 614 | 21 | case TYPE_CHAR: | 615 | 91 | case TYPE_VARCHAR: | 616 | 203 | case TYPE_STRING: | 617 | 203 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 9 | default: | 619 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 9 | col_with_type_and_name_right); | 621 | 9.90k | } | 622 | 0 | return Status::OK(); | 623 | 9.90k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 2.85k | uint32_t result, size_t input_rows_count) const override { | 525 | 2.85k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 2.85k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 2.85k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 2.85k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 2.85k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 2.85k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 2.85k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 2.85k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 2.85k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 2.85k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | 0 | block.get_by_position(result).column = | 547 | 0 | DataTypeUInt8() | 548 | 0 | .create_column_const(input_rows_count, | 549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | 0 | ->convert_to_full_column_if_const(); | 551 | 0 | return Status::OK(); | 552 | | } else { | 553 | | block.get_by_position(result).column = | 554 | | DataTypeUInt8() | 555 | | .create_column_const(input_rows_count, | 556 | | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | | ->convert_to_full_column_if_const(); | 558 | | return Status::OK(); | 559 | | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 2.85k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 2.85k | }; | 565 | | | 566 | 2.85k | if (can_compare(left_type->get_primitive_type()) && | 567 | 2.85k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 2.44k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 2.44k | } | 575 | | | 576 | 2.85k | auto compare_type = left_type->get_primitive_type(); | 577 | 2.85k | switch (compare_type) { | 578 | 10 | case TYPE_BOOLEAN: | 579 | 10 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 532 | case TYPE_DATEV2: | 581 | 532 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 156 | case TYPE_DATETIMEV2: | 583 | 156 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 75 | case TYPE_TINYINT: | 587 | 75 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 103 | case TYPE_SMALLINT: | 589 | 103 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.13k | case TYPE_INT: | 591 | 1.13k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 154 | case TYPE_BIGINT: | 593 | 154 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 21 | case TYPE_LARGEINT: | 595 | 21 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 11 | case TYPE_IPV4: | 597 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 1 | case TYPE_IPV6: | 599 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 26 | case TYPE_FLOAT: | 601 | 26 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 190 | case TYPE_DOUBLE: | 603 | 190 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 1 | case TYPE_DECIMAL32: | 609 | 30 | case TYPE_DECIMAL64: | 610 | 91 | case TYPE_DECIMAL128I: | 611 | 118 | case TYPE_DECIMAL256: | 612 | 118 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 118 | col_with_type_and_name_right); | 614 | 24 | case TYPE_CHAR: | 615 | 191 | case TYPE_VARCHAR: | 616 | 290 | case TYPE_STRING: | 617 | 290 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 26 | default: | 619 | 26 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 26 | col_with_type_and_name_right); | 621 | 2.85k | } | 622 | 0 | return Status::OK(); | 623 | 2.85k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 6.88k | uint32_t result, size_t input_rows_count) const override { | 525 | 6.88k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 6.88k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 6.88k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 6.88k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 6.88k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 6.88k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 6.88k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 6.88k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 6.88k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 6.88k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | | block.get_by_position(result).column = | 547 | | DataTypeUInt8() | 548 | | .create_column_const(input_rows_count, | 549 | | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | | ->convert_to_full_column_if_const(); | 551 | | return Status::OK(); | 552 | 0 | } else { | 553 | 0 | block.get_by_position(result).column = | 554 | 0 | DataTypeUInt8() | 555 | 0 | .create_column_const(input_rows_count, | 556 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | 0 | ->convert_to_full_column_if_const(); | 558 | 0 | return Status::OK(); | 559 | 0 | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 6.88k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 6.88k | }; | 565 | | | 566 | 6.88k | if (can_compare(left_type->get_primitive_type()) && | 567 | 6.88k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 5.52k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 5.52k | } | 575 | | | 576 | 6.88k | auto compare_type = left_type->get_primitive_type(); | 577 | 6.88k | switch (compare_type) { | 578 | 84 | case TYPE_BOOLEAN: | 579 | 84 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 2.05k | case TYPE_DATEV2: | 581 | 2.05k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 296 | case TYPE_DATETIMEV2: | 583 | 296 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 4 | case TYPE_TIMESTAMPTZ: | 585 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 856 | case TYPE_TINYINT: | 587 | 856 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 130 | case TYPE_SMALLINT: | 589 | 130 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 693 | case TYPE_INT: | 591 | 693 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 710 | case TYPE_BIGINT: | 593 | 710 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 197 | case TYPE_LARGEINT: | 595 | 197 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 16 | case TYPE_IPV4: | 597 | 16 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 16 | case TYPE_IPV6: | 599 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 129 | case TYPE_FLOAT: | 601 | 129 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 343 | case TYPE_DOUBLE: | 603 | 343 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 205 | case TYPE_DECIMAL32: | 609 | 426 | case TYPE_DECIMAL64: | 610 | 828 | case TYPE_DECIMAL128I: | 611 | 829 | case TYPE_DECIMAL256: | 612 | 829 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 829 | col_with_type_and_name_right); | 614 | 168 | case TYPE_CHAR: | 615 | 349 | case TYPE_VARCHAR: | 616 | 514 | case TYPE_STRING: | 617 | 514 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 11 | default: | 619 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 11 | col_with_type_and_name_right); | 621 | 6.88k | } | 622 | 0 | return Status::OK(); | 623 | 6.88k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 2.91k | uint32_t result, size_t input_rows_count) const override { | 525 | 2.91k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 2.91k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 2.91k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 2.91k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 2.91k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 2.91k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 2.91k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 2.91k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 535 | | | 536 | | /// The case when arguments are the same (tautological comparison). Return constant. | 537 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 538 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 539 | 2.91k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 2.91k | col_left_untyped == col_right_untyped) { | 541 | | /// Always true: =, <=, >= | 542 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 543 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 544 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 545 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 546 | 0 | block.get_by_position(result).column = | 547 | 0 | DataTypeUInt8() | 548 | 0 | .create_column_const(input_rows_count, | 549 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 550 | 0 | ->convert_to_full_column_if_const(); | 551 | 0 | return Status::OK(); | 552 | | } else { | 553 | | block.get_by_position(result).column = | 554 | | DataTypeUInt8() | 555 | | .create_column_const(input_rows_count, | 556 | | Field::create_field<TYPE_BOOLEAN>(0)) | 557 | | ->convert_to_full_column_if_const(); | 558 | | return Status::OK(); | 559 | | } | 560 | 0 | } | 561 | | | 562 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 2.91k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 2.91k | }; | 565 | | | 566 | 2.91k | if (can_compare(left_type->get_primitive_type()) && | 567 | 2.91k | can_compare(right_type->get_primitive_type())) { | 568 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 569 | 2.53k | if (!left_type->equals_ignore_precision(*right_type)) { | 570 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 571 | 0 | get_name(), left_type->get_name(), | 572 | 0 | right_type->get_name()); | 573 | 0 | } | 574 | 2.53k | } | 575 | | | 576 | 2.91k | auto compare_type = left_type->get_primitive_type(); | 577 | 2.91k | switch (compare_type) { | 578 | 13 | case TYPE_BOOLEAN: | 579 | 13 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 581 | case TYPE_DATEV2: | 581 | 581 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 43 | case TYPE_DATETIMEV2: | 583 | 43 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 584 | 3 | case TYPE_TIMESTAMPTZ: | 585 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 91 | case TYPE_TINYINT: | 587 | 91 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 152 | case TYPE_SMALLINT: | 589 | 152 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.18k | case TYPE_INT: | 591 | 1.18k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 287 | case TYPE_BIGINT: | 593 | 287 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 8 | case TYPE_LARGEINT: | 595 | 8 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 10 | case TYPE_IPV4: | 597 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 0 | case TYPE_IPV6: | 599 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 20 | case TYPE_FLOAT: | 601 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 115 | case TYPE_DOUBLE: | 603 | 115 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 604 | 0 | case TYPE_TIME: | 605 | 0 | case TYPE_TIMEV2: | 606 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 607 | 0 | case TYPE_DECIMALV2: | 608 | 8 | case TYPE_DECIMAL32: | 609 | 39 | case TYPE_DECIMAL64: | 610 | 85 | case TYPE_DECIMAL128I: | 611 | 107 | case TYPE_DECIMAL256: | 612 | 107 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 107 | col_with_type_and_name_right); | 614 | 40 | case TYPE_CHAR: | 615 | 159 | case TYPE_VARCHAR: | 616 | 267 | case TYPE_STRING: | 617 | 267 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 33 | default: | 619 | 33 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 33 | col_with_type_and_name_right); | 621 | 2.91k | } | 622 | 0 | return Status::OK(); | 623 | 2.91k | } |
|
624 | | }; |
625 | | |
626 | | #include "common/compile_check_end.h" |
627 | | } // namespace doris |