be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// 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. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 7.62k | PaddedPODArray<UInt8>& c) { |
72 | 7.62k | size_t size = a.size(); |
73 | 7.62k | const A* __restrict a_pos = a.data(); |
74 | 7.62k | const B* __restrict b_pos = b.data(); |
75 | 7.62k | UInt8* __restrict c_pos = c.data(); |
76 | 7.62k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 4.57M | while (a_pos < a_end) { |
79 | 4.56M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 4.56M | ++a_pos; |
81 | 4.56M | ++b_pos; |
82 | 4.56M | ++c_pos; |
83 | 4.56M | } |
84 | 7.62k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 73 | PaddedPODArray<UInt8>& c) { | 72 | 73 | size_t size = a.size(); | 73 | 73 | const A* __restrict a_pos = a.data(); | 74 | 73 | const B* __restrict b_pos = b.data(); | 75 | 73 | UInt8* __restrict c_pos = c.data(); | 76 | 73 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 146 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 185 | PaddedPODArray<UInt8>& c) { | 72 | 185 | size_t size = a.size(); | 73 | 185 | const A* __restrict a_pos = a.data(); | 74 | 185 | const B* __restrict b_pos = b.data(); | 75 | 185 | UInt8* __restrict c_pos = c.data(); | 76 | 185 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 191 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 191 | ++a_pos; | 81 | 191 | ++b_pos; | 82 | 191 | ++c_pos; | 83 | 191 | } | 84 | 185 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 219 | PaddedPODArray<UInt8>& c) { | 72 | 219 | size_t size = a.size(); | 73 | 219 | const A* __restrict a_pos = a.data(); | 74 | 219 | const B* __restrict b_pos = b.data(); | 75 | 219 | UInt8* __restrict c_pos = c.data(); | 76 | 219 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 456 | while (a_pos < a_end) { | 79 | 237 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 237 | ++a_pos; | 81 | 237 | ++b_pos; | 82 | 237 | ++c_pos; | 83 | 237 | } | 84 | 219 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 133 | PaddedPODArray<UInt8>& c) { | 72 | 133 | size_t size = a.size(); | 73 | 133 | const A* __restrict a_pos = a.data(); | 74 | 133 | const B* __restrict b_pos = b.data(); | 75 | 133 | UInt8* __restrict c_pos = c.data(); | 76 | 133 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 408 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 133 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 228 | PaddedPODArray<UInt8>& c) { | 72 | 228 | size_t size = a.size(); | 73 | 228 | const A* __restrict a_pos = a.data(); | 74 | 228 | const B* __restrict b_pos = b.data(); | 75 | 228 | UInt8* __restrict c_pos = c.data(); | 76 | 228 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.58k | while (a_pos < a_end) { | 79 | 1.35k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.35k | ++a_pos; | 81 | 1.35k | ++b_pos; | 82 | 1.35k | ++c_pos; | 83 | 1.35k | } | 84 | 228 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 120 | PaddedPODArray<UInt8>& c) { | 72 | 120 | size_t size = a.size(); | 73 | 120 | const A* __restrict a_pos = a.data(); | 74 | 120 | const B* __restrict b_pos = b.data(); | 75 | 120 | UInt8* __restrict c_pos = c.data(); | 76 | 120 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.46k | while (a_pos < a_end) { | 79 | 1.34k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.34k | ++a_pos; | 81 | 1.34k | ++b_pos; | 82 | 1.34k | ++c_pos; | 83 | 1.34k | } | 84 | 120 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 183 | while (a_pos < a_end) { | 79 | 101 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 101 | ++a_pos; | 81 | 101 | ++b_pos; | 82 | 101 | ++c_pos; | 83 | 101 | } | 84 | 82 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 83 | PaddedPODArray<UInt8>& c) { | 72 | 83 | size_t size = a.size(); | 73 | 83 | const A* __restrict a_pos = a.data(); | 74 | 83 | const B* __restrict b_pos = b.data(); | 75 | 83 | UInt8* __restrict c_pos = c.data(); | 76 | 83 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 187 | while (a_pos < a_end) { | 79 | 104 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 104 | ++a_pos; | 81 | 104 | ++b_pos; | 82 | 104 | ++c_pos; | 83 | 104 | } | 84 | 83 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 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 | 71 | 39 | PaddedPODArray<UInt8>& c) { | 72 | 39 | size_t size = a.size(); | 73 | 39 | const A* __restrict a_pos = a.data(); | 74 | 39 | const B* __restrict b_pos = b.data(); | 75 | 39 | UInt8* __restrict c_pos = c.data(); | 76 | 39 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 108 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 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 | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 839 | PaddedPODArray<UInt8>& c) { | 72 | 839 | size_t size = a.size(); | 73 | 839 | const A* __restrict a_pos = a.data(); | 74 | 839 | const B* __restrict b_pos = b.data(); | 75 | 839 | UInt8* __restrict c_pos = c.data(); | 76 | 839 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 298k | while (a_pos < a_end) { | 79 | 297k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 297k | ++a_pos; | 81 | 297k | ++b_pos; | 82 | 297k | ++c_pos; | 83 | 297k | } | 84 | 839 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 342 | PaddedPODArray<UInt8>& c) { | 72 | 342 | size_t size = a.size(); | 73 | 342 | const A* __restrict a_pos = a.data(); | 74 | 342 | const B* __restrict b_pos = b.data(); | 75 | 342 | UInt8* __restrict c_pos = c.data(); | 76 | 342 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.33k | while (a_pos < a_end) { | 79 | 5.98k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.98k | ++a_pos; | 81 | 5.98k | ++b_pos; | 82 | 5.98k | ++c_pos; | 83 | 5.98k | } | 84 | 342 | } |
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 | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 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 | 71 | 946 | PaddedPODArray<UInt8>& c) { | 72 | 946 | size_t size = a.size(); | 73 | 946 | const A* __restrict a_pos = a.data(); | 74 | 946 | const B* __restrict b_pos = b.data(); | 75 | 946 | UInt8* __restrict c_pos = c.data(); | 76 | 946 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.59M | while (a_pos < a_end) { | 79 | 1.58M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.58M | ++a_pos; | 81 | 1.58M | ++b_pos; | 82 | 1.58M | ++c_pos; | 83 | 1.58M | } | 84 | 946 | } |
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 | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 38 | PaddedPODArray<UInt8>& c) { | 72 | 38 | size_t size = a.size(); | 73 | 38 | const A* __restrict a_pos = a.data(); | 74 | 38 | const B* __restrict b_pos = b.data(); | 75 | 38 | UInt8* __restrict c_pos = c.data(); | 76 | 38 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 322 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 112 | PaddedPODArray<UInt8>& c) { | 72 | 112 | size_t size = a.size(); | 73 | 112 | const A* __restrict a_pos = a.data(); | 74 | 112 | const B* __restrict b_pos = b.data(); | 75 | 112 | UInt8* __restrict c_pos = c.data(); | 76 | 112 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 264 | ++a_pos; | 81 | 264 | ++b_pos; | 82 | 264 | ++c_pos; | 83 | 264 | } | 84 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 267 | while (a_pos < a_end) { | 79 | 220 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 220 | ++a_pos; | 81 | 220 | ++b_pos; | 82 | 220 | ++c_pos; | 83 | 220 | } | 84 | 47 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 65 | PaddedPODArray<UInt8>& c) { | 72 | 65 | size_t size = a.size(); | 73 | 65 | const A* __restrict a_pos = a.data(); | 74 | 65 | const B* __restrict b_pos = b.data(); | 75 | 65 | UInt8* __restrict c_pos = c.data(); | 76 | 65 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 587 | while (a_pos < a_end) { | 79 | 522 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 522 | ++a_pos; | 81 | 522 | ++b_pos; | 82 | 522 | ++c_pos; | 83 | 522 | } | 84 | 65 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 9 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 29 | PaddedPODArray<UInt8>& c) { | 72 | 29 | size_t size = a.size(); | 73 | 29 | const A* __restrict a_pos = a.data(); | 74 | 29 | const B* __restrict b_pos = b.data(); | 75 | 29 | UInt8* __restrict c_pos = c.data(); | 76 | 29 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 99 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 29 | } |
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 | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 7 | PaddedPODArray<UInt8>& c) { | 72 | 7 | size_t size = a.size(); | 73 | 7 | const A* __restrict a_pos = a.data(); | 74 | 7 | const B* __restrict b_pos = b.data(); | 75 | 7 | UInt8* __restrict c_pos = c.data(); | 76 | 7 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 66 | while (a_pos < a_end) { | 79 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 59 | ++a_pos; | 81 | 59 | ++b_pos; | 82 | 59 | ++c_pos; | 83 | 59 | } | 84 | 7 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
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 | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 7 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 9 | PaddedPODArray<UInt8>& c) { | 72 | 9 | size_t size = a.size(); | 73 | 9 | const A* __restrict a_pos = a.data(); | 74 | 9 | const B* __restrict b_pos = b.data(); | 75 | 9 | UInt8* __restrict c_pos = c.data(); | 76 | 9 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 55 | ++a_pos; | 81 | 55 | ++b_pos; | 82 | 55 | ++c_pos; | 83 | 55 | } | 84 | 9 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 67 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 101 | PaddedPODArray<UInt8>& c) { | 72 | 101 | size_t size = a.size(); | 73 | 101 | const A* __restrict a_pos = a.data(); | 74 | 101 | const B* __restrict b_pos = b.data(); | 75 | 101 | UInt8* __restrict c_pos = c.data(); | 76 | 101 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.75k | PaddedPODArray<UInt8>& c) { | 72 | 1.75k | size_t size = a.size(); | 73 | 1.75k | const A* __restrict a_pos = a.data(); | 74 | 1.75k | const B* __restrict b_pos = b.data(); | 75 | 1.75k | UInt8* __restrict c_pos = c.data(); | 76 | 1.75k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.65M | while (a_pos < a_end) { | 79 | 2.65M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.65M | ++a_pos; | 81 | 2.65M | ++b_pos; | 82 | 2.65M | ++c_pos; | 83 | 2.65M | } | 84 | 1.75k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 254 | PaddedPODArray<UInt8>& c) { | 72 | 254 | size_t size = a.size(); | 73 | 254 | const A* __restrict a_pos = a.data(); | 74 | 254 | const B* __restrict b_pos = b.data(); | 75 | 254 | UInt8* __restrict c_pos = c.data(); | 76 | 254 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 856 | while (a_pos < a_end) { | 79 | 602 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 602 | ++a_pos; | 81 | 602 | ++b_pos; | 82 | 602 | ++c_pos; | 83 | 602 | } | 84 | 254 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 122 | PaddedPODArray<UInt8>& c) { | 72 | 122 | size_t size = a.size(); | 73 | 122 | const A* __restrict a_pos = a.data(); | 74 | 122 | const B* __restrict b_pos = b.data(); | 75 | 122 | UInt8* __restrict c_pos = c.data(); | 76 | 122 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 420 | while (a_pos < a_end) { | 79 | 298 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 298 | ++a_pos; | 81 | 298 | ++b_pos; | 82 | 298 | ++c_pos; | 83 | 298 | } | 84 | 122 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 160 | PaddedPODArray<UInt8>& c) { | 72 | 160 | size_t size = a.size(); | 73 | 160 | const A* __restrict a_pos = a.data(); | 74 | 160 | const B* __restrict b_pos = b.data(); | 75 | 160 | UInt8* __restrict c_pos = c.data(); | 76 | 160 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 999 | while (a_pos < a_end) { | 79 | 839 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 839 | ++a_pos; | 81 | 839 | ++b_pos; | 82 | 839 | ++c_pos; | 83 | 839 | } | 84 | 160 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 202 | PaddedPODArray<UInt8>& c) { | 72 | 202 | size_t size = a.size(); | 73 | 202 | const A* __restrict a_pos = a.data(); | 74 | 202 | const B* __restrict b_pos = b.data(); | 75 | 202 | UInt8* __restrict c_pos = c.data(); | 76 | 202 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.39k | while (a_pos < a_end) { | 79 | 5.19k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.19k | ++a_pos; | 81 | 5.19k | ++b_pos; | 82 | 5.19k | ++c_pos; | 83 | 5.19k | } | 84 | 202 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 138 | PaddedPODArray<UInt8>& c) { | 72 | 138 | size_t size = a.size(); | 73 | 138 | const A* __restrict a_pos = a.data(); | 74 | 138 | const B* __restrict b_pos = b.data(); | 75 | 138 | UInt8* __restrict c_pos = c.data(); | 76 | 138 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 469 | while (a_pos < a_end) { | 79 | 331 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 331 | ++a_pos; | 81 | 331 | ++b_pos; | 82 | 331 | ++c_pos; | 83 | 331 | } | 84 | 138 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 141 | PaddedPODArray<UInt8>& c) { | 72 | 141 | size_t size = a.size(); | 73 | 141 | const A* __restrict a_pos = a.data(); | 74 | 141 | const B* __restrict b_pos = b.data(); | 75 | 141 | UInt8* __restrict c_pos = c.data(); | 76 | 141 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 482 | while (a_pos < a_end) { | 79 | 341 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 341 | ++a_pos; | 81 | 341 | ++b_pos; | 82 | 341 | ++c_pos; | 83 | 341 | } | 84 | 141 | } |
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 | 71 | 416 | PaddedPODArray<UInt8>& c) { | 72 | 416 | size_t size = a.size(); | 73 | 416 | const A* __restrict a_pos = a.data(); | 74 | 416 | const B* __restrict b_pos = b.data(); | 75 | 416 | UInt8* __restrict c_pos = c.data(); | 76 | 416 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.56k | while (a_pos < a_end) { | 79 | 6.15k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.15k | ++a_pos; | 81 | 6.15k | ++b_pos; | 82 | 6.15k | ++c_pos; | 83 | 6.15k | } | 84 | 416 | } |
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 | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 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 | 71 | 23 | PaddedPODArray<UInt8>& c) { | 72 | 23 | size_t size = a.size(); | 73 | 23 | const A* __restrict a_pos = a.data(); | 74 | 23 | const B* __restrict b_pos = b.data(); | 75 | 23 | UInt8* __restrict c_pos = c.data(); | 76 | 23 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 105 | while (a_pos < a_end) { | 79 | 82 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 82 | ++a_pos; | 81 | 82 | ++b_pos; | 82 | 82 | ++c_pos; | 83 | 82 | } | 84 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 30 | PaddedPODArray<UInt8>& c) { | 72 | 30 | size_t size = a.size(); | 73 | 30 | const A* __restrict a_pos = a.data(); | 74 | 30 | const B* __restrict b_pos = b.data(); | 75 | 30 | UInt8* __restrict c_pos = c.data(); | 76 | 30 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 34 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 34 | ++a_pos; | 81 | 34 | ++b_pos; | 82 | 34 | ++c_pos; | 83 | 34 | } | 84 | 30 | } |
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 | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 97.6k | PaddedPODArray<UInt8>& c) { |
88 | 97.6k | size_t size = a.size(); |
89 | 97.6k | const A* __restrict a_pos = a.data(); |
90 | 97.6k | UInt8* __restrict c_pos = c.data(); |
91 | 97.6k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 38.0M | while (a_pos < a_end) { |
94 | 37.9M | *c_pos = Op::apply(*a_pos, b); |
95 | 37.9M | ++a_pos; |
96 | 37.9M | ++c_pos; |
97 | 37.9M | } |
98 | 97.6k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 24 | PaddedPODArray<UInt8>& c) { | 88 | 24 | size_t size = a.size(); | 89 | 24 | const A* __restrict a_pos = a.data(); | 90 | 24 | UInt8* __restrict c_pos = c.data(); | 91 | 24 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 165 | while (a_pos < a_end) { | 94 | 141 | *c_pos = Op::apply(*a_pos, b); | 95 | 141 | ++a_pos; | 96 | 141 | ++c_pos; | 97 | 141 | } | 98 | 24 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 341 | PaddedPODArray<UInt8>& c) { | 88 | 341 | size_t size = a.size(); | 89 | 341 | const A* __restrict a_pos = a.data(); | 90 | 341 | UInt8* __restrict c_pos = c.data(); | 91 | 341 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 202k | while (a_pos < a_end) { | 94 | 202k | *c_pos = Op::apply(*a_pos, b); | 95 | 202k | ++a_pos; | 96 | 202k | ++c_pos; | 97 | 202k | } | 98 | 341 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 164 | PaddedPODArray<UInt8>& c) { | 88 | 164 | size_t size = a.size(); | 89 | 164 | const A* __restrict a_pos = a.data(); | 90 | 164 | UInt8* __restrict c_pos = c.data(); | 91 | 164 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 164 | } |
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 | 87 | 4.88k | PaddedPODArray<UInt8>& c) { | 88 | 4.88k | size_t size = a.size(); | 89 | 4.88k | const A* __restrict a_pos = a.data(); | 90 | 4.88k | UInt8* __restrict c_pos = c.data(); | 91 | 4.88k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.05M | while (a_pos < a_end) { | 94 | 9.04M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.04M | ++a_pos; | 96 | 9.04M | ++c_pos; | 97 | 9.04M | } | 98 | 4.88k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 305 | PaddedPODArray<UInt8>& c) { | 88 | 305 | size_t size = a.size(); | 89 | 305 | const A* __restrict a_pos = a.data(); | 90 | 305 | UInt8* __restrict c_pos = c.data(); | 91 | 305 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 305 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.79k | PaddedPODArray<UInt8>& c) { | 88 | 1.79k | size_t size = a.size(); | 89 | 1.79k | const A* __restrict a_pos = a.data(); | 90 | 1.79k | UInt8* __restrict c_pos = c.data(); | 91 | 1.79k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 173k | while (a_pos < a_end) { | 94 | 171k | *c_pos = Op::apply(*a_pos, b); | 95 | 171k | ++a_pos; | 96 | 171k | ++c_pos; | 97 | 171k | } | 98 | 1.79k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.32k | PaddedPODArray<UInt8>& c) { | 88 | 1.32k | size_t size = a.size(); | 89 | 1.32k | const A* __restrict a_pos = a.data(); | 90 | 1.32k | UInt8* __restrict c_pos = c.data(); | 91 | 1.32k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 732k | while (a_pos < a_end) { | 94 | 730k | *c_pos = Op::apply(*a_pos, b); | 95 | 730k | ++a_pos; | 96 | 730k | ++c_pos; | 97 | 730k | } | 98 | 1.32k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 43 | PaddedPODArray<UInt8>& c) { | 88 | 43 | size_t size = a.size(); | 89 | 43 | const A* __restrict a_pos = a.data(); | 90 | 43 | UInt8* __restrict c_pos = c.data(); | 91 | 43 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 43 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13 | PaddedPODArray<UInt8>& c) { | 88 | 13 | size_t size = a.size(); | 89 | 13 | const A* __restrict a_pos = a.data(); | 90 | 13 | UInt8* __restrict c_pos = c.data(); | 91 | 13 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 127 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 219 | PaddedPODArray<UInt8>& c) { | 88 | 219 | size_t size = a.size(); | 89 | 219 | const A* __restrict a_pos = a.data(); | 90 | 219 | UInt8* __restrict c_pos = c.data(); | 91 | 219 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 700k | while (a_pos < a_end) { | 94 | 700k | *c_pos = Op::apply(*a_pos, b); | 95 | 700k | ++a_pos; | 96 | 700k | ++c_pos; | 97 | 700k | } | 98 | 219 | } |
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 | 87 | 31 | PaddedPODArray<UInt8>& c) { | 88 | 31 | size_t size = a.size(); | 89 | 31 | const A* __restrict a_pos = a.data(); | 90 | 31 | UInt8* __restrict c_pos = c.data(); | 91 | 31 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 82 | while (a_pos < a_end) { | 94 | 51 | *c_pos = Op::apply(*a_pos, b); | 95 | 51 | ++a_pos; | 96 | 51 | ++c_pos; | 97 | 51 | } | 98 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 78 | while (a_pos < a_end) { | 94 | 50 | *c_pos = Op::apply(*a_pos, b); | 95 | 50 | ++a_pos; | 96 | 50 | ++c_pos; | 97 | 50 | } | 98 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 272 | PaddedPODArray<UInt8>& c) { | 88 | 272 | size_t size = a.size(); | 89 | 272 | const A* __restrict a_pos = a.data(); | 90 | 272 | UInt8* __restrict c_pos = c.data(); | 91 | 272 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.89k | while (a_pos < a_end) { | 94 | 1.62k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.62k | ++a_pos; | 96 | 1.62k | ++c_pos; | 97 | 1.62k | } | 98 | 272 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 761 | PaddedPODArray<UInt8>& c) { | 88 | 761 | size_t size = a.size(); | 89 | 761 | const A* __restrict a_pos = a.data(); | 90 | 761 | UInt8* __restrict c_pos = c.data(); | 91 | 761 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.89k | while (a_pos < a_end) { | 94 | 3.13k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.13k | ++a_pos; | 96 | 3.13k | ++c_pos; | 97 | 3.13k | } | 98 | 761 | } |
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 | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70 | while (a_pos < a_end) { | 94 | 42 | *c_pos = Op::apply(*a_pos, b); | 95 | 42 | ++a_pos; | 96 | 42 | ++c_pos; | 97 | 42 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282 | while (a_pos < a_end) { | 94 | 242 | *c_pos = Op::apply(*a_pos, b); | 95 | 242 | ++a_pos; | 96 | 242 | ++c_pos; | 97 | 242 | } | 98 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 41 | PaddedPODArray<UInt8>& c) { | 88 | 41 | size_t size = a.size(); | 89 | 41 | const A* __restrict a_pos = a.data(); | 90 | 41 | UInt8* __restrict c_pos = c.data(); | 91 | 41 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 149 | while (a_pos < a_end) { | 94 | 108 | *c_pos = Op::apply(*a_pos, b); | 95 | 108 | ++a_pos; | 96 | 108 | ++c_pos; | 97 | 108 | } | 98 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 448 | PaddedPODArray<UInt8>& c) { | 88 | 448 | size_t size = a.size(); | 89 | 448 | const A* __restrict a_pos = a.data(); | 90 | 448 | UInt8* __restrict c_pos = c.data(); | 91 | 448 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.10M | while (a_pos < a_end) { | 94 | 2.10M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.10M | ++a_pos; | 96 | 2.10M | ++c_pos; | 97 | 2.10M | } | 98 | 448 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6 | while (a_pos < a_end) { | 94 | 4 | *c_pos = Op::apply(*a_pos, b); | 95 | 4 | ++a_pos; | 96 | 4 | ++c_pos; | 97 | 4 | } | 98 | 2 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 59 | PaddedPODArray<UInt8>& c) { | 88 | 59 | size_t size = a.size(); | 89 | 59 | const A* __restrict a_pos = a.data(); | 90 | 59 | UInt8* __restrict c_pos = c.data(); | 91 | 59 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 269 | while (a_pos < a_end) { | 94 | 210 | *c_pos = Op::apply(*a_pos, b); | 95 | 210 | ++a_pos; | 96 | 210 | ++c_pos; | 97 | 210 | } | 98 | 59 | } |
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 | 87 | 1 | PaddedPODArray<UInt8>& c) { | 88 | 1 | size_t size = a.size(); | 89 | 1 | const A* __restrict a_pos = a.data(); | 90 | 1 | UInt8* __restrict c_pos = c.data(); | 91 | 1 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 7 | *c_pos = Op::apply(*a_pos, b); | 95 | 7 | ++a_pos; | 96 | 7 | ++c_pos; | 97 | 7 | } | 98 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.04k | PaddedPODArray<UInt8>& c) { | 88 | 1.04k | size_t size = a.size(); | 89 | 1.04k | const A* __restrict a_pos = a.data(); | 90 | 1.04k | UInt8* __restrict c_pos = c.data(); | 91 | 1.04k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.47k | while (a_pos < a_end) { | 94 | 5.43k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.43k | ++a_pos; | 96 | 5.43k | ++c_pos; | 97 | 5.43k | } | 98 | 1.04k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.00k | PaddedPODArray<UInt8>& c) { | 88 | 2.00k | size_t size = a.size(); | 89 | 2.00k | const A* __restrict a_pos = a.data(); | 90 | 2.00k | UInt8* __restrict c_pos = c.data(); | 91 | 2.00k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.56k | while (a_pos < a_end) { | 94 | 3.56k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.56k | ++a_pos; | 96 | 3.56k | ++c_pos; | 97 | 3.56k | } | 98 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.25k | while (a_pos < a_end) { | 94 | 4.80k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.80k | ++a_pos; | 96 | 4.80k | ++c_pos; | 97 | 4.80k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 242 | PaddedPODArray<UInt8>& c) { | 88 | 242 | size_t size = a.size(); | 89 | 242 | const A* __restrict a_pos = a.data(); | 90 | 242 | UInt8* __restrict c_pos = c.data(); | 91 | 242 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.20k | while (a_pos < a_end) { | 94 | 960 | *c_pos = Op::apply(*a_pos, b); | 95 | 960 | ++a_pos; | 96 | 960 | ++c_pos; | 97 | 960 | } | 98 | 242 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4.71k | PaddedPODArray<UInt8>& c) { | 88 | 4.71k | size_t size = a.size(); | 89 | 4.71k | const A* __restrict a_pos = a.data(); | 90 | 4.71k | UInt8* __restrict c_pos = c.data(); | 91 | 4.71k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 959k | while (a_pos < a_end) { | 94 | 954k | *c_pos = Op::apply(*a_pos, b); | 95 | 954k | ++a_pos; | 96 | 954k | ++c_pos; | 97 | 954k | } | 98 | 4.71k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 63.0k | PaddedPODArray<UInt8>& c) { | 88 | 63.0k | size_t size = a.size(); | 89 | 63.0k | const A* __restrict a_pos = a.data(); | 90 | 63.0k | UInt8* __restrict c_pos = c.data(); | 91 | 63.0k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.32M | while (a_pos < a_end) { | 94 | 5.25M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.25M | ++a_pos; | 96 | 5.25M | ++c_pos; | 97 | 5.25M | } | 98 | 63.0k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.29k | PaddedPODArray<UInt8>& c) { | 88 | 1.29k | size_t size = a.size(); | 89 | 1.29k | const A* __restrict a_pos = a.data(); | 90 | 1.29k | UInt8* __restrict c_pos = c.data(); | 91 | 1.29k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 97.7k | while (a_pos < a_end) { | 94 | 96.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 96.4k | ++a_pos; | 96 | 96.4k | ++c_pos; | 97 | 96.4k | } | 98 | 1.29k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.01k | PaddedPODArray<UInt8>& c) { | 88 | 1.01k | size_t size = a.size(); | 89 | 1.01k | const A* __restrict a_pos = a.data(); | 90 | 1.01k | UInt8* __restrict c_pos = c.data(); | 91 | 1.01k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 11.6k | while (a_pos < a_end) { | 94 | 10.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 10.6k | ++a_pos; | 96 | 10.6k | ++c_pos; | 97 | 10.6k | } | 98 | 1.01k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 278 | PaddedPODArray<UInt8>& c) { | 88 | 278 | size_t size = a.size(); | 89 | 278 | const A* __restrict a_pos = a.data(); | 90 | 278 | UInt8* __restrict c_pos = c.data(); | 91 | 278 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.91k | while (a_pos < a_end) { | 94 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.63k | ++a_pos; | 96 | 1.63k | ++c_pos; | 97 | 1.63k | } | 98 | 278 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 99 | PaddedPODArray<UInt8>& c) { | 88 | 99 | size_t size = a.size(); | 89 | 99 | const A* __restrict a_pos = a.data(); | 90 | 99 | UInt8* __restrict c_pos = c.data(); | 91 | 99 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86.2k | while (a_pos < a_end) { | 94 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 86.1k | ++a_pos; | 96 | 86.1k | ++c_pos; | 97 | 86.1k | } | 98 | 99 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
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 | 87 | 200 | PaddedPODArray<UInt8>& c) { | 88 | 200 | size_t size = a.size(); | 89 | 200 | const A* __restrict a_pos = a.data(); | 90 | 200 | UInt8* __restrict c_pos = c.data(); | 91 | 200 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.61k | while (a_pos < a_end) { | 94 | 2.41k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.41k | ++a_pos; | 96 | 2.41k | ++c_pos; | 97 | 2.41k | } | 98 | 200 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 503 | PaddedPODArray<UInt8>& c) { | 88 | 503 | size_t size = a.size(); | 89 | 503 | const A* __restrict a_pos = a.data(); | 90 | 503 | UInt8* __restrict c_pos = c.data(); | 91 | 503 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.44k | while (a_pos < a_end) { | 94 | 6.94k | *c_pos = Op::apply(*a_pos, b); | 95 | 6.94k | ++a_pos; | 96 | 6.94k | ++c_pos; | 97 | 6.94k | } | 98 | 503 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 246 | PaddedPODArray<UInt8>& c) { | 88 | 246 | size_t size = a.size(); | 89 | 246 | const A* __restrict a_pos = a.data(); | 90 | 246 | UInt8* __restrict c_pos = c.data(); | 91 | 246 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 607k | while (a_pos < a_end) { | 94 | 607k | *c_pos = Op::apply(*a_pos, b); | 95 | 607k | ++a_pos; | 96 | 607k | ++c_pos; | 97 | 607k | } | 98 | 246 | } |
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 | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 114k | while (a_pos < a_end) { | 94 | 114k | *c_pos = Op::apply(*a_pos, b); | 95 | 114k | ++a_pos; | 96 | 114k | ++c_pos; | 97 | 114k | } | 98 | 40 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 557 | PaddedPODArray<UInt8>& c) { | 88 | 557 | size_t size = a.size(); | 89 | 557 | const A* __restrict a_pos = a.data(); | 90 | 557 | UInt8* __restrict c_pos = c.data(); | 91 | 557 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.22M | while (a_pos < a_end) { | 94 | 2.22M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.22M | ++a_pos; | 96 | 2.22M | ++c_pos; | 97 | 2.22M | } | 98 | 557 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 188 | PaddedPODArray<UInt8>& c) { | 88 | 188 | size_t size = a.size(); | 89 | 188 | const A* __restrict a_pos = a.data(); | 90 | 188 | UInt8* __restrict c_pos = c.data(); | 91 | 188 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 723k | while (a_pos < a_end) { | 94 | 722k | *c_pos = Op::apply(*a_pos, b); | 95 | 722k | ++a_pos; | 96 | 722k | ++c_pos; | 97 | 722k | } | 98 | 188 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 139 | PaddedPODArray<UInt8>& c) { | 88 | 139 | size_t size = a.size(); | 89 | 139 | const A* __restrict a_pos = a.data(); | 90 | 139 | UInt8* __restrict c_pos = c.data(); | 91 | 139 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 521 | while (a_pos < a_end) { | 94 | 382 | *c_pos = Op::apply(*a_pos, b); | 95 | 382 | ++a_pos; | 96 | 382 | ++c_pos; | 97 | 382 | } | 98 | 139 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 77 | PaddedPODArray<UInt8>& c) { | 88 | 77 | size_t size = a.size(); | 89 | 77 | const A* __restrict a_pos = a.data(); | 90 | 77 | UInt8* __restrict c_pos = c.data(); | 91 | 77 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 432 | while (a_pos < a_end) { | 94 | 355 | *c_pos = Op::apply(*a_pos, b); | 95 | 355 | ++a_pos; | 96 | 355 | ++c_pos; | 97 | 355 | } | 98 | 77 | } |
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 | 87 | 112 | PaddedPODArray<UInt8>& c) { | 88 | 112 | size_t size = a.size(); | 89 | 112 | const A* __restrict a_pos = a.data(); | 90 | 112 | UInt8* __restrict c_pos = c.data(); | 91 | 112 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 170k | while (a_pos < a_end) { | 94 | 170k | *c_pos = Op::apply(*a_pos, b); | 95 | 170k | ++a_pos; | 96 | 170k | ++c_pos; | 97 | 170k | } | 98 | 112 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 153 | PaddedPODArray<UInt8>& c) { | 88 | 153 | size_t size = a.size(); | 89 | 153 | const A* __restrict a_pos = a.data(); | 90 | 153 | UInt8* __restrict c_pos = c.data(); | 91 | 153 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 85.5k | while (a_pos < a_end) { | 94 | 85.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 85.4k | ++a_pos; | 96 | 85.4k | ++c_pos; | 97 | 85.4k | } | 98 | 153 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 138 | PaddedPODArray<UInt8>& c) { | 88 | 138 | size_t size = a.size(); | 89 | 138 | const A* __restrict a_pos = a.data(); | 90 | 138 | UInt8* __restrict c_pos = c.data(); | 91 | 138 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 140k | while (a_pos < a_end) { | 94 | 140k | *c_pos = Op::apply(*a_pos, b); | 95 | 140k | ++a_pos; | 96 | 140k | ++c_pos; | 97 | 140k | } | 98 | 138 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 201 | PaddedPODArray<UInt8>& c) { | 88 | 201 | size_t size = a.size(); | 89 | 201 | const A* __restrict a_pos = a.data(); | 90 | 201 | UInt8* __restrict c_pos = c.data(); | 91 | 201 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 115k | while (a_pos < a_end) { | 94 | 114k | *c_pos = Op::apply(*a_pos, b); | 95 | 114k | ++a_pos; | 96 | 114k | ++c_pos; | 97 | 114k | } | 98 | 201 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.55k | PaddedPODArray<UInt8>& c) { | 88 | 1.55k | size_t size = a.size(); | 89 | 1.55k | const A* __restrict a_pos = a.data(); | 90 | 1.55k | UInt8* __restrict c_pos = c.data(); | 91 | 1.55k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.20M | while (a_pos < a_end) { | 94 | 4.20M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.20M | ++a_pos; | 96 | 4.20M | ++c_pos; | 97 | 4.20M | } | 98 | 1.55k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.67k | PaddedPODArray<UInt8>& c) { | 88 | 6.67k | size_t size = a.size(); | 89 | 6.67k | const A* __restrict a_pos = a.data(); | 90 | 6.67k | UInt8* __restrict c_pos = c.data(); | 91 | 6.67k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8.18M | while (a_pos < a_end) { | 94 | 8.18M | *c_pos = Op::apply(*a_pos, b); | 95 | 8.18M | ++a_pos; | 96 | 8.18M | ++c_pos; | 97 | 8.18M | } | 98 | 6.67k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 208 | PaddedPODArray<UInt8>& c) { | 88 | 208 | size_t size = a.size(); | 89 | 208 | const A* __restrict a_pos = a.data(); | 90 | 208 | UInt8* __restrict c_pos = c.data(); | 91 | 208 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 698 | while (a_pos < a_end) { | 94 | 490 | *c_pos = Op::apply(*a_pos, b); | 95 | 490 | ++a_pos; | 96 | 490 | ++c_pos; | 97 | 490 | } | 98 | 208 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 215 | PaddedPODArray<UInt8>& c) { | 88 | 215 | size_t size = a.size(); | 89 | 215 | const A* __restrict a_pos = a.data(); | 90 | 215 | UInt8* __restrict c_pos = c.data(); | 91 | 215 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.77k | while (a_pos < a_end) { | 94 | 2.56k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.56k | ++a_pos; | 96 | 2.56k | ++c_pos; | 97 | 2.56k | } | 98 | 215 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 30 | PaddedPODArray<UInt8>& c) { | 88 | 30 | size_t size = a.size(); | 89 | 30 | const A* __restrict a_pos = a.data(); | 90 | 30 | UInt8* __restrict c_pos = c.data(); | 91 | 30 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 137k | while (a_pos < a_end) { | 94 | 137k | *c_pos = Op::apply(*a_pos, b); | 95 | 137k | ++a_pos; | 96 | 137k | ++c_pos; | 97 | 137k | } | 98 | 30 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 39 | PaddedPODArray<UInt8>& c) { | 88 | 39 | size_t size = a.size(); | 89 | 39 | const A* __restrict a_pos = a.data(); | 90 | 39 | UInt8* __restrict c_pos = c.data(); | 91 | 39 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 112k | while (a_pos < a_end) { | 94 | 112k | *c_pos = Op::apply(*a_pos, b); | 95 | 112k | ++a_pos; | 96 | 112k | ++c_pos; | 97 | 112k | } | 98 | 39 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 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 | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 10 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 200 | PaddedPODArray<UInt8>& c) { | 88 | 200 | size_t size = a.size(); | 89 | 200 | const A* __restrict a_pos = a.data(); | 90 | 200 | UInt8* __restrict c_pos = c.data(); | 91 | 200 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 681k | while (a_pos < a_end) { | 94 | 681k | *c_pos = Op::apply(*a_pos, b); | 95 | 681k | ++a_pos; | 96 | 681k | ++c_pos; | 97 | 681k | } | 98 | 200 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 150 | PaddedPODArray<UInt8>& c) { | 88 | 150 | size_t size = a.size(); | 89 | 150 | const A* __restrict a_pos = a.data(); | 90 | 150 | UInt8* __restrict c_pos = c.data(); | 91 | 150 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 600k | while (a_pos < a_end) { | 94 | 600k | *c_pos = Op::apply(*a_pos, b); | 95 | 600k | ++a_pos; | 96 | 600k | ++c_pos; | 97 | 600k | } | 98 | 150 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 65.5k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 65.5k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 65.5k | } 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 _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 276 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 276 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 276 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 134 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 134 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 134 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 521 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 521 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 521 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 16 | } |
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 _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 734 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 734 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 734 | } |
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 _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 234 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 234 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 234 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 62.1k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 62.1k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 62.1k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 512 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 512 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 512 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 53 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 53 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 53 | } |
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_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
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 _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 121 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 121 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 121 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 73 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 73 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 73 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 77 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 77 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 77 | } |
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_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
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 _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 113 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 113 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 113 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
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 _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
103 | | }; |
104 | | |
105 | | /// Generic version, implemented for columns of same type. |
106 | | template <typename Op> |
107 | | struct GenericComparisonImpl { |
108 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
110 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
111 | 11 | } |
112 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 6 | } | 112 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 3 | } | 112 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
113 | | |
114 | 125 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 125 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 395k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 395k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 395k | } |
119 | 125 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 18 | } | 119 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 46 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 46 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 229k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 229k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 229k | } | 119 | 46 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 42 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 42 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 165k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 165k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 165k | } | 119 | 42 | } |
|
120 | | |
121 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
122 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
123 | 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 |
124 | | }; |
125 | | |
126 | | template <typename Op> |
127 | | struct StringComparisonImpl { |
128 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
129 | | const ColumnString::Offsets& a_offsets, |
130 | | const ColumnString::Chars& b_data, |
131 | | const ColumnString::Offsets& b_offsets, |
132 | 433 | PaddedPODArray<UInt8>& c) { |
133 | 433 | size_t size = a_offsets.size(); |
134 | 433 | ColumnString::Offset prev_a_offset = 0; |
135 | 433 | ColumnString::Offset prev_b_offset = 0; |
136 | 433 | const auto* a_pos = a_data.data(); |
137 | 433 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.59k | for (size_t i = 0; i < size; ++i) { |
140 | 1.15k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.15k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.15k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.15k | 0); |
144 | | |
145 | 1.15k | prev_a_offset = a_offsets[i]; |
146 | 1.15k | prev_b_offset = b_offsets[i]; |
147 | 1.15k | } |
148 | 433 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 36 | PaddedPODArray<UInt8>& c) { | 133 | 36 | size_t size = a_offsets.size(); | 134 | 36 | ColumnString::Offset prev_a_offset = 0; | 135 | 36 | ColumnString::Offset prev_b_offset = 0; | 136 | 36 | const auto* a_pos = a_data.data(); | 137 | 36 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 230 | for (size_t i = 0; i < size; ++i) { | 140 | 194 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 194 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 194 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 194 | 0); | 144 | | | 145 | 194 | prev_a_offset = a_offsets[i]; | 146 | 194 | prev_b_offset = b_offsets[i]; | 147 | 194 | } | 148 | 36 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 395 | PaddedPODArray<UInt8>& c) { | 133 | 395 | size_t size = a_offsets.size(); | 134 | 395 | ColumnString::Offset prev_a_offset = 0; | 135 | 395 | ColumnString::Offset prev_b_offset = 0; | 136 | 395 | const auto* a_pos = a_data.data(); | 137 | 395 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.31k | for (size_t i = 0; i < size; ++i) { | 140 | 917 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 917 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 917 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 917 | 0); | 144 | | | 145 | 917 | prev_a_offset = a_offsets[i]; | 146 | 917 | prev_b_offset = b_offsets[i]; | 147 | 917 | } | 148 | 395 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 763 | PaddedPODArray<UInt8>& c) { |
155 | 763 | size_t size = a_offsets.size(); |
156 | 763 | ColumnString::Offset prev_a_offset = 0; |
157 | 763 | const auto* a_pos = a_data.data(); |
158 | 763 | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.68M | for (size_t i = 0; i < size; ++i) { |
161 | 1.68M | c[i] = Op::apply( |
162 | 1.68M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.68M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.68M | 0); |
165 | | |
166 | 1.68M | prev_a_offset = a_offsets[i]; |
167 | 1.68M | } |
168 | 763 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 178 | PaddedPODArray<UInt8>& c) { | 155 | 178 | size_t size = a_offsets.size(); | 156 | 178 | ColumnString::Offset prev_a_offset = 0; | 157 | 178 | const auto* a_pos = a_data.data(); | 158 | 178 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 597k | for (size_t i = 0; i < size; ++i) { | 161 | 597k | c[i] = Op::apply( | 162 | 597k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 597k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 597k | 0); | 165 | | | 166 | 597k | prev_a_offset = a_offsets[i]; | 167 | 597k | } | 168 | 178 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 96 | PaddedPODArray<UInt8>& c) { | 155 | 96 | size_t size = a_offsets.size(); | 156 | 96 | ColumnString::Offset prev_a_offset = 0; | 157 | 96 | const auto* a_pos = a_data.data(); | 158 | 96 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 150k | for (size_t i = 0; i < size; ++i) { | 161 | 150k | c[i] = Op::apply( | 162 | 150k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 150k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 150k | 0); | 165 | | | 166 | 150k | prev_a_offset = a_offsets[i]; | 167 | 150k | } | 168 | 96 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 253 | PaddedPODArray<UInt8>& c) { | 155 | 253 | size_t size = a_offsets.size(); | 156 | 253 | ColumnString::Offset prev_a_offset = 0; | 157 | 253 | const auto* a_pos = a_data.data(); | 158 | 253 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 493k | for (size_t i = 0; i < size; ++i) { | 161 | 493k | c[i] = Op::apply( | 162 | 493k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 493k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 493k | 0); | 165 | | | 166 | 493k | prev_a_offset = a_offsets[i]; | 167 | 493k | } | 168 | 253 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 236 | PaddedPODArray<UInt8>& c) { | 155 | 236 | size_t size = a_offsets.size(); | 156 | 236 | ColumnString::Offset prev_a_offset = 0; | 157 | 236 | const auto* a_pos = a_data.data(); | 158 | 236 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 443k | for (size_t i = 0; i < size; ++i) { | 161 | 443k | c[i] = Op::apply( | 162 | 443k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 443k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 443k | 0); | 165 | | | 166 | 443k | prev_a_offset = a_offsets[i]; | 167 | 443k | } | 168 | 236 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } 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_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 389 | PaddedPODArray<UInt8>& c) { |
187 | 389 | size_t size = a_offsets.size(); |
188 | 389 | ColumnString::Offset prev_a_offset = 0; |
189 | 389 | ColumnString::Offset prev_b_offset = 0; |
190 | 389 | const auto* a_pos = a_data.data(); |
191 | 389 | const auto* b_pos = b_data.data(); |
192 | | |
193 | 1.24k | for (size_t i = 0; i < size; ++i) { |
194 | 856 | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 856 | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 856 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 856 | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 856 | prev_a_offset = a_offsets[i]; |
201 | 856 | prev_b_offset = b_offsets[i]; |
202 | 856 | } |
203 | 389 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 388 | PaddedPODArray<UInt8>& c) { | 187 | 388 | size_t size = a_offsets.size(); | 188 | 388 | ColumnString::Offset prev_a_offset = 0; | 189 | 388 | ColumnString::Offset prev_b_offset = 0; | 190 | 388 | const auto* a_pos = a_data.data(); | 191 | 388 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 1.24k | for (size_t i = 0; i < size; ++i) { | 194 | 852 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 852 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 852 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 852 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 852 | prev_a_offset = a_offsets[i]; | 201 | 852 | prev_b_offset = b_offsets[i]; | 202 | 852 | } | 203 | 388 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1 | PaddedPODArray<UInt8>& c) { | 187 | 1 | size_t size = a_offsets.size(); | 188 | 1 | ColumnString::Offset prev_a_offset = 0; | 189 | 1 | ColumnString::Offset prev_b_offset = 0; | 190 | 1 | const auto* a_pos = a_data.data(); | 191 | 1 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 5 | for (size_t i = 0; i < size; ++i) { | 194 | 4 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 4 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 4 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 4 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 4 | prev_a_offset = a_offsets[i]; | 201 | 4 | prev_b_offset = b_offsets[i]; | 202 | 4 | } | 203 | 1 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 11.0k | PaddedPODArray<UInt8>& c) { |
210 | 11.0k | size_t size = a_offsets.size(); |
211 | 11.0k | if (b_size == 0) { |
212 | 1 | auto* __restrict data = c.data(); |
213 | 1 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 1 | ColumnString::Offset prev_a_offset = 0; |
216 | 4 | for (size_t i = 0; i < size; ++i) { |
217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 3 | prev_a_offset = offsets[i]; |
219 | 3 | } |
220 | 11.0k | } else { |
221 | 11.0k | ColumnString::Offset prev_a_offset = 0; |
222 | 11.0k | const auto* a_pos = a_data.data(); |
223 | 11.0k | const auto* b_pos = b_data.data(); |
224 | 2.13M | for (size_t i = 0; i < size; ++i) { |
225 | 2.12M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 2.12M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 2.12M | b_pos, b_size); |
228 | 2.12M | prev_a_offset = a_offsets[i]; |
229 | 2.12M | } |
230 | 11.0k | } |
231 | 11.0k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 10.9k | PaddedPODArray<UInt8>& c) { | 210 | 10.9k | size_t size = a_offsets.size(); | 211 | 10.9k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 10.9k | } else { | 221 | 10.9k | ColumnString::Offset prev_a_offset = 0; | 222 | 10.9k | const auto* a_pos = a_data.data(); | 223 | 10.9k | const auto* b_pos = b_data.data(); | 224 | 2.09M | for (size_t i = 0; i < size; ++i) { | 225 | 2.08M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 2.08M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 2.08M | b_pos, b_size); | 228 | 2.08M | prev_a_offset = a_offsets[i]; | 229 | 2.08M | } | 230 | 10.9k | } | 231 | 10.9k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 96 | PaddedPODArray<UInt8>& c) { | 210 | 96 | size_t size = a_offsets.size(); | 211 | 96 | if (b_size == 0) { | 212 | 1 | auto* __restrict data = c.data(); | 213 | 1 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 1 | ColumnString::Offset prev_a_offset = 0; | 216 | 4 | for (size_t i = 0; i < size; ++i) { | 217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 3 | prev_a_offset = offsets[i]; | 219 | 3 | } | 220 | 95 | } else { | 221 | 95 | ColumnString::Offset prev_a_offset = 0; | 222 | 95 | const auto* a_pos = a_data.data(); | 223 | 95 | const auto* b_pos = b_data.data(); | 224 | 45.0k | for (size_t i = 0; i < size; ++i) { | 225 | 44.9k | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 44.9k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 44.9k | b_pos, b_size); | 228 | 44.9k | prev_a_offset = a_offsets[i]; | 229 | 44.9k | } | 230 | 95 | } | 231 | 96 | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 2.49k | Op op) { |
296 | 2.49k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 2.49k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 2.49k | slot_literal->slot_type); |
300 | 2.49k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 2.49k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 2.49k | if (zone_map_ptr == nullptr) { |
305 | 30 | return unsupported_zonemap_filter(ctx); |
306 | 30 | } |
307 | 2.46k | const auto& zone_map = *zone_map_ptr; |
308 | 2.46k | if (!zone_map.has_not_null) { |
309 | 59 | return ZoneMapFilterResult::kNoMatch; |
310 | 59 | } |
311 | 2.40k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 103 | return unsupported_zonemap_filter(ctx); |
313 | 103 | } |
314 | | |
315 | 2.29k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 2.29k | const auto& literal = slot_literal->literal; |
317 | 2.29k | switch (effective_op) { |
318 | 1.41k | case Op::EQ: |
319 | 1.41k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 1.41k | ? ZoneMapFilterResult::kNoMatch |
321 | 1.41k | : ZoneMapFilterResult::kMayMatch; |
322 | 96 | case Op::NE: |
323 | 96 | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 96 | ? ZoneMapFilterResult::kNoMatch |
325 | 96 | : ZoneMapFilterResult::kMayMatch; |
326 | 193 | case Op::LT: |
327 | 193 | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 193 | : ZoneMapFilterResult::kMayMatch; |
329 | 195 | case Op::LE: |
330 | 195 | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 195 | : ZoneMapFilterResult::kMayMatch; |
332 | 191 | case Op::GT: |
333 | 191 | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 191 | : ZoneMapFilterResult::kMayMatch; |
335 | 209 | case Op::GE: |
336 | 209 | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 209 | : ZoneMapFilterResult::kMayMatch; |
338 | 2.29k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 2.29k | } |
343 | | |
344 | 31.1k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 31.1k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 31.1k | if (!slot_literal.has_value()) { |
347 | 21.2k | return false; |
348 | 21.2k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 9.88k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 9.88k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 9.88k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 9.88k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 1 | return false; |
364 | 1 | } |
365 | | |
366 | 9.87k | return true; |
367 | 9.88k | } |
368 | | |
369 | 33.6k | inline std::optional<Op> op_from_name(std::string_view name) { |
370 | 33.6k | if (name == NameEquals::name) { |
371 | 14.9k | return Op::EQ; |
372 | 14.9k | } |
373 | 18.6k | if (name == NameNotEquals::name) { |
374 | 1.42k | return Op::NE; |
375 | 1.42k | } |
376 | 17.2k | if (name == NameLess::name) { |
377 | 4.38k | return Op::LT; |
378 | 4.38k | } |
379 | 12.8k | if (name == NameLessOrEquals::name) { |
380 | 3.04k | return Op::LE; |
381 | 3.04k | } |
382 | 9.83k | if (name == NameGreater::name) { |
383 | 4.55k | return Op::GT; |
384 | 4.55k | } |
385 | 5.32k | if (name == NameGreaterOrEquals::name) { |
386 | 5.32k | return Op::GE; |
387 | 5.32k | } |
388 | 18.4E | return std::nullopt; |
389 | 5.27k | } |
390 | | } // namespace comparison_zonemap_detail |
391 | | |
392 | | template <template <PrimitiveType> class Op, typename Name> |
393 | | class FunctionComparison : public IFunction { |
394 | | public: |
395 | | static constexpr auto name = Name::name; |
396 | 266k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 396 | 241k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 396 | 1.13k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 396 | 4.85k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 396 | 7.04k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 396 | 2.97k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 396 | 8.99k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
397 | | |
398 | 266k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 398 | 241k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 398 | 1.13k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 398 | 4.85k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 398 | 7.03k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 398 | 2.97k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 398 | 8.99k | FunctionComparison() = default; |
|
399 | | |
400 | 650k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 400 | 643k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 400 | 576 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 400 | 1.89k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 400 | 2.15k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 400 | 1.12k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 400 | 1.14k | double execute_cost() const override { return 0.5; } |
|
401 | | |
402 | | private: |
403 | | template <PrimitiveType PT> |
404 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
405 | 105k | const ColumnPtr& col_right_ptr) const { |
406 | 105k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
407 | 105k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
408 | | |
409 | 105k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
410 | 105k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
411 | | |
412 | 105k | DCHECK(!(left_is_const && right_is_const)); |
413 | | |
414 | 105k | if (!left_is_const && !right_is_const) { |
415 | 7.61k | auto col_res = ColumnUInt8::create(); |
416 | | |
417 | 7.61k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
418 | 7.61k | vec_res.resize(col_left->get_data().size()); |
419 | 7.61k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
420 | 7.61k | typename PrimitiveTypeTraits<PT>::CppType, |
421 | 7.61k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
422 | 7.61k | vec_res); |
423 | | |
424 | 7.61k | block.replace_by_position(result, std::move(col_res)); |
425 | 97.6k | } else if (!left_is_const && right_is_const) { |
426 | 32.0k | auto col_res = ColumnUInt8::create(); |
427 | | |
428 | 32.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
429 | 32.0k | vec_res.resize(col_left->size()); |
430 | 32.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
431 | 32.0k | typename PrimitiveTypeTraits<PT>::CppType, |
432 | 32.0k | Op<PT>>::vector_constant(col_left->get_data(), |
433 | 32.0k | col_right->get_element(0), vec_res); |
434 | | |
435 | 32.0k | block.replace_by_position(result, std::move(col_res)); |
436 | 65.5k | } else if (left_is_const && !right_is_const) { |
437 | 65.5k | auto col_res = ColumnUInt8::create(); |
438 | | |
439 | 65.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
440 | 65.5k | vec_res.resize(col_right->size()); |
441 | 65.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
442 | 65.5k | typename PrimitiveTypeTraits<PT>::CppType, |
443 | 65.5k | Op<PT>>::constant_vector(col_left->get_element(0), |
444 | 65.5k | col_right->get_data(), vec_res); |
445 | | |
446 | 65.5k | block.replace_by_position(result, std::move(col_res)); |
447 | 65.5k | } |
448 | 105k | return Status::OK(); |
449 | 105k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 97 | const ColumnPtr& col_right_ptr) const { | 406 | 97 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 97 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 97 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 97 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 97 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 97 | if (!left_is_const && !right_is_const) { | 415 | 73 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 73 | vec_res.resize(col_left->get_data().size()); | 419 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 73 | vec_res); | 423 | | | 424 | 73 | block.replace_by_position(result, std::move(col_res)); | 425 | 73 | } else if (!left_is_const && right_is_const) { | 426 | 24 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 24 | vec_res.resize(col_left->size()); | 430 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 24 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 24 | col_right->get_element(0), vec_res); | 434 | | | 435 | 24 | block.replace_by_position(result, std::move(col_res)); | 436 | 24 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 97 | return Status::OK(); | 449 | 97 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 526 | const ColumnPtr& col_right_ptr) const { | 406 | 526 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 526 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 526 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 526 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 526 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 526 | if (!left_is_const && !right_is_const) { | 415 | 185 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 185 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 185 | vec_res.resize(col_left->get_data().size()); | 419 | 185 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 185 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 185 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 185 | vec_res); | 423 | | | 424 | 185 | block.replace_by_position(result, std::move(col_res)); | 425 | 341 | } else if (!left_is_const && right_is_const) { | 426 | 341 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 341 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 341 | vec_res.resize(col_left->size()); | 430 | 341 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 341 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 341 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 341 | col_right->get_element(0), vec_res); | 434 | | | 435 | 341 | block.replace_by_position(result, std::move(col_res)); | 436 | 341 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 526 | return Status::OK(); | 449 | 526 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 383 | const ColumnPtr& col_right_ptr) const { | 406 | 383 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 383 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 383 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 383 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 383 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 383 | if (!left_is_const && !right_is_const) { | 415 | 219 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 219 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 219 | vec_res.resize(col_left->get_data().size()); | 419 | 219 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 219 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 219 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 219 | vec_res); | 423 | | | 424 | 219 | block.replace_by_position(result, std::move(col_res)); | 425 | 219 | } else if (!left_is_const && right_is_const) { | 426 | 164 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 164 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 164 | vec_res.resize(col_left->size()); | 430 | 164 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 164 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 164 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 164 | col_right->get_element(0), vec_res); | 434 | | | 435 | 164 | block.replace_by_position(result, std::move(col_res)); | 436 | 164 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 383 | return Status::OK(); | 449 | 383 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 5.01k | const ColumnPtr& col_right_ptr) const { | 406 | 5.01k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 5.01k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 5.01k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 5.01k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 5.01k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 5.01k | if (!left_is_const && !right_is_const) { | 415 | 133 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 133 | vec_res.resize(col_left->get_data().size()); | 419 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 133 | vec_res); | 423 | | | 424 | 133 | block.replace_by_position(result, std::move(col_res)); | 425 | 4.88k | } else if (!left_is_const && right_is_const) { | 426 | 4.60k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4.60k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4.60k | vec_res.resize(col_left->size()); | 430 | 4.60k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4.60k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4.60k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4.60k | col_right->get_element(0), vec_res); | 434 | | | 435 | 4.60k | block.replace_by_position(result, std::move(col_res)); | 436 | 4.60k | } else if (left_is_const && !right_is_const) { | 437 | 276 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 276 | vec_res.resize(col_right->size()); | 441 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 276 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 276 | col_right->get_data(), vec_res); | 445 | | | 446 | 276 | block.replace_by_position(result, std::move(col_res)); | 447 | 276 | } | 448 | 5.01k | return Status::OK(); | 449 | 5.01k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 367 | const ColumnPtr& col_right_ptr) const { | 406 | 367 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 367 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 367 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 367 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 367 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 367 | if (!left_is_const && !right_is_const) { | 415 | 62 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 62 | vec_res.resize(col_left->get_data().size()); | 419 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 62 | vec_res); | 423 | | | 424 | 62 | block.replace_by_position(result, std::move(col_res)); | 425 | 305 | } else if (!left_is_const && right_is_const) { | 426 | 269 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 269 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 269 | vec_res.resize(col_left->size()); | 430 | 269 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 269 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 269 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 269 | col_right->get_element(0), vec_res); | 434 | | | 435 | 269 | block.replace_by_position(result, std::move(col_res)); | 436 | 269 | } else if (left_is_const && !right_is_const) { | 437 | 36 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 36 | vec_res.resize(col_right->size()); | 441 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 36 | col_right->get_data(), vec_res); | 445 | | | 446 | 36 | block.replace_by_position(result, std::move(col_res)); | 447 | 36 | } | 448 | 367 | return Status::OK(); | 449 | 367 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.01k | const ColumnPtr& col_right_ptr) const { | 406 | 2.01k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.01k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.01k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.01k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.01k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.01k | if (!left_is_const && !right_is_const) { | 415 | 228 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 228 | vec_res.resize(col_left->get_data().size()); | 419 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 228 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 228 | vec_res); | 423 | | | 424 | 228 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.79k | } else if (!left_is_const && right_is_const) { | 426 | 1.65k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.65k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.65k | vec_res.resize(col_left->size()); | 430 | 1.65k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.65k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.65k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.65k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.65k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.65k | } else if (left_is_const && !right_is_const) { | 437 | 134 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 134 | vec_res.resize(col_right->size()); | 441 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 134 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 134 | col_right->get_data(), vec_res); | 445 | | | 446 | 134 | block.replace_by_position(result, std::move(col_res)); | 447 | 134 | } | 448 | 2.01k | return Status::OK(); | 449 | 2.01k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.44k | const ColumnPtr& col_right_ptr) const { | 406 | 1.44k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.44k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.44k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.44k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.44k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.44k | if (!left_is_const && !right_is_const) { | 415 | 120 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 120 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 120 | vec_res.resize(col_left->get_data().size()); | 419 | 120 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 120 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 120 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 120 | vec_res); | 423 | | | 424 | 120 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.32k | } else if (!left_is_const && right_is_const) { | 426 | 801 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 801 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 801 | vec_res.resize(col_left->size()); | 430 | 801 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 801 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 801 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 801 | col_right->get_element(0), vec_res); | 434 | | | 435 | 801 | block.replace_by_position(result, std::move(col_res)); | 436 | 801 | } else if (left_is_const && !right_is_const) { | 437 | 521 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 521 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 521 | vec_res.resize(col_right->size()); | 441 | 521 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 521 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 521 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 521 | col_right->get_data(), vec_res); | 445 | | | 446 | 521 | block.replace_by_position(result, std::move(col_res)); | 447 | 521 | } | 448 | 1.44k | return Status::OK(); | 449 | 1.44k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 105 | const ColumnPtr& col_right_ptr) const { | 406 | 105 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 105 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 105 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 105 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 105 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 105 | if (!left_is_const && !right_is_const) { | 415 | 62 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 62 | vec_res.resize(col_left->get_data().size()); | 419 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 62 | vec_res); | 423 | | | 424 | 62 | block.replace_by_position(result, std::move(col_res)); | 425 | 62 | } else if (!left_is_const && right_is_const) { | 426 | 27 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 27 | vec_res.resize(col_left->size()); | 430 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 27 | col_right->get_element(0), vec_res); | 434 | | | 435 | 27 | block.replace_by_position(result, std::move(col_res)); | 436 | 27 | } else if (left_is_const && !right_is_const) { | 437 | 16 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 16 | vec_res.resize(col_right->size()); | 441 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 16 | col_right->get_data(), vec_res); | 445 | | | 446 | 16 | block.replace_by_position(result, std::move(col_res)); | 447 | 16 | } | 448 | 105 | return Status::OK(); | 449 | 105 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 18 | const ColumnPtr& col_right_ptr) const { | 406 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 18 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 18 | if (!left_is_const && !right_is_const) { | 415 | 5 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 5 | vec_res.resize(col_left->get_data().size()); | 419 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 5 | vec_res); | 423 | | | 424 | 5 | block.replace_by_position(result, std::move(col_res)); | 425 | 13 | } else if (!left_is_const && right_is_const) { | 426 | 13 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 13 | vec_res.resize(col_left->size()); | 430 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 13 | col_right->get_element(0), vec_res); | 434 | | | 435 | 13 | block.replace_by_position(result, std::move(col_res)); | 436 | 13 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 18 | return Status::OK(); | 449 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 19 | const ColumnPtr& col_right_ptr) const { | 406 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 19 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 19 | if (!left_is_const && !right_is_const) { | 415 | 13 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 13 | vec_res.resize(col_left->get_data().size()); | 419 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 13 | vec_res); | 423 | | | 424 | 13 | block.replace_by_position(result, std::move(col_res)); | 425 | 13 | } else if (!left_is_const && right_is_const) { | 426 | 6 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6 | vec_res.resize(col_left->size()); | 430 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6 | col_right->get_element(0), vec_res); | 434 | | | 435 | 6 | block.replace_by_position(result, std::move(col_res)); | 436 | 6 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 19 | return Status::OK(); | 449 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 82 | const ColumnPtr& col_right_ptr) const { | 406 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 82 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 82 | if (!left_is_const && !right_is_const) { | 415 | 82 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 82 | vec_res.resize(col_left->get_data().size()); | 419 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 82 | vec_res); | 423 | | | 424 | 82 | block.replace_by_position(result, std::move(col_res)); | 425 | 82 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 82 | return Status::OK(); | 449 | 82 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 302 | const ColumnPtr& col_right_ptr) const { | 406 | 302 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 302 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 302 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 302 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 302 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 302 | if (!left_is_const && !right_is_const) { | 415 | 83 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 83 | vec_res.resize(col_left->get_data().size()); | 419 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 83 | vec_res); | 423 | | | 424 | 83 | block.replace_by_position(result, std::move(col_res)); | 425 | 219 | } else if (!left_is_const && right_is_const) { | 426 | 219 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 219 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 219 | vec_res.resize(col_left->size()); | 430 | 219 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 219 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 219 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 219 | col_right->get_element(0), vec_res); | 434 | | | 435 | 219 | block.replace_by_position(result, std::move(col_res)); | 436 | 219 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 302 | return Status::OK(); | 449 | 302 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 4 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 4 | vec_res.resize(col_left->get_data().size()); | 419 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 4 | vec_res); | 423 | | | 424 | 4 | block.replace_by_position(result, std::move(col_res)); | 425 | 4 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 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 | 405 | 69 | const ColumnPtr& col_right_ptr) const { | 406 | 69 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 69 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 69 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 69 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 69 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 69 | if (!left_is_const && !right_is_const) { | 415 | 38 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 38 | vec_res.resize(col_left->get_data().size()); | 419 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 38 | vec_res); | 423 | | | 424 | 38 | block.replace_by_position(result, std::move(col_res)); | 425 | 38 | } else if (!left_is_const && right_is_const) { | 426 | 31 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 31 | vec_res.resize(col_left->size()); | 430 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 31 | col_right->get_element(0), vec_res); | 434 | | | 435 | 31 | block.replace_by_position(result, std::move(col_res)); | 436 | 31 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 69 | return Status::OK(); | 449 | 69 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 84 | const ColumnPtr& col_right_ptr) const { | 406 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 84 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 84 | if (!left_is_const && !right_is_const) { | 415 | 56 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 56 | vec_res.resize(col_left->get_data().size()); | 419 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 56 | vec_res); | 423 | | | 424 | 56 | block.replace_by_position(result, std::move(col_res)); | 425 | 56 | } else if (!left_is_const && right_is_const) { | 426 | 28 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 28 | vec_res.resize(col_left->size()); | 430 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 28 | col_right->get_element(0), vec_res); | 434 | | | 435 | 28 | block.replace_by_position(result, std::move(col_res)); | 436 | 28 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 84 | return Status::OK(); | 449 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.11k | const ColumnPtr& col_right_ptr) const { | 406 | 1.11k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.11k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.11k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.11k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.11k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.11k | if (!left_is_const && !right_is_const) { | 415 | 839 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 839 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 839 | vec_res.resize(col_left->get_data().size()); | 419 | 839 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 839 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 839 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 839 | vec_res); | 423 | | | 424 | 839 | block.replace_by_position(result, std::move(col_res)); | 425 | 839 | } else if (!left_is_const && right_is_const) { | 426 | 272 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 272 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 272 | vec_res.resize(col_left->size()); | 430 | 272 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 272 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 272 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 272 | col_right->get_element(0), vec_res); | 434 | | | 435 | 272 | block.replace_by_position(result, std::move(col_res)); | 436 | 272 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.11k | return Status::OK(); | 449 | 1.11k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.10k | const ColumnPtr& col_right_ptr) const { | 406 | 1.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.10k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.10k | if (!left_is_const && !right_is_const) { | 415 | 342 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 342 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 342 | vec_res.resize(col_left->get_data().size()); | 419 | 342 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 342 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 342 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 342 | vec_res); | 423 | | | 424 | 342 | block.replace_by_position(result, std::move(col_res)); | 425 | 761 | } else if (!left_is_const && right_is_const) { | 426 | 27 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 27 | vec_res.resize(col_left->size()); | 430 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 27 | col_right->get_element(0), vec_res); | 434 | | | 435 | 27 | block.replace_by_position(result, std::move(col_res)); | 436 | 734 | } else if (left_is_const && !right_is_const) { | 437 | 734 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 734 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 734 | vec_res.resize(col_right->size()); | 441 | 734 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 734 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 734 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 734 | col_right->get_data(), vec_res); | 445 | | | 446 | 734 | block.replace_by_position(result, std::move(col_res)); | 447 | 734 | } | 448 | 1.10k | return Status::OK(); | 449 | 1.10k | } |
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 | 405 | 48 | const ColumnPtr& col_right_ptr) const { | 406 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 48 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 48 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 28 | } else if (!left_is_const && right_is_const) { | 426 | 28 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 28 | vec_res.resize(col_left->size()); | 430 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 28 | col_right->get_element(0), vec_res); | 434 | | | 435 | 28 | block.replace_by_position(result, std::move(col_res)); | 436 | 28 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 48 | return Status::OK(); | 449 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 60 | const ColumnPtr& col_right_ptr) const { | 406 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 60 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 60 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 40 | } else if (!left_is_const && right_is_const) { | 426 | 40 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 40 | vec_res.resize(col_left->size()); | 430 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 40 | col_right->get_element(0), vec_res); | 434 | | | 435 | 40 | block.replace_by_position(result, std::move(col_res)); | 436 | 40 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 60 | return Status::OK(); | 449 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 987 | const ColumnPtr& col_right_ptr) const { | 406 | 987 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 987 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 987 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 987 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 987 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 987 | if (!left_is_const && !right_is_const) { | 415 | 946 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 946 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 946 | vec_res.resize(col_left->get_data().size()); | 419 | 946 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 946 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 946 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 946 | vec_res); | 423 | | | 424 | 946 | block.replace_by_position(result, std::move(col_res)); | 425 | 946 | } else if (!left_is_const && right_is_const) { | 426 | 41 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 41 | vec_res.resize(col_left->size()); | 430 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 41 | col_right->get_element(0), vec_res); | 434 | | | 435 | 41 | block.replace_by_position(result, std::move(col_res)); | 436 | 41 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 987 | return Status::OK(); | 449 | 987 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 2 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2 | vec_res.resize(col_left->size()); | 430 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2 | col_right->get_element(0), vec_res); | 434 | | | 435 | 2 | block.replace_by_position(result, std::move(col_res)); | 436 | 2 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.07k | const ColumnPtr& col_right_ptr) const { | 406 | 1.07k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.07k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.07k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.07k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.07k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.07k | if (!left_is_const && !right_is_const) { | 415 | 38 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 38 | vec_res.resize(col_left->get_data().size()); | 419 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 38 | vec_res); | 423 | | | 424 | 38 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.03k | } else if (!left_is_const && right_is_const) { | 426 | 802 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 802 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 802 | vec_res.resize(col_left->size()); | 430 | 802 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 802 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 802 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 802 | col_right->get_element(0), vec_res); | 434 | | | 435 | 802 | block.replace_by_position(result, std::move(col_res)); | 436 | 802 | } else if (left_is_const && !right_is_const) { | 437 | 234 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 234 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 234 | vec_res.resize(col_right->size()); | 441 | 234 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 234 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 234 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 234 | col_right->get_data(), vec_res); | 445 | | | 446 | 234 | block.replace_by_position(result, std::move(col_res)); | 447 | 234 | } | 448 | 1.07k | return Status::OK(); | 449 | 1.07k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.78k | const ColumnPtr& col_right_ptr) const { | 406 | 1.78k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.78k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.78k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.78k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.78k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.78k | if (!left_is_const && !right_is_const) { | 415 | 112 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 112 | vec_res.resize(col_left->get_data().size()); | 419 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 112 | vec_res); | 423 | | | 424 | 112 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.67k | } else if (!left_is_const && right_is_const) { | 426 | 1.44k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.44k | vec_res.resize(col_left->size()); | 430 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.44k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.44k | } else if (left_is_const && !right_is_const) { | 437 | 228 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 228 | vec_res.resize(col_right->size()); | 441 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 228 | col_right->get_data(), vec_res); | 445 | | | 446 | 228 | block.replace_by_position(result, std::move(col_res)); | 447 | 228 | } | 448 | 1.78k | return Status::OK(); | 449 | 1.78k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 66.8k | const ColumnPtr& col_right_ptr) const { | 406 | 66.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 66.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 66.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 66.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 66.8k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 66.8k | if (!left_is_const && !right_is_const) { | 415 | 47 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 47 | vec_res.resize(col_left->get_data().size()); | 419 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 47 | vec_res); | 423 | | | 424 | 47 | block.replace_by_position(result, std::move(col_res)); | 425 | 66.7k | } else if (!left_is_const && right_is_const) { | 426 | 4.58k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4.58k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4.58k | vec_res.resize(col_left->size()); | 430 | 4.58k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4.58k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4.58k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4.58k | col_right->get_element(0), vec_res); | 434 | | | 435 | 4.58k | block.replace_by_position(result, std::move(col_res)); | 436 | 62.1k | } else if (left_is_const && !right_is_const) { | 437 | 62.1k | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 62.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 62.1k | vec_res.resize(col_right->size()); | 441 | 62.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 62.1k | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 62.1k | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 62.1k | col_right->get_data(), vec_res); | 445 | | | 446 | 62.1k | block.replace_by_position(result, std::move(col_res)); | 447 | 62.1k | } | 448 | 66.8k | return Status::OK(); | 449 | 66.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.79k | const ColumnPtr& col_right_ptr) const { | 406 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.79k | if (!left_is_const && !right_is_const) { | 415 | 65 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 65 | vec_res.resize(col_left->get_data().size()); | 419 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 65 | vec_res); | 423 | | | 424 | 65 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.73k | } else if (!left_is_const && right_is_const) { | 426 | 1.22k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.22k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.22k | vec_res.resize(col_left->size()); | 430 | 1.22k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.22k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.22k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.22k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.22k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.22k | } else if (left_is_const && !right_is_const) { | 437 | 512 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 512 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 512 | vec_res.resize(col_right->size()); | 441 | 512 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 512 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 512 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 512 | col_right->get_data(), vec_res); | 445 | | | 446 | 512 | block.replace_by_position(result, std::move(col_res)); | 447 | 512 | } | 448 | 1.79k | return Status::OK(); | 449 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 257 | const ColumnPtr& col_right_ptr) const { | 406 | 257 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 257 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 257 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 257 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 257 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 257 | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 254 | } else if (!left_is_const && right_is_const) { | 426 | 201 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 201 | vec_res.resize(col_left->size()); | 430 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 201 | col_right->get_element(0), vec_res); | 434 | | | 435 | 201 | block.replace_by_position(result, std::move(col_res)); | 436 | 201 | } else if (left_is_const && !right_is_const) { | 437 | 53 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 53 | vec_res.resize(col_right->size()); | 441 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 53 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 53 | col_right->get_data(), vec_res); | 445 | | | 446 | 53 | block.replace_by_position(result, std::move(col_res)); | 447 | 53 | } | 448 | 257 | return Status::OK(); | 449 | 257 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 3 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 3 | vec_res.resize(col_left->size()); | 430 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 3 | col_right->get_element(0), vec_res); | 434 | | | 435 | 3 | block.replace_by_position(result, std::move(col_res)); | 436 | 3 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 220 | const ColumnPtr& col_right_ptr) const { | 406 | 220 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 220 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 220 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 220 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 220 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 220 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 200 | } else if (!left_is_const && right_is_const) { | 426 | 200 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 200 | vec_res.resize(col_left->size()); | 430 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 200 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 200 | col_right->get_element(0), vec_res); | 434 | | | 435 | 200 | block.replace_by_position(result, std::move(col_res)); | 436 | 200 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 220 | return Status::OK(); | 449 | 220 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 532 | const ColumnPtr& col_right_ptr) const { | 406 | 532 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 532 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 532 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 532 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 532 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 532 | if (!left_is_const && !right_is_const) { | 415 | 29 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 29 | vec_res.resize(col_left->get_data().size()); | 419 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 29 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 29 | vec_res); | 423 | | | 424 | 29 | block.replace_by_position(result, std::move(col_res)); | 425 | 503 | } else if (!left_is_const && right_is_const) { | 426 | 503 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 503 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 503 | vec_res.resize(col_left->size()); | 430 | 503 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 503 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 503 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 503 | col_right->get_element(0), vec_res); | 434 | | | 435 | 503 | block.replace_by_position(result, std::move(col_res)); | 436 | 503 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 532 | return Status::OK(); | 449 | 532 | } |
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 | 405 | 26 | const ColumnPtr& col_right_ptr) const { | 406 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 26 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 26 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 26 | } else if (!left_is_const && right_is_const) { | 426 | 26 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 26 | vec_res.resize(col_left->size()); | 430 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 26 | col_right->get_element(0), vec_res); | 434 | | | 435 | 26 | block.replace_by_position(result, std::move(col_res)); | 436 | 26 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 26 | return Status::OK(); | 449 | 26 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 559 | const ColumnPtr& col_right_ptr) const { | 406 | 559 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 559 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 559 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 559 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 559 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 559 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 558 | } else if (!left_is_const && right_is_const) { | 426 | 552 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 552 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 552 | vec_res.resize(col_left->size()); | 430 | 552 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 552 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 552 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 552 | col_right->get_element(0), vec_res); | 434 | | | 435 | 552 | block.replace_by_position(result, std::move(col_res)); | 436 | 552 | } else if (left_is_const && !right_is_const) { | 437 | 6 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 6 | vec_res.resize(col_right->size()); | 441 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 6 | col_right->get_data(), vec_res); | 445 | | | 446 | 6 | block.replace_by_position(result, std::move(col_res)); | 447 | 6 | } | 448 | 559 | return Status::OK(); | 449 | 559 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 146 | const ColumnPtr& col_right_ptr) const { | 406 | 146 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 146 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 146 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 146 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 146 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 146 | if (!left_is_const && !right_is_const) { | 415 | 7 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 7 | vec_res.resize(col_left->get_data().size()); | 419 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 7 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 7 | vec_res); | 423 | | | 424 | 7 | block.replace_by_position(result, std::move(col_res)); | 425 | 139 | } else if (!left_is_const && right_is_const) { | 426 | 139 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 139 | vec_res.resize(col_left->size()); | 430 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 139 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 139 | col_right->get_element(0), vec_res); | 434 | | | 435 | 139 | block.replace_by_position(result, std::move(col_res)); | 436 | 139 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 146 | return Status::OK(); | 449 | 146 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 112 | const ColumnPtr& col_right_ptr) const { | 406 | 112 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 112 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 112 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 112 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 112 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 112 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 112 | } else if (!left_is_const && right_is_const) { | 426 | 112 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 112 | vec_res.resize(col_left->size()); | 430 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 112 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 112 | col_right->get_element(0), vec_res); | 434 | | | 435 | 112 | block.replace_by_position(result, std::move(col_res)); | 436 | 112 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 112 | return Status::OK(); | 449 | 112 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 138 | const ColumnPtr& col_right_ptr) const { | 406 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 138 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 138 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 138 | } else if (!left_is_const && right_is_const) { | 426 | 138 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 138 | vec_res.resize(col_left->size()); | 430 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 138 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 138 | col_right->get_element(0), vec_res); | 434 | | | 435 | 138 | block.replace_by_position(result, std::move(col_res)); | 436 | 138 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 138 | return Status::OK(); | 449 | 138 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.44k | const ColumnPtr& col_right_ptr) const { | 406 | 1.44k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.44k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.44k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.44k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.44k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.44k | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.44k | } else if (!left_is_const && right_is_const) { | 426 | 1.44k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.44k | vec_res.resize(col_left->size()); | 430 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.44k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.44k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.44k | return Status::OK(); | 449 | 1.44k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 181 | const ColumnPtr& col_right_ptr) const { | 406 | 181 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 181 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 181 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 181 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 181 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 181 | if (!left_is_const && !right_is_const) { | 415 | 9 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 9 | vec_res.resize(col_left->get_data().size()); | 419 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 9 | vec_res); | 423 | | | 424 | 9 | block.replace_by_position(result, std::move(col_res)); | 425 | 172 | } else if (!left_is_const && right_is_const) { | 426 | 172 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 172 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 172 | vec_res.resize(col_left->size()); | 430 | 172 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 172 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 172 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 172 | col_right->get_element(0), vec_res); | 434 | | | 435 | 172 | block.replace_by_position(result, std::move(col_res)); | 436 | 172 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 181 | return Status::OK(); | 449 | 181 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 30 | const ColumnPtr& col_right_ptr) const { | 406 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 30 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 30 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 30 | } else if (!left_is_const && right_is_const) { | 426 | 30 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 30 | vec_res.resize(col_left->size()); | 430 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 30 | col_right->get_element(0), vec_res); | 434 | | | 435 | 30 | block.replace_by_position(result, std::move(col_res)); | 436 | 30 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 30 | return Status::OK(); | 449 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 11 | const ColumnPtr& col_right_ptr) const { | 406 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 11 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 11 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 11 | return Status::OK(); | 449 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 24 | const ColumnPtr& col_right_ptr) const { | 406 | 24 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 24 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 24 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 24 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 24 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 24 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 20 | } else if (!left_is_const && right_is_const) { | 426 | 4 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4 | vec_res.resize(col_left->size()); | 430 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4 | col_right->get_element(0), vec_res); | 434 | | | 435 | 4 | block.replace_by_position(result, std::move(col_res)); | 436 | 4 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 24 | return Status::OK(); | 449 | 24 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 223 | const ColumnPtr& col_right_ptr) const { | 406 | 223 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 223 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 223 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 223 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 223 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 223 | if (!left_is_const && !right_is_const) { | 415 | 24 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 24 | vec_res.resize(col_left->get_data().size()); | 419 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 24 | vec_res); | 423 | | | 424 | 24 | block.replace_by_position(result, std::move(col_res)); | 425 | 199 | } else if (!left_is_const && right_is_const) { | 426 | 199 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 199 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 199 | vec_res.resize(col_left->size()); | 430 | 199 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 199 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 199 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 199 | col_right->get_element(0), vec_res); | 434 | | | 435 | 199 | block.replace_by_position(result, std::move(col_res)); | 436 | 199 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 223 | return Status::OK(); | 449 | 223 | } |
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 | 405 | 101 | const ColumnPtr& col_right_ptr) const { | 406 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 101 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 101 | if (!left_is_const && !right_is_const) { | 415 | 101 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 101 | vec_res.resize(col_left->get_data().size()); | 419 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 101 | vec_res); | 423 | | | 424 | 101 | block.replace_by_position(result, std::move(col_res)); | 425 | 101 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 101 | return Status::OK(); | 449 | 101 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.20k | const ColumnPtr& col_right_ptr) const { | 406 | 2.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.20k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.20k | if (!left_is_const && !right_is_const) { | 415 | 1.75k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.75k | vec_res.resize(col_left->get_data().size()); | 419 | 1.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.75k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.75k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.75k | vec_res); | 423 | | | 424 | 1.75k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.75k | } else if (!left_is_const && right_is_const) { | 426 | 448 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 448 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 448 | vec_res.resize(col_left->size()); | 430 | 448 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 448 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 448 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 448 | col_right->get_element(0), vec_res); | 434 | | | 435 | 448 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2.20k | return Status::OK(); | 449 | 2.20k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 313 | const ColumnPtr& col_right_ptr) const { | 406 | 313 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 313 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 313 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 313 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 313 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 313 | if (!left_is_const && !right_is_const) { | 415 | 254 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 254 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 254 | vec_res.resize(col_left->get_data().size()); | 419 | 254 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 254 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 254 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 254 | vec_res); | 423 | | | 424 | 254 | block.replace_by_position(result, std::move(col_res)); | 425 | 254 | } else if (!left_is_const && right_is_const) { | 426 | 59 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 59 | vec_res.resize(col_left->size()); | 430 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 59 | col_right->get_element(0), vec_res); | 434 | | | 435 | 59 | block.replace_by_position(result, std::move(col_res)); | 436 | 59 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 313 | return Status::OK(); | 449 | 313 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 1 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1 | vec_res.resize(col_left->size()); | 430 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1 | col_right->get_element(0), vec_res); | 434 | | | 435 | 1 | block.replace_by_position(result, std::move(col_res)); | 436 | 1 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.14k | const ColumnPtr& col_right_ptr) const { | 406 | 2.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.14k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.14k | if (!left_is_const && !right_is_const) { | 415 | 142 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 142 | vec_res.resize(col_left->get_data().size()); | 419 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 142 | vec_res); | 423 | | | 424 | 142 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.00k | } else if (!left_is_const && right_is_const) { | 426 | 1.76k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.76k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.76k | vec_res.resize(col_left->size()); | 430 | 1.76k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.76k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.76k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.76k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.76k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.76k | } else if (left_is_const && !right_is_const) { | 437 | 240 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 240 | vec_res.resize(col_right->size()); | 441 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 240 | col_right->get_data(), vec_res); | 445 | | | 446 | 240 | block.replace_by_position(result, std::move(col_res)); | 447 | 240 | } | 448 | 2.14k | return Status::OK(); | 449 | 2.14k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 136 | const ColumnPtr& col_right_ptr) const { | 406 | 136 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 136 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 136 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 136 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 136 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 136 | if (!left_is_const && !right_is_const) { | 415 | 122 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 122 | vec_res.resize(col_left->get_data().size()); | 419 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 122 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 122 | vec_res); | 423 | | | 424 | 122 | block.replace_by_position(result, std::move(col_res)); | 425 | 122 | } else if (!left_is_const && right_is_const) { | 426 | 14 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 14 | vec_res.resize(col_left->size()); | 430 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 14 | col_right->get_element(0), vec_res); | 434 | | | 435 | 14 | block.replace_by_position(result, std::move(col_res)); | 436 | 14 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 136 | return Status::OK(); | 449 | 136 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.15k | const ColumnPtr& col_right_ptr) const { | 406 | 1.15k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.15k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.15k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.15k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.15k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.15k | if (!left_is_const && !right_is_const) { | 415 | 160 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 160 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 160 | vec_res.resize(col_left->get_data().size()); | 419 | 160 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 160 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 160 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 160 | vec_res); | 423 | | | 424 | 160 | block.replace_by_position(result, std::move(col_res)); | 425 | 999 | } else if (!left_is_const && right_is_const) { | 426 | 878 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 878 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 878 | vec_res.resize(col_left->size()); | 430 | 878 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 878 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 878 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 878 | col_right->get_element(0), vec_res); | 434 | | | 435 | 878 | block.replace_by_position(result, std::move(col_res)); | 436 | 878 | } else if (left_is_const && !right_is_const) { | 437 | 121 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 121 | vec_res.resize(col_right->size()); | 441 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 121 | col_right->get_data(), vec_res); | 445 | | | 446 | 121 | block.replace_by_position(result, std::move(col_res)); | 447 | 121 | } | 448 | 1.15k | return Status::OK(); | 449 | 1.15k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 779 | const ColumnPtr& col_right_ptr) const { | 406 | 779 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 779 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 779 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 779 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 779 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 779 | if (!left_is_const && !right_is_const) { | 415 | 202 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 202 | vec_res.resize(col_left->get_data().size()); | 419 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 202 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 202 | vec_res); | 423 | | | 424 | 202 | block.replace_by_position(result, std::move(col_res)); | 425 | 577 | } else if (!left_is_const && right_is_const) { | 426 | 504 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 504 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 504 | vec_res.resize(col_left->size()); | 430 | 504 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 504 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 504 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 504 | col_right->get_element(0), vec_res); | 434 | | | 435 | 504 | block.replace_by_position(result, std::move(col_res)); | 436 | 504 | } else if (left_is_const && !right_is_const) { | 437 | 73 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 73 | vec_res.resize(col_right->size()); | 441 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 73 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 73 | col_right->get_data(), vec_res); | 445 | | | 446 | 73 | block.replace_by_position(result, std::move(col_res)); | 447 | 73 | } | 448 | 779 | return Status::OK(); | 449 | 779 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 265 | const ColumnPtr& col_right_ptr) const { | 406 | 265 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 265 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 265 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 265 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 265 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 265 | if (!left_is_const && !right_is_const) { | 415 | 142 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 142 | vec_res.resize(col_left->get_data().size()); | 419 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 142 | vec_res); | 423 | | | 424 | 142 | block.replace_by_position(result, std::move(col_res)); | 425 | 142 | } else if (!left_is_const && right_is_const) { | 426 | 46 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 46 | vec_res.resize(col_left->size()); | 430 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 46 | col_right->get_element(0), vec_res); | 434 | | | 435 | 46 | block.replace_by_position(result, std::move(col_res)); | 436 | 77 | } else if (left_is_const && !right_is_const) { | 437 | 77 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 77 | vec_res.resize(col_right->size()); | 441 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 77 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 77 | col_right->get_data(), vec_res); | 445 | | | 446 | 77 | block.replace_by_position(result, std::move(col_res)); | 447 | 77 | } | 448 | 265 | return Status::OK(); | 449 | 265 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 18 | const ColumnPtr& col_right_ptr) const { | 406 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 18 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 18 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 2 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2 | vec_res.resize(col_left->size()); | 430 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2 | col_right->get_element(0), vec_res); | 434 | | | 435 | 2 | block.replace_by_position(result, std::move(col_res)); | 436 | 2 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 18 | return Status::OK(); | 449 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 16 | const ColumnPtr& col_right_ptr) const { | 406 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 16 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 16 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 16 | return Status::OK(); | 449 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 138 | const ColumnPtr& col_right_ptr) const { | 406 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 138 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 138 | if (!left_is_const && !right_is_const) { | 415 | 138 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 138 | vec_res.resize(col_left->get_data().size()); | 419 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 138 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 138 | vec_res); | 423 | | | 424 | 138 | block.replace_by_position(result, std::move(col_res)); | 425 | 138 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 138 | return Status::OK(); | 449 | 138 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 387 | const ColumnPtr& col_right_ptr) const { | 406 | 387 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 387 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 387 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 387 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 387 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 387 | if (!left_is_const && !right_is_const) { | 415 | 141 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 141 | vec_res.resize(col_left->get_data().size()); | 419 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 141 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 141 | vec_res); | 423 | | | 424 | 141 | block.replace_by_position(result, std::move(col_res)); | 425 | 246 | } else if (!left_is_const && right_is_const) { | 426 | 246 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 246 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 246 | vec_res.resize(col_left->size()); | 430 | 246 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 246 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 246 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 246 | col_right->get_element(0), vec_res); | 434 | | | 435 | 246 | block.replace_by_position(result, std::move(col_res)); | 436 | 246 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 387 | return Status::OK(); | 449 | 387 | } |
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 | 405 | 40 | const ColumnPtr& col_right_ptr) const { | 406 | 40 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 40 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 40 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 40 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 40 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 40 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 40 | } else if (!left_is_const && right_is_const) { | 426 | 40 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 40 | vec_res.resize(col_left->size()); | 430 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 40 | col_right->get_element(0), vec_res); | 434 | | | 435 | 40 | block.replace_by_position(result, std::move(col_res)); | 436 | 40 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 40 | return Status::OK(); | 449 | 40 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 599 | const ColumnPtr& col_right_ptr) const { | 406 | 599 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 599 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 599 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 599 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 599 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 599 | if (!left_is_const && !right_is_const) { | 415 | 414 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 414 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 414 | vec_res.resize(col_left->get_data().size()); | 419 | 414 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 414 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 414 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 414 | vec_res); | 423 | | | 424 | 414 | block.replace_by_position(result, std::move(col_res)); | 425 | 414 | } else if (!left_is_const && right_is_const) { | 426 | 182 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 182 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 182 | vec_res.resize(col_left->size()); | 430 | 182 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 182 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 182 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 182 | col_right->get_element(0), vec_res); | 434 | | | 435 | 182 | block.replace_by_position(result, std::move(col_res)); | 436 | 182 | } else if (left_is_const && !right_is_const) { | 437 | 5 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 5 | vec_res.resize(col_right->size()); | 441 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 5 | col_right->get_data(), vec_res); | 445 | | | 446 | 5 | block.replace_by_position(result, std::move(col_res)); | 447 | 5 | } | 448 | 599 | return Status::OK(); | 449 | 599 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 77 | const ColumnPtr& col_right_ptr) const { | 406 | 77 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 77 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 77 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 77 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 77 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 77 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 77 | } else if (!left_is_const && right_is_const) { | 426 | 77 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 77 | vec_res.resize(col_left->size()); | 430 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 77 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 77 | col_right->get_element(0), vec_res); | 434 | | | 435 | 77 | block.replace_by_position(result, std::move(col_res)); | 436 | 77 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 77 | return Status::OK(); | 449 | 77 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 154 | const ColumnPtr& col_right_ptr) const { | 406 | 154 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 154 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 154 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 154 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 154 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 154 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 153 | } else if (!left_is_const && right_is_const) { | 426 | 153 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 153 | vec_res.resize(col_left->size()); | 430 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 153 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 153 | col_right->get_element(0), vec_res); | 434 | | | 435 | 153 | block.replace_by_position(result, std::move(col_res)); | 436 | 153 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 154 | return Status::OK(); | 449 | 154 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 201 | const ColumnPtr& col_right_ptr) const { | 406 | 201 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 201 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 201 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 201 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 201 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 201 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 201 | } else if (!left_is_const && right_is_const) { | 426 | 201 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 201 | vec_res.resize(col_left->size()); | 430 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 201 | col_right->get_element(0), vec_res); | 434 | | | 435 | 201 | block.replace_by_position(result, std::move(col_res)); | 436 | 201 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 201 | return Status::OK(); | 449 | 201 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 6.81k | const ColumnPtr& col_right_ptr) const { | 406 | 6.81k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 6.81k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 6.81k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 6.81k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 6.81k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 6.81k | if (!left_is_const && !right_is_const) { | 415 | 23 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 23 | vec_res.resize(col_left->get_data().size()); | 419 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 23 | vec_res); | 423 | | | 424 | 23 | block.replace_by_position(result, std::move(col_res)); | 425 | 6.79k | } else if (!left_is_const && right_is_const) { | 426 | 6.67k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6.67k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6.67k | vec_res.resize(col_left->size()); | 430 | 6.67k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6.67k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6.67k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6.67k | col_right->get_element(0), vec_res); | 434 | | | 435 | 6.67k | block.replace_by_position(result, std::move(col_res)); | 436 | 6.67k | } else if (left_is_const && !right_is_const) { | 437 | 113 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 113 | vec_res.resize(col_right->size()); | 441 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 113 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 113 | col_right->get_data(), vec_res); | 445 | | | 446 | 113 | block.replace_by_position(result, std::move(col_res)); | 447 | 113 | } | 448 | 6.81k | return Status::OK(); | 449 | 6.81k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 281 | const ColumnPtr& col_right_ptr) const { | 406 | 281 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 281 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 281 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 281 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 281 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 281 | if (!left_is_const && !right_is_const) { | 415 | 30 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 30 | vec_res.resize(col_left->get_data().size()); | 419 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 30 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 30 | vec_res); | 423 | | | 424 | 30 | block.replace_by_position(result, std::move(col_res)); | 425 | 251 | } else if (!left_is_const && right_is_const) { | 426 | 215 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 215 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 215 | vec_res.resize(col_left->size()); | 430 | 215 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 215 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 215 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 215 | col_right->get_element(0), vec_res); | 434 | | | 435 | 215 | block.replace_by_position(result, std::move(col_res)); | 436 | 215 | } else if (left_is_const && !right_is_const) { | 437 | 36 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 36 | vec_res.resize(col_right->size()); | 441 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 36 | col_right->get_data(), vec_res); | 445 | | | 446 | 36 | block.replace_by_position(result, std::move(col_res)); | 447 | 36 | } | 448 | 281 | return Status::OK(); | 449 | 281 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 39 | const ColumnPtr& col_right_ptr) const { | 406 | 39 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 39 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 39 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 39 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 39 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 39 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 39 | } else if (!left_is_const && right_is_const) { | 426 | 39 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 39 | vec_res.resize(col_left->size()); | 430 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 39 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 39 | col_right->get_element(0), vec_res); | 434 | | | 435 | 39 | block.replace_by_position(result, std::move(col_res)); | 436 | 39 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 39 | return Status::OK(); | 449 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 10 | const ColumnPtr& col_right_ptr) const { | 406 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 10 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 10 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 10 | return Status::OK(); | 449 | 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 | 405 | 20 | const ColumnPtr& col_right_ptr) const { | 406 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 20 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 20 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 20 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 20 | return Status::OK(); | 449 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 171 | const ColumnPtr& col_right_ptr) const { | 406 | 171 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 171 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 171 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 171 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 171 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 171 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 151 | } else if (!left_is_const && right_is_const) { | 426 | 150 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 150 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 150 | vec_res.resize(col_left->size()); | 430 | 150 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 150 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 150 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 150 | col_right->get_element(0), vec_res); | 434 | | | 435 | 150 | block.replace_by_position(result, std::move(col_res)); | 436 | 150 | } else if (left_is_const && !right_is_const) { | 437 | 1 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 1 | vec_res.resize(col_right->size()); | 441 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 1 | col_right->get_data(), vec_res); | 445 | | | 446 | 1 | block.replace_by_position(result, std::move(col_res)); | 447 | 1 | } | 448 | 171 | return Status::OK(); | 449 | 171 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
450 | | |
451 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
452 | 3.05k | const ColumnWithTypeAndName& col_right) const { |
453 | 3.05k | auto call = [&](const auto& type) -> bool { |
454 | 3.05k | using DispatchType = std::decay_t<decltype(type)>; |
455 | 3.05k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
456 | 3.05k | block, result, col_left, col_right); |
457 | 3.05k | return true; |
458 | 3.05k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 125 | auto call = [&](const auto& type) -> bool { | 454 | 125 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 125 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 125 | block, result, col_left, col_right); | 457 | 125 | return true; | 458 | 125 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 163 | auto call = [&](const auto& type) -> bool { | 454 | 163 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 163 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 163 | block, result, col_left, col_right); | 457 | 163 | return true; | 458 | 163 | }; |
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 | 453 | 843 | auto call = [&](const auto& type) -> bool { | 454 | 843 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 843 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 843 | block, result, col_left, col_right); | 457 | 843 | return true; | 458 | 843 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 30 | auto call = [&](const auto& type) -> bool { | 454 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 30 | block, result, col_left, col_right); | 457 | 30 | return true; | 458 | 30 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 65 | auto call = [&](const auto& type) -> bool { | 454 | 65 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 65 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 65 | block, result, col_left, col_right); | 457 | 65 | return true; | 458 | 65 | }; |
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 | 453 | 28 | auto call = [&](const auto& type) -> bool { | 454 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 28 | block, result, col_left, col_right); | 457 | 28 | return true; | 458 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 30 | auto call = [&](const auto& type) -> bool { | 454 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 30 | block, result, col_left, col_right); | 457 | 30 | return true; | 458 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 8 | auto call = [&](const auto& type) -> bool { | 454 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 8 | block, result, col_left, col_right); | 457 | 8 | return true; | 458 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 66 | auto call = [&](const auto& type) -> bool { | 454 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 66 | block, result, col_left, col_right); | 457 | 66 | return true; | 458 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 659 | auto call = [&](const auto& type) -> bool { | 454 | 659 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 659 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 659 | block, result, col_left, col_right); | 457 | 659 | return true; | 458 | 659 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 2 | auto call = [&](const auto& type) -> bool { | 454 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 2 | block, result, col_left, col_right); | 457 | 2 | return true; | 458 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 4 | auto call = [&](const auto& type) -> bool { | 454 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 4 | block, result, col_left, col_right); | 457 | 4 | return true; | 458 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 60 | auto call = [&](const auto& type) -> bool { | 454 | 60 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 60 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 60 | block, result, col_left, col_right); | 457 | 60 | return true; | 458 | 60 | }; |
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 | 453 | 76 | auto call = [&](const auto& type) -> bool { | 454 | 76 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 76 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 76 | block, result, col_left, col_right); | 457 | 76 | return true; | 458 | 76 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 27 | auto call = [&](const auto& type) -> bool { | 454 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 27 | block, result, col_left, col_right); | 457 | 27 | return true; | 458 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 178 | auto call = [&](const auto& type) -> bool { | 454 | 178 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 178 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 178 | block, result, col_left, col_right); | 457 | 178 | return true; | 458 | 178 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 200 | auto call = [&](const auto& type) -> bool { | 454 | 200 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 200 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 200 | block, result, col_left, col_right); | 457 | 200 | return true; | 458 | 200 | }; |
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 | 453 | 287 | auto call = [&](const auto& type) -> bool { | 454 | 287 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 287 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 287 | block, result, col_left, col_right); | 457 | 287 | return true; | 458 | 287 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 1 | auto call = [&](const auto& type) -> bool { | 454 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1 | block, result, col_left, col_right); | 457 | 1 | return true; | 458 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 7 | auto call = [&](const auto& type) -> bool { | 454 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 7 | block, result, col_left, col_right); | 457 | 7 | return true; | 458 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 67 | auto call = [&](const auto& type) -> bool { | 454 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 67 | block, result, col_left, col_right); | 457 | 67 | return true; | 458 | 67 | }; |
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 | 453 | 102 | auto call = [&](const auto& type) -> bool { | 454 | 102 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 102 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 102 | block, result, col_left, col_right); | 457 | 102 | return true; | 458 | 102 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 22 | auto call = [&](const auto& type) -> bool { | 454 | 22 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 22 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 22 | block, result, col_left, col_right); | 457 | 22 | return true; | 458 | 22 | }; |
|
459 | | |
460 | 3.05k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
461 | 0 | return Status::RuntimeError( |
462 | 0 | "type of left column {} is not equal to type of right column {}", |
463 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
464 | 0 | } |
465 | | |
466 | 3.05k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
468 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
469 | 0 | } |
470 | 3.05k | return Status::OK(); |
471 | 3.05k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 1.16k | const ColumnWithTypeAndName& col_right) const { | 453 | 1.16k | auto call = [&](const auto& type) -> bool { | 454 | 1.16k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1.16k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1.16k | block, result, col_left, col_right); | 457 | 1.16k | return true; | 458 | 1.16k | }; | 459 | | | 460 | 1.16k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 1.16k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 1.16k | return Status::OK(); | 471 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 122 | const ColumnWithTypeAndName& col_right) const { | 453 | 122 | auto call = [&](const auto& type) -> bool { | 454 | 122 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 122 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 122 | block, result, col_left, col_right); | 457 | 122 | return true; | 458 | 122 | }; | 459 | | | 460 | 122 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 122 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 122 | return Status::OK(); | 471 | 122 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 735 | const ColumnWithTypeAndName& col_right) const { | 453 | 735 | auto call = [&](const auto& type) -> bool { | 454 | 735 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 735 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 735 | block, result, col_left, col_right); | 457 | 735 | return true; | 458 | 735 | }; | 459 | | | 460 | 735 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 735 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 735 | return Status::OK(); | 471 | 735 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 167 | const ColumnWithTypeAndName& col_right) const { | 453 | 167 | auto call = [&](const auto& type) -> bool { | 454 | 167 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 167 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 167 | block, result, col_left, col_right); | 457 | 167 | return true; | 458 | 167 | }; | 459 | | | 460 | 167 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 167 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 167 | return Status::OK(); | 471 | 167 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 667 | const ColumnWithTypeAndName& col_right) const { | 453 | 667 | auto call = [&](const auto& type) -> bool { | 454 | 667 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 667 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 667 | block, result, col_left, col_right); | 457 | 667 | return true; | 458 | 667 | }; | 459 | | | 460 | 667 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 667 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 667 | return Status::OK(); | 471 | 667 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 198 | const ColumnWithTypeAndName& col_right) const { | 453 | 198 | auto call = [&](const auto& type) -> bool { | 454 | 198 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 198 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 198 | block, result, col_left, col_right); | 457 | 198 | return true; | 458 | 198 | }; | 459 | | | 460 | 198 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 198 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 198 | return Status::OK(); | 471 | 198 | } |
|
472 | | |
473 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
474 | 12.5k | const IColumn* c1) const { |
475 | 12.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
476 | 12.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
477 | 12.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
478 | 12.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
479 | 12.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
481 | 0 | c0->get_name(), c1->get_name(), name); |
482 | 0 | } |
483 | 12.5k | DCHECK(!(c0_const && c1_const)); |
484 | 12.5k | const ColumnString::Chars* c0_const_chars = nullptr; |
485 | 12.5k | const ColumnString::Chars* c1_const_chars = nullptr; |
486 | 12.5k | ColumnString::Offset c0_const_size = 0; |
487 | 12.5k | ColumnString::Offset c1_const_size = 0; |
488 | | |
489 | 12.5k | if (c0_const) { |
490 | 6 | const ColumnString* c0_const_string = |
491 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
492 | | |
493 | 6 | if (c0_const_string) { |
494 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
495 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
496 | 6 | } else { |
497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
498 | 0 | c0->get_name(), name); |
499 | 0 | } |
500 | 6 | } |
501 | | |
502 | 12.5k | if (c1_const) { |
503 | 11.7k | const ColumnString* c1_const_string = |
504 | 11.7k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
505 | | |
506 | 11.7k | if (c1_const_string) { |
507 | 11.7k | c1_const_chars = &c1_const_string->get_chars(); |
508 | 11.7k | c1_const_size = c1_const_string->get_offsets()[0]; |
509 | 11.7k | } else { |
510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
511 | 0 | c1->get_name(), name); |
512 | 0 | } |
513 | 11.7k | } |
514 | | |
515 | 12.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
516 | | |
517 | 12.5k | auto c_res = ColumnUInt8::create(); |
518 | 12.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
519 | 12.5k | vec_res.resize(c0->size()); |
520 | | |
521 | 12.5k | if (c0_string && c1_string) { |
522 | 822 | StringImpl::string_vector_string_vector( |
523 | 822 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
524 | 822 | c1_string->get_offsets(), vec_res); |
525 | 11.7k | } else if (c0_string && c1_const) { |
526 | 11.7k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
527 | 11.7k | *c1_const_chars, c1_const_size, vec_res); |
528 | 11.7k | } else if (c0_const && c1_string) { |
529 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
530 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
531 | 6 | vec_res); |
532 | 6 | } else { |
533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
534 | 0 | c0->get_name(), c1->get_name(), name); |
535 | 0 | } |
536 | 12.5k | block.replace_by_position(result, std::move(c_res)); |
537 | 12.5k | return Status::OK(); |
538 | 12.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 11.2k | const IColumn* c1) const { | 475 | 11.2k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 11.2k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 11.2k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 11.2k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 11.2k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 11.2k | DCHECK(!(c0_const && c1_const)); | 484 | 11.2k | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 11.2k | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 11.2k | ColumnString::Offset c0_const_size = 0; | 487 | 11.2k | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 11.2k | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 11.2k | if (c1_const) { | 503 | 10.9k | const ColumnString* c1_const_string = | 504 | 10.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 10.9k | if (c1_const_string) { | 507 | 10.9k | c1_const_chars = &c1_const_string->get_chars(); | 508 | 10.9k | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 10.9k | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 10.9k | } | 514 | | | 515 | 11.2k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 11.2k | auto c_res = ColumnUInt8::create(); | 518 | 11.2k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 11.2k | vec_res.resize(c0->size()); | 520 | | | 521 | 11.2k | if (c0_string && c1_string) { | 522 | 388 | StringImpl::string_vector_string_vector( | 523 | 388 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 388 | c1_string->get_offsets(), vec_res); | 525 | 10.9k | } else if (c0_string && c1_const) { | 526 | 10.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 10.9k | *c1_const_chars, c1_const_size, vec_res); | 528 | 10.9k | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 11.2k | block.replace_by_position(result, std::move(c_res)); | 537 | 11.2k | return Status::OK(); | 538 | 11.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 97 | const IColumn* c1) const { | 475 | 97 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 97 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 97 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 97 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 97 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 97 | DCHECK(!(c0_const && c1_const)); | 484 | 97 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 97 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 97 | ColumnString::Offset c0_const_size = 0; | 487 | 97 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 97 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 97 | if (c1_const) { | 503 | 96 | const ColumnString* c1_const_string = | 504 | 96 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 96 | if (c1_const_string) { | 507 | 96 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 96 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 96 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 96 | } | 514 | | | 515 | 97 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 97 | auto c_res = ColumnUInt8::create(); | 518 | 97 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 97 | vec_res.resize(c0->size()); | 520 | | | 521 | 97 | if (c0_string && c1_string) { | 522 | 1 | StringImpl::string_vector_string_vector( | 523 | 1 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 1 | c1_string->get_offsets(), vec_res); | 525 | 96 | } else if (c0_string && c1_const) { | 526 | 96 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 96 | *c1_const_chars, c1_const_size, vec_res); | 528 | 96 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 97 | block.replace_by_position(result, std::move(c_res)); | 537 | 97 | return Status::OK(); | 538 | 97 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 174 | const IColumn* c1) const { | 475 | 174 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 174 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 174 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 174 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 174 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 174 | DCHECK(!(c0_const && c1_const)); | 484 | 174 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 174 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 174 | ColumnString::Offset c0_const_size = 0; | 487 | 174 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 174 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 174 | if (c1_const) { | 503 | 172 | const ColumnString* c1_const_string = | 504 | 172 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 172 | if (c1_const_string) { | 507 | 172 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 172 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 172 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 172 | } | 514 | | | 515 | 174 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 174 | auto c_res = ColumnUInt8::create(); | 518 | 174 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 174 | vec_res.resize(c0->size()); | 520 | | | 521 | 174 | if (c0_string && c1_string) { | 522 | 2 | StringImpl::string_vector_string_vector( | 523 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 2 | c1_string->get_offsets(), vec_res); | 525 | 172 | } else if (c0_string && c1_const) { | 526 | 172 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 172 | *c1_const_chars, c1_const_size, vec_res); | 528 | 172 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 174 | block.replace_by_position(result, std::move(c_res)); | 537 | 174 | return Status::OK(); | 538 | 174 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 289 | const IColumn* c1) const { | 475 | 289 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 289 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 289 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 289 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 289 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 289 | DCHECK(!(c0_const && c1_const)); | 484 | 289 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 289 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 289 | ColumnString::Offset c0_const_size = 0; | 487 | 289 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 289 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 289 | if (c1_const) { | 503 | 253 | const ColumnString* c1_const_string = | 504 | 253 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 253 | if (c1_const_string) { | 507 | 253 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 253 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 253 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 253 | } | 514 | | | 515 | 289 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 289 | auto c_res = ColumnUInt8::create(); | 518 | 289 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 289 | vec_res.resize(c0->size()); | 520 | | | 521 | 289 | if (c0_string && c1_string) { | 522 | 36 | StringImpl::string_vector_string_vector( | 523 | 36 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 36 | c1_string->get_offsets(), vec_res); | 525 | 253 | } else if (c0_string && c1_const) { | 526 | 253 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 253 | *c1_const_chars, c1_const_size, vec_res); | 528 | 253 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 289 | block.replace_by_position(result, std::move(c_res)); | 537 | 289 | return Status::OK(); | 538 | 289 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 497 | const IColumn* c1) const { | 475 | 497 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 497 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 497 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 497 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 497 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 497 | DCHECK(!(c0_const && c1_const)); | 484 | 497 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 497 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 497 | ColumnString::Offset c0_const_size = 0; | 487 | 497 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 497 | if (c0_const) { | 490 | 6 | const ColumnString* c0_const_string = | 491 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | | | 493 | 6 | if (c0_const_string) { | 494 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 6 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 6 | } | 501 | | | 502 | 497 | if (c1_const) { | 503 | 96 | const ColumnString* c1_const_string = | 504 | 96 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 96 | if (c1_const_string) { | 507 | 96 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 96 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 96 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 96 | } | 514 | | | 515 | 497 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 497 | auto c_res = ColumnUInt8::create(); | 518 | 497 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 497 | vec_res.resize(c0->size()); | 520 | | | 521 | 497 | if (c0_string && c1_string) { | 522 | 395 | StringImpl::string_vector_string_vector( | 523 | 395 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 395 | c1_string->get_offsets(), vec_res); | 525 | 395 | } else if (c0_string && c1_const) { | 526 | 96 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 96 | *c1_const_chars, c1_const_size, vec_res); | 528 | 96 | } else if (c0_const && c1_string) { | 529 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 6 | vec_res); | 532 | 6 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 497 | block.replace_by_position(result, std::move(c_res)); | 537 | 497 | return Status::OK(); | 538 | 497 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 236 | const IColumn* c1) const { | 475 | 236 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 236 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 236 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 236 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 236 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 236 | DCHECK(!(c0_const && c1_const)); | 484 | 236 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 236 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 236 | ColumnString::Offset c0_const_size = 0; | 487 | 236 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 236 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 236 | if (c1_const) { | 503 | 236 | const ColumnString* c1_const_string = | 504 | 236 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 236 | if (c1_const_string) { | 507 | 236 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 236 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 236 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 236 | } | 514 | | | 515 | 236 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 236 | auto c_res = ColumnUInt8::create(); | 518 | 236 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 236 | vec_res.resize(c0->size()); | 520 | | | 521 | 236 | if (c0_string && c1_string) { | 522 | 0 | StringImpl::string_vector_string_vector( | 523 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 0 | c1_string->get_offsets(), vec_res); | 525 | 236 | } else if (c0_string && c1_const) { | 526 | 236 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 236 | *c1_const_chars, c1_const_size, vec_res); | 528 | 236 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 236 | block.replace_by_position(result, std::move(c_res)); | 537 | 236 | return Status::OK(); | 538 | 236 | } |
|
539 | | |
540 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
541 | 134 | const IColumn* c1) const { |
542 | 134 | bool c0_const = is_column_const(*c0); |
543 | 134 | bool c1_const = is_column_const(*c1); |
544 | | |
545 | 134 | DCHECK(!(c0_const && c1_const)); |
546 | | |
547 | 134 | auto c_res = ColumnUInt8::create(); |
548 | 134 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
549 | 134 | vec_res.resize(c0->size()); |
550 | | |
551 | 134 | if (c0_const) { |
552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
553 | 134 | } else if (c1_const) { |
554 | 125 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
555 | 125 | } else { |
556 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
557 | 9 | } |
558 | | |
559 | 134 | block.replace_by_position(result, std::move(c_res)); |
560 | 134 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 17 | const IColumn* c1) const { | 542 | 17 | bool c0_const = is_column_const(*c0); | 543 | 17 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 17 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 17 | auto c_res = ColumnUInt8::create(); | 548 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 17 | vec_res.resize(c0->size()); | 550 | | | 551 | 17 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 17 | } else if (c1_const) { | 554 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 13 | } else { | 556 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 4 | } | 558 | | | 559 | 17 | block.replace_by_position(result, std::move(c_res)); | 560 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 8 | const IColumn* c1) const { | 542 | 8 | bool c0_const = is_column_const(*c0); | 543 | 8 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 8 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 8 | auto c_res = ColumnUInt8::create(); | 548 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 8 | vec_res.resize(c0->size()); | 550 | | | 551 | 8 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 8 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 8 | block.replace_by_position(result, std::move(c_res)); | 560 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 9 | const IColumn* c1) const { | 542 | 9 | bool c0_const = is_column_const(*c0); | 543 | 9 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 9 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 9 | auto c_res = ColumnUInt8::create(); | 548 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 9 | vec_res.resize(c0->size()); | 550 | | | 551 | 9 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 9 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 9 | block.replace_by_position(result, std::move(c_res)); | 560 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 43 | const IColumn* c1) const { | 542 | 43 | bool c0_const = is_column_const(*c0); | 543 | 43 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 43 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 43 | auto c_res = ColumnUInt8::create(); | 548 | 43 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 43 | vec_res.resize(c0->size()); | 550 | | | 551 | 43 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 43 | } else if (c1_const) { | 554 | 42 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 42 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 43 | block.replace_by_position(result, std::move(c_res)); | 560 | 43 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 11 | const IColumn* c1) const { | 542 | 11 | bool c0_const = is_column_const(*c0); | 543 | 11 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 11 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 11 | auto c_res = ColumnUInt8::create(); | 548 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 11 | vec_res.resize(c0->size()); | 550 | | | 551 | 11 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 11 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 3 | } | 558 | | | 559 | 11 | block.replace_by_position(result, std::move(c_res)); | 560 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 46 | const IColumn* c1) const { | 542 | 46 | bool c0_const = is_column_const(*c0); | 543 | 46 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 46 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 46 | auto c_res = ColumnUInt8::create(); | 548 | 46 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 46 | vec_res.resize(c0->size()); | 550 | | | 551 | 46 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 46 | } else if (c1_const) { | 554 | 46 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 46 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 46 | block.replace_by_position(result, std::move(c_res)); | 560 | 46 | } |
|
561 | | |
562 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
563 | 134 | const ColumnWithTypeAndName& c1) const { |
564 | 134 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
565 | 134 | return Status::OK(); |
566 | 134 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 17 | const ColumnWithTypeAndName& c1) const { | 564 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 17 | return Status::OK(); | 566 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 8 | const ColumnWithTypeAndName& c1) const { | 564 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 8 | return Status::OK(); | 566 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 9 | const ColumnWithTypeAndName& c1) const { | 564 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 9 | return Status::OK(); | 566 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 43 | const ColumnWithTypeAndName& c1) const { | 564 | 43 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 43 | return Status::OK(); | 566 | 43 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 11 | const ColumnWithTypeAndName& c1) const { | 564 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 11 | return Status::OK(); | 566 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 46 | const ColumnWithTypeAndName& c1) const { | 564 | 46 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 46 | return Status::OK(); | 566 | 46 | } |
|
567 | | |
568 | | public: |
569 | 214 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 32 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 80 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
|
570 | | |
571 | 266k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 241k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 1.12k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 571 | 4.84k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 7.02k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 571 | 2.96k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 8.95k | size_t get_number_of_arguments() const override { return 2; } |
|
572 | | |
573 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
574 | 2.48k | const VExprSPtrs& arguments) const override { |
575 | 2.48k | auto op = comparison_zonemap_detail::op_from_name(name); |
576 | 2.48k | DORIS_CHECK(op.has_value()); |
577 | 2.48k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
578 | 2.48k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 1.45k | const VExprSPtrs& arguments) const override { | 575 | 1.45k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 1.45k | DORIS_CHECK(op.has_value()); | 577 | 1.45k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 1.45k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 143 | const VExprSPtrs& arguments) const override { | 575 | 143 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 143 | DORIS_CHECK(op.has_value()); | 577 | 143 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 143 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 193 | const VExprSPtrs& arguments) const override { | 575 | 193 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 193 | DORIS_CHECK(op.has_value()); | 577 | 193 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 193 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 230 | const VExprSPtrs& arguments) const override { | 575 | 230 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 230 | DORIS_CHECK(op.has_value()); | 577 | 230 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 230 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 261 | const VExprSPtrs& arguments) const override { | 575 | 261 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 261 | DORIS_CHECK(op.has_value()); | 577 | 261 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 261 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 196 | const VExprSPtrs& arguments) const override { | 575 | 196 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 196 | DORIS_CHECK(op.has_value()); | 577 | 196 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 196 | } |
|
579 | | |
580 | 31.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
581 | 31.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
582 | 31.1k | comparison_zonemap_detail::can_evaluate(arguments); |
583 | 31.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 13.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 13.4k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 13.4k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 13.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 1.28k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 1.28k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 1.28k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 1.28k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 4.35k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 4.35k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 4.36k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 4.35k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 5.08k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 5.08k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 5.08k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 5.08k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 4.12k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 4.12k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 4.12k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 4.12k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 2.83k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 2.83k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 2.84k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 2.83k | } |
|
584 | | |
585 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
586 | 266k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
587 | 266k | return std::make_shared<DataTypeUInt8>(); |
588 | 266k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 241k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 241k | return std::make_shared<DataTypeUInt8>(); | 588 | 241k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 1.12k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 1.12k | return std::make_shared<DataTypeUInt8>(); | 588 | 1.12k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 4.84k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 4.84k | return std::make_shared<DataTypeUInt8>(); | 588 | 4.84k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 7.02k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 7.02k | return std::make_shared<DataTypeUInt8>(); | 588 | 7.02k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 2.96k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 2.96k | return std::make_shared<DataTypeUInt8>(); | 588 | 2.96k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 8.97k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 8.97k | return std::make_shared<DataTypeUInt8>(); | 588 | 8.97k | } |
|
589 | | |
590 | | Status evaluate_inverted_index( |
591 | | const ColumnsWithTypeAndName& arguments, |
592 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
593 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
594 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
595 | 1.34k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
596 | 1.34k | DCHECK(arguments.size() == 1); |
597 | 1.34k | DCHECK(data_type_with_names.size() == 1); |
598 | 1.34k | DCHECK(iterators.size() == 1); |
599 | 1.34k | auto* iter = iterators[0]; |
600 | 1.34k | auto data_type_with_name = data_type_with_names[0]; |
601 | 1.34k | if (iter == nullptr) { |
602 | 0 | return Status::OK(); |
603 | 0 | } |
604 | 1.34k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
605 | 304 | return Status::OK(); |
606 | 304 | } |
607 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
608 | 1.03k | std::string_view name_view(name); |
609 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
610 | 717 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
611 | 717 | } else if (name_view == NameLess::name) { |
612 | 74 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
613 | 247 | } else if (name_view == NameLessOrEquals::name) { |
614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
615 | 166 | } else if (name_view == NameGreater::name) { |
616 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
617 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
619 | 93 | } else { |
620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
621 | 0 | } |
622 | | |
623 | 1.03k | if (segment_v2::is_range_query(query_type) && |
624 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
626 | 133 | return Status::OK(); |
627 | 133 | } |
628 | 905 | Field param_value; |
629 | 905 | arguments[0].column->get(0, param_value); |
630 | 905 | if (param_value.is_null()) { |
631 | 2 | return Status::OK(); |
632 | 2 | } |
633 | 903 | segment_v2::InvertedIndexParam param; |
634 | 903 | param.column_name = data_type_with_name.first; |
635 | 903 | param.column_type = data_type_with_name.second; |
636 | 903 | param.query_value = param_value; |
637 | 903 | param.query_type = query_type; |
638 | 903 | param.num_rows = num_rows; |
639 | 903 | param.roaring = std::make_shared<roaring::Roaring>(); |
640 | 903 | param.analyzer_ctx = analyzer_ctx; |
641 | 903 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
642 | 751 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
643 | 753 | if (iter->has_null()) { |
644 | 753 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
645 | 753 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
646 | 753 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
647 | 753 | } |
648 | 751 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
649 | 751 | bitmap_result = result; |
650 | 751 | bitmap_result.mask_out_null(); |
651 | | |
652 | 751 | if (name_view == NameNotEquals::name) { |
653 | 59 | roaring::Roaring full_result; |
654 | 59 | full_result.addRange(0, num_rows); |
655 | 59 | bitmap_result.op_not(&full_result); |
656 | 59 | } |
657 | | |
658 | 751 | return Status::OK(); |
659 | 751 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 685 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 685 | DCHECK(arguments.size() == 1); | 597 | 685 | DCHECK(data_type_with_names.size() == 1); | 598 | 685 | DCHECK(iterators.size() == 1); | 599 | 685 | auto* iter = iterators[0]; | 600 | 685 | auto data_type_with_name = data_type_with_names[0]; | 601 | 685 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 685 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 36 | return Status::OK(); | 606 | 36 | } | 607 | 649 | segment_v2::InvertedIndexQueryType query_type; | 608 | 649 | std::string_view name_view(name); | 609 | 651 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 651 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 18.4E | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 18.4E | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 18.4E | } else { | 620 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 18.4E | } | 622 | | | 623 | 651 | if (segment_v2::is_range_query(query_type) && | 624 | 651 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 651 | Field param_value; | 629 | 651 | arguments[0].column->get(0, param_value); | 630 | 651 | if (param_value.is_null()) { | 631 | 2 | return Status::OK(); | 632 | 2 | } | 633 | 649 | segment_v2::InvertedIndexParam param; | 634 | 649 | param.column_name = data_type_with_name.first; | 635 | 649 | param.column_type = data_type_with_name.second; | 636 | 649 | param.query_value = param_value; | 637 | 649 | param.query_type = query_type; | 638 | 649 | param.num_rows = num_rows; | 639 | 649 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 649 | param.analyzer_ctx = analyzer_ctx; | 641 | 649 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 603 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 604 | if (iter->has_null()) { | 644 | 604 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 604 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 604 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 604 | } | 648 | 603 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 603 | bitmap_result = result; | 650 | 603 | bitmap_result.mask_out_null(); | 651 | | | 652 | 603 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 603 | return Status::OK(); | 659 | 603 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 72 | DCHECK(arguments.size() == 1); | 597 | 72 | DCHECK(data_type_with_names.size() == 1); | 598 | 72 | DCHECK(iterators.size() == 1); | 599 | 72 | auto* iter = iterators[0]; | 600 | 72 | auto data_type_with_name = data_type_with_names[0]; | 601 | 72 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 6 | return Status::OK(); | 606 | 6 | } | 607 | 66 | segment_v2::InvertedIndexQueryType query_type; | 608 | 66 | std::string_view name_view(name); | 609 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 66 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 0 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 66 | if (segment_v2::is_range_query(query_type) && | 624 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 66 | Field param_value; | 629 | 66 | arguments[0].column->get(0, param_value); | 630 | 66 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 66 | segment_v2::InvertedIndexParam param; | 634 | 66 | param.column_name = data_type_with_name.first; | 635 | 66 | param.column_type = data_type_with_name.second; | 636 | 66 | param.query_value = param_value; | 637 | 66 | param.query_type = query_type; | 638 | 66 | param.num_rows = num_rows; | 639 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 66 | param.analyzer_ctx = analyzer_ctx; | 641 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 59 | if (iter->has_null()) { | 644 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 59 | } | 648 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 59 | bitmap_result = result; | 650 | 59 | bitmap_result.mask_out_null(); | 651 | | | 652 | 59 | if (name_view == NameNotEquals::name) { | 653 | 59 | roaring::Roaring full_result; | 654 | 59 | full_result.addRange(0, num_rows); | 655 | 59 | bitmap_result.op_not(&full_result); | 656 | 59 | } | 657 | | | 658 | 59 | return Status::OK(); | 659 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 112 | DCHECK(arguments.size() == 1); | 597 | 112 | DCHECK(data_type_with_names.size() == 1); | 598 | 112 | DCHECK(iterators.size() == 1); | 599 | 112 | auto* iter = iterators[0]; | 600 | 112 | auto data_type_with_name = data_type_with_names[0]; | 601 | 112 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 39 | return Status::OK(); | 606 | 39 | } | 607 | 73 | segment_v2::InvertedIndexQueryType query_type; | 608 | 73 | std::string_view name_view(name); | 609 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 73 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 73 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 73 | } else if (name_view == NameGreater::name) { | 616 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 73 | if (segment_v2::is_range_query(query_type) && | 624 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 17 | return Status::OK(); | 627 | 17 | } | 628 | 56 | Field param_value; | 629 | 56 | arguments[0].column->get(0, param_value); | 630 | 56 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 56 | segment_v2::InvertedIndexParam param; | 634 | 56 | param.column_name = data_type_with_name.first; | 635 | 56 | param.column_type = data_type_with_name.second; | 636 | 56 | param.query_value = param_value; | 637 | 56 | param.query_type = query_type; | 638 | 56 | param.num_rows = num_rows; | 639 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 56 | param.analyzer_ctx = analyzer_ctx; | 641 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 37 | if (iter->has_null()) { | 644 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 37 | } | 648 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 37 | bitmap_result = result; | 650 | 37 | bitmap_result.mask_out_null(); | 651 | | | 652 | 37 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 37 | return Status::OK(); | 659 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 179 | DCHECK(arguments.size() == 1); | 597 | 179 | DCHECK(data_type_with_names.size() == 1); | 598 | 179 | DCHECK(iterators.size() == 1); | 599 | 179 | auto* iter = iterators[0]; | 600 | 179 | auto data_type_with_name = data_type_with_names[0]; | 601 | 179 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 86 | return Status::OK(); | 606 | 86 | } | 607 | 93 | segment_v2::InvertedIndexQueryType query_type; | 608 | 93 | std::string_view name_view(name); | 609 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 93 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 93 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 93 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 93 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 93 | if (segment_v2::is_range_query(query_type) && | 624 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 47 | return Status::OK(); | 627 | 47 | } | 628 | 46 | Field param_value; | 629 | 46 | arguments[0].column->get(0, param_value); | 630 | 46 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 46 | segment_v2::InvertedIndexParam param; | 634 | 46 | param.column_name = data_type_with_name.first; | 635 | 46 | param.column_type = data_type_with_name.second; | 636 | 46 | param.query_value = param_value; | 637 | 46 | param.query_type = query_type; | 638 | 46 | param.num_rows = num_rows; | 639 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 46 | param.analyzer_ctx = analyzer_ctx; | 641 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 6 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 6 | if (iter->has_null()) { | 644 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 5 | } | 648 | 6 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 6 | bitmap_result = result; | 650 | 6 | bitmap_result.mask_out_null(); | 651 | | | 652 | 6 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 6 | return Status::OK(); | 659 | 6 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 119 | DCHECK(arguments.size() == 1); | 597 | 119 | DCHECK(data_type_with_names.size() == 1); | 598 | 119 | DCHECK(iterators.size() == 1); | 599 | 119 | auto* iter = iterators[0]; | 600 | 119 | auto data_type_with_name = data_type_with_names[0]; | 601 | 119 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 43 | return Status::OK(); | 606 | 43 | } | 607 | 76 | segment_v2::InvertedIndexQueryType query_type; | 608 | 76 | std::string_view name_view(name); | 609 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 76 | } else if (name_view == NameLess::name) { | 612 | 74 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 74 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 2 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 2 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 2 | } else { | 620 | 2 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 2 | } | 622 | | | 623 | 74 | if (segment_v2::is_range_query(query_type) && | 624 | 75 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 18 | return Status::OK(); | 627 | 18 | } | 628 | 56 | Field param_value; | 629 | 56 | arguments[0].column->get(0, param_value); | 630 | 56 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 56 | segment_v2::InvertedIndexParam param; | 634 | 56 | param.column_name = data_type_with_name.first; | 635 | 56 | param.column_type = data_type_with_name.second; | 636 | 56 | param.query_value = param_value; | 637 | 56 | param.query_type = query_type; | 638 | 56 | param.num_rows = num_rows; | 639 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 56 | param.analyzer_ctx = analyzer_ctx; | 641 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 39 | if (iter->has_null()) { | 644 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 39 | } | 648 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 37 | bitmap_result = result; | 650 | 37 | bitmap_result.mask_out_null(); | 651 | | | 652 | 37 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 37 | return Status::OK(); | 659 | 37 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 175 | DCHECK(arguments.size() == 1); | 597 | 175 | DCHECK(data_type_with_names.size() == 1); | 598 | 175 | DCHECK(iterators.size() == 1); | 599 | 175 | auto* iter = iterators[0]; | 600 | 175 | auto data_type_with_name = data_type_with_names[0]; | 601 | 175 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 94 | return Status::OK(); | 606 | 94 | } | 607 | 81 | segment_v2::InvertedIndexQueryType query_type; | 608 | 81 | std::string_view name_view(name); | 609 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 81 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 81 | } else if (name_view == NameLessOrEquals::name) { | 614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 81 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 81 | if (segment_v2::is_range_query(query_type) && | 624 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 51 | return Status::OK(); | 627 | 51 | } | 628 | 30 | Field param_value; | 629 | 30 | arguments[0].column->get(0, param_value); | 630 | 30 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 30 | segment_v2::InvertedIndexParam param; | 634 | 30 | param.column_name = data_type_with_name.first; | 635 | 30 | param.column_type = data_type_with_name.second; | 636 | 30 | param.query_value = param_value; | 637 | 30 | param.query_type = query_type; | 638 | 30 | param.num_rows = num_rows; | 639 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 30 | param.analyzer_ctx = analyzer_ctx; | 641 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 9 | if (iter->has_null()) { | 644 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 9 | } | 648 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 9 | bitmap_result = result; | 650 | 9 | bitmap_result.mask_out_null(); | 651 | | | 652 | 9 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 9 | return Status::OK(); | 659 | 9 | } |
|
660 | | |
661 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
662 | 121k | uint32_t result, size_t input_rows_count) const override { |
663 | 121k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
664 | 121k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
665 | | |
666 | 121k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
667 | 121k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
668 | 121k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
669 | 121k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
670 | | |
671 | 121k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
672 | 121k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
673 | | |
674 | | /// The case when arguments are the same (tautological comparison). Return constant. |
675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
677 | 121k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
678 | 121k | col_left_untyped == col_right_untyped) { |
679 | | /// Always true: =, <=, >= |
680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
684 | 0 | block.get_by_position(result).column = |
685 | 0 | DataTypeUInt8() |
686 | 0 | .create_column_const(input_rows_count, |
687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
688 | 0 | ->convert_to_full_column_if_const(); |
689 | 0 | return Status::OK(); |
690 | 0 | } else { |
691 | 0 | block.get_by_position(result).column = |
692 | 0 | DataTypeUInt8() |
693 | 0 | .create_column_const(input_rows_count, |
694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
695 | 0 | ->convert_to_full_column_if_const(); |
696 | 0 | return Status::OK(); |
697 | 0 | } |
698 | 0 | } |
699 | | |
700 | 226k | auto can_compare = [](PrimitiveType t) -> bool { |
701 | 226k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
702 | 226k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 33.2k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 33.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 33.2k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 5.17k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 5.17k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 5.17k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 147k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 147k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 147k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 6.33k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 6.33k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 6.33k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 16.5k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 16.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 16.5k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 17.3k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 17.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 17.3k | }; |
|
703 | | |
704 | 121k | if (can_compare(left_type->get_primitive_type()) && |
705 | 121k | can_compare(right_type->get_primitive_type())) { |
706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
707 | 105k | if (!left_type->equals_ignore_precision(*right_type)) { |
708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
709 | 0 | get_name(), left_type->get_name(), |
710 | 0 | right_type->get_name()); |
711 | 0 | } |
712 | 105k | } |
713 | | |
714 | 121k | auto compare_type = left_type->get_primitive_type(); |
715 | 121k | switch (compare_type) { |
716 | 264 | case TYPE_BOOLEAN: |
717 | 264 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
718 | 4.94k | case TYPE_DATEV2: |
719 | 4.94k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
720 | 921 | case TYPE_DATETIMEV2: |
721 | 921 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
722 | 7 | case TYPE_TIMESTAMPTZ: |
723 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
724 | 8.58k | case TYPE_TINYINT: |
725 | 8.58k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
726 | 2.63k | case TYPE_SMALLINT: |
727 | 2.63k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
728 | 79.3k | case TYPE_INT: |
729 | 79.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
730 | 5.58k | case TYPE_BIGINT: |
731 | 5.58k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
732 | 696 | case TYPE_LARGEINT: |
733 | 696 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
734 | 61 | case TYPE_IPV4: |
735 | 61 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
736 | 37 | case TYPE_IPV6: |
737 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
738 | 532 | case TYPE_FLOAT: |
739 | 532 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
740 | 1.67k | case TYPE_DOUBLE: |
741 | 1.67k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
742 | 4 | case TYPE_TIMEV2: |
743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
744 | 0 | case TYPE_DECIMALV2: |
745 | 322 | case TYPE_DECIMAL32: |
746 | 943 | case TYPE_DECIMAL64: |
747 | 2.93k | case TYPE_DECIMAL128I: |
748 | 3.05k | case TYPE_DECIMAL256: |
749 | 3.05k | return execute_decimal(block, result, col_with_type_and_name_left, |
750 | 3.05k | col_with_type_and_name_right); |
751 | 804 | case TYPE_CHAR: |
752 | 6.72k | case TYPE_VARCHAR: |
753 | 12.5k | case TYPE_STRING: |
754 | 12.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
755 | 134 | default: |
756 | 134 | return execute_generic(block, result, col_with_type_and_name_left, |
757 | 134 | col_with_type_and_name_right); |
758 | 121k | } |
759 | 0 | return Status::OK(); |
760 | 121k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 22.8k | uint32_t result, size_t input_rows_count) const override { | 663 | 22.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 22.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 22.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 22.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 22.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 22.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 22.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 22.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 22.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 22.8k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 22.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 22.8k | }; | 703 | | | 704 | 22.8k | if (can_compare(left_type->get_primitive_type()) && | 705 | 22.8k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 10.3k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 10.3k | } | 713 | | | 714 | 22.8k | auto compare_type = left_type->get_primitive_type(); | 715 | 22.8k | switch (compare_type) { | 716 | 97 | case TYPE_BOOLEAN: | 717 | 97 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 526 | case TYPE_DATEV2: | 719 | 526 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 383 | case TYPE_DATETIMEV2: | 721 | 383 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 2 | case TYPE_TIMESTAMPTZ: | 723 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 5.01k | case TYPE_TINYINT: | 725 | 5.01k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 367 | case TYPE_SMALLINT: | 727 | 367 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 2.01k | case TYPE_INT: | 729 | 2.01k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.44k | case TYPE_BIGINT: | 731 | 1.44k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 105 | case TYPE_LARGEINT: | 733 | 105 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 18 | case TYPE_IPV4: | 735 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 19 | case TYPE_IPV6: | 737 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 82 | case TYPE_FLOAT: | 739 | 82 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 302 | case TYPE_DOUBLE: | 741 | 302 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 4 | case TYPE_TIMEV2: | 743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 125 | case TYPE_DECIMAL32: | 746 | 288 | case TYPE_DECIMAL64: | 747 | 1.13k | case TYPE_DECIMAL128I: | 748 | 1.16k | case TYPE_DECIMAL256: | 749 | 1.16k | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 1.16k | col_with_type_and_name_right); | 751 | 539 | case TYPE_CHAR: | 752 | 5.88k | case TYPE_VARCHAR: | 753 | 11.2k | case TYPE_STRING: | 754 | 11.2k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 17 | default: | 756 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 17 | col_with_type_and_name_right); | 758 | 22.8k | } | 759 | 0 | return Status::OK(); | 760 | 22.8k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 2.70k | uint32_t result, size_t input_rows_count) const override { | 663 | 2.70k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 2.70k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 2.70k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 2.70k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 2.70k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 2.70k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 2.70k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 2.70k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 2.70k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 2.70k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 2.70k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 2.70k | }; | 703 | | | 704 | 2.70k | if (can_compare(left_type->get_primitive_type()) && | 705 | 2.70k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 2.47k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 2.47k | } | 713 | | | 714 | 2.70k | auto compare_type = left_type->get_primitive_type(); | 715 | 2.70k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 69 | case TYPE_DATEV2: | 719 | 69 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 0 | case TYPE_DATETIMEV2: | 721 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 0 | case TYPE_TIMESTAMPTZ: | 723 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 84 | case TYPE_TINYINT: | 725 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 0 | case TYPE_SMALLINT: | 727 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.11k | case TYPE_INT: | 729 | 1.11k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.10k | case TYPE_BIGINT: | 731 | 1.10k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 0 | case TYPE_LARGEINT: | 733 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 0 | case TYPE_IPV4: | 735 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 48 | case TYPE_FLOAT: | 739 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 60 | case TYPE_DOUBLE: | 741 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 0 | case TYPE_DECIMAL32: | 746 | 65 | case TYPE_DECIMAL64: | 747 | 93 | case TYPE_DECIMAL128I: | 748 | 123 | case TYPE_DECIMAL256: | 749 | 123 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 123 | col_with_type_and_name_right); | 751 | 1 | case TYPE_CHAR: | 752 | 28 | case TYPE_VARCHAR: | 753 | 97 | case TYPE_STRING: | 754 | 97 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 8 | default: | 756 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 8 | col_with_type_and_name_right); | 758 | 2.70k | } | 759 | 0 | return Status::OK(); | 760 | 2.70k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 74.3k | uint32_t result, size_t input_rows_count) const override { | 663 | 74.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 74.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 74.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 74.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 74.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 74.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 74.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 74.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 74.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 74.3k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 74.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 74.3k | }; | 703 | | | 704 | 74.3k | if (can_compare(left_type->get_primitive_type()) && | 705 | 74.3k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 73.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 73.4k | } | 713 | | | 714 | 74.3k | auto compare_type = left_type->get_primitive_type(); | 715 | 74.3k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 987 | case TYPE_DATEV2: | 719 | 987 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 2 | case TYPE_DATETIMEV2: | 721 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 1 | case TYPE_TIMESTAMPTZ: | 723 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 1.07k | case TYPE_TINYINT: | 725 | 1.07k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 1.79k | case TYPE_SMALLINT: | 727 | 1.79k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 66.8k | case TYPE_INT: | 729 | 66.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.79k | case TYPE_BIGINT: | 731 | 1.79k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 257 | case TYPE_LARGEINT: | 733 | 257 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 4 | case TYPE_IPV4: | 735 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 220 | case TYPE_FLOAT: | 739 | 220 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 532 | case TYPE_DOUBLE: | 741 | 532 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 8 | case TYPE_DECIMAL32: | 746 | 74 | case TYPE_DECIMAL64: | 747 | 733 | case TYPE_DECIMAL128I: | 748 | 735 | case TYPE_DECIMAL256: | 749 | 735 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 735 | col_with_type_and_name_right); | 751 | 14 | case TYPE_CHAR: | 752 | 76 | case TYPE_VARCHAR: | 753 | 174 | case TYPE_STRING: | 754 | 174 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 9 | default: | 756 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 9 | col_with_type_and_name_right); | 758 | 74.3k | } | 759 | 0 | return Status::OK(); | 760 | 74.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 3.39k | uint32_t result, size_t input_rows_count) const override { | 663 | 3.39k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 3.39k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 3.39k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 3.39k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 3.39k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 3.39k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 3.39k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 3.39k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 3.39k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 3.39k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 3.39k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 3.39k | }; | 703 | | | 704 | 3.39k | if (can_compare(left_type->get_primitive_type()) && | 705 | 3.39k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 2.93k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 2.93k | } | 713 | | | 714 | 3.39k | auto compare_type = left_type->get_primitive_type(); | 715 | 3.39k | switch (compare_type) { | 716 | 26 | case TYPE_BOOLEAN: | 717 | 26 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 559 | case TYPE_DATEV2: | 719 | 559 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 146 | case TYPE_DATETIMEV2: | 721 | 146 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 1 | case TYPE_TIMESTAMPTZ: | 723 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 112 | case TYPE_TINYINT: | 725 | 112 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 138 | case TYPE_SMALLINT: | 727 | 138 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.44k | case TYPE_INT: | 729 | 1.44k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 181 | case TYPE_BIGINT: | 731 | 181 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 30 | case TYPE_LARGEINT: | 733 | 30 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 11 | case TYPE_IPV4: | 735 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 24 | case TYPE_FLOAT: | 739 | 24 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 223 | case TYPE_DOUBLE: | 741 | 223 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 4 | case TYPE_DECIMAL32: | 746 | 64 | case TYPE_DECIMAL64: | 747 | 140 | case TYPE_DECIMAL128I: | 748 | 167 | case TYPE_DECIMAL256: | 749 | 167 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 167 | col_with_type_and_name_right); | 751 | 36 | case TYPE_CHAR: | 752 | 236 | case TYPE_VARCHAR: | 753 | 289 | case TYPE_STRING: | 754 | 289 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 43 | default: | 756 | 43 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 43 | col_with_type_and_name_right); | 758 | 3.39k | } | 759 | 0 | return Status::OK(); | 760 | 3.39k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 8.84k | uint32_t result, size_t input_rows_count) const override { | 663 | 8.84k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 8.84k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 8.84k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 8.84k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 8.84k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 8.84k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 8.84k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 8.84k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 8.84k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 8.84k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 8.84k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 8.84k | }; | 703 | | | 704 | 8.84k | if (can_compare(left_type->get_primitive_type()) && | 705 | 8.84k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 7.66k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 7.66k | } | 713 | | | 714 | 8.84k | auto compare_type = left_type->get_primitive_type(); | 715 | 8.84k | switch (compare_type) { | 716 | 101 | case TYPE_BOOLEAN: | 717 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 2.20k | case TYPE_DATEV2: | 719 | 2.20k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 313 | case TYPE_DATETIMEV2: | 721 | 313 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 2 | case TYPE_TIMESTAMPTZ: | 723 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 2.14k | case TYPE_TINYINT: | 725 | 2.14k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 136 | case TYPE_SMALLINT: | 727 | 136 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.15k | case TYPE_INT: | 729 | 1.15k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 779 | case TYPE_BIGINT: | 731 | 779 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 265 | case TYPE_LARGEINT: | 733 | 265 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 18 | case TYPE_IPV4: | 735 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 16 | case TYPE_IPV6: | 737 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 138 | case TYPE_FLOAT: | 739 | 138 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 387 | case TYPE_DOUBLE: | 741 | 387 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 178 | case TYPE_DECIMAL32: | 746 | 378 | case TYPE_DECIMAL64: | 747 | 666 | case TYPE_DECIMAL128I: | 748 | 667 | case TYPE_DECIMAL256: | 749 | 667 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 667 | col_with_type_and_name_right); | 751 | 172 | case TYPE_CHAR: | 752 | 343 | case TYPE_VARCHAR: | 753 | 497 | case TYPE_STRING: | 754 | 497 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 11 | default: | 756 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 11 | col_with_type_and_name_right); | 758 | 8.84k | } | 759 | 0 | return Status::OK(); | 760 | 8.84k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 8.88k | uint32_t result, size_t input_rows_count) const override { | 663 | 8.88k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 8.88k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 8.88k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 8.88k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 8.88k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 8.88k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 8.88k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 8.88k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 8.88k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 8.88k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 8.88k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 8.88k | }; | 703 | | | 704 | 8.88k | if (can_compare(left_type->get_primitive_type()) && | 705 | 8.88k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 8.45k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 8.45k | } | 713 | | | 714 | 8.88k | auto compare_type = left_type->get_primitive_type(); | 715 | 8.88k | switch (compare_type) { | 716 | 40 | case TYPE_BOOLEAN: | 717 | 40 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 599 | case TYPE_DATEV2: | 719 | 599 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 77 | case TYPE_DATETIMEV2: | 721 | 77 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 1 | case TYPE_TIMESTAMPTZ: | 723 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 154 | case TYPE_TINYINT: | 725 | 154 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 201 | case TYPE_SMALLINT: | 727 | 201 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 6.81k | case TYPE_INT: | 729 | 6.81k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 281 | case TYPE_BIGINT: | 731 | 281 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 39 | case TYPE_LARGEINT: | 733 | 39 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 10 | case TYPE_IPV4: | 735 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 20 | case TYPE_FLOAT: | 739 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 171 | case TYPE_DOUBLE: | 741 | 171 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 7 | case TYPE_DECIMAL32: | 746 | 74 | case TYPE_DECIMAL64: | 747 | 176 | case TYPE_DECIMAL128I: | 748 | 198 | case TYPE_DECIMAL256: | 749 | 198 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 198 | col_with_type_and_name_right); | 751 | 42 | case TYPE_CHAR: | 752 | 161 | case TYPE_VARCHAR: | 753 | 236 | case TYPE_STRING: | 754 | 236 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 46 | default: | 756 | 46 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 46 | col_with_type_and_name_right); | 758 | 8.88k | } | 759 | 0 | return Status::OK(); | 760 | 8.88k | } |
|
761 | | }; |
762 | | |
763 | | } // namespace doris |