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.6k | PaddedPODArray<UInt8>& c) { |
66 | 12.6k | size_t size = a.size(); |
67 | 12.6k | const A* __restrict a_pos = a.data(); |
68 | 12.6k | const B* __restrict b_pos = b.data(); |
69 | 12.6k | UInt8* __restrict c_pos = c.data(); |
70 | 12.6k | const A* __restrict a_end = a_pos + size; |
71 | | |
72 | 13.8M | while (a_pos < a_end) { |
73 | 13.7M | *c_pos = Op::apply(*a_pos, *b_pos); |
74 | 13.7M | ++a_pos; |
75 | 13.7M | ++b_pos; |
76 | 13.7M | ++c_pos; |
77 | 13.7M | } |
78 | 12.6k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 73 | PaddedPODArray<UInt8>& c) { | 66 | 73 | size_t size = a.size(); | 67 | 73 | const A* __restrict a_pos = a.data(); | 68 | 73 | const B* __restrict b_pos = b.data(); | 69 | 73 | UInt8* __restrict c_pos = c.data(); | 70 | 73 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 146 | while (a_pos < a_end) { | 73 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 73 | ++a_pos; | 75 | 73 | ++b_pos; | 76 | 73 | ++c_pos; | 77 | 73 | } | 78 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 239 | PaddedPODArray<UInt8>& c) { | 66 | 239 | size_t size = a.size(); | 67 | 239 | const A* __restrict a_pos = a.data(); | 68 | 239 | const B* __restrict b_pos = b.data(); | 69 | 239 | UInt8* __restrict c_pos = c.data(); | 70 | 239 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 484 | while (a_pos < a_end) { | 73 | 245 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 245 | ++a_pos; | 75 | 245 | ++b_pos; | 76 | 245 | ++c_pos; | 77 | 245 | } | 78 | 239 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 287 | PaddedPODArray<UInt8>& c) { | 66 | 287 | size_t size = a.size(); | 67 | 287 | const A* __restrict a_pos = a.data(); | 68 | 287 | const B* __restrict b_pos = b.data(); | 69 | 287 | UInt8* __restrict c_pos = c.data(); | 70 | 287 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 596 | while (a_pos < a_end) { | 73 | 309 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 309 | ++a_pos; | 75 | 309 | ++b_pos; | 76 | 309 | ++c_pos; | 77 | 309 | } | 78 | 287 | } |
_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 | 920 | PaddedPODArray<UInt8>& c) { | 66 | 920 | size_t size = a.size(); | 67 | 920 | const A* __restrict a_pos = a.data(); | 68 | 920 | const B* __restrict b_pos = b.data(); | 69 | 920 | UInt8* __restrict c_pos = c.data(); | 70 | 920 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.73k | while (a_pos < a_end) { | 73 | 4.81k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.81k | ++a_pos; | 75 | 4.81k | ++b_pos; | 76 | 4.81k | ++c_pos; | 77 | 4.81k | } | 78 | 920 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 133 | PaddedPODArray<UInt8>& c) { | 66 | 133 | size_t size = a.size(); | 67 | 133 | const A* __restrict a_pos = a.data(); | 68 | 133 | const B* __restrict b_pos = b.data(); | 69 | 133 | UInt8* __restrict c_pos = c.data(); | 70 | 133 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 566 | while (a_pos < a_end) { | 73 | 433 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 433 | ++a_pos; | 75 | 433 | ++b_pos; | 76 | 433 | ++c_pos; | 77 | 433 | } | 78 | 133 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 279 | PaddedPODArray<UInt8>& c) { | 66 | 279 | size_t size = a.size(); | 67 | 279 | const A* __restrict a_pos = a.data(); | 68 | 279 | const B* __restrict b_pos = b.data(); | 69 | 279 | UInt8* __restrict c_pos = c.data(); | 70 | 279 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.07k | while (a_pos < a_end) { | 73 | 1.79k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.79k | ++a_pos; | 75 | 1.79k | ++b_pos; | 76 | 1.79k | ++c_pos; | 77 | 1.79k | } | 78 | 279 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 483 | PaddedPODArray<UInt8>& c) { | 66 | 483 | size_t size = a.size(); | 67 | 483 | const A* __restrict a_pos = a.data(); | 68 | 483 | const B* __restrict b_pos = b.data(); | 69 | 483 | UInt8* __restrict c_pos = c.data(); | 70 | 483 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 11.9k | while (a_pos < a_end) { | 73 | 11.4k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 11.4k | ++a_pos; | 75 | 11.4k | ++b_pos; | 76 | 11.4k | ++c_pos; | 77 | 11.4k | } | 78 | 483 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 101 | PaddedPODArray<UInt8>& c) { | 66 | 101 | size_t size = a.size(); | 67 | 101 | const A* __restrict a_pos = a.data(); | 68 | 101 | const B* __restrict b_pos = b.data(); | 69 | 101 | UInt8* __restrict c_pos = c.data(); | 70 | 101 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 227 | while (a_pos < a_end) { | 73 | 126 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 126 | ++a_pos; | 75 | 126 | ++b_pos; | 76 | 126 | ++c_pos; | 77 | 126 | } | 78 | 101 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 16 | PaddedPODArray<UInt8>& c) { | 66 | 16 | size_t size = a.size(); | 67 | 16 | const A* __restrict a_pos = a.data(); | 68 | 16 | const B* __restrict b_pos = b.data(); | 69 | 16 | UInt8* __restrict c_pos = c.data(); | 70 | 16 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 32 | while (a_pos < a_end) { | 73 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 16 | ++a_pos; | 75 | 16 | ++b_pos; | 76 | 16 | ++c_pos; | 77 | 16 | } | 78 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 24 | PaddedPODArray<UInt8>& c) { | 66 | 24 | size_t size = a.size(); | 67 | 24 | const A* __restrict a_pos = a.data(); | 68 | 24 | const B* __restrict b_pos = b.data(); | 69 | 24 | UInt8* __restrict c_pos = c.data(); | 70 | 24 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 48 | while (a_pos < a_end) { | 73 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 24 | ++a_pos; | 75 | 24 | ++b_pos; | 76 | 24 | ++c_pos; | 77 | 24 | } | 78 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 114 | PaddedPODArray<UInt8>& c) { | 66 | 114 | size_t size = a.size(); | 67 | 114 | const A* __restrict a_pos = a.data(); | 68 | 114 | const B* __restrict b_pos = b.data(); | 69 | 114 | UInt8* __restrict c_pos = c.data(); | 70 | 114 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 247 | while (a_pos < a_end) { | 73 | 133 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 133 | ++a_pos; | 75 | 133 | ++b_pos; | 76 | 133 | ++c_pos; | 77 | 133 | } | 78 | 114 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 113 | PaddedPODArray<UInt8>& c) { | 66 | 113 | size_t size = a.size(); | 67 | 113 | const A* __restrict a_pos = a.data(); | 68 | 113 | const B* __restrict b_pos = b.data(); | 69 | 113 | UInt8* __restrict c_pos = c.data(); | 70 | 113 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 247 | while (a_pos < a_end) { | 73 | 134 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 134 | ++a_pos; | 75 | 134 | ++b_pos; | 76 | 134 | ++c_pos; | 77 | 134 | } | 78 | 113 | } |
_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 | 916 | PaddedPODArray<UInt8>& c) { | 66 | 916 | size_t size = a.size(); | 67 | 916 | const A* __restrict a_pos = a.data(); | 68 | 916 | const B* __restrict b_pos = b.data(); | 69 | 916 | UInt8* __restrict c_pos = c.data(); | 70 | 916 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.67M | while (a_pos < a_end) { | 73 | 1.66M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.66M | ++a_pos; | 75 | 1.66M | ++b_pos; | 76 | 1.66M | ++c_pos; | 77 | 1.66M | } | 78 | 916 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 409 | PaddedPODArray<UInt8>& c) { | 66 | 409 | size_t size = a.size(); | 67 | 409 | const A* __restrict a_pos = a.data(); | 68 | 409 | const B* __restrict b_pos = b.data(); | 69 | 409 | UInt8* __restrict c_pos = c.data(); | 70 | 409 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 24.6k | while (a_pos < a_end) { | 73 | 24.2k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 24.2k | ++a_pos; | 75 | 24.2k | ++b_pos; | 76 | 24.2k | ++c_pos; | 77 | 24.2k | } | 78 | 409 | } |
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 | 932 | PaddedPODArray<UInt8>& c) { | 66 | 932 | size_t size = a.size(); | 67 | 932 | const A* __restrict a_pos = a.data(); | 68 | 932 | const B* __restrict b_pos = b.data(); | 69 | 932 | UInt8* __restrict c_pos = c.data(); | 70 | 932 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 4.84M | while (a_pos < a_end) { | 73 | 4.84M | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 4.84M | ++a_pos; | 75 | 4.84M | ++b_pos; | 76 | 4.84M | ++c_pos; | 77 | 4.84M | } | 78 | 932 | } |
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 | 259 | PaddedPODArray<UInt8>& c) { | 66 | 259 | size_t size = a.size(); | 67 | 259 | const A* __restrict a_pos = a.data(); | 68 | 259 | const B* __restrict b_pos = b.data(); | 69 | 259 | UInt8* __restrict c_pos = c.data(); | 70 | 259 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 2.13k | while (a_pos < a_end) { | 73 | 1.87k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.87k | ++a_pos; | 75 | 1.87k | ++b_pos; | 76 | 1.87k | ++c_pos; | 77 | 1.87k | } | 78 | 259 | } |
_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 | 184 | PaddedPODArray<UInt8>& c) { | 66 | 184 | size_t size = a.size(); | 67 | 184 | const A* __restrict a_pos = a.data(); | 68 | 184 | const B* __restrict b_pos = b.data(); | 69 | 184 | UInt8* __restrict c_pos = c.data(); | 70 | 184 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.67k | while (a_pos < a_end) { | 73 | 1.48k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.48k | ++a_pos; | 75 | 1.48k | ++b_pos; | 76 | 1.48k | ++c_pos; | 77 | 1.48k | } | 78 | 184 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 35 | PaddedPODArray<UInt8>& c) { | 66 | 35 | size_t size = a.size(); | 67 | 35 | const A* __restrict a_pos = a.data(); | 68 | 35 | const B* __restrict b_pos = b.data(); | 69 | 35 | UInt8* __restrict c_pos = c.data(); | 70 | 35 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 192 | while (a_pos < a_end) { | 73 | 157 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 157 | ++a_pos; | 75 | 157 | ++b_pos; | 76 | 157 | ++c_pos; | 77 | 157 | } | 78 | 35 | } |
_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 | 50 | PaddedPODArray<UInt8>& c) { | 66 | 50 | size_t size = a.size(); | 67 | 50 | const A* __restrict a_pos = a.data(); | 68 | 50 | const B* __restrict b_pos = b.data(); | 69 | 50 | UInt8* __restrict c_pos = c.data(); | 70 | 50 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 145 | while (a_pos < a_end) { | 73 | 95 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 95 | ++a_pos; | 75 | 95 | ++b_pos; | 76 | 95 | ++c_pos; | 77 | 95 | } | 78 | 50 | } |
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 | 12 | PaddedPODArray<UInt8>& c) { | 66 | 12 | size_t size = a.size(); | 67 | 12 | const A* __restrict a_pos = a.data(); | 68 | 12 | const B* __restrict b_pos = b.data(); | 69 | 12 | UInt8* __restrict c_pos = c.data(); | 70 | 12 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 98 | while (a_pos < a_end) { | 73 | 86 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 86 | ++a_pos; | 75 | 86 | ++b_pos; | 76 | 86 | ++c_pos; | 77 | 86 | } | 78 | 12 | } |
_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 | 12 | while (a_pos < a_end) { | 73 | 7 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 7 | ++a_pos; | 75 | 7 | ++b_pos; | 76 | 7 | ++c_pos; | 77 | 7 | } | 78 | 5 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 17 | PaddedPODArray<UInt8>& c) { | 66 | 17 | size_t size = a.size(); | 67 | 17 | const A* __restrict a_pos = a.data(); | 68 | 17 | const B* __restrict b_pos = b.data(); | 69 | 17 | UInt8* __restrict c_pos = c.data(); | 70 | 17 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 127 | while (a_pos < a_end) { | 73 | 110 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 110 | ++a_pos; | 75 | 110 | ++b_pos; | 76 | 110 | ++c_pos; | 77 | 110 | } | 78 | 17 | } |
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 | 74 | PaddedPODArray<UInt8>& c) { | 66 | 74 | size_t size = a.size(); | 67 | 74 | const A* __restrict a_pos = a.data(); | 68 | 74 | const B* __restrict b_pos = b.data(); | 69 | 74 | UInt8* __restrict c_pos = c.data(); | 70 | 74 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 180 | 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 | 74 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 65 | 78 | PaddedPODArray<UInt8>& c) { | 66 | 78 | size_t size = a.size(); | 67 | 78 | const A* __restrict a_pos = a.data(); | 68 | 78 | const B* __restrict b_pos = b.data(); | 69 | 78 | UInt8* __restrict c_pos = c.data(); | 70 | 78 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 156 | while (a_pos < a_end) { | 73 | 78 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 78 | ++a_pos; | 75 | 78 | ++b_pos; | 76 | 78 | ++c_pos; | 77 | 78 | } | 78 | 78 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 1.56k | PaddedPODArray<UInt8>& c) { | 66 | 1.56k | size_t size = a.size(); | 67 | 1.56k | const A* __restrict a_pos = a.data(); | 68 | 1.56k | const B* __restrict b_pos = b.data(); | 69 | 1.56k | UInt8* __restrict c_pos = c.data(); | 70 | 1.56k | 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.56k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 65 | 223 | PaddedPODArray<UInt8>& c) { | 66 | 223 | size_t size = a.size(); | 67 | 223 | const A* __restrict a_pos = a.data(); | 68 | 223 | const B* __restrict b_pos = b.data(); | 69 | 223 | UInt8* __restrict c_pos = c.data(); | 70 | 223 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 446 | while (a_pos < a_end) { | 73 | 223 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 223 | ++a_pos; | 75 | 223 | ++b_pos; | 76 | 223 | ++c_pos; | 77 | 223 | } | 78 | 223 | } |
_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 | 825 | PaddedPODArray<UInt8>& c) { | 66 | 825 | size_t size = a.size(); | 67 | 825 | const A* __restrict a_pos = a.data(); | 68 | 825 | const B* __restrict b_pos = b.data(); | 69 | 825 | UInt8* __restrict c_pos = c.data(); | 70 | 825 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.08k | 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 | 825 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 103 | PaddedPODArray<UInt8>& c) { | 66 | 103 | size_t size = a.size(); | 67 | 103 | const A* __restrict a_pos = a.data(); | 68 | 103 | const B* __restrict b_pos = b.data(); | 69 | 103 | UInt8* __restrict c_pos = c.data(); | 70 | 103 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 208 | while (a_pos < a_end) { | 73 | 105 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 105 | ++a_pos; | 75 | 105 | ++b_pos; | 76 | 105 | ++c_pos; | 77 | 105 | } | 78 | 103 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 161 | PaddedPODArray<UInt8>& c) { | 66 | 161 | size_t size = a.size(); | 67 | 161 | const A* __restrict a_pos = a.data(); | 68 | 161 | const B* __restrict b_pos = b.data(); | 69 | 161 | UInt8* __restrict c_pos = c.data(); | 70 | 161 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 790 | while (a_pos < a_end) { | 73 | 629 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 629 | ++a_pos; | 75 | 629 | ++b_pos; | 76 | 629 | ++c_pos; | 77 | 629 | } | 78 | 161 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 275 | PaddedPODArray<UInt8>& c) { | 66 | 275 | size_t size = a.size(); | 67 | 275 | const A* __restrict a_pos = a.data(); | 68 | 275 | const B* __restrict b_pos = b.data(); | 69 | 275 | UInt8* __restrict c_pos = c.data(); | 70 | 275 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 5.66k | while (a_pos < a_end) { | 73 | 5.38k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 5.38k | ++a_pos; | 75 | 5.38k | ++b_pos; | 76 | 5.38k | ++c_pos; | 77 | 5.38k | } | 78 | 275 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 184 | PaddedPODArray<UInt8>& c) { | 66 | 184 | size_t size = a.size(); | 67 | 184 | const A* __restrict a_pos = a.data(); | 68 | 184 | const B* __restrict b_pos = b.data(); | 69 | 184 | UInt8* __restrict c_pos = c.data(); | 70 | 184 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 512 | while (a_pos < a_end) { | 73 | 328 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 328 | ++a_pos; | 75 | 328 | ++b_pos; | 76 | 328 | ++c_pos; | 77 | 328 | } | 78 | 184 | } |
_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 | 130 | PaddedPODArray<UInt8>& c) { | 66 | 130 | size_t size = a.size(); | 67 | 130 | const A* __restrict a_pos = a.data(); | 68 | 130 | const B* __restrict b_pos = b.data(); | 69 | 130 | UInt8* __restrict c_pos = c.data(); | 70 | 130 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 279 | while (a_pos < a_end) { | 73 | 149 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 149 | ++a_pos; | 75 | 149 | ++b_pos; | 76 | 149 | ++c_pos; | 77 | 149 | } | 78 | 130 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 155 | PaddedPODArray<UInt8>& c) { | 66 | 155 | size_t size = a.size(); | 67 | 155 | const A* __restrict a_pos = a.data(); | 68 | 155 | const B* __restrict b_pos = b.data(); | 69 | 155 | UInt8* __restrict c_pos = c.data(); | 70 | 155 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 347 | while (a_pos < a_end) { | 73 | 192 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 192 | ++a_pos; | 75 | 192 | ++b_pos; | 76 | 192 | ++c_pos; | 77 | 192 | } | 78 | 155 | } |
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 | 425 | PaddedPODArray<UInt8>& c) { | 66 | 425 | size_t size = a.size(); | 67 | 425 | const A* __restrict a_pos = a.data(); | 68 | 425 | const B* __restrict b_pos = b.data(); | 69 | 425 | UInt8* __restrict c_pos = c.data(); | 70 | 425 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 6.65k | while (a_pos < a_end) { | 73 | 6.22k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 6.22k | ++a_pos; | 75 | 6.22k | ++b_pos; | 76 | 6.22k | ++c_pos; | 77 | 6.22k | } | 78 | 425 | } |
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 | 67 | PaddedPODArray<UInt8>& c) { | 66 | 67 | size_t size = a.size(); | 67 | 67 | const A* __restrict a_pos = a.data(); | 68 | 67 | const B* __restrict b_pos = b.data(); | 69 | 67 | UInt8* __restrict c_pos = c.data(); | 70 | 67 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 1.07k | while (a_pos < a_end) { | 73 | 1.00k | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 1.00k | ++a_pos; | 75 | 1.00k | ++b_pos; | 76 | 1.00k | ++c_pos; | 77 | 1.00k | } | 78 | 67 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 65 | 77 | PaddedPODArray<UInt8>& c) { | 66 | 77 | size_t size = a.size(); | 67 | 77 | const A* __restrict a_pos = a.data(); | 68 | 77 | const B* __restrict b_pos = b.data(); | 69 | 77 | UInt8* __restrict c_pos = c.data(); | 70 | 77 | const A* __restrict a_end = a_pos + size; | 71 | | | 72 | 333 | while (a_pos < a_end) { | 73 | 256 | *c_pos = Op::apply(*a_pos, *b_pos); | 74 | 256 | ++a_pos; | 75 | 256 | ++b_pos; | 76 | 256 | ++c_pos; | 77 | 256 | } | 78 | 77 | } |
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 | 68.3k | PaddedPODArray<UInt8>& c) { |
82 | 68.3k | size_t size = a.size(); |
83 | 68.3k | const A* __restrict a_pos = a.data(); |
84 | 68.3k | UInt8* __restrict c_pos = c.data(); |
85 | 68.3k | const A* __restrict a_end = a_pos + size; |
86 | | |
87 | 133M | while (a_pos < a_end) { |
88 | 133M | *c_pos = Op::apply(*a_pos, b); |
89 | 133M | ++a_pos; |
90 | 133M | ++c_pos; |
91 | 133M | } |
92 | 68.3k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 788 | PaddedPODArray<UInt8>& c) { | 82 | 788 | size_t size = a.size(); | 83 | 788 | const A* __restrict a_pos = a.data(); | 84 | 788 | UInt8* __restrict c_pos = c.data(); | 85 | 788 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.20k | while (a_pos < a_end) { | 88 | 2.41k | *c_pos = Op::apply(*a_pos, b); | 89 | 2.41k | ++a_pos; | 90 | 2.41k | ++c_pos; | 91 | 2.41k | } | 92 | 788 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 706 | PaddedPODArray<UInt8>& c) { | 82 | 706 | size_t size = a.size(); | 83 | 706 | const A* __restrict a_pos = a.data(); | 84 | 706 | UInt8* __restrict c_pos = c.data(); | 85 | 706 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 203k | while (a_pos < a_end) { | 88 | 202k | *c_pos = Op::apply(*a_pos, b); | 89 | 202k | ++a_pos; | 90 | 202k | ++c_pos; | 91 | 202k | } | 92 | 706 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 406 | PaddedPODArray<UInt8>& c) { | 82 | 406 | size_t size = a.size(); | 83 | 406 | const A* __restrict a_pos = a.data(); | 84 | 406 | UInt8* __restrict c_pos = c.data(); | 85 | 406 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 101k | *c_pos = Op::apply(*a_pos, b); | 89 | 101k | ++a_pos; | 90 | 101k | ++c_pos; | 91 | 101k | } | 92 | 406 | } |
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.91k | PaddedPODArray<UInt8>& c) { | 82 | 2.91k | size_t size = a.size(); | 83 | 2.91k | const A* __restrict a_pos = a.data(); | 84 | 2.91k | UInt8* __restrict c_pos = c.data(); | 85 | 2.91k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 9.18M | while (a_pos < a_end) { | 88 | 9.18M | *c_pos = Op::apply(*a_pos, b); | 89 | 9.18M | ++a_pos; | 90 | 9.18M | ++c_pos; | 91 | 9.18M | } | 92 | 2.91k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 587 | PaddedPODArray<UInt8>& c) { | 82 | 587 | size_t size = a.size(); | 83 | 587 | const A* __restrict a_pos = a.data(); | 84 | 587 | UInt8* __restrict c_pos = c.data(); | 85 | 587 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 127k | while (a_pos < a_end) { | 88 | 126k | *c_pos = Op::apply(*a_pos, b); | 89 | 126k | ++a_pos; | 90 | 126k | ++c_pos; | 91 | 126k | } | 92 | 587 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 5.72k | PaddedPODArray<UInt8>& c) { | 82 | 5.72k | size_t size = a.size(); | 83 | 5.72k | const A* __restrict a_pos = a.data(); | 84 | 5.72k | UInt8* __restrict c_pos = c.data(); | 85 | 5.72k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.96M | while (a_pos < a_end) { | 88 | 1.96M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.96M | ++a_pos; | 90 | 1.96M | ++c_pos; | 91 | 1.96M | } | 92 | 5.72k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 8.78k | PaddedPODArray<UInt8>& c) { | 82 | 8.78k | size_t size = a.size(); | 83 | 8.78k | const A* __restrict a_pos = a.data(); | 84 | 8.78k | UInt8* __restrict c_pos = c.data(); | 85 | 8.78k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.37M | while (a_pos < a_end) { | 88 | 2.37M | *c_pos = Op::apply(*a_pos, b); | 89 | 2.37M | ++a_pos; | 90 | 2.37M | ++c_pos; | 91 | 2.37M | } | 92 | 8.78k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 40 | PaddedPODArray<UInt8>& c) { | 82 | 40 | size_t size = a.size(); | 83 | 40 | const A* __restrict a_pos = a.data(); | 84 | 40 | UInt8* __restrict c_pos = c.data(); | 85 | 40 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 101k | while (a_pos < a_end) { | 88 | 101k | *c_pos = Op::apply(*a_pos, b); | 89 | 101k | ++a_pos; | 90 | 101k | ++c_pos; | 91 | 101k | } | 92 | 40 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 15 | PaddedPODArray<UInt8>& c) { | 82 | 15 | size_t size = a.size(); | 83 | 15 | const A* __restrict a_pos = a.data(); | 84 | 15 | UInt8* __restrict c_pos = c.data(); | 85 | 15 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 129 | 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 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 6 | PaddedPODArray<UInt8>& c) { | 82 | 6 | size_t size = a.size(); | 83 | 6 | const A* __restrict a_pos = a.data(); | 84 | 6 | UInt8* __restrict c_pos = c.data(); | 85 | 6 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 12 | while (a_pos < a_end) { | 88 | 6 | *c_pos = Op::apply(*a_pos, b); | 89 | 6 | ++a_pos; | 90 | 6 | ++c_pos; | 91 | 6 | } | 92 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 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 | 22 | while (a_pos < a_end) { | 88 | 20 | *c_pos = Op::apply(*a_pos, b); | 89 | 20 | ++a_pos; | 90 | 20 | ++c_pos; | 91 | 20 | } | 92 | 2 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 301 | PaddedPODArray<UInt8>& c) { | 82 | 301 | size_t size = a.size(); | 83 | 301 | const A* __restrict a_pos = a.data(); | 84 | 301 | UInt8* __restrict c_pos = c.data(); | 85 | 301 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 701k | 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 | 301 | } |
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 | 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 | 21 | while (a_pos < a_end) { | 88 | 11 | *c_pos = Op::apply(*a_pos, b); | 89 | 11 | ++a_pos; | 90 | 11 | ++c_pos; | 91 | 11 | } | 92 | 10 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 2 | PaddedPODArray<UInt8>& c) { | 82 | 2 | size_t size = a.size(); | 83 | 2 | const A* __restrict a_pos = a.data(); | 84 | 2 | UInt8* __restrict c_pos = c.data(); | 85 | 2 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4 | while (a_pos < a_end) { | 88 | 2 | *c_pos = Op::apply(*a_pos, b); | 89 | 2 | ++a_pos; | 90 | 2 | ++c_pos; | 91 | 2 | } | 92 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 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 | 858 | while (a_pos < a_end) { | 88 | 826 | *c_pos = Op::apply(*a_pos, b); | 89 | 826 | ++a_pos; | 90 | 826 | ++c_pos; | 91 | 826 | } | 92 | 32 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 4 | PaddedPODArray<UInt8>& c) { | 82 | 4 | size_t size = a.size(); | 83 | 4 | const A* __restrict a_pos = a.data(); | 84 | 4 | UInt8* __restrict c_pos = c.data(); | 85 | 4 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 780 | while (a_pos < a_end) { | 88 | 776 | *c_pos = Op::apply(*a_pos, b); | 89 | 776 | ++a_pos; | 90 | 776 | ++c_pos; | 91 | 776 | } | 92 | 4 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 537 | PaddedPODArray<UInt8>& c) { | 82 | 537 | size_t size = a.size(); | 83 | 537 | const A* __restrict a_pos = a.data(); | 84 | 537 | UInt8* __restrict c_pos = c.data(); | 85 | 537 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 384k | while (a_pos < a_end) { | 88 | 384k | *c_pos = Op::apply(*a_pos, b); | 89 | 384k | ++a_pos; | 90 | 384k | ++c_pos; | 91 | 384k | } | 92 | 537 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 538 | PaddedPODArray<UInt8>& c) { | 82 | 538 | size_t size = a.size(); | 83 | 538 | const A* __restrict a_pos = a.data(); | 84 | 538 | UInt8* __restrict c_pos = c.data(); | 85 | 538 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 201k | while (a_pos < a_end) { | 88 | 201k | *c_pos = Op::apply(*a_pos, b); | 89 | 201k | ++a_pos; | 90 | 201k | ++c_pos; | 91 | 201k | } | 92 | 538 | } |
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 | 78 | PaddedPODArray<UInt8>& c) { | 82 | 78 | size_t size = a.size(); | 83 | 78 | const A* __restrict a_pos = a.data(); | 84 | 78 | UInt8* __restrict c_pos = c.data(); | 85 | 78 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.01k | while (a_pos < a_end) { | 88 | 934 | *c_pos = Op::apply(*a_pos, b); | 89 | 934 | ++a_pos; | 90 | 934 | ++c_pos; | 91 | 934 | } | 92 | 78 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 382 | PaddedPODArray<UInt8>& c) { | 82 | 382 | size_t size = a.size(); | 83 | 382 | const A* __restrict a_pos = a.data(); | 84 | 382 | UInt8* __restrict c_pos = c.data(); | 85 | 382 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.34M | while (a_pos < a_end) { | 88 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.34M | ++a_pos; | 90 | 1.34M | ++c_pos; | 91 | 1.34M | } | 92 | 382 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 60 | PaddedPODArray<UInt8>& c) { | 82 | 60 | size_t size = a.size(); | 83 | 60 | const A* __restrict a_pos = a.data(); | 84 | 60 | UInt8* __restrict c_pos = c.data(); | 85 | 60 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 142 | while (a_pos < a_end) { | 88 | 82 | *c_pos = Op::apply(*a_pos, b); | 89 | 82 | ++a_pos; | 90 | 82 | ++c_pos; | 91 | 82 | } | 92 | 60 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 213 | PaddedPODArray<UInt8>& c) { | 82 | 213 | size_t size = a.size(); | 83 | 213 | const A* __restrict a_pos = a.data(); | 84 | 213 | UInt8* __restrict c_pos = c.data(); | 85 | 213 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 29.9k | while (a_pos < a_end) { | 88 | 29.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 29.7k | ++a_pos; | 90 | 29.7k | ++c_pos; | 91 | 29.7k | } | 92 | 213 | } |
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 | 420 | PaddedPODArray<UInt8>& c) { | 82 | 420 | size_t size = a.size(); | 83 | 420 | const A* __restrict a_pos = a.data(); | 84 | 420 | UInt8* __restrict c_pos = c.data(); | 85 | 420 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.22k | while (a_pos < a_end) { | 88 | 3.80k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.80k | ++a_pos; | 90 | 3.80k | ++c_pos; | 91 | 3.80k | } | 92 | 420 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 49 | PaddedPODArray<UInt8>& c) { | 82 | 49 | size_t size = a.size(); | 83 | 49 | const A* __restrict a_pos = a.data(); | 84 | 49 | UInt8* __restrict c_pos = c.data(); | 85 | 49 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.82k | while (a_pos < a_end) { | 88 | 1.77k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.77k | ++a_pos; | 90 | 1.77k | ++c_pos; | 91 | 1.77k | } | 92 | 49 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 455 | PaddedPODArray<UInt8>& c) { | 82 | 455 | size_t size = a.size(); | 83 | 455 | const A* __restrict a_pos = a.data(); | 84 | 455 | UInt8* __restrict c_pos = c.data(); | 85 | 455 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 7.90k | while (a_pos < a_end) { | 88 | 7.44k | *c_pos = Op::apply(*a_pos, b); | 89 | 7.44k | ++a_pos; | 90 | 7.44k | ++c_pos; | 91 | 7.44k | } | 92 | 455 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 102 | PaddedPODArray<UInt8>& c) { | 82 | 102 | size_t size = a.size(); | 83 | 102 | const A* __restrict a_pos = a.data(); | 84 | 102 | UInt8* __restrict c_pos = c.data(); | 85 | 102 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 8.54k | while (a_pos < a_end) { | 88 | 8.44k | *c_pos = Op::apply(*a_pos, b); | 89 | 8.44k | ++a_pos; | 90 | 8.44k | ++c_pos; | 91 | 8.44k | } | 92 | 102 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 5.79k | PaddedPODArray<UInt8>& c) { | 82 | 5.79k | size_t size = a.size(); | 83 | 5.79k | const A* __restrict a_pos = a.data(); | 84 | 5.79k | UInt8* __restrict c_pos = c.data(); | 85 | 5.79k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.24M | while (a_pos < a_end) { | 88 | 1.24M | *c_pos = Op::apply(*a_pos, b); | 89 | 1.24M | ++a_pos; | 90 | 1.24M | ++c_pos; | 91 | 1.24M | } | 92 | 5.79k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.27k | PaddedPODArray<UInt8>& c) { | 82 | 1.27k | size_t size = a.size(); | 83 | 1.27k | const A* __restrict a_pos = a.data(); | 84 | 1.27k | UInt8* __restrict c_pos = c.data(); | 85 | 1.27k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.85M | while (a_pos < a_end) { | 88 | 3.85M | *c_pos = Op::apply(*a_pos, b); | 89 | 3.85M | ++a_pos; | 90 | 3.85M | ++c_pos; | 91 | 3.85M | } | 92 | 1.27k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 7.88k | PaddedPODArray<UInt8>& c) { | 82 | 7.88k | size_t size = a.size(); | 83 | 7.88k | const A* __restrict a_pos = a.data(); | 84 | 7.88k | UInt8* __restrict c_pos = c.data(); | 85 | 7.88k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 173k | while (a_pos < a_end) { | 88 | 165k | *c_pos = Op::apply(*a_pos, b); | 89 | 165k | ++a_pos; | 90 | 165k | ++c_pos; | 91 | 165k | } | 92 | 7.88k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 973 | PaddedPODArray<UInt8>& c) { | 82 | 973 | size_t size = a.size(); | 83 | 973 | const A* __restrict a_pos = a.data(); | 84 | 973 | UInt8* __restrict c_pos = c.data(); | 85 | 973 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 2.78k | while (a_pos < a_end) { | 88 | 1.81k | *c_pos = Op::apply(*a_pos, b); | 89 | 1.81k | ++a_pos; | 90 | 1.81k | ++c_pos; | 91 | 1.81k | } | 92 | 973 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 206 | PaddedPODArray<UInt8>& c) { | 82 | 206 | size_t size = a.size(); | 83 | 206 | const A* __restrict a_pos = a.data(); | 84 | 206 | UInt8* __restrict c_pos = c.data(); | 85 | 206 | 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 | 206 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 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 | 65 | } |
_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 | 212 | PaddedPODArray<UInt8>& c) { | 82 | 212 | size_t size = a.size(); | 83 | 212 | const A* __restrict a_pos = a.data(); | 84 | 212 | UInt8* __restrict c_pos = c.data(); | 85 | 212 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 3.40k | while (a_pos < a_end) { | 88 | 3.19k | *c_pos = Op::apply(*a_pos, b); | 89 | 3.19k | ++a_pos; | 90 | 3.19k | ++c_pos; | 91 | 3.19k | } | 92 | 212 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 19 | PaddedPODArray<UInt8>& c) { | 82 | 19 | size_t size = a.size(); | 83 | 19 | const A* __restrict a_pos = a.data(); | 84 | 19 | UInt8* __restrict c_pos = c.data(); | 85 | 19 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 59 | while (a_pos < a_end) { | 88 | 40 | *c_pos = Op::apply(*a_pos, b); | 89 | 40 | ++a_pos; | 90 | 40 | ++c_pos; | 91 | 40 | } | 92 | 19 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 1.62k | PaddedPODArray<UInt8>& c) { | 82 | 1.62k | size_t size = a.size(); | 83 | 1.62k | const A* __restrict a_pos = a.data(); | 84 | 1.62k | UInt8* __restrict c_pos = c.data(); | 85 | 1.62k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 289k | while (a_pos < a_end) { | 88 | 287k | *c_pos = Op::apply(*a_pos, b); | 89 | 287k | ++a_pos; | 90 | 287k | ++c_pos; | 91 | 287k | } | 92 | 1.62k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 203 | PaddedPODArray<UInt8>& c) { | 82 | 203 | size_t size = a.size(); | 83 | 203 | const A* __restrict a_pos = a.data(); | 84 | 203 | UInt8* __restrict c_pos = c.data(); | 85 | 203 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 312k | while (a_pos < a_end) { | 88 | 312k | *c_pos = Op::apply(*a_pos, b); | 89 | 312k | ++a_pos; | 90 | 312k | ++c_pos; | 91 | 312k | } | 92 | 203 | } |
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 | 117 | PaddedPODArray<UInt8>& c) { | 82 | 117 | size_t size = a.size(); | 83 | 117 | const A* __restrict a_pos = a.data(); | 84 | 117 | UInt8* __restrict c_pos = c.data(); | 85 | 117 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 47.0k | while (a_pos < a_end) { | 88 | 46.9k | *c_pos = Op::apply(*a_pos, b); | 89 | 46.9k | ++a_pos; | 90 | 46.9k | ++c_pos; | 91 | 46.9k | } | 92 | 117 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 81 | 111 | PaddedPODArray<UInt8>& c) { | 82 | 111 | size_t size = a.size(); | 83 | 111 | const A* __restrict a_pos = a.data(); | 84 | 111 | UInt8* __restrict c_pos = c.data(); | 85 | 111 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 23.3k | while (a_pos < a_end) { | 88 | 23.2k | *c_pos = Op::apply(*a_pos, b); | 89 | 23.2k | ++a_pos; | 90 | 23.2k | ++c_pos; | 91 | 23.2k | } | 92 | 111 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 1.01k | PaddedPODArray<UInt8>& c) { | 82 | 1.01k | size_t size = a.size(); | 83 | 1.01k | const A* __restrict a_pos = a.data(); | 84 | 1.01k | UInt8* __restrict c_pos = c.data(); | 85 | 1.01k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.38M | while (a_pos < a_end) { | 88 | 4.38M | *c_pos = Op::apply(*a_pos, b); | 89 | 4.38M | ++a_pos; | 90 | 4.38M | ++c_pos; | 91 | 4.38M | } | 92 | 1.01k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 2.12k | PaddedPODArray<UInt8>& c) { | 82 | 2.12k | size_t size = a.size(); | 83 | 2.12k | const A* __restrict a_pos = a.data(); | 84 | 2.12k | UInt8* __restrict c_pos = c.data(); | 85 | 2.12k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 15.6M | while (a_pos < a_end) { | 88 | 15.6M | *c_pos = Op::apply(*a_pos, b); | 89 | 15.6M | ++a_pos; | 90 | 15.6M | ++c_pos; | 91 | 15.6M | } | 92 | 2.12k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 485 | PaddedPODArray<UInt8>& c) { | 82 | 485 | size_t size = a.size(); | 83 | 485 | const A* __restrict a_pos = a.data(); | 84 | 485 | UInt8* __restrict c_pos = c.data(); | 85 | 485 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 1.43k | while (a_pos < a_end) { | 88 | 952 | *c_pos = Op::apply(*a_pos, b); | 89 | 952 | ++a_pos; | 90 | 952 | ++c_pos; | 91 | 952 | } | 92 | 485 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 81 | 266 | PaddedPODArray<UInt8>& c) { | 82 | 266 | size_t size = a.size(); | 83 | 266 | const A* __restrict a_pos = a.data(); | 84 | 266 | UInt8* __restrict c_pos = c.data(); | 85 | 266 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 610 | while (a_pos < a_end) { | 88 | 344 | *c_pos = Op::apply(*a_pos, b); | 89 | 344 | ++a_pos; | 90 | 344 | ++c_pos; | 91 | 344 | } | 92 | 266 | } |
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 | 108 | PaddedPODArray<UInt8>& c) { | 82 | 108 | size_t size = a.size(); | 83 | 108 | const A* __restrict a_pos = a.data(); | 84 | 108 | UInt8* __restrict c_pos = c.data(); | 85 | 108 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 11.8k | while (a_pos < a_end) { | 88 | 11.7k | *c_pos = Op::apply(*a_pos, b); | 89 | 11.7k | ++a_pos; | 90 | 11.7k | ++c_pos; | 91 | 11.7k | } | 92 | 108 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 113 | PaddedPODArray<UInt8>& c) { | 82 | 113 | size_t size = a.size(); | 83 | 113 | const A* __restrict a_pos = a.data(); | 84 | 113 | UInt8* __restrict c_pos = c.data(); | 85 | 113 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 19.3k | while (a_pos < a_end) { | 88 | 19.2k | *c_pos = Op::apply(*a_pos, b); | 89 | 19.2k | ++a_pos; | 90 | 19.2k | ++c_pos; | 91 | 19.2k | } | 92 | 113 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_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 | 33.2k | while (a_pos < a_end) { | 88 | 33.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 33.1k | ++a_pos; | 90 | 33.1k | ++c_pos; | 91 | 33.1k | } | 92 | 151 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 197 | PaddedPODArray<UInt8>& c) { | 82 | 197 | size_t size = a.size(); | 83 | 197 | const A* __restrict a_pos = a.data(); | 84 | 197 | UInt8* __restrict c_pos = c.data(); | 85 | 197 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 30.3k | while (a_pos < a_end) { | 88 | 30.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 30.1k | ++a_pos; | 90 | 30.1k | ++c_pos; | 91 | 30.1k | } | 92 | 197 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10.3k | PaddedPODArray<UInt8>& c) { | 82 | 10.3k | size_t size = a.size(); | 83 | 10.3k | const A* __restrict a_pos = a.data(); | 84 | 10.3k | UInt8* __restrict c_pos = c.data(); | 85 | 10.3k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 44.7M | while (a_pos < a_end) { | 88 | 44.7M | *c_pos = Op::apply(*a_pos, b); | 89 | 44.7M | ++a_pos; | 90 | 44.7M | ++c_pos; | 91 | 44.7M | } | 92 | 10.3k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 10.4k | PaddedPODArray<UInt8>& c) { | 82 | 10.4k | size_t size = a.size(); | 83 | 10.4k | const A* __restrict a_pos = a.data(); | 84 | 10.4k | UInt8* __restrict c_pos = c.data(); | 85 | 10.4k | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 44.7M | while (a_pos < a_end) { | 88 | 44.7M | *c_pos = Op::apply(*a_pos, b); | 89 | 44.7M | ++a_pos; | 90 | 44.7M | ++c_pos; | 91 | 44.7M | } | 92 | 10.4k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 357 | PaddedPODArray<UInt8>& c) { | 82 | 357 | size_t size = a.size(); | 83 | 357 | const A* __restrict a_pos = a.data(); | 84 | 357 | UInt8* __restrict c_pos = c.data(); | 85 | 357 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 17.5k | while (a_pos < a_end) { | 88 | 17.1k | *c_pos = Op::apply(*a_pos, b); | 89 | 17.1k | ++a_pos; | 90 | 17.1k | ++c_pos; | 91 | 17.1k | } | 92 | 357 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 426 | PaddedPODArray<UInt8>& c) { | 82 | 426 | size_t size = a.size(); | 83 | 426 | const A* __restrict a_pos = a.data(); | 84 | 426 | UInt8* __restrict c_pos = c.data(); | 85 | 426 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 4.90k | while (a_pos < a_end) { | 88 | 4.48k | *c_pos = Op::apply(*a_pos, b); | 89 | 4.48k | ++a_pos; | 90 | 4.48k | ++c_pos; | 91 | 4.48k | } | 92 | 426 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 38 | PaddedPODArray<UInt8>& c) { | 82 | 38 | size_t size = a.size(); | 83 | 38 | const A* __restrict a_pos = a.data(); | 84 | 38 | UInt8* __restrict c_pos = c.data(); | 85 | 38 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 67.4k | while (a_pos < a_end) { | 88 | 67.3k | *c_pos = Op::apply(*a_pos, b); | 89 | 67.3k | ++a_pos; | 90 | 67.3k | ++c_pos; | 91 | 67.3k | } | 92 | 38 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 11.1k | while (a_pos < a_end) { | 88 | 11.0k | *c_pos = Op::apply(*a_pos, b); | 89 | 11.0k | ++a_pos; | 90 | 11.0k | ++c_pos; | 91 | 11.0k | } | 92 | 28 | } |
_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 | 106 | PaddedPODArray<UInt8>& c) { | 82 | 106 | size_t size = a.size(); | 83 | 106 | const A* __restrict a_pos = a.data(); | 84 | 106 | UInt8* __restrict c_pos = c.data(); | 85 | 106 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 215 | while (a_pos < a_end) { | 88 | 109 | *c_pos = Op::apply(*a_pos, b); | 89 | 109 | ++a_pos; | 90 | 109 | ++c_pos; | 91 | 109 | } | 92 | 106 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 100 | PaddedPODArray<UInt8>& c) { | 82 | 100 | size_t size = a.size(); | 83 | 100 | const A* __restrict a_pos = a.data(); | 84 | 100 | UInt8* __restrict c_pos = c.data(); | 85 | 100 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 200 | 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 | 100 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 106 | PaddedPODArray<UInt8>& c) { | 82 | 106 | size_t size = a.size(); | 83 | 106 | const A* __restrict a_pos = a.data(); | 84 | 106 | UInt8* __restrict c_pos = c.data(); | 85 | 106 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 276k | while (a_pos < a_end) { | 88 | 275k | *c_pos = Op::apply(*a_pos, b); | 89 | 275k | ++a_pos; | 90 | 275k | ++c_pos; | 91 | 275k | } | 92 | 106 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 81 | 129 | PaddedPODArray<UInt8>& c) { | 82 | 129 | size_t size = a.size(); | 83 | 129 | const A* __restrict a_pos = a.data(); | 84 | 129 | UInt8* __restrict c_pos = c.data(); | 85 | 129 | const A* __restrict a_end = a_pos + size; | 86 | | | 87 | 276k | while (a_pos < a_end) { | 88 | 275k | *c_pos = Op::apply(*a_pos, b); | 89 | 275k | ++a_pos; | 90 | 275k | ++c_pos; | 91 | 275k | } | 92 | 129 | } |
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 | 75 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 75 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
110 | 101k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
111 | 101k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
112 | 101k | } |
113 | 75 | } _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 | 17 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 17 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 50.3k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 50.3k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 50.3k | } | 113 | 17 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 21 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 21 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 110 | 50.7k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 111 | 50.7k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 112 | 50.7k | } | 113 | 21 | } |
|
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 | 408 | PaddedPODArray<UInt8>& c) { |
127 | 408 | size_t size = a_offsets.size(); |
128 | 408 | ColumnString::Offset prev_a_offset = 0; |
129 | 408 | ColumnString::Offset prev_b_offset = 0; |
130 | 408 | const auto* a_pos = a_data.data(); |
131 | 408 | const auto* b_pos = b_data.data(); |
132 | | |
133 | 1.08k | for (size_t i = 0; i < size; ++i) { |
134 | 678 | c[i] = Op::apply(memcmp_small_allow_overflow15( |
135 | 678 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
136 | 678 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
137 | 678 | 0); |
138 | | |
139 | 678 | prev_a_offset = a_offsets[i]; |
140 | 678 | prev_b_offset = b_offsets[i]; |
141 | 678 | } |
142 | 408 | } _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 | 363 | PaddedPODArray<UInt8>& c) { | 127 | 363 | size_t size = a_offsets.size(); | 128 | 363 | ColumnString::Offset prev_a_offset = 0; | 129 | 363 | ColumnString::Offset prev_b_offset = 0; | 130 | 363 | const auto* a_pos = a_data.data(); | 131 | 363 | const auto* b_pos = b_data.data(); | 132 | | | 133 | 730 | for (size_t i = 0; i < size; ++i) { | 134 | 367 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 135 | 367 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 136 | 367 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 137 | 367 | 0); | 138 | | | 139 | 367 | prev_a_offset = a_offsets[i]; | 140 | 367 | prev_b_offset = b_offsets[i]; | 141 | 367 | } | 142 | 363 | } |
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 | 1.22k | PaddedPODArray<UInt8>& c) { |
149 | 1.22k | size_t size = a_offsets.size(); |
150 | 1.22k | ColumnString::Offset prev_a_offset = 0; |
151 | 1.22k | const auto* a_pos = a_data.data(); |
152 | 1.22k | const auto* b_pos = b_data.data(); |
153 | | |
154 | 872k | for (size_t i = 0; i < size; ++i) { |
155 | 871k | c[i] = Op::apply( |
156 | 871k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
157 | 871k | a_offsets[i] - prev_a_offset, b_pos, b_size), |
158 | 871k | 0); |
159 | | |
160 | 871k | prev_a_offset = a_offsets[i]; |
161 | 871k | } |
162 | 1.22k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 197 | PaddedPODArray<UInt8>& c) { | 149 | 197 | size_t size = a_offsets.size(); | 150 | 197 | ColumnString::Offset prev_a_offset = 0; | 151 | 197 | const auto* a_pos = a_data.data(); | 152 | 197 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 324k | for (size_t i = 0; i < size; ++i) { | 155 | 324k | c[i] = Op::apply( | 156 | 324k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 324k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 324k | 0); | 159 | | | 160 | 324k | prev_a_offset = a_offsets[i]; | 161 | 324k | } | 162 | 197 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 215 | PaddedPODArray<UInt8>& c) { | 149 | 215 | size_t size = a_offsets.size(); | 150 | 215 | ColumnString::Offset prev_a_offset = 0; | 151 | 215 | const auto* a_pos = a_data.data(); | 152 | 215 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 71.9k | 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 | 215 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 421 | PaddedPODArray<UInt8>& c) { | 149 | 421 | size_t size = a_offsets.size(); | 150 | 421 | ColumnString::Offset prev_a_offset = 0; | 151 | 421 | const auto* a_pos = a_data.data(); | 152 | 421 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 246k | for (size_t i = 0; i < size; ++i) { | 155 | 246k | c[i] = Op::apply( | 156 | 246k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 246k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 246k | 0); | 159 | | | 160 | 246k | prev_a_offset = a_offsets[i]; | 161 | 246k | } | 162 | 421 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 148 | 396 | PaddedPODArray<UInt8>& c) { | 149 | 396 | size_t size = a_offsets.size(); | 150 | 396 | ColumnString::Offset prev_a_offset = 0; | 151 | 396 | const auto* a_pos = a_data.data(); | 152 | 396 | const auto* b_pos = b_data.data(); | 153 | | | 154 | 229k | for (size_t i = 0; i < size; ++i) { | 155 | 228k | c[i] = Op::apply( | 156 | 228k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 157 | 228k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 158 | 228k | 0); | 159 | | | 160 | 228k | prev_a_offset = a_offsets[i]; | 161 | 228k | } | 162 | 396 | } |
|
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 | 456 | PaddedPODArray<UInt8>& c) { |
181 | 456 | size_t size = a_offsets.size(); |
182 | 456 | ColumnString::Offset prev_a_offset = 0; |
183 | 456 | ColumnString::Offset prev_b_offset = 0; |
184 | 456 | const auto* a_pos = a_data.data(); |
185 | 456 | const auto* b_pos = b_data.data(); |
186 | | |
187 | 1.31k | for (size_t i = 0; i < size; ++i) { |
188 | 855 | auto a_size = a_offsets[i] - prev_a_offset; |
189 | 855 | auto b_size = b_offsets[i] - prev_b_offset; |
190 | | |
191 | 855 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
192 | 855 | b_pos + prev_b_offset, b_size); |
193 | | |
194 | 855 | prev_a_offset = a_offsets[i]; |
195 | 855 | prev_b_offset = b_offsets[i]; |
196 | 855 | } |
197 | 456 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 180 | 455 | PaddedPODArray<UInt8>& c) { | 181 | 455 | size_t size = a_offsets.size(); | 182 | 455 | ColumnString::Offset prev_a_offset = 0; | 183 | 455 | ColumnString::Offset prev_b_offset = 0; | 184 | 455 | const auto* a_pos = a_data.data(); | 185 | 455 | const auto* b_pos = b_data.data(); | 186 | | | 187 | 1.30k | for (size_t i = 0; i < size; ++i) { | 188 | 851 | auto a_size = a_offsets[i] - prev_a_offset; | 189 | 851 | auto b_size = b_offsets[i] - prev_b_offset; | 190 | | | 191 | 851 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 192 | 851 | b_pos + prev_b_offset, b_size); | 193 | | | 194 | 851 | prev_a_offset = a_offsets[i]; | 195 | 851 | prev_b_offset = b_offsets[i]; | 196 | 851 | } | 197 | 455 | } |
_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 | 19.7k | PaddedPODArray<UInt8>& c) { |
204 | 19.7k | size_t size = a_offsets.size(); |
205 | 19.7k | if (b_size == 0) { |
206 | 37 | auto* __restrict data = c.data(); |
207 | 37 | auto* __restrict offsets = a_offsets.data(); |
208 | | |
209 | 37 | ColumnString::Offset prev_a_offset = 0; |
210 | 1.18k | for (size_t i = 0; i < size; ++i) { |
211 | 1.14k | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
212 | 1.14k | prev_a_offset = offsets[i]; |
213 | 1.14k | } |
214 | 19.6k | } else { |
215 | 19.6k | ColumnString::Offset prev_a_offset = 0; |
216 | 19.6k | const auto* a_pos = a_data.data(); |
217 | 19.6k | const auto* b_pos = b_data.data(); |
218 | 6.99M | for (size_t i = 0; i < size; ++i) { |
219 | 6.97M | auto a_size = a_offsets[i] - prev_a_offset; |
220 | 6.97M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
221 | 6.97M | b_pos, b_size); |
222 | 6.97M | prev_a_offset = a_offsets[i]; |
223 | 6.97M | } |
224 | 19.6k | } |
225 | 19.7k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 19.0k | PaddedPODArray<UInt8>& c) { | 204 | 19.0k | size_t size = a_offsets.size(); | 205 | 19.0k | if (b_size == 0) { | 206 | 12 | auto* __restrict data = c.data(); | 207 | 12 | auto* __restrict offsets = a_offsets.data(); | 208 | | | 209 | 12 | ColumnString::Offset prev_a_offset = 0; | 210 | 76 | for (size_t i = 0; i < size; ++i) { | 211 | 64 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 212 | 64 | prev_a_offset = offsets[i]; | 213 | 64 | } | 214 | 19.0k | } else { | 215 | 19.0k | ColumnString::Offset prev_a_offset = 0; | 216 | 19.0k | const auto* a_pos = a_data.data(); | 217 | 19.0k | const auto* b_pos = b_data.data(); | 218 | 6.77M | for (size_t i = 0; i < size; ++i) { | 219 | 6.76M | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 6.76M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 6.76M | b_pos, b_size); | 222 | 6.76M | prev_a_offset = a_offsets[i]; | 223 | 6.76M | } | 224 | 19.0k | } | 225 | 19.0k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 203 | 659 | PaddedPODArray<UInt8>& c) { | 204 | 659 | size_t size = a_offsets.size(); | 205 | 659 | 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 | 634 | } else { | 215 | 634 | ColumnString::Offset prev_a_offset = 0; | 216 | 634 | const auto* a_pos = a_data.data(); | 217 | 634 | const auto* b_pos = b_data.data(); | 218 | 217k | for (size_t i = 0; i < size; ++i) { | 219 | 216k | auto a_size = a_offsets[i] - prev_a_offset; | 220 | 216k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 221 | 216k | b_pos, b_size); | 222 | 216k | prev_a_offset = a_offsets[i]; | 223 | 216k | } | 224 | 634 | } | 225 | 659 | } |
|
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 | 487k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 265 | 434k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 265 | 1.30k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 265 | 6.30k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 265 | 20.8k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 265 | 3.16k | 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 | 487k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 267 | 434k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 267 | 1.30k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 267 | 6.30k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 267 | 20.8k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 267 | 3.16k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 267 | 21.4k | FunctionComparison() = default; |
|
268 | | |
269 | 1.25M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 269 | 1.21M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 269 | 1.07k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 269 | 6.65k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 269 | 17.5k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 269 | 3.27k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 269 | 15.7k | 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 | 80.9k | const ColumnPtr& col_right_ptr) const { |
275 | 80.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
276 | 80.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
277 | | |
278 | 80.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
279 | 80.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
280 | | |
281 | 80.9k | DCHECK(!(left_is_const && right_is_const)); |
282 | | |
283 | 80.9k | if (!left_is_const && !right_is_const) { |
284 | 12.6k | auto col_res = ColumnUInt8::create(); |
285 | | |
286 | 12.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
287 | 12.6k | vec_res.resize(col_left->get_data().size()); |
288 | 12.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
289 | 12.6k | typename PrimitiveTypeTraits<PT>::CppType, |
290 | 12.6k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
291 | 12.6k | vec_res); |
292 | | |
293 | 12.6k | block.replace_by_position(result, std::move(col_res)); |
294 | 68.2k | } else if (!left_is_const && right_is_const) { |
295 | 68.2k | auto col_res = ColumnUInt8::create(); |
296 | | |
297 | 68.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
298 | 68.2k | vec_res.resize(col_left->size()); |
299 | 68.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
300 | 68.2k | typename PrimitiveTypeTraits<PT>::CppType, |
301 | 68.2k | Op<PT>>::vector_constant(col_left->get_data(), |
302 | 68.2k | col_right->get_element(0), vec_res); |
303 | | |
304 | 68.2k | block.replace_by_position(result, std::move(col_res)); |
305 | 68.2k | } 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 | 80.9k | return Status::OK(); |
318 | 80.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 861 | const ColumnPtr& col_right_ptr) const { | 275 | 861 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 861 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 861 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 861 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 861 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 861 | if (!left_is_const && !right_is_const) { | 284 | 73 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 73 | vec_res.resize(col_left->get_data().size()); | 288 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 73 | vec_res); | 292 | | | 293 | 73 | block.replace_by_position(result, std::move(col_res)); | 294 | 788 | } else if (!left_is_const && right_is_const) { | 295 | 788 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 788 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 788 | vec_res.resize(col_left->size()); | 299 | 788 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 788 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 788 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 788 | col_right->get_element(0), vec_res); | 303 | | | 304 | 788 | block.replace_by_position(result, std::move(col_res)); | 305 | 788 | } 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 | 861 | return Status::OK(); | 318 | 861 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 945 | const ColumnPtr& col_right_ptr) const { | 275 | 945 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 945 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 945 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 945 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 945 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 945 | if (!left_is_const && !right_is_const) { | 284 | 239 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 239 | vec_res.resize(col_left->get_data().size()); | 288 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 239 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 239 | vec_res); | 292 | | | 293 | 239 | block.replace_by_position(result, std::move(col_res)); | 294 | 706 | } else if (!left_is_const && right_is_const) { | 295 | 706 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 706 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 706 | vec_res.resize(col_left->size()); | 299 | 706 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 706 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 706 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 706 | col_right->get_element(0), vec_res); | 303 | | | 304 | 706 | block.replace_by_position(result, std::move(col_res)); | 305 | 706 | } 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 | 945 | return Status::OK(); | 318 | 945 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_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 | 287 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 287 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 287 | vec_res.resize(col_left->get_data().size()); | 288 | 287 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 287 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 287 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 287 | vec_res); | 292 | | | 293 | 287 | block.replace_by_position(result, std::move(col_res)); | 294 | 406 | } else if (!left_is_const && right_is_const) { | 295 | 406 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 406 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 406 | vec_res.resize(col_left->size()); | 299 | 406 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 406 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 406 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 406 | col_right->get_element(0), vec_res); | 303 | | | 304 | 406 | block.replace_by_position(result, std::move(col_res)); | 305 | 406 | } 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_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.83k | const ColumnPtr& col_right_ptr) const { | 275 | 3.83k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 3.83k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 3.83k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 3.83k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 3.83k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 3.83k | if (!left_is_const && !right_is_const) { | 284 | 919 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 919 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 919 | vec_res.resize(col_left->get_data().size()); | 288 | 919 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 919 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 919 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 919 | vec_res); | 292 | | | 293 | 919 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.91k | } else if (!left_is_const && right_is_const) { | 295 | 2.91k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.91k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.91k | vec_res.resize(col_left->size()); | 299 | 2.91k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.91k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.91k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.91k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.91k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.91k | } 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.83k | return Status::OK(); | 318 | 3.83k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 720 | const ColumnPtr& col_right_ptr) const { | 275 | 720 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 720 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 720 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 720 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 720 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 720 | if (!left_is_const && !right_is_const) { | 284 | 133 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 133 | vec_res.resize(col_left->get_data().size()); | 288 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 133 | vec_res); | 292 | | | 293 | 133 | block.replace_by_position(result, std::move(col_res)); | 294 | 587 | } else if (!left_is_const && right_is_const) { | 295 | 586 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 586 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 586 | vec_res.resize(col_left->size()); | 299 | 586 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 586 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 586 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 586 | col_right->get_element(0), vec_res); | 303 | | | 304 | 586 | block.replace_by_position(result, std::move(col_res)); | 305 | 586 | } 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 | 720 | return Status::OK(); | 318 | 720 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 5.99k | const ColumnPtr& col_right_ptr) const { | 275 | 5.99k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 5.99k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 5.99k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 5.99k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 5.99k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 5.99k | if (!left_is_const && !right_is_const) { | 284 | 279 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 279 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 279 | vec_res.resize(col_left->get_data().size()); | 288 | 279 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 279 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 279 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 279 | vec_res); | 292 | | | 293 | 279 | block.replace_by_position(result, std::move(col_res)); | 294 | 5.71k | } else if (!left_is_const && right_is_const) { | 295 | 5.70k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 5.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 5.70k | vec_res.resize(col_left->size()); | 299 | 5.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 5.70k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 5.70k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 5.70k | col_right->get_element(0), vec_res); | 303 | | | 304 | 5.70k | block.replace_by_position(result, std::move(col_res)); | 305 | 5.70k | } 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 | 5.99k | return Status::OK(); | 318 | 5.99k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 9.26k | const ColumnPtr& col_right_ptr) const { | 275 | 9.26k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 9.26k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 9.26k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 9.26k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 9.26k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 9.26k | if (!left_is_const && !right_is_const) { | 284 | 483 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 483 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 483 | vec_res.resize(col_left->get_data().size()); | 288 | 483 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 483 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 483 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 483 | vec_res); | 292 | | | 293 | 483 | block.replace_by_position(result, std::move(col_res)); | 294 | 8.78k | } else if (!left_is_const && right_is_const) { | 295 | 8.77k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 8.77k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 8.77k | vec_res.resize(col_left->size()); | 299 | 8.77k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 8.77k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 8.77k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 8.77k | col_right->get_element(0), vec_res); | 303 | | | 304 | 8.77k | block.replace_by_position(result, std::move(col_res)); | 305 | 8.77k | } 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 | 9.26k | return Status::OK(); | 318 | 9.26k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 141 | const ColumnPtr& col_right_ptr) const { | 275 | 141 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 141 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 141 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 141 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 141 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 141 | if (!left_is_const && !right_is_const) { | 284 | 101 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 101 | vec_res.resize(col_left->get_data().size()); | 288 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 101 | vec_res); | 292 | | | 293 | 101 | block.replace_by_position(result, std::move(col_res)); | 294 | 101 | } else if (!left_is_const && right_is_const) { | 295 | 40 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 40 | vec_res.resize(col_left->size()); | 299 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 40 | col_right->get_element(0), vec_res); | 303 | | | 304 | 40 | block.replace_by_position(result, std::move(col_res)); | 305 | 40 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 141 | return Status::OK(); | 318 | 141 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 31 | const ColumnPtr& col_right_ptr) const { | 275 | 31 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 31 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 31 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 31 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 31 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 31 | 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 | 15 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 15 | vec_res.resize(col_left->size()); | 299 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 15 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 15 | col_right->get_element(0), vec_res); | 303 | | | 304 | 15 | block.replace_by_position(result, std::move(col_res)); | 305 | 15 | } 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 | 31 | return Status::OK(); | 318 | 31 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 30 | const ColumnPtr& col_right_ptr) const { | 275 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 30 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 30 | if (!left_is_const && !right_is_const) { | 284 | 24 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 24 | vec_res.resize(col_left->get_data().size()); | 288 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 24 | vec_res); | 292 | | | 293 | 24 | block.replace_by_position(result, std::move(col_res)); | 294 | 24 | } else if (!left_is_const && right_is_const) { | 295 | 6 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 6 | vec_res.resize(col_left->size()); | 299 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 6 | col_right->get_element(0), vec_res); | 303 | | | 304 | 6 | block.replace_by_position(result, std::move(col_res)); | 305 | 6 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 30 | return Status::OK(); | 318 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 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 | 114 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 114 | vec_res.resize(col_left->get_data().size()); | 288 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 114 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 114 | vec_res); | 292 | | | 293 | 114 | block.replace_by_position(result, std::move(col_res)); | 294 | 114 | } 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 | 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 | 115 | return Status::OK(); | 318 | 115 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 414 | const ColumnPtr& col_right_ptr) const { | 275 | 414 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 414 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 414 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 414 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 414 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 414 | if (!left_is_const && !right_is_const) { | 284 | 113 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 113 | vec_res.resize(col_left->get_data().size()); | 288 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 113 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 113 | vec_res); | 292 | | | 293 | 113 | block.replace_by_position(result, std::move(col_res)); | 294 | 301 | } else if (!left_is_const && right_is_const) { | 295 | 301 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 301 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 301 | vec_res.resize(col_left->size()); | 299 | 301 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 301 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 301 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 301 | col_right->get_element(0), vec_res); | 303 | | | 304 | 301 | block.replace_by_position(result, std::move(col_res)); | 305 | 301 | } 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 | 414 | return Status::OK(); | 318 | 414 | } |
_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 | 49 | const ColumnPtr& col_right_ptr) const { | 275 | 49 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 49 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 49 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 49 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 49 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 49 | 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 | 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 | 49 | return Status::OK(); | 318 | 49 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2 | const ColumnPtr& col_right_ptr) const { | 275 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2 | if (!left_is_const && !right_is_const) { | 284 | 0 | auto col_res = ColumnUInt8::create(); | 285 | |
| 286 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 0 | vec_res.resize(col_left->get_data().size()); | 288 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 0 | vec_res); | 292 | |
| 293 | 0 | block.replace_by_position(result, std::move(col_res)); | 294 | 2 | } else if (!left_is_const && right_is_const) { | 295 | 2 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2 | vec_res.resize(col_left->size()); | 299 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2 | col_right->get_element(0), vec_res); | 303 | | | 304 | 2 | block.replace_by_position(result, std::move(col_res)); | 305 | 2 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 2 | return Status::OK(); | 318 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 96 | const ColumnPtr& col_right_ptr) const { | 275 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 96 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 96 | 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 | 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 | 96 | return Status::OK(); | 318 | 96 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_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 | 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 | 4 | } else if (!left_is_const && right_is_const) { | 295 | 4 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 4 | vec_res.resize(col_left->size()); | 299 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 4 | col_right->get_element(0), vec_res); | 303 | | | 304 | 4 | block.replace_by_position(result, std::move(col_res)); | 305 | 4 | } 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_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.45k | const ColumnPtr& col_right_ptr) const { | 275 | 1.45k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.45k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.45k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.45k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.45k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.45k | if (!left_is_const && !right_is_const) { | 284 | 916 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 916 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 916 | vec_res.resize(col_left->get_data().size()); | 288 | 916 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 916 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 916 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 916 | vec_res); | 292 | | | 293 | 916 | block.replace_by_position(result, std::move(col_res)); | 294 | 916 | } else if (!left_is_const && right_is_const) { | 295 | 537 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 537 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 537 | vec_res.resize(col_left->size()); | 299 | 537 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 537 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 537 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 537 | col_right->get_element(0), vec_res); | 303 | | | 304 | 537 | block.replace_by_position(result, std::move(col_res)); | 305 | 537 | } 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.45k | return Status::OK(); | 318 | 1.45k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 947 | const ColumnPtr& col_right_ptr) const { | 275 | 947 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 947 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 947 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 947 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 947 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 947 | if (!left_is_const && !right_is_const) { | 284 | 409 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 409 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 409 | vec_res.resize(col_left->get_data().size()); | 288 | 409 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 409 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 409 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 409 | vec_res); | 292 | | | 293 | 409 | block.replace_by_position(result, std::move(col_res)); | 294 | 538 | } else if (!left_is_const && right_is_const) { | 295 | 538 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 538 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 538 | vec_res.resize(col_left->size()); | 299 | 538 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 538 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 538 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 538 | col_right->get_element(0), vec_res); | 303 | | | 304 | 538 | block.replace_by_position(result, std::move(col_res)); | 305 | 538 | } 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 | 947 | return Status::OK(); | 318 | 947 | } |
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 | 72 | 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 | 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 | 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 | 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.01k | const ColumnPtr& col_right_ptr) const { | 275 | 1.01k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.01k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.01k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.01k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.01k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.01k | if (!left_is_const && !right_is_const) { | 284 | 932 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 932 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 932 | vec_res.resize(col_left->get_data().size()); | 288 | 932 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 932 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 932 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 932 | vec_res); | 292 | | | 293 | 932 | block.replace_by_position(result, std::move(col_res)); | 294 | 932 | } else if (!left_is_const && right_is_const) { | 295 | 78 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 78 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 78 | vec_res.resize(col_left->size()); | 299 | 78 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 78 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 78 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 78 | col_right->get_element(0), vec_res); | 303 | | | 304 | 78 | block.replace_by_position(result, std::move(col_res)); | 305 | 78 | } 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.01k | return Status::OK(); | 318 | 1.01k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 60 | const ColumnPtr& col_right_ptr) const { | 275 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 60 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 60 | if (!left_is_const && !right_is_const) { | 284 | 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 | 60 | } else if (!left_is_const && right_is_const) { | 295 | 60 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 60 | vec_res.resize(col_left->size()); | 299 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 60 | col_right->get_element(0), vec_res); | 303 | | | 304 | 60 | block.replace_by_position(result, std::move(col_res)); | 305 | 60 | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 60 | return Status::OK(); | 318 | 60 | } |
_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 | 678 | const ColumnPtr& col_right_ptr) const { | 275 | 678 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 678 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 678 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 678 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 678 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 679 | if (!left_is_const && !right_is_const) { | 284 | 259 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 259 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 259 | vec_res.resize(col_left->get_data().size()); | 288 | 259 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 259 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 259 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 259 | vec_res); | 292 | | | 293 | 259 | block.replace_by_position(result, std::move(col_res)); | 294 | 420 | } else if (!left_is_const && right_is_const) { | 295 | 420 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 420 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 420 | vec_res.resize(col_left->size()); | 299 | 420 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 420 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 420 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 420 | col_right->get_element(0), vec_res); | 303 | | | 304 | 420 | 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 | 678 | return Status::OK(); | 318 | 678 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.07k | const ColumnPtr& col_right_ptr) const { | 275 | 1.07k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.07k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.07k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.07k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.07k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.07k | 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 | 455 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 455 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 455 | vec_res.resize(col_left->size()); | 299 | 455 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 455 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 455 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 455 | col_right->get_element(0), vec_res); | 303 | | | 304 | 455 | block.replace_by_position(result, std::move(col_res)); | 305 | 455 | } 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.07k | return Status::OK(); | 318 | 1.07k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 7.56k | const ColumnPtr& col_right_ptr) const { | 275 | 7.56k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 7.56k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 7.56k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 7.56k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 7.56k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 7.56k | 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 | 5.78k | } else if (!left_is_const && right_is_const) { | 295 | 5.78k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 5.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 5.78k | vec_res.resize(col_left->size()); | 299 | 5.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 5.78k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 5.78k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 5.78k | col_right->get_element(0), vec_res); | 303 | | | 304 | 5.78k | block.replace_by_position(result, std::move(col_res)); | 305 | 5.78k | } 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 | 7.56k | return Status::OK(); | 318 | 7.56k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 8.06k | const ColumnPtr& col_right_ptr) const { | 275 | 8.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 8.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 8.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 8.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 8.06k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 8.06k | if (!left_is_const && !right_is_const) { | 284 | 184 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 184 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 184 | vec_res.resize(col_left->get_data().size()); | 288 | 184 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 184 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 184 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 184 | vec_res); | 292 | | | 293 | 184 | block.replace_by_position(result, std::move(col_res)); | 294 | 7.88k | } else if (!left_is_const && right_is_const) { | 295 | 7.87k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 7.87k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 7.87k | vec_res.resize(col_left->size()); | 299 | 7.87k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 7.87k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 7.87k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 7.87k | col_right->get_element(0), vec_res); | 303 | | | 304 | 7.87k | block.replace_by_position(result, std::move(col_res)); | 305 | 7.87k | } 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.06k | return Status::OK(); | 318 | 8.06k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 241 | const ColumnPtr& col_right_ptr) const { | 275 | 241 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 241 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 241 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 241 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 241 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 241 | if (!left_is_const && !right_is_const) { | 284 | 35 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 35 | vec_res.resize(col_left->get_data().size()); | 288 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 35 | vec_res); | 292 | | | 293 | 35 | block.replace_by_position(result, std::move(col_res)); | 294 | 206 | } else if (!left_is_const && right_is_const) { | 295 | 206 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 206 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 206 | vec_res.resize(col_left->size()); | 299 | 206 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 206 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 206 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 206 | col_right->get_element(0), vec_res); | 303 | | | 304 | 206 | block.replace_by_position(result, std::move(col_res)); | 305 | 206 | } 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 | 241 | return Status::OK(); | 318 | 241 | } |
_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 | 232 | const ColumnPtr& col_right_ptr) const { | 275 | 232 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 232 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 232 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 232 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 232 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 232 | 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 | 212 | } else if (!left_is_const && right_is_const) { | 295 | 212 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 212 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 212 | vec_res.resize(col_left->size()); | 299 | 212 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 212 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 212 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 212 | col_right->get_element(0), vec_res); | 303 | | | 304 | 212 | block.replace_by_position(result, std::move(col_res)); | 305 | 212 | } 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 | 232 | return Status::OK(); | 318 | 232 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.67k | const ColumnPtr& col_right_ptr) const { | 275 | 1.67k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.67k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.67k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.67k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.67k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.67k | if (!left_is_const && !right_is_const) { | 284 | 50 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 50 | vec_res.resize(col_left->get_data().size()); | 288 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 50 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 50 | vec_res); | 292 | | | 293 | 50 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.62k | } else if (!left_is_const && right_is_const) { | 295 | 1.62k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.62k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.62k | vec_res.resize(col_left->size()); | 299 | 1.62k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.62k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.62k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.62k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.62k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.62k | } 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.67k | return Status::OK(); | 318 | 1.67k | } |
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 | 117 | const ColumnPtr& col_right_ptr) const { | 275 | 117 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 117 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 117 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 117 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 117 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 117 | 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 | 117 | } else if (!left_is_const && right_is_const) { | 295 | 117 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 117 | vec_res.resize(col_left->size()); | 299 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 117 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 117 | col_right->get_element(0), vec_res); | 303 | | | 304 | 117 | block.replace_by_position(result, std::move(col_res)); | 305 | 117 | } 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 | 117 | return Status::OK(); | 318 | 117 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.01k | const ColumnPtr& col_right_ptr) const { | 275 | 1.01k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.01k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.01k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.01k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.01k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.01k | if (!left_is_const && !right_is_const) { | 284 | 7 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 7 | vec_res.resize(col_left->get_data().size()); | 288 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 7 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 7 | vec_res); | 292 | | | 293 | 7 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.01k | } else if (!left_is_const && right_is_const) { | 295 | 1.01k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.01k | vec_res.resize(col_left->size()); | 299 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.01k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.01k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.01k | } 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.01k | return Status::OK(); | 318 | 1.01k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 497 | const ColumnPtr& col_right_ptr) const { | 275 | 497 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 497 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 497 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 497 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 497 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 497 | if (!left_is_const && !right_is_const) { | 284 | 12 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 12 | vec_res.resize(col_left->get_data().size()); | 288 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 12 | vec_res); | 292 | | | 293 | 12 | block.replace_by_position(result, std::move(col_res)); | 294 | 485 | } else if (!left_is_const && right_is_const) { | 295 | 485 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 485 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 485 | vec_res.resize(col_left->size()); | 299 | 485 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 485 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 485 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 485 | col_right->get_element(0), vec_res); | 303 | | | 304 | 485 | block.replace_by_position(result, std::move(col_res)); | 305 | 485 | } 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 | 497 | return Status::OK(); | 318 | 497 | } |
_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 | 107 | const ColumnPtr& col_right_ptr) const { | 275 | 107 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 107 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 107 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 107 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 107 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 107 | 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 | 108 | } else if (!left_is_const && right_is_const) { | 295 | 108 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 108 | vec_res.resize(col_left->size()); | 299 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 108 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 108 | col_right->get_element(0), vec_res); | 303 | | | 304 | 108 | block.replace_by_position(result, std::move(col_res)); | 305 | 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 | 107 | return Status::OK(); | 318 | 107 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 151 | const ColumnPtr& col_right_ptr) const { | 275 | 151 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 151 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 151 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 151 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 151 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 151 | 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 | 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 | 151 | return Status::OK(); | 318 | 151 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 10.3k | const ColumnPtr& col_right_ptr) const { | 275 | 10.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 10.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 10.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 10.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 10.3k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 10.3k | 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 | 10.3k | } else if (!left_is_const && right_is_const) { | 295 | 10.3k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10.3k | vec_res.resize(col_left->size()); | 299 | 10.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10.3k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10.3k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10.3k | col_right->get_element(0), vec_res); | 303 | | | 304 | 10.3k | block.replace_by_position(result, std::move(col_res)); | 305 | 10.3k | } 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.3k | return Status::OK(); | 318 | 10.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 374 | const ColumnPtr& col_right_ptr) const { | 275 | 374 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 374 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 374 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 374 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 374 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 374 | if (!left_is_const && !right_is_const) { | 284 | 17 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 17 | vec_res.resize(col_left->get_data().size()); | 288 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 17 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 17 | vec_res); | 292 | | | 293 | 17 | block.replace_by_position(result, std::move(col_res)); | 294 | 357 | } else if (!left_is_const && right_is_const) { | 295 | 357 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 357 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 357 | vec_res.resize(col_left->size()); | 299 | 357 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 357 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 357 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 357 | col_right->get_element(0), vec_res); | 303 | | | 304 | 357 | block.replace_by_position(result, std::move(col_res)); | 305 | 357 | } 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 | 374 | return Status::OK(); | 318 | 374 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 38 | const ColumnPtr& col_right_ptr) const { | 275 | 38 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 38 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 38 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 38 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 38 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 38 | 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 | 38 | } else if (!left_is_const && right_is_const) { | 295 | 38 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 38 | vec_res.resize(col_left->size()); | 299 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 38 | col_right->get_element(0), vec_res); | 303 | | | 304 | 38 | block.replace_by_position(result, std::move(col_res)); | 305 | 38 | } 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 | 38 | return Status::OK(); | 318 | 38 | } |
_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 | 126 | const ColumnPtr& col_right_ptr) const { | 275 | 126 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 126 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 126 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 126 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 126 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 126 | 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 | 106 | } else if (!left_is_const && right_is_const) { | 295 | 106 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 106 | vec_res.resize(col_left->size()); | 299 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 106 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 106 | col_right->get_element(0), vec_res); | 303 | | | 304 | 106 | block.replace_by_position(result, std::move(col_res)); | 305 | 106 | } 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 | 126 | return Status::OK(); | 318 | 126 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 180 | const ColumnPtr& col_right_ptr) const { | 275 | 180 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 180 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 180 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 180 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 180 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 180 | if (!left_is_const && !right_is_const) { | 284 | 74 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 74 | vec_res.resize(col_left->get_data().size()); | 288 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 74 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 74 | vec_res); | 292 | | | 293 | 74 | block.replace_by_position(result, std::move(col_res)); | 294 | 106 | } else if (!left_is_const && right_is_const) { | 295 | 106 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 106 | vec_res.resize(col_left->size()); | 299 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 106 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 106 | col_right->get_element(0), vec_res); | 303 | | | 304 | 106 | block.replace_by_position(result, std::move(col_res)); | 305 | 106 | } 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 | 180 | return Status::OK(); | 318 | 180 | } |
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 | 78 | const ColumnPtr& col_right_ptr) const { | 275 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 78 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 78 | if (!left_is_const && !right_is_const) { | 284 | 78 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 78 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 78 | vec_res.resize(col_left->get_data().size()); | 288 | 78 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 78 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 78 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 78 | vec_res); | 292 | | | 293 | 78 | block.replace_by_position(result, std::move(col_res)); | 294 | 78 | } 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 | 78 | return Status::OK(); | 318 | 78 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.94k | const ColumnPtr& col_right_ptr) const { | 275 | 1.94k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.94k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.94k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.94k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.94k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.94k | if (!left_is_const && !right_is_const) { | 284 | 1.56k | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 1.56k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 1.56k | vec_res.resize(col_left->get_data().size()); | 288 | 1.56k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 1.56k | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 1.56k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 1.56k | vec_res); | 292 | | | 293 | 1.56k | block.replace_by_position(result, std::move(col_res)); | 294 | 1.56k | } else if (!left_is_const && right_is_const) { | 295 | 382 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 382 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 382 | vec_res.resize(col_left->size()); | 299 | 382 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 382 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 382 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 382 | col_right->get_element(0), vec_res); | 303 | | | 304 | 382 | block.replace_by_position(result, std::move(col_res)); | 305 | 382 | } 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.94k | return Status::OK(); | 318 | 1.94k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 436 | const ColumnPtr& col_right_ptr) const { | 275 | 436 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 436 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 436 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 436 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 436 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 436 | if (!left_is_const && !right_is_const) { | 284 | 223 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 223 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 223 | vec_res.resize(col_left->get_data().size()); | 288 | 223 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 223 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 223 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 223 | vec_res); | 292 | | | 293 | 223 | block.replace_by_position(result, std::move(col_res)); | 294 | 223 | } else if (!left_is_const && right_is_const) { | 295 | 213 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 213 | vec_res.resize(col_left->size()); | 299 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 213 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 213 | col_right->get_element(0), vec_res); | 303 | | | 304 | 213 | block.replace_by_position(result, std::move(col_res)); | 305 | 213 | } 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 | 436 | return Status::OK(); | 318 | 436 | } |
_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 | 874 | const ColumnPtr& col_right_ptr) const { | 275 | 874 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 874 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 874 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 874 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 874 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 874 | if (!left_is_const && !right_is_const) { | 284 | 825 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 825 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 825 | vec_res.resize(col_left->get_data().size()); | 288 | 825 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 825 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 825 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 825 | vec_res); | 292 | | | 293 | 825 | block.replace_by_position(result, std::move(col_res)); | 294 | 825 | } else if (!left_is_const && right_is_const) { | 295 | 49 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 49 | vec_res.resize(col_left->size()); | 299 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 49 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 49 | col_right->get_element(0), vec_res); | 303 | | | 304 | 49 | block.replace_by_position(result, std::move(col_res)); | 305 | 49 | } 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 | 874 | return Status::OK(); | 318 | 874 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 204 | const ColumnPtr& col_right_ptr) const { | 275 | 204 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 204 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 204 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 204 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 204 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 205 | if (!left_is_const && !right_is_const) { | 284 | 103 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 103 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 103 | vec_res.resize(col_left->get_data().size()); | 288 | 103 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 103 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 103 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 103 | vec_res); | 292 | | | 293 | 103 | block.replace_by_position(result, std::move(col_res)); | 294 | 103 | } else if (!left_is_const && right_is_const) { | 295 | 102 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 102 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 102 | vec_res.resize(col_left->size()); | 299 | 102 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 102 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 102 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 102 | col_right->get_element(0), vec_res); | 303 | | | 304 | 102 | 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 | 204 | return Status::OK(); | 318 | 204 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.43k | const ColumnPtr& col_right_ptr) const { | 275 | 1.43k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.43k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.43k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.43k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.43k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.43k | if (!left_is_const && !right_is_const) { | 284 | 161 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 161 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 161 | vec_res.resize(col_left->get_data().size()); | 288 | 161 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 161 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 161 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 161 | vec_res); | 292 | | | 293 | 161 | block.replace_by_position(result, std::move(col_res)); | 294 | 1.27k | } else if (!left_is_const && right_is_const) { | 295 | 1.27k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 1.27k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 1.27k | vec_res.resize(col_left->size()); | 299 | 1.27k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 1.27k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 1.27k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 1.27k | col_right->get_element(0), vec_res); | 303 | | | 304 | 1.27k | block.replace_by_position(result, std::move(col_res)); | 305 | 1.27k | } 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.43k | return Status::OK(); | 318 | 1.43k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 1.24k | const ColumnPtr& col_right_ptr) const { | 275 | 1.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 1.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 1.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 1.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 1.24k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 1.24k | if (!left_is_const && !right_is_const) { | 284 | 275 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 275 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 275 | vec_res.resize(col_left->get_data().size()); | 288 | 275 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 275 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 275 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 275 | vec_res); | 292 | | | 293 | 275 | block.replace_by_position(result, std::move(col_res)); | 294 | 973 | } else if (!left_is_const && right_is_const) { | 295 | 973 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 973 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 973 | vec_res.resize(col_left->size()); | 299 | 973 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 973 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 973 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 973 | col_right->get_element(0), vec_res); | 303 | | | 304 | 973 | block.replace_by_position(result, std::move(col_res)); | 305 | 973 | } 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.24k | return Status::OK(); | 318 | 1.24k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_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 | 184 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 184 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 184 | vec_res.resize(col_left->get_data().size()); | 288 | 184 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 184 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 184 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 184 | vec_res); | 292 | | | 293 | 184 | block.replace_by_position(result, std::move(col_res)); | 294 | 184 | } 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 | 249 | return Status::OK(); | 318 | 249 | } |
_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 | 149 | const ColumnPtr& col_right_ptr) const { | 275 | 149 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 149 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 149 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 149 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 149 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 149 | if (!left_is_const && !right_is_const) { | 284 | 130 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 130 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 130 | vec_res.resize(col_left->get_data().size()); | 288 | 130 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 130 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 130 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 130 | vec_res); | 292 | | | 293 | 130 | block.replace_by_position(result, std::move(col_res)); | 294 | 130 | } else if (!left_is_const && right_is_const) { | 295 | 17 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 17 | vec_res.resize(col_left->size()); | 299 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 17 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 17 | col_right->get_element(0), vec_res); | 303 | | | 304 | 17 | block.replace_by_position(result, std::move(col_res)); | 305 | 17 | } 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 | 149 | return Status::OK(); | 318 | 149 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 358 | const ColumnPtr& col_right_ptr) const { | 275 | 358 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 358 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 358 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 358 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 358 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 358 | if (!left_is_const && !right_is_const) { | 284 | 155 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 155 | vec_res.resize(col_left->get_data().size()); | 288 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 155 | vec_res); | 292 | | | 293 | 155 | block.replace_by_position(result, std::move(col_res)); | 294 | 203 | } else if (!left_is_const && right_is_const) { | 295 | 203 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 203 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 203 | vec_res.resize(col_left->size()); | 299 | 203 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 203 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 203 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 203 | col_right->get_element(0), vec_res); | 303 | | | 304 | 203 | block.replace_by_position(result, std::move(col_res)); | 305 | 203 | } 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 | 358 | return Status::OK(); | 318 | 358 | } |
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 | 111 | const ColumnPtr& col_right_ptr) const { | 275 | 111 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 111 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 111 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 111 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 111 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 111 | 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 | 111 | } else if (!left_is_const && right_is_const) { | 295 | 111 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 111 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 111 | vec_res.resize(col_left->size()); | 299 | 111 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 111 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 111 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 111 | col_right->get_element(0), vec_res); | 303 | | | 304 | 111 | block.replace_by_position(result, std::move(col_res)); | 305 | 111 | } 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 | 111 | return Status::OK(); | 318 | 111 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 2.55k | const ColumnPtr& col_right_ptr) const { | 275 | 2.55k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 2.55k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 2.55k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 2.55k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 2.55k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 2.55k | if (!left_is_const && !right_is_const) { | 284 | 424 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 424 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 424 | vec_res.resize(col_left->get_data().size()); | 288 | 424 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 424 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 424 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 424 | vec_res); | 292 | | | 293 | 424 | block.replace_by_position(result, std::move(col_res)); | 294 | 2.12k | } else if (!left_is_const && right_is_const) { | 295 | 2.12k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 2.12k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 2.12k | vec_res.resize(col_left->size()); | 299 | 2.12k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 2.12k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 2.12k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 2.12k | col_right->get_element(0), vec_res); | 303 | | | 304 | 2.12k | block.replace_by_position(result, std::move(col_res)); | 305 | 2.12k | } 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.55k | return Status::OK(); | 318 | 2.55k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 266 | const ColumnPtr& col_right_ptr) const { | 275 | 266 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 266 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 266 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 266 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 266 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 266 | 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 | 266 | } else if (!left_is_const && right_is_const) { | 295 | 266 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 266 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 266 | vec_res.resize(col_left->size()); | 299 | 266 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 266 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 266 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 266 | col_right->get_element(0), vec_res); | 303 | | | 304 | 266 | block.replace_by_position(result, std::move(col_res)); | 305 | 266 | } 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 | 266 | return Status::OK(); | 318 | 266 | } |
_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 | 113 | const ColumnPtr& col_right_ptr) const { | 275 | 113 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 113 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 113 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 113 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 113 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 113 | 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 | 112 | } else if (!left_is_const && right_is_const) { | 295 | 112 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 112 | vec_res.resize(col_left->size()); | 299 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 112 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 112 | col_right->get_element(0), vec_res); | 303 | | | 304 | 112 | block.replace_by_position(result, std::move(col_res)); | 305 | 112 | } 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 | 113 | return Status::OK(); | 318 | 113 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_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 | 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 | 197 | } else if (!left_is_const && right_is_const) { | 295 | 197 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 197 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 197 | vec_res.resize(col_left->size()); | 299 | 197 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 197 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 197 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 197 | col_right->get_element(0), vec_res); | 303 | | | 304 | 197 | block.replace_by_position(result, std::move(col_res)); | 305 | 197 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 10.5k | const ColumnPtr& col_right_ptr) const { | 275 | 10.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 10.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 10.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 10.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 10.5k | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 10.5k | if (!left_is_const && !right_is_const) { | 284 | 67 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 67 | vec_res.resize(col_left->get_data().size()); | 288 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 67 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 67 | vec_res); | 292 | | | 293 | 67 | block.replace_by_position(result, std::move(col_res)); | 294 | 10.4k | } else if (!left_is_const && right_is_const) { | 295 | 10.4k | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 10.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 10.4k | vec_res.resize(col_left->size()); | 299 | 10.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 10.4k | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 10.4k | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 10.4k | col_right->get_element(0), vec_res); | 303 | | | 304 | 10.4k | block.replace_by_position(result, std::move(col_res)); | 305 | 10.4k | } else if (left_is_const && !right_is_const) { | 306 | 0 | auto col_res = ColumnUInt8::create(); | 307 | |
| 308 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 309 | 0 | vec_res.resize(col_right->size()); | 310 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 311 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 312 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 313 | 0 | col_right->get_data(), vec_res); | 314 | |
| 315 | 0 | block.replace_by_position(result, std::move(col_res)); | 316 | 0 | } | 317 | 10.5k | return Status::OK(); | 318 | 10.5k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 503 | const ColumnPtr& col_right_ptr) const { | 275 | 503 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 503 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 503 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 503 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 503 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 503 | if (!left_is_const && !right_is_const) { | 284 | 77 | auto col_res = ColumnUInt8::create(); | 285 | | | 286 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 287 | 77 | vec_res.resize(col_left->get_data().size()); | 288 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 289 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 290 | 77 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 291 | 77 | vec_res); | 292 | | | 293 | 77 | block.replace_by_position(result, std::move(col_res)); | 294 | 426 | } else if (!left_is_const && right_is_const) { | 295 | 425 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 425 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 425 | vec_res.resize(col_left->size()); | 299 | 425 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 425 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 425 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 425 | col_right->get_element(0), vec_res); | 303 | | | 304 | 425 | block.replace_by_position(result, std::move(col_res)); | 305 | 425 | } 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 | 503 | return Status::OK(); | 318 | 503 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 28 | const ColumnPtr& col_right_ptr) const { | 275 | 28 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 28 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 28 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 28 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 28 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 28 | if (!left_is_const && !right_is_const) { | 284 | 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 | 28 | } 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 | 28 | return Status::OK(); | 318 | 28 | } |
_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 | 119 | const ColumnPtr& col_right_ptr) const { | 275 | 119 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 119 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 119 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 119 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 119 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 119 | 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 | 100 | } else if (!left_is_const && right_is_const) { | 295 | 100 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 100 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 100 | vec_res.resize(col_left->size()); | 299 | 100 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 100 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 100 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 100 | col_right->get_element(0), vec_res); | 303 | | | 304 | 100 | block.replace_by_position(result, std::move(col_res)); | 305 | 100 | } 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 | 119 | return Status::OK(); | 318 | 119 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 274 | 148 | const ColumnPtr& col_right_ptr) const { | 275 | 148 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 276 | 148 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 277 | | | 278 | 148 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 279 | 148 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 280 | | | 281 | 148 | DCHECK(!(left_is_const && right_is_const)); | 282 | | | 283 | 148 | 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 | 128 | } else if (!left_is_const && right_is_const) { | 295 | 128 | auto col_res = ColumnUInt8::create(); | 296 | | | 297 | 128 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 298 | 128 | vec_res.resize(col_left->size()); | 299 | 128 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 300 | 128 | typename PrimitiveTypeTraits<PT>::CppType, | 301 | 128 | Op<PT>>::vector_constant(col_left->get_data(), | 302 | 128 | col_right->get_element(0), vec_res); | 303 | | | 304 | 128 | block.replace_by_position(result, std::move(col_res)); | 305 | 128 | } 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 | 148 | return Status::OK(); | 318 | 148 | } |
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 | 9.38k | const ColumnWithTypeAndName& col_right) const { |
322 | 9.38k | auto call = [&](const auto& type) -> bool { |
323 | 9.38k | using DispatchType = std::decay_t<decltype(type)>; |
324 | 9.38k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
325 | 9.38k | block, result, col_left, col_right); |
326 | 9.38k | return true; |
327 | 9.38k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 237 | auto call = [&](const auto& type) -> bool { | 323 | 237 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 237 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 237 | block, result, col_left, col_right); | 326 | 237 | return true; | 327 | 237 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 243 | auto call = [&](const auto& type) -> bool { | 323 | 243 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 243 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 243 | block, result, col_left, col_right); | 326 | 243 | return true; | 327 | 243 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 322 | 1.21k | auto call = [&](const auto& type) -> bool { | 323 | 1.21k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.21k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.21k | block, result, col_left, col_right); | 326 | 1.21k | return true; | 327 | 1.21k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 34 | auto call = [&](const auto& type) -> bool { | 323 | 34 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 34 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 34 | block, result, col_left, col_right); | 326 | 34 | return true; | 327 | 34 | }; |
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 | 60 | auto call = [&](const auto& type) -> bool { | 323 | 60 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 60 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 60 | block, result, col_left, col_right); | 326 | 60 | return true; | 327 | 60 | }; |
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 | 176 | auto call = [&](const auto& type) -> bool { | 323 | 176 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 176 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 176 | block, result, col_left, col_right); | 326 | 176 | return true; | 327 | 176 | }; |
_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 | 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 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 3.65k | auto call = [&](const auto& type) -> bool { | 323 | 3.65k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 3.65k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 3.65k | block, result, col_left, col_right); | 326 | 3.65k | return true; | 327 | 3.65k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 322 | 1.20k | auto call = [&](const auto& type) -> bool { | 323 | 1.20k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.20k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.20k | block, result, col_left, col_right); | 326 | 1.20k | return true; | 327 | 1.20k | }; |
_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 | 3 | auto call = [&](const auto& type) -> bool { | 323 | 3 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 3 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 3 | block, result, col_left, col_right); | 326 | 3 | return true; | 327 | 3 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 231 | auto call = [&](const auto& type) -> bool { | 323 | 231 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 231 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 231 | block, result, col_left, col_right); | 326 | 231 | return true; | 327 | 231 | }; |
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 | 36 | auto call = [&](const auto& type) -> bool { | 323 | 36 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 36 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 36 | block, result, col_left, col_right); | 326 | 36 | return true; | 327 | 36 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 21 | auto call = [&](const auto& type) -> bool { | 323 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 21 | block, result, col_left, col_right); | 326 | 21 | return true; | 327 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 322 | 214 | auto call = [&](const auto& type) -> bool { | 323 | 214 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 214 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 214 | block, result, col_left, col_right); | 326 | 214 | return true; | 327 | 214 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 322 | 225 | auto call = [&](const auto& type) -> bool { | 323 | 225 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 225 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 225 | block, result, col_left, col_right); | 326 | 225 | return true; | 327 | 225 | }; |
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 | 378 | auto call = [&](const auto& type) -> bool { | 323 | 378 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 378 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 378 | block, result, col_left, col_right); | 326 | 378 | return true; | 327 | 378 | }; |
_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 | 1.03k | auto call = [&](const auto& type) -> bool { | 323 | 1.03k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.03k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.03k | block, result, col_left, col_right); | 326 | 1.03k | return true; | 327 | 1.03k | }; |
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 | 345 | auto call = [&](const auto& type) -> bool { | 323 | 345 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 345 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 345 | block, result, col_left, col_right); | 326 | 345 | return true; | 327 | 345 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 322 | 16 | auto call = [&](const auto& type) -> bool { | 323 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 16 | block, result, col_left, col_right); | 326 | 16 | return true; | 327 | 16 | }; |
|
328 | | |
329 | 9.38k | 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 | 9.38k | 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 | 9.38k | return Status::OK(); |
340 | 9.38k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.72k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.72k | auto call = [&](const auto& type) -> bool { | 323 | 1.72k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.72k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.72k | block, result, col_left, col_right); | 326 | 1.72k | return true; | 327 | 1.72k | }; | 328 | | | 329 | 1.72k | 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.72k | 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.72k | return Status::OK(); | 340 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 267 | const ColumnWithTypeAndName& col_right) const { | 322 | 267 | auto call = [&](const auto& type) -> bool { | 323 | 267 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 267 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 267 | block, result, col_left, col_right); | 326 | 267 | return true; | 327 | 267 | }; | 328 | | | 329 | 267 | 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 | 267 | 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 | 267 | return Status::OK(); | 340 | 267 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 4.88k | const ColumnWithTypeAndName& col_right) const { | 322 | 4.88k | auto call = [&](const auto& type) -> bool { | 323 | 4.88k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 4.88k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 4.88k | block, result, col_left, col_right); | 326 | 4.88k | return true; | 327 | 4.88k | }; | 328 | | | 329 | 4.88k | 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 | 4.88k | 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 | 4.88k | return Status::OK(); | 340 | 4.88k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 291 | const ColumnWithTypeAndName& col_right) const { | 322 | 291 | auto call = [&](const auto& type) -> bool { | 323 | 291 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 291 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 291 | block, result, col_left, col_right); | 326 | 291 | return true; | 327 | 291 | }; | 328 | | | 329 | 291 | 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 | 291 | 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 | 291 | return Status::OK(); | 340 | 291 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 818 | const ColumnWithTypeAndName& col_right) const { | 322 | 818 | auto call = [&](const auto& type) -> bool { | 323 | 818 | using DispatchType = std::decay_t<decltype(type)>; | 324 | 818 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 818 | block, result, col_left, col_right); | 326 | 818 | return true; | 327 | 818 | }; | 328 | | | 329 | 818 | 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 | 818 | 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 | 818 | return Status::OK(); | 340 | 818 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 321 | 1.40k | const ColumnWithTypeAndName& col_right) const { | 322 | 1.40k | auto call = [&](const auto& type) -> bool { | 323 | 1.40k | using DispatchType = std::decay_t<decltype(type)>; | 324 | 1.40k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 325 | 1.40k | block, result, col_left, col_right); | 326 | 1.40k | return true; | 327 | 1.40k | }; | 328 | | | 329 | 1.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 | 1.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 | 1.40k | return Status::OK(); | 340 | 1.40k | } |
|
341 | | |
342 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
343 | 21.7k | const IColumn* c1) const { |
344 | 21.7k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
345 | 21.7k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
346 | 21.7k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
347 | 21.7k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
348 | 21.7k | 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 | 21.7k | DCHECK(!(c0_const && c1_const)); |
353 | 21.7k | const ColumnString::Chars* c0_const_chars = nullptr; |
354 | 21.7k | const ColumnString::Chars* c1_const_chars = nullptr; |
355 | 21.7k | ColumnString::Offset c0_const_size = 0; |
356 | 21.7k | ColumnString::Offset c1_const_size = 0; |
357 | | |
358 | 21.7k | 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 | 21.7k | if (c1_const) { |
372 | 20.9k | const ColumnString* c1_const_string = |
373 | 20.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
374 | | |
375 | 20.9k | if (c1_const_string) { |
376 | 20.9k | c1_const_chars = &c1_const_string->get_chars(); |
377 | 20.9k | c1_const_size = c1_const_string->get_offsets()[0]; |
378 | 20.9k | } else { |
379 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
380 | 1 | c1->get_name(), name); |
381 | 1 | } |
382 | 20.9k | } |
383 | | |
384 | 21.7k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
385 | | |
386 | 21.7k | auto c_res = ColumnUInt8::create(); |
387 | 21.7k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
388 | 21.7k | vec_res.resize(c0->size()); |
389 | | |
390 | 21.7k | if (c0_string && c1_string) { |
391 | 864 | StringImpl::string_vector_string_vector( |
392 | 864 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
393 | 864 | c1_string->get_offsets(), vec_res); |
394 | 20.9k | } else if (c0_string && c1_const) { |
395 | 20.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
396 | 20.9k | *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 | 21.7k | block.replace_by_position(result, std::move(c_res)); |
406 | 21.7k | return Status::OK(); |
407 | 21.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 19.4k | const IColumn* c1) const { | 344 | 19.4k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 19.4k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 19.4k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 19.4k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 19.4k | 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 | 19.4k | DCHECK(!(c0_const && c1_const)); | 353 | 19.4k | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 19.4k | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 19.4k | ColumnString::Offset c0_const_size = 0; | 356 | 19.4k | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 19.4k | 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 | 19.4k | if (c1_const) { | 372 | 19.0k | const ColumnString* c1_const_string = | 373 | 19.0k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 19.0k | if (c1_const_string) { | 376 | 19.0k | c1_const_chars = &c1_const_string->get_chars(); | 377 | 19.0k | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 19.0k | } else { | 379 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 1 | c1->get_name(), name); | 381 | 1 | } | 382 | 19.0k | } | 383 | | | 384 | 19.4k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 19.4k | auto c_res = ColumnUInt8::create(); | 387 | 19.4k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 19.4k | vec_res.resize(c0->size()); | 389 | | | 390 | 19.4k | if (c0_string && c1_string) { | 391 | 455 | StringImpl::string_vector_string_vector( | 392 | 455 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 455 | c1_string->get_offsets(), vec_res); | 394 | 19.0k | } else if (c0_string && c1_const) { | 395 | 19.0k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 19.0k | *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 | 19.4k | block.replace_by_position(result, std::move(c_res)); | 406 | 19.4k | return Status::OK(); | 407 | 19.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 660 | const IColumn* c1) const { | 344 | 660 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 660 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 660 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 660 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 660 | 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 | 660 | DCHECK(!(c0_const && c1_const)); | 353 | 660 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 660 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 660 | ColumnString::Offset c0_const_size = 0; | 356 | 660 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 660 | 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 | 660 | if (c1_const) { | 372 | 659 | const ColumnString* c1_const_string = | 373 | 659 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 659 | if (c1_const_string) { | 376 | 659 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 659 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 659 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 659 | } | 383 | | | 384 | 660 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 660 | auto c_res = ColumnUInt8::create(); | 387 | 660 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 660 | vec_res.resize(c0->size()); | 389 | | | 390 | 660 | 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 | 659 | } else if (c0_string && c1_const) { | 395 | 659 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 659 | *c1_const_chars, c1_const_size, vec_res); | 397 | 659 | } 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 | 660 | block.replace_by_position(result, std::move(c_res)); | 406 | 660 | return Status::OK(); | 407 | 660 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 199 | const IColumn* c1) const { | 344 | 199 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 199 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 199 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 199 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 199 | 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 | 199 | DCHECK(!(c0_const && c1_const)); | 353 | 199 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 199 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 199 | ColumnString::Offset c0_const_size = 0; | 356 | 199 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 199 | 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 | 199 | if (c1_const) { | 372 | 197 | const ColumnString* c1_const_string = | 373 | 197 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 197 | if (c1_const_string) { | 376 | 197 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 197 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 197 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 197 | } | 383 | | | 384 | 199 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 199 | auto c_res = ColumnUInt8::create(); | 387 | 199 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 199 | vec_res.resize(c0->size()); | 389 | | | 390 | 199 | 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 | 197 | } else if (c0_string && c1_const) { | 395 | 197 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 197 | *c1_const_chars, c1_const_size, vec_res); | 397 | 197 | } 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 | 199 | block.replace_by_position(result, std::move(c_res)); | 406 | 199 | return Status::OK(); | 407 | 199 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 464 | const IColumn* c1) const { | 344 | 464 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 464 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 464 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 464 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 464 | 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 | 464 | DCHECK(!(c0_const && c1_const)); | 353 | 464 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 464 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 464 | ColumnString::Offset c0_const_size = 0; | 356 | 464 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 464 | 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 | 464 | if (c1_const) { | 372 | 421 | const ColumnString* c1_const_string = | 373 | 421 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 421 | if (c1_const_string) { | 376 | 421 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 421 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 421 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 421 | } | 383 | | | 384 | 464 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 464 | auto c_res = ColumnUInt8::create(); | 387 | 464 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 464 | vec_res.resize(c0->size()); | 389 | | | 390 | 464 | 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 | 421 | } else if (c0_string && c1_const) { | 395 | 421 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 421 | *c1_const_chars, c1_const_size, vec_res); | 397 | 421 | } 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 | 464 | block.replace_by_position(result, std::move(c_res)); | 406 | 464 | return Status::OK(); | 407 | 464 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 578 | const IColumn* c1) const { | 344 | 578 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 578 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 578 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 578 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 578 | 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 | 578 | DCHECK(!(c0_const && c1_const)); | 353 | 578 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 578 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 578 | ColumnString::Offset c0_const_size = 0; | 356 | 578 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 578 | 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 | 578 | if (c1_const) { | 372 | 215 | const ColumnString* c1_const_string = | 373 | 215 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 215 | if (c1_const_string) { | 376 | 215 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 215 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 215 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 215 | } | 383 | | | 384 | 578 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 578 | auto c_res = ColumnUInt8::create(); | 387 | 578 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 578 | vec_res.resize(c0->size()); | 389 | | | 390 | 578 | if (c0_string && c1_string) { | 391 | 363 | StringImpl::string_vector_string_vector( | 392 | 363 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 393 | 363 | c1_string->get_offsets(), vec_res); | 394 | 363 | } else if (c0_string && c1_const) { | 395 | 215 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 215 | *c1_const_chars, c1_const_size, vec_res); | 397 | 215 | } 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 | 578 | block.replace_by_position(result, std::move(c_res)); | 406 | 578 | return Status::OK(); | 407 | 578 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 343 | 396 | const IColumn* c1) const { | 344 | 396 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 345 | 396 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 346 | 396 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 347 | 396 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 348 | 396 | 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 | 396 | DCHECK(!(c0_const && c1_const)); | 353 | 396 | const ColumnString::Chars* c0_const_chars = nullptr; | 354 | 396 | const ColumnString::Chars* c1_const_chars = nullptr; | 355 | 396 | ColumnString::Offset c0_const_size = 0; | 356 | 396 | ColumnString::Offset c1_const_size = 0; | 357 | | | 358 | 396 | 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 | 396 | if (c1_const) { | 372 | 396 | const ColumnString* c1_const_string = | 373 | 396 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 374 | | | 375 | 396 | if (c1_const_string) { | 376 | 396 | c1_const_chars = &c1_const_string->get_chars(); | 377 | 396 | c1_const_size = c1_const_string->get_offsets()[0]; | 378 | 396 | } else { | 379 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 380 | 0 | c1->get_name(), name); | 381 | 0 | } | 382 | 396 | } | 383 | | | 384 | 396 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 385 | | | 386 | 396 | auto c_res = ColumnUInt8::create(); | 387 | 396 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 388 | 396 | vec_res.resize(c0->size()); | 389 | | | 390 | 396 | 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 | 396 | } else if (c0_string && c1_const) { | 395 | 396 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 396 | 396 | *c1_const_chars, c1_const_size, vec_res); | 397 | 396 | } 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 | 396 | block.replace_by_position(result, std::move(c_res)); | 406 | 396 | return Status::OK(); | 407 | 396 | } |
|
408 | | |
409 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
410 | 84 | const IColumn* c1) const { |
411 | 84 | bool c0_const = is_column_const(*c0); |
412 | 84 | bool c1_const = is_column_const(*c1); |
413 | | |
414 | 84 | DCHECK(!(c0_const && c1_const)); |
415 | | |
416 | 84 | auto c_res = ColumnUInt8::create(); |
417 | 84 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
418 | 84 | vec_res.resize(c0->size()); |
419 | | |
420 | 84 | if (c0_const) { |
421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
422 | 84 | } else if (c1_const) { |
423 | 75 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
424 | 75 | } else { |
425 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
426 | 9 | } |
427 | | |
428 | 84 | block.replace_by_position(result, std::move(c_res)); |
429 | 84 | } _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 | 22 | const IColumn* c1) const { | 411 | 22 | bool c0_const = is_column_const(*c0); | 412 | 22 | bool c1_const = is_column_const(*c1); | 413 | | | 414 | 22 | DCHECK(!(c0_const && c1_const)); | 415 | | | 416 | 22 | auto c_res = ColumnUInt8::create(); | 417 | 22 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 418 | 22 | vec_res.resize(c0->size()); | 419 | | | 420 | 22 | if (c0_const) { | 421 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 422 | 22 | } else if (c1_const) { | 423 | 21 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 21 | } else { | 425 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 1 | } | 427 | | | 428 | 22 | block.replace_by_position(result, std::move(c_res)); | 429 | 22 | } |
_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 | 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 | 17 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 424 | 17 | } else { | 425 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 426 | 0 | } | 427 | | | 428 | 17 | block.replace_by_position(result, std::move(c_res)); | 429 | 17 | } |
|
430 | | |
431 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
432 | 84 | const ColumnWithTypeAndName& c1) const { |
433 | 84 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
434 | 84 | return Status::OK(); |
435 | 84 | } _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 | 22 | const ColumnWithTypeAndName& c1) const { | 433 | 22 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 434 | 22 | return Status::OK(); | 435 | 22 | } |
_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 | 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 | } |
|
436 | | |
437 | | public: |
438 | 214 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 61 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 36 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 438 | 78 | 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 | 486k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 433k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 1.29k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 440 | 6.29k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 20.8k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 440 | 3.15k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 440 | 21.3k | 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 | 486k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
444 | 486k | return std::make_shared<DataTypeUInt8>(); |
445 | 486k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 434k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 434k | return std::make_shared<DataTypeUInt8>(); | 445 | 434k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 1.29k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 1.29k | return std::make_shared<DataTypeUInt8>(); | 445 | 1.29k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 6.29k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 6.29k | return std::make_shared<DataTypeUInt8>(); | 445 | 6.29k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 20.8k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 20.8k | return std::make_shared<DataTypeUInt8>(); | 445 | 20.8k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 3.15k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 3.15k | return std::make_shared<DataTypeUInt8>(); | 445 | 3.15k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 443 | 21.3k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 444 | 21.3k | return std::make_shared<DataTypeUInt8>(); | 445 | 21.3k | } |
|
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.66k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
453 | 1.66k | DCHECK(arguments.size() == 1); |
454 | 1.66k | DCHECK(data_type_with_names.size() == 1); |
455 | 1.66k | DCHECK(iterators.size() == 1); |
456 | 1.66k | auto* iter = iterators[0]; |
457 | 1.66k | auto data_type_with_name = data_type_with_names[0]; |
458 | 1.66k | if (iter == nullptr) { |
459 | 0 | return Status::OK(); |
460 | 0 | } |
461 | 1.66k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
462 | 444 | return Status::OK(); |
463 | 444 | } |
464 | 1.21k | segment_v2::InvertedIndexQueryType query_type; |
465 | 1.21k | std::string_view name_view(name); |
466 | 1.21k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
467 | 753 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
468 | 753 | } else if (name_view == NameLess::name) { |
469 | 117 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
470 | 347 | } else if (name_view == NameLessOrEquals::name) { |
471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
472 | 249 | } else if (name_view == NameGreater::name) { |
473 | 114 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
474 | 138 | } else if (name_view == NameGreaterOrEquals::name) { |
475 | 138 | 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.22k | if (segment_v2::is_range_query(query_type) && |
481 | 1.22k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
483 | 170 | return Status::OK(); |
484 | 170 | } |
485 | 1.05k | Field param_value; |
486 | 1.05k | arguments[0].column->get(0, param_value); |
487 | 1.05k | if (param_value.is_null()) { |
488 | 1 | return Status::OK(); |
489 | 1 | } |
490 | 1.04k | auto param_type = arguments[0].type->get_primitive_type(); |
491 | 1.04k | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; |
492 | 1.04k | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( |
493 | 1.04k | param_type, ¶m_value, query_param)); |
494 | | |
495 | 1.04k | segment_v2::InvertedIndexParam param; |
496 | 1.04k | param.column_name = data_type_with_name.first; |
497 | 1.04k | param.column_type = data_type_with_name.second; |
498 | 1.04k | param.query_value = query_param->get_value(); |
499 | 1.04k | param.query_type = query_type; |
500 | 1.04k | param.num_rows = num_rows; |
501 | 1.04k | param.roaring = std::make_shared<roaring::Roaring>(); |
502 | 1.04k | param.analyzer_ctx = analyzer_ctx; |
503 | 1.04k | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
504 | 873 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
505 | 873 | if (iter->has_null()) { |
506 | 870 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
507 | 870 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
508 | 870 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
509 | 870 | } |
510 | 873 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
511 | 873 | bitmap_result = result; |
512 | 873 | bitmap_result.mask_out_null(); |
513 | | |
514 | 873 | 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 | 873 | return Status::OK(); |
521 | 873 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 769 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 769 | DCHECK(arguments.size() == 1); | 454 | 769 | DCHECK(data_type_with_names.size() == 1); | 455 | 769 | DCHECK(iterators.size() == 1); | 456 | 769 | auto* iter = iterators[0]; | 457 | 769 | auto data_type_with_name = data_type_with_names[0]; | 458 | 769 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 769 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 88 | return Status::OK(); | 463 | 88 | } | 464 | 681 | segment_v2::InvertedIndexQueryType query_type; | 465 | 681 | std::string_view name_view(name); | 466 | 683 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 683 | 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 | 683 | if (segment_v2::is_range_query(query_type) && | 481 | 683 | 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 | 683 | Field param_value; | 486 | 683 | arguments[0].column->get(0, param_value); | 487 | 683 | if (param_value.is_null()) { | 488 | 1 | return Status::OK(); | 489 | 1 | } | 490 | 682 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 682 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 682 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 682 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 682 | segment_v2::InvertedIndexParam param; | 496 | 682 | param.column_name = data_type_with_name.first; | 497 | 682 | param.column_type = data_type_with_name.second; | 498 | 682 | param.query_value = query_param->get_value(); | 499 | 682 | param.query_type = query_type; | 500 | 682 | param.num_rows = num_rows; | 501 | 682 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 682 | param.analyzer_ctx = analyzer_ctx; | 503 | 682 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 617 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 619 | if (iter->has_null()) { | 506 | 619 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 619 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 619 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 619 | } | 510 | 617 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 617 | bitmap_result = result; | 512 | 617 | bitmap_result.mask_out_null(); | 513 | | | 514 | 617 | 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 | 617 | return Status::OK(); | 521 | 617 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 77 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 77 | DCHECK(arguments.size() == 1); | 454 | 77 | DCHECK(data_type_with_names.size() == 1); | 455 | 77 | DCHECK(iterators.size() == 1); | 456 | 77 | auto* iter = iterators[0]; | 457 | 77 | auto data_type_with_name = data_type_with_names[0]; | 458 | 77 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 77 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 8 | return Status::OK(); | 463 | 8 | } | 464 | 69 | segment_v2::InvertedIndexQueryType query_type; | 465 | 69 | 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 | 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 | 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 | 63 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 63 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 63 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 63 | } | 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 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 175 | DCHECK(arguments.size() == 1); | 454 | 175 | DCHECK(data_type_with_names.size() == 1); | 455 | 175 | DCHECK(iterators.size() == 1); | 456 | 175 | auto* iter = iterators[0]; | 457 | 175 | auto data_type_with_name = data_type_with_names[0]; | 458 | 175 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 62 | return Status::OK(); | 463 | 62 | } | 464 | 113 | segment_v2::InvertedIndexQueryType query_type; | 465 | 113 | 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 | 113 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 113 | } 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 | 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 | 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 | 252 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 252 | DCHECK(arguments.size() == 1); | 454 | 252 | DCHECK(data_type_with_names.size() == 1); | 455 | 252 | DCHECK(iterators.size() == 1); | 456 | 252 | auto* iter = iterators[0]; | 457 | 252 | auto data_type_with_name = data_type_with_names[0]; | 458 | 252 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 252 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 114 | return Status::OK(); | 463 | 114 | } | 464 | 138 | segment_v2::InvertedIndexQueryType query_type; | 465 | 138 | std::string_view name_view(name); | 466 | 138 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 138 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 138 | } else if (name_view == NameLessOrEquals::name) { | 471 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 138 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 138 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 138 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 138 | } else { | 477 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 0 | } | 479 | | | 480 | 138 | if (segment_v2::is_range_query(query_type) && | 481 | 138 | 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 | 79 | Field param_value; | 486 | 79 | arguments[0].column->get(0, param_value); | 487 | 79 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 79 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 79 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 79 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 79 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 79 | segment_v2::InvertedIndexParam param; | 496 | 79 | param.column_name = data_type_with_name.first; | 497 | 79 | param.column_type = data_type_with_name.second; | 498 | 79 | param.query_value = query_param->get_value(); | 499 | 79 | param.query_type = query_type; | 500 | 79 | param.num_rows = num_rows; | 501 | 79 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 79 | param.analyzer_ctx = analyzer_ctx; | 503 | 79 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 37 | if (iter->has_null()) { | 506 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 37 | } | 510 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 37 | bitmap_result = result; | 512 | 37 | bitmap_result.mask_out_null(); | 513 | | | 514 | 37 | 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 | 37 | return Status::OK(); | 521 | 37 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 177 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 177 | DCHECK(arguments.size() == 1); | 454 | 177 | DCHECK(data_type_with_names.size() == 1); | 455 | 177 | DCHECK(iterators.size() == 1); | 456 | 177 | auto* iter = iterators[0]; | 457 | 177 | auto data_type_with_name = data_type_with_names[0]; | 458 | 177 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 177 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 60 | return Status::OK(); | 463 | 60 | } | 464 | 117 | segment_v2::InvertedIndexQueryType query_type; | 465 | 117 | std::string_view name_view(name); | 466 | 117 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 117 | } else if (name_view == NameLess::name) { | 469 | 117 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 117 | } 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 | 117 | if (segment_v2::is_range_query(query_type) && | 481 | 117 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 482 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 483 | 25 | return Status::OK(); | 484 | 25 | } | 485 | 92 | Field param_value; | 486 | 92 | arguments[0].column->get(0, param_value); | 487 | 92 | if (param_value.is_null()) { | 488 | 0 | return Status::OK(); | 489 | 0 | } | 490 | 92 | auto param_type = arguments[0].type->get_primitive_type(); | 491 | 92 | std::unique_ptr<segment_v2::InvertedIndexQueryParamFactory> query_param = nullptr; | 492 | 92 | RETURN_IF_ERROR(segment_v2::InvertedIndexQueryParamFactory::create_query_value( | 493 | 92 | param_type, ¶m_value, query_param)); | 494 | | | 495 | 92 | segment_v2::InvertedIndexParam param; | 496 | 92 | param.column_name = data_type_with_name.first; | 497 | 92 | param.column_type = data_type_with_name.second; | 498 | 92 | param.query_value = query_param->get_value(); | 499 | 92 | param.query_type = query_type; | 500 | 92 | param.num_rows = num_rows; | 501 | 92 | param.roaring = std::make_shared<roaring::Roaring>(); | 502 | 92 | param.analyzer_ctx = analyzer_ctx; | 503 | 92 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 504 | 70 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 505 | 70 | 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 | 70 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 511 | 70 | bitmap_result = result; | 512 | 70 | bitmap_result.mask_out_null(); | 513 | | | 514 | 70 | 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 | 70 | return Status::OK(); | 521 | 70 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 452 | 211 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 453 | 211 | DCHECK(arguments.size() == 1); | 454 | 211 | DCHECK(data_type_with_names.size() == 1); | 455 | 211 | DCHECK(iterators.size() == 1); | 456 | 211 | auto* iter = iterators[0]; | 457 | 211 | auto data_type_with_name = data_type_with_names[0]; | 458 | 211 | if (iter == nullptr) { | 459 | 0 | return Status::OK(); | 460 | 0 | } | 461 | 211 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 462 | 112 | return Status::OK(); | 463 | 112 | } | 464 | 99 | segment_v2::InvertedIndexQueryType query_type; | 465 | 99 | std::string_view name_view(name); | 466 | 99 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 467 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 468 | 99 | } else if (name_view == NameLess::name) { | 469 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 470 | 99 | } else if (name_view == NameLessOrEquals::name) { | 471 | 98 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 472 | 98 | } else if (name_view == NameGreater::name) { | 473 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 474 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 475 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 476 | 1 | } else { | 477 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 478 | 1 | } | 479 | | | 480 | 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 | 18 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 507 | 18 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 508 | 18 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 509 | 18 | } | 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 | 112k | uint32_t result, size_t input_rows_count) const override { |
525 | 112k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
526 | 112k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
527 | | |
528 | 112k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
529 | 112k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
530 | 112k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
531 | 112k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
532 | | |
533 | 112k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
534 | 112k | 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 | 112k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
540 | 112k | 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 | 193k | auto can_compare = [](PrimitiveType t) -> bool { |
563 | 193k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
564 | 193k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 67.3k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 67.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 67.3k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 6.28k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 6.28k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 6.28k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 46.3k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 46.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 46.3k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 26.7k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 26.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 26.7k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 15.4k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 15.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 15.4k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 562 | 30.9k | auto can_compare = [](PrimitiveType t) -> bool { | 563 | 30.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 30.9k | }; |
|
565 | | |
566 | 112k | if (can_compare(left_type->get_primitive_type()) && |
567 | 112k | 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 | 80.9k | 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 | 80.9k | } |
575 | | |
576 | 112k | auto compare_type = left_type->get_primitive_type(); |
577 | 112k | switch (compare_type) { |
578 | 1.16k | case TYPE_BOOLEAN: |
579 | 1.16k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
580 | 7.51k | case TYPE_DATEV2: |
581 | 7.51k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
582 | 1.95k | case TYPE_DATETIMEV2: |
583 | 1.95k | 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.70k | case TYPE_TINYINT: |
587 | 5.70k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
588 | 2.35k | case TYPE_SMALLINT: |
589 | 2.35k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
590 | 37.3k | case TYPE_INT: |
591 | 37.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
592 | 20.4k | case TYPE_BIGINT: |
593 | 20.4k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
594 | 697 | case TYPE_LARGEINT: |
595 | 697 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
596 | 70 | case TYPE_IPV4: |
597 | 70 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
598 | 48 | case TYPE_IPV6: |
599 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
600 | 794 | case TYPE_FLOAT: |
601 | 794 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
602 | 2.84k | case TYPE_DOUBLE: |
603 | 2.84k | 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 | 484 | case TYPE_DECIMAL32: |
609 | 5.93k | case TYPE_DECIMAL64: |
610 | 9.28k | case TYPE_DECIMAL128I: |
611 | 9.38k | case TYPE_DECIMAL256: |
612 | 9.38k | return execute_decimal(block, result, col_with_type_and_name_left, |
613 | 9.38k | col_with_type_and_name_right); |
614 | 845 | case TYPE_CHAR: |
615 | 9.17k | case TYPE_VARCHAR: |
616 | 21.7k | case TYPE_STRING: |
617 | 21.7k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
618 | 84 | default: |
619 | 84 | return execute_generic(block, result, col_with_type_and_name_left, |
620 | 84 | col_with_type_and_name_right); |
621 | 112k | } |
622 | 0 | return Status::OK(); |
623 | 112k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 44.2k | uint32_t result, size_t input_rows_count) const override { | 525 | 44.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 44.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 44.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 44.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 44.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 44.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 44.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 44.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 | 44.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 44.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 | 44.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 44.2k | }; | 565 | | | 566 | 44.2k | if (can_compare(left_type->get_primitive_type()) && | 567 | 44.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 | 23.0k | 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 | 23.0k | } | 575 | | | 576 | 44.2k | auto compare_type = left_type->get_primitive_type(); | 577 | 44.2k | switch (compare_type) { | 578 | 861 | case TYPE_BOOLEAN: | 579 | 861 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 945 | case TYPE_DATEV2: | 581 | 945 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 693 | case TYPE_DATETIMEV2: | 583 | 693 | 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.83k | case TYPE_TINYINT: | 587 | 3.83k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 720 | case TYPE_SMALLINT: | 589 | 720 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 5.99k | case TYPE_INT: | 591 | 5.99k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 9.26k | case TYPE_BIGINT: | 593 | 9.26k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 141 | case TYPE_LARGEINT: | 595 | 141 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 596 | 31 | case TYPE_IPV4: | 597 | 31 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 598 | 30 | case TYPE_IPV6: | 599 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 600 | 116 | case TYPE_FLOAT: | 601 | 116 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 414 | case TYPE_DOUBLE: | 603 | 414 | 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 | 237 | case TYPE_DECIMAL32: | 609 | 480 | case TYPE_DECIMAL64: | 610 | 1.69k | case TYPE_DECIMAL128I: | 611 | 1.72k | case TYPE_DECIMAL256: | 612 | 1.72k | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 1.72k | col_with_type_and_name_right); | 614 | 597 | case TYPE_CHAR: | 615 | 8.10k | case TYPE_VARCHAR: | 616 | 19.4k | case TYPE_STRING: | 617 | 19.4k | 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 | 44.2k | } | 622 | 0 | return Status::OK(); | 623 | 44.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 3.61k | uint32_t result, size_t input_rows_count) const override { | 525 | 3.61k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 3.61k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 3.61k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 3.61k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 3.61k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 3.61k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 3.61k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 3.61k | 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 | 3.61k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 3.61k | 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 | 3.61k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 3.61k | }; | 565 | | | 566 | 3.61k | if (can_compare(left_type->get_primitive_type()) && | 567 | 3.61k | 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.67k | 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.67k | } | 575 | | | 576 | 3.61k | auto compare_type = left_type->get_primitive_type(); | 577 | 3.61k | 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 | 49 | case TYPE_DATEV2: | 581 | 49 | 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 | 0 | case TYPE_TIMESTAMPTZ: | 585 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 586 | 96 | case TYPE_TINYINT: | 587 | 96 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 4 | case TYPE_SMALLINT: | 589 | 4 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.45k | case TYPE_INT: | 591 | 1.45k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 947 | case TYPE_BIGINT: | 593 | 947 | 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 | 60 | case TYPE_DECIMAL64: | 610 | 236 | case TYPE_DECIMAL128I: | 611 | 266 | case TYPE_DECIMAL256: | 612 | 266 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 266 | col_with_type_and_name_right); | 614 | 5 | case TYPE_CHAR: | 615 | 241 | case TYPE_VARCHAR: | 616 | 660 | case TYPE_STRING: | 617 | 660 | 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 | 3.61k | } | 622 | 0 | return Status::OK(); | 623 | 3.61k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 25.7k | uint32_t result, size_t input_rows_count) const override { | 525 | 25.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 25.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 25.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 25.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 25.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 25.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 25.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 25.7k | 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 | 25.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 25.7k | 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 | 25.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 25.7k | }; | 565 | | | 566 | 25.7k | if (can_compare(left_type->get_primitive_type()) && | 567 | 25.7k | 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 | 20.6k | 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 | 20.6k | } | 575 | | | 576 | 25.7k | auto compare_type = left_type->get_primitive_type(); | 577 | 25.7k | 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.01k | case TYPE_DATEV2: | 581 | 1.01k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 60 | case TYPE_DATETIMEV2: | 583 | 60 | 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 | 679 | case TYPE_TINYINT: | 587 | 679 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 1.07k | case TYPE_SMALLINT: | 589 | 1.07k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 7.56k | case TYPE_INT: | 591 | 7.56k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 8.06k | case TYPE_BIGINT: | 593 | 8.06k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 241 | case TYPE_LARGEINT: | 595 | 241 | 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 | 232 | case TYPE_FLOAT: | 601 | 232 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 1.67k | case TYPE_DOUBLE: | 603 | 1.67k | 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 | 22 | case TYPE_DECIMAL32: | 609 | 3.67k | case TYPE_DECIMAL64: | 610 | 4.88k | case TYPE_DECIMAL128I: | 611 | 4.88k | case TYPE_DECIMAL256: | 612 | 4.88k | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 4.88k | col_with_type_and_name_right); | 614 | 21 | case TYPE_CHAR: | 615 | 91 | case TYPE_VARCHAR: | 616 | 199 | case TYPE_STRING: | 617 | 199 | 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 | 25.7k | } | 622 | 0 | return Status::OK(); | 623 | 25.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 13.7k | uint32_t result, size_t input_rows_count) const override { | 525 | 13.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 13.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 13.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 13.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 13.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 13.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 13.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 13.7k | 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 | 13.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 13.7k | 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 | 13.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 13.7k | }; | 565 | | | 566 | 13.7k | if (can_compare(left_type->get_primitive_type()) && | 567 | 13.7k | 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 | 13.0k | 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 | 13.0k | } | 575 | | | 576 | 13.7k | auto compare_type = left_type->get_primitive_type(); | 577 | 13.7k | switch (compare_type) { | 578 | 117 | case TYPE_BOOLEAN: | 579 | 117 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 1.01k | case TYPE_DATEV2: | 581 | 1.01k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 497 | case TYPE_DATETIMEV2: | 583 | 497 | 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 | 107 | case TYPE_TINYINT: | 587 | 107 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 150 | case TYPE_SMALLINT: | 589 | 150 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 10.3k | case TYPE_INT: | 591 | 10.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 374 | case TYPE_BIGINT: | 593 | 374 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 38 | case TYPE_LARGEINT: | 595 | 38 | 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 | 126 | case TYPE_FLOAT: | 601 | 126 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 180 | case TYPE_DOUBLE: | 603 | 180 | 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 | 3 | case TYPE_DECIMAL32: | 609 | 234 | case TYPE_DECIMAL64: | 610 | 270 | case TYPE_DECIMAL128I: | 611 | 291 | case TYPE_DECIMAL256: | 612 | 291 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 291 | col_with_type_and_name_right); | 614 | 31 | case TYPE_CHAR: | 615 | 227 | case TYPE_VARCHAR: | 616 | 464 | case TYPE_STRING: | 617 | 464 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 618 | 22 | default: | 619 | 22 | return execute_generic(block, result, col_with_type_and_name_left, | 620 | 22 | col_with_type_and_name_right); | 621 | 13.7k | } | 622 | 0 | return Status::OK(); | 623 | 13.7k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 8.41k | uint32_t result, size_t input_rows_count) const override { | 525 | 8.41k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 8.41k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 8.41k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 8.41k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 8.41k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 8.41k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 8.41k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 8.41k | 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 | 8.41k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 8.41k | 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 | 8.41k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 8.41k | }; | 565 | | | 566 | 8.41k | if (can_compare(left_type->get_primitive_type()) && | 567 | 8.41k | 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 | 7.00k | 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 | 7.00k | } | 575 | | | 576 | 8.41k | auto compare_type = left_type->get_primitive_type(); | 577 | 8.41k | switch (compare_type) { | 578 | 78 | case TYPE_BOOLEAN: | 579 | 78 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 1.94k | case TYPE_DATEV2: | 581 | 1.94k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 436 | case TYPE_DATETIMEV2: | 583 | 436 | 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 | 874 | case TYPE_TINYINT: | 587 | 874 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 205 | case TYPE_SMALLINT: | 589 | 205 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 1.43k | case TYPE_INT: | 591 | 1.43k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 1.24k | case TYPE_BIGINT: | 593 | 1.24k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 249 | case TYPE_LARGEINT: | 595 | 249 | 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 | 149 | case TYPE_FLOAT: | 601 | 149 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 358 | case TYPE_DOUBLE: | 603 | 358 | 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 | 214 | case TYPE_DECIMAL32: | 609 | 439 | case TYPE_DECIMAL64: | 610 | 817 | case TYPE_DECIMAL128I: | 611 | 818 | case TYPE_DECIMAL256: | 612 | 818 | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 818 | col_with_type_and_name_right); | 614 | 166 | case TYPE_CHAR: | 615 | 341 | case TYPE_VARCHAR: | 616 | 578 | case TYPE_STRING: | 617 | 578 | 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 | 8.41k | } | 622 | 0 | return Status::OK(); | 623 | 8.41k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 524 | 16.3k | uint32_t result, size_t input_rows_count) const override { | 525 | 16.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 526 | 16.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 527 | | | 528 | 16.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 529 | 16.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 530 | 16.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 531 | 16.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 532 | | | 533 | 16.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 534 | 16.3k | 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 | 16.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 540 | 16.3k | 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 | 16.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 564 | 16.3k | }; | 565 | | | 566 | 16.3k | if (can_compare(left_type->get_primitive_type()) && | 567 | 16.3k | 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 | 14.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 | 14.5k | } | 575 | | | 576 | 16.3k | auto compare_type = left_type->get_primitive_type(); | 577 | 16.3k | switch (compare_type) { | 578 | 111 | case TYPE_BOOLEAN: | 579 | 111 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 580 | 2.55k | case TYPE_DATEV2: | 581 | 2.55k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 582 | 266 | case TYPE_DATETIMEV2: | 583 | 266 | 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 | 113 | case TYPE_TINYINT: | 587 | 113 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 588 | 197 | case TYPE_SMALLINT: | 589 | 197 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 590 | 10.5k | case TYPE_INT: | 591 | 10.5k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 592 | 503 | case TYPE_BIGINT: | 593 | 503 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 594 | 28 | case TYPE_LARGEINT: | 595 | 28 | 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 | 119 | case TYPE_FLOAT: | 601 | 119 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 602 | 148 | case TYPE_DOUBLE: | 603 | 148 | 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 | 1.04k | case TYPE_DECIMAL64: | 610 | 1.38k | case TYPE_DECIMAL128I: | 611 | 1.40k | case TYPE_DECIMAL256: | 612 | 1.40k | return execute_decimal(block, result, col_with_type_and_name_left, | 613 | 1.40k | col_with_type_and_name_right); | 614 | 25 | case TYPE_CHAR: | 615 | 172 | case TYPE_VARCHAR: | 616 | 396 | case TYPE_STRING: | 617 | 396 | 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 | 16.3k | } | 622 | 0 | return Status::OK(); | 623 | 16.3k | } |
|
624 | | }; |
625 | | |
626 | | #include "common/compile_check_end.h" |
627 | | } // namespace doris |