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 | 12.8k | PaddedPODArray<UInt8>& c) { |
72 | 12.8k | size_t size = a.size(); |
73 | 12.8k | const A* __restrict a_pos = a.data(); |
74 | 12.8k | const B* __restrict b_pos = b.data(); |
75 | 12.8k | UInt8* __restrict c_pos = c.data(); |
76 | 12.8k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 9.45M | while (a_pos < a_end) { |
79 | 9.44M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 9.44M | ++a_pos; |
81 | 9.44M | ++b_pos; |
82 | 9.44M | ++c_pos; |
83 | 9.44M | } |
84 | 12.8k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ 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 | 130 | while (a_pos < a_end) { | 79 | 65 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 65 | ++a_pos; | 81 | 65 | ++b_pos; | 82 | 65 | ++c_pos; | 83 | 65 | } | 84 | 65 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 628 | PaddedPODArray<UInt8>& c) { | 72 | 628 | size_t size = a.size(); | 73 | 628 | const A* __restrict a_pos = a.data(); | 74 | 628 | const B* __restrict b_pos = b.data(); | 75 | 628 | UInt8* __restrict c_pos = c.data(); | 76 | 628 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.26k | while (a_pos < a_end) { | 79 | 634 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 634 | ++a_pos; | 81 | 634 | ++b_pos; | 82 | 634 | ++c_pos; | 83 | 634 | } | 84 | 628 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 415 | PaddedPODArray<UInt8>& c) { | 72 | 415 | size_t size = a.size(); | 73 | 415 | const A* __restrict a_pos = a.data(); | 74 | 415 | const B* __restrict b_pos = b.data(); | 75 | 415 | UInt8* __restrict c_pos = c.data(); | 76 | 415 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 848 | while (a_pos < a_end) { | 79 | 433 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 433 | ++a_pos; | 81 | 433 | ++b_pos; | 82 | 433 | ++c_pos; | 83 | 433 | } | 84 | 415 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 13 | 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 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 171 | PaddedPODArray<UInt8>& c) { | 72 | 171 | size_t size = a.size(); | 73 | 171 | const A* __restrict a_pos = a.data(); | 74 | 171 | const B* __restrict b_pos = b.data(); | 75 | 171 | UInt8* __restrict c_pos = c.data(); | 76 | 171 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 484 | while (a_pos < a_end) { | 79 | 313 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 313 | ++a_pos; | 81 | 313 | ++b_pos; | 82 | 313 | ++c_pos; | 83 | 313 | } | 84 | 171 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 97 | PaddedPODArray<UInt8>& c) { | 72 | 97 | size_t size = a.size(); | 73 | 97 | const A* __restrict a_pos = a.data(); | 74 | 97 | const B* __restrict b_pos = b.data(); | 75 | 97 | UInt8* __restrict c_pos = c.data(); | 76 | 97 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 194 | while (a_pos < a_end) { | 79 | 97 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 97 | ++a_pos; | 81 | 97 | ++b_pos; | 82 | 97 | ++c_pos; | 83 | 97 | } | 84 | 97 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 975 | PaddedPODArray<UInt8>& c) { | 72 | 975 | size_t size = a.size(); | 73 | 975 | const A* __restrict a_pos = a.data(); | 74 | 975 | const B* __restrict b_pos = b.data(); | 75 | 975 | UInt8* __restrict c_pos = c.data(); | 76 | 975 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.16k | while (a_pos < a_end) { | 79 | 2.18k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.18k | ++a_pos; | 81 | 2.18k | ++b_pos; | 82 | 2.18k | ++c_pos; | 83 | 2.18k | } | 84 | 975 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 294 | PaddedPODArray<UInt8>& c) { | 72 | 294 | size_t size = a.size(); | 73 | 294 | const A* __restrict a_pos = a.data(); | 74 | 294 | const B* __restrict b_pos = b.data(); | 75 | 294 | UInt8* __restrict c_pos = c.data(); | 76 | 294 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.83k | while (a_pos < a_end) { | 79 | 1.53k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.53k | ++a_pos; | 81 | 1.53k | ++b_pos; | 82 | 1.53k | ++c_pos; | 83 | 1.53k | } | 84 | 294 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 92 | PaddedPODArray<UInt8>& c) { | 72 | 92 | size_t size = a.size(); | 73 | 92 | const A* __restrict a_pos = a.data(); | 74 | 92 | const B* __restrict b_pos = b.data(); | 75 | 92 | UInt8* __restrict c_pos = c.data(); | 76 | 92 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 184 | while (a_pos < a_end) { | 79 | 92 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 92 | ++a_pos; | 81 | 92 | ++b_pos; | 82 | 92 | ++c_pos; | 83 | 92 | } | 84 | 92 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_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_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_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 | 48 | while (a_pos < a_end) { | 79 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 24 | ++a_pos; | 81 | 24 | ++b_pos; | 82 | 24 | ++c_pos; | 83 | 24 | } | 84 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 115 | PaddedPODArray<UInt8>& c) { | 72 | 115 | size_t size = a.size(); | 73 | 115 | const A* __restrict a_pos = a.data(); | 74 | 115 | const B* __restrict b_pos = b.data(); | 75 | 115 | UInt8* __restrict c_pos = c.data(); | 76 | 115 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 249 | while (a_pos < a_end) { | 79 | 134 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 134 | ++a_pos; | 81 | 134 | ++b_pos; | 82 | 134 | ++c_pos; | 83 | 134 | } | 84 | 115 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 121 | PaddedPODArray<UInt8>& c) { | 72 | 121 | size_t size = a.size(); | 73 | 121 | const A* __restrict a_pos = a.data(); | 74 | 121 | const B* __restrict b_pos = b.data(); | 75 | 121 | UInt8* __restrict c_pos = c.data(); | 76 | 121 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 263 | while (a_pos < a_end) { | 79 | 142 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 142 | ++a_pos; | 81 | 142 | ++b_pos; | 82 | 142 | ++c_pos; | 83 | 142 | } | 84 | 121 | } |
_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 | 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 | 124 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 47 | } |
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 | 3.67k | PaddedPODArray<UInt8>& c) { | 72 | 3.67k | size_t size = a.size(); | 73 | 3.67k | const A* __restrict a_pos = a.data(); | 74 | 3.67k | const B* __restrict b_pos = b.data(); | 75 | 3.67k | UInt8* __restrict c_pos = c.data(); | 76 | 3.67k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.67M | while (a_pos < a_end) { | 79 | 1.67M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.67M | ++a_pos; | 81 | 1.67M | ++b_pos; | 82 | 1.67M | ++c_pos; | 83 | 1.67M | } | 84 | 3.67k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 366 | PaddedPODArray<UInt8>& c) { | 72 | 366 | size_t size = a.size(); | 73 | 366 | const A* __restrict a_pos = a.data(); | 74 | 366 | const B* __restrict b_pos = b.data(); | 75 | 366 | UInt8* __restrict c_pos = c.data(); | 76 | 366 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.66k | while (a_pos < a_end) { | 79 | 6.30k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.30k | ++a_pos; | 81 | 6.30k | ++b_pos; | 82 | 6.30k | ++c_pos; | 83 | 6.30k | } | 84 | 366 | } |
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 | 1.08k | PaddedPODArray<UInt8>& c) { | 72 | 1.08k | size_t size = a.size(); | 73 | 1.08k | const A* __restrict a_pos = a.data(); | 74 | 1.08k | const B* __restrict b_pos = b.data(); | 75 | 1.08k | UInt8* __restrict c_pos = c.data(); | 76 | 1.08k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.93M | while (a_pos < a_end) { | 79 | 5.93M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.93M | ++a_pos; | 81 | 5.93M | ++b_pos; | 82 | 5.93M | ++c_pos; | 83 | 5.93M | } | 84 | 1.08k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 324 | 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 | 40 | } |
_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 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 331 | while (a_pos < a_end) { | 79 | 252 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 252 | ++a_pos; | 81 | 252 | ++b_pos; | 82 | 252 | ++c_pos; | 83 | 252 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 64 | PaddedPODArray<UInt8>& c) { | 72 | 64 | size_t size = a.size(); | 73 | 64 | const A* __restrict a_pos = a.data(); | 74 | 64 | const B* __restrict b_pos = b.data(); | 75 | 64 | UInt8* __restrict c_pos = c.data(); | 76 | 64 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 583 | while (a_pos < a_end) { | 79 | 519 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 519 | ++a_pos; | 81 | 519 | ++b_pos; | 82 | 519 | ++c_pos; | 83 | 519 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_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 | 6 | 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 | 2 | } |
_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 _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 31 | ++a_pos; | 81 | 31 | ++b_pos; | 82 | 31 | ++c_pos; | 83 | 31 | } | 84 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 66 | PaddedPODArray<UInt8>& c) { | 72 | 66 | size_t size = a.size(); | 73 | 66 | const A* __restrict a_pos = a.data(); | 74 | 66 | const B* __restrict b_pos = b.data(); | 75 | 66 | UInt8* __restrict c_pos = c.data(); | 76 | 66 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 190 | while (a_pos < a_end) { | 79 | 124 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 124 | ++a_pos; | 81 | 124 | ++b_pos; | 82 | 124 | ++c_pos; | 83 | 124 | } | 84 | 66 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_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 | 11 | 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 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 49 | PaddedPODArray<UInt8>& c) { | 72 | 49 | size_t size = a.size(); | 73 | 49 | const A* __restrict a_pos = a.data(); | 74 | 49 | const B* __restrict b_pos = b.data(); | 75 | 49 | UInt8* __restrict c_pos = c.data(); | 76 | 49 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 99 | while (a_pos < a_end) { | 79 | 50 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 50 | ++a_pos; | 81 | 50 | ++b_pos; | 82 | 50 | ++c_pos; | 83 | 50 | } | 84 | 49 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 21 | PaddedPODArray<UInt8>& c) { | 72 | 21 | size_t size = a.size(); | 73 | 21 | const A* __restrict a_pos = a.data(); | 74 | 21 | const B* __restrict b_pos = b.data(); | 75 | 21 | UInt8* __restrict c_pos = c.data(); | 76 | 21 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 89 | while (a_pos < a_end) { | 79 | 68 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 68 | ++a_pos; | 81 | 68 | ++b_pos; | 82 | 68 | ++c_pos; | 83 | 68 | } | 84 | 21 | } |
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 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_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 | 66 | 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 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 91 | PaddedPODArray<UInt8>& c) { | 72 | 91 | size_t size = a.size(); | 73 | 91 | const A* __restrict a_pos = a.data(); | 74 | 91 | const B* __restrict b_pos = b.data(); | 75 | 91 | UInt8* __restrict c_pos = c.data(); | 76 | 91 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 356 | while (a_pos < a_end) { | 79 | 265 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 265 | ++a_pos; | 81 | 265 | ++b_pos; | 82 | 265 | ++c_pos; | 83 | 265 | } | 84 | 91 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.69k | PaddedPODArray<UInt8>& c) { | 72 | 1.69k | size_t size = a.size(); | 73 | 1.69k | const A* __restrict a_pos = a.data(); | 74 | 1.69k | const B* __restrict b_pos = b.data(); | 75 | 1.69k | UInt8* __restrict c_pos = c.data(); | 76 | 1.69k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.80M | while (a_pos < a_end) { | 79 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.80M | ++a_pos; | 81 | 1.80M | ++b_pos; | 82 | 1.80M | ++c_pos; | 83 | 1.80M | } | 84 | 1.69k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 279 | PaddedPODArray<UInt8>& c) { | 72 | 279 | size_t size = a.size(); | 73 | 279 | const A* __restrict a_pos = a.data(); | 74 | 279 | const B* __restrict b_pos = b.data(); | 75 | 279 | UInt8* __restrict c_pos = c.data(); | 76 | 279 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 906 | while (a_pos < a_end) { | 79 | 627 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 627 | ++a_pos; | 81 | 627 | ++b_pos; | 82 | 627 | ++c_pos; | 83 | 627 | } | 84 | 279 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_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 | 11 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 152 | PaddedPODArray<UInt8>& c) { | 72 | 152 | size_t size = a.size(); | 73 | 152 | const A* __restrict a_pos = a.data(); | 74 | 152 | const B* __restrict b_pos = b.data(); | 75 | 152 | UInt8* __restrict c_pos = c.data(); | 76 | 152 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 478 | while (a_pos < a_end) { | 79 | 326 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 326 | ++a_pos; | 81 | 326 | ++b_pos; | 82 | 326 | ++c_pos; | 83 | 326 | } | 84 | 152 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 137 | PaddedPODArray<UInt8>& c) { | 72 | 137 | size_t size = a.size(); | 73 | 137 | const A* __restrict a_pos = a.data(); | 74 | 137 | const B* __restrict b_pos = b.data(); | 75 | 137 | UInt8* __restrict c_pos = c.data(); | 76 | 137 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 450 | while (a_pos < a_end) { | 79 | 313 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 313 | ++a_pos; | 81 | 313 | ++b_pos; | 82 | 313 | ++c_pos; | 83 | 313 | } | 84 | 137 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 179 | PaddedPODArray<UInt8>& c) { | 72 | 179 | size_t size = a.size(); | 73 | 179 | const A* __restrict a_pos = a.data(); | 74 | 179 | const B* __restrict b_pos = b.data(); | 75 | 179 | UInt8* __restrict c_pos = c.data(); | 76 | 179 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.04k | while (a_pos < a_end) { | 79 | 863 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 863 | ++a_pos; | 81 | 863 | ++b_pos; | 82 | 863 | ++c_pos; | 83 | 863 | } | 84 | 179 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 232 | PaddedPODArray<UInt8>& c) { | 72 | 232 | size_t size = a.size(); | 73 | 232 | const A* __restrict a_pos = a.data(); | 74 | 232 | const B* __restrict b_pos = b.data(); | 75 | 232 | UInt8* __restrict c_pos = c.data(); | 76 | 232 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.45k | while (a_pos < a_end) { | 79 | 5.21k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.21k | ++a_pos; | 81 | 5.21k | ++b_pos; | 82 | 5.21k | ++c_pos; | 83 | 5.21k | } | 84 | 232 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 152 | PaddedPODArray<UInt8>& c) { | 72 | 152 | size_t size = a.size(); | 73 | 152 | const A* __restrict a_pos = a.data(); | 74 | 152 | const B* __restrict b_pos = b.data(); | 75 | 152 | UInt8* __restrict c_pos = c.data(); | 76 | 152 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 478 | while (a_pos < a_end) { | 79 | 326 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 326 | ++a_pos; | 81 | 326 | ++b_pos; | 82 | 326 | ++c_pos; | 83 | 326 | } | 84 | 152 | } |
_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 | 153 | PaddedPODArray<UInt8>& c) { | 72 | 153 | size_t size = a.size(); | 73 | 153 | const A* __restrict a_pos = a.data(); | 74 | 153 | const B* __restrict b_pos = b.data(); | 75 | 153 | UInt8* __restrict c_pos = c.data(); | 76 | 153 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 499 | while (a_pos < a_end) { | 79 | 346 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 346 | ++a_pos; | 81 | 346 | ++b_pos; | 82 | 346 | ++c_pos; | 83 | 346 | } | 84 | 153 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 166 | PaddedPODArray<UInt8>& c) { | 72 | 166 | size_t size = a.size(); | 73 | 166 | const A* __restrict a_pos = a.data(); | 74 | 166 | const B* __restrict b_pos = b.data(); | 75 | 166 | UInt8* __restrict c_pos = c.data(); | 76 | 166 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 532 | while (a_pos < a_end) { | 79 | 366 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 366 | ++a_pos; | 81 | 366 | ++b_pos; | 82 | 366 | ++c_pos; | 83 | 366 | } | 84 | 166 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 446 | PaddedPODArray<UInt8>& c) { | 72 | 446 | size_t size = a.size(); | 73 | 446 | const A* __restrict a_pos = a.data(); | 74 | 446 | const B* __restrict b_pos = b.data(); | 75 | 446 | UInt8* __restrict c_pos = c.data(); | 76 | 446 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.75k | while (a_pos < a_end) { | 79 | 6.30k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.30k | ++a_pos; | 81 | 6.30k | ++b_pos; | 82 | 6.30k | ++c_pos; | 83 | 6.30k | } | 84 | 446 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_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 | 11 | 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 | 2 | } |
_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 | 53 | PaddedPODArray<UInt8>& c) { | 72 | 53 | size_t size = a.size(); | 73 | 53 | const A* __restrict a_pos = a.data(); | 74 | 53 | const B* __restrict b_pos = b.data(); | 75 | 53 | UInt8* __restrict c_pos = c.data(); | 76 | 53 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 165 | while (a_pos < a_end) { | 79 | 112 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 112 | ++a_pos; | 81 | 112 | ++b_pos; | 82 | 112 | ++c_pos; | 83 | 112 | } | 84 | 53 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 43 | PaddedPODArray<UInt8>& c) { | 72 | 43 | size_t size = a.size(); | 73 | 43 | const A* __restrict a_pos = a.data(); | 74 | 43 | const B* __restrict b_pos = b.data(); | 75 | 43 | UInt8* __restrict c_pos = c.data(); | 76 | 43 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 93 | while (a_pos < a_end) { | 79 | 50 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 50 | ++a_pos; | 81 | 50 | ++b_pos; | 82 | 50 | ++c_pos; | 83 | 50 | } | 84 | 43 | } |
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 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_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 | 214k | PaddedPODArray<UInt8>& c) { |
88 | 214k | size_t size = a.size(); |
89 | 214k | const A* __restrict a_pos = a.data(); |
90 | 214k | UInt8* __restrict c_pos = c.data(); |
91 | 214k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 173M | while (a_pos < a_end) { |
94 | 173M | *c_pos = Op::apply(*a_pos, b); |
95 | 173M | ++a_pos; |
96 | 173M | ++c_pos; |
97 | 173M | } |
98 | 214k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.53k | PaddedPODArray<UInt8>& c) { | 88 | 1.53k | size_t size = a.size(); | 89 | 1.53k | const A* __restrict a_pos = a.data(); | 90 | 1.53k | UInt8* __restrict c_pos = c.data(); | 91 | 1.53k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.03k | while (a_pos < a_end) { | 94 | 3.49k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.49k | ++a_pos; | 96 | 3.49k | ++c_pos; | 97 | 3.49k | } | 98 | 1.53k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 726 | PaddedPODArray<UInt8>& c) { | 88 | 726 | size_t size = a.size(); | 89 | 726 | const A* __restrict a_pos = a.data(); | 90 | 726 | UInt8* __restrict c_pos = c.data(); | 91 | 726 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 203k | while (a_pos < a_end) { | 94 | 203k | *c_pos = Op::apply(*a_pos, b); | 95 | 203k | ++a_pos; | 96 | 203k | ++c_pos; | 97 | 203k | } | 98 | 726 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 306 | PaddedPODArray<UInt8>& c) { | 88 | 306 | size_t size = a.size(); | 89 | 306 | const A* __restrict a_pos = a.data(); | 90 | 306 | UInt8* __restrict c_pos = c.data(); | 91 | 306 | 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 | 306 | } |
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 | 6.81k | PaddedPODArray<UInt8>& c) { | 88 | 6.81k | size_t size = a.size(); | 89 | 6.81k | const A* __restrict a_pos = a.data(); | 90 | 6.81k | UInt8* __restrict c_pos = c.data(); | 91 | 6.81k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.12M | while (a_pos < a_end) { | 94 | 9.11M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.11M | ++a_pos; | 96 | 9.11M | ++c_pos; | 97 | 9.11M | } | 98 | 6.81k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.51k | PaddedPODArray<UInt8>& c) { | 88 | 1.51k | size_t size = a.size(); | 89 | 1.51k | const A* __restrict a_pos = a.data(); | 90 | 1.51k | UInt8* __restrict c_pos = c.data(); | 91 | 1.51k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 158k | *c_pos = Op::apply(*a_pos, b); | 95 | 158k | ++a_pos; | 96 | 158k | ++c_pos; | 97 | 158k | } | 98 | 1.51k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 11.5k | PaddedPODArray<UInt8>& c) { | 88 | 11.5k | size_t size = a.size(); | 89 | 11.5k | const A* __restrict a_pos = a.data(); | 90 | 11.5k | UInt8* __restrict c_pos = c.data(); | 91 | 11.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.70M | while (a_pos < a_end) { | 94 | 1.68M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.68M | ++a_pos; | 96 | 1.68M | ++c_pos; | 97 | 1.68M | } | 98 | 11.5k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28.7k | PaddedPODArray<UInt8>& c) { | 88 | 28.7k | size_t size = a.size(); | 89 | 28.7k | const A* __restrict a_pos = a.data(); | 90 | 28.7k | UInt8* __restrict c_pos = c.data(); | 91 | 28.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.71M | while (a_pos < a_end) { | 94 | 3.68M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.68M | ++a_pos; | 96 | 3.68M | ++c_pos; | 97 | 3.68M | } | 98 | 28.7k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 73 | PaddedPODArray<UInt8>& c) { | 88 | 73 | size_t size = a.size(); | 89 | 73 | const A* __restrict a_pos = a.data(); | 90 | 73 | UInt8* __restrict c_pos = c.data(); | 91 | 73 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 101k | *c_pos = Op::apply(*a_pos, b); | 95 | 101k | ++a_pos; | 96 | 101k | ++c_pos; | 97 | 101k | } | 98 | 73 | } |
_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 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_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 | 26 | while (a_pos < a_end) { | 94 | 22 | *c_pos = Op::apply(*a_pos, b); | 95 | 22 | ++a_pos; | 96 | 22 | ++c_pos; | 97 | 22 | } | 98 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 833 | PaddedPODArray<UInt8>& c) { | 88 | 833 | size_t size = a.size(); | 89 | 833 | const A* __restrict a_pos = a.data(); | 90 | 833 | UInt8* __restrict c_pos = c.data(); | 91 | 833 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 719k | *c_pos = Op::apply(*a_pos, b); | 95 | 719k | ++a_pos; | 96 | 719k | ++c_pos; | 97 | 719k | } | 98 | 833 | } |
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 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_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 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.04k | while (a_pos < a_end) { | 94 | 1.00k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.00k | ++a_pos; | 96 | 1.00k | ++c_pos; | 97 | 1.00k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 802 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.68k | PaddedPODArray<UInt8>& c) { | 88 | 1.68k | size_t size = a.size(); | 89 | 1.68k | const A* __restrict a_pos = a.data(); | 90 | 1.68k | UInt8* __restrict c_pos = c.data(); | 91 | 1.68k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 646k | while (a_pos < a_end) { | 94 | 644k | *c_pos = Op::apply(*a_pos, b); | 95 | 644k | ++a_pos; | 96 | 644k | ++c_pos; | 97 | 644k | } | 98 | 1.68k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.08k | PaddedPODArray<UInt8>& c) { | 88 | 2.08k | size_t size = a.size(); | 89 | 2.08k | const A* __restrict a_pos = a.data(); | 90 | 2.08k | UInt8* __restrict c_pos = c.data(); | 91 | 2.08k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 272k | while (a_pos < a_end) { | 94 | 270k | *c_pos = Op::apply(*a_pos, b); | 95 | 270k | ++a_pos; | 96 | 270k | ++c_pos; | 97 | 270k | } | 98 | 2.08k | } |
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 | 161 | PaddedPODArray<UInt8>& c) { | 88 | 161 | size_t size = a.size(); | 89 | 161 | const A* __restrict a_pos = a.data(); | 90 | 161 | UInt8* __restrict c_pos = c.data(); | 91 | 161 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.68k | while (a_pos < a_end) { | 94 | 4.52k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.52k | ++a_pos; | 96 | 4.52k | ++c_pos; | 97 | 4.52k | } | 98 | 161 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 469 | PaddedPODArray<UInt8>& c) { | 88 | 469 | size_t size = a.size(); | 89 | 469 | const A* __restrict a_pos = a.data(); | 90 | 469 | UInt8* __restrict c_pos = c.data(); | 91 | 469 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.67M | while (a_pos < a_end) { | 94 | 1.67M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.67M | ++a_pos; | 96 | 1.67M | ++c_pos; | 97 | 1.67M | } | 98 | 469 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 210 | while (a_pos < a_end) { | 94 | 116 | *c_pos = Op::apply(*a_pos, b); | 95 | 116 | ++a_pos; | 96 | 116 | ++c_pos; | 97 | 116 | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 373 | PaddedPODArray<UInt8>& c) { | 88 | 373 | size_t size = a.size(); | 89 | 373 | const A* __restrict a_pos = a.data(); | 90 | 373 | UInt8* __restrict c_pos = c.data(); | 91 | 373 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 373 | } |
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.00k | PaddedPODArray<UInt8>& c) { | 88 | 1.00k | size_t size = a.size(); | 89 | 1.00k | const A* __restrict a_pos = a.data(); | 90 | 1.00k | UInt8* __restrict c_pos = c.data(); | 91 | 1.00k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.37k | while (a_pos < a_end) { | 94 | 5.36k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.36k | ++a_pos; | 96 | 5.36k | ++c_pos; | 97 | 5.36k | } | 98 | 1.00k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.01k | PaddedPODArray<UInt8>& c) { | 88 | 2.01k | size_t size = a.size(); | 89 | 2.01k | const A* __restrict a_pos = a.data(); | 90 | 2.01k | UInt8* __restrict c_pos = c.data(); | 91 | 2.01k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.77k | while (a_pos < a_end) { | 94 | 5.76k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.76k | ++a_pos; | 96 | 5.76k | ++c_pos; | 97 | 5.76k | } | 98 | 2.01k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.46k | PaddedPODArray<UInt8>& c) { | 88 | 1.46k | size_t size = a.size(); | 89 | 1.46k | const A* __restrict a_pos = a.data(); | 90 | 1.46k | UInt8* __restrict c_pos = c.data(); | 91 | 1.46k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.47k | while (a_pos < a_end) { | 94 | 5.01k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.01k | ++a_pos; | 96 | 5.01k | ++c_pos; | 97 | 5.01k | } | 98 | 1.46k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 484 | PaddedPODArray<UInt8>& c) { | 88 | 484 | size_t size = a.size(); | 89 | 484 | const A* __restrict a_pos = a.data(); | 90 | 484 | UInt8* __restrict c_pos = c.data(); | 91 | 484 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.8k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 484 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 19.9k | PaddedPODArray<UInt8>& c) { | 88 | 19.9k | size_t size = a.size(); | 89 | 19.9k | const A* __restrict a_pos = a.data(); | 90 | 19.9k | UInt8* __restrict c_pos = c.data(); | 91 | 19.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.65M | while (a_pos < a_end) { | 94 | 6.63M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.63M | ++a_pos; | 96 | 6.63M | ++c_pos; | 97 | 6.63M | } | 98 | 19.9k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.32k | PaddedPODArray<UInt8>& c) { | 88 | 6.32k | size_t size = a.size(); | 89 | 6.32k | const A* __restrict a_pos = a.data(); | 90 | 6.32k | UInt8* __restrict c_pos = c.data(); | 91 | 6.32k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.37M | while (a_pos < a_end) { | 94 | 5.36M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.36M | ++a_pos; | 96 | 5.36M | ++c_pos; | 97 | 5.36M | } | 98 | 6.32k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.4k | PaddedPODArray<UInt8>& c) { | 88 | 13.4k | size_t size = a.size(); | 89 | 13.4k | const A* __restrict a_pos = a.data(); | 90 | 13.4k | UInt8* __restrict c_pos = c.data(); | 91 | 13.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 173k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 13.4k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.95k | PaddedPODArray<UInt8>& c) { | 88 | 1.95k | size_t size = a.size(); | 89 | 1.95k | const A* __restrict a_pos = a.data(); | 90 | 1.95k | UInt8* __restrict c_pos = c.data(); | 91 | 1.95k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.1k | while (a_pos < a_end) { | 94 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 12.2k | ++a_pos; | 96 | 12.2k | ++c_pos; | 97 | 12.2k | } | 98 | 1.95k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 293 | PaddedPODArray<UInt8>& c) { | 88 | 293 | size_t size = a.size(); | 89 | 293 | const A* __restrict a_pos = a.data(); | 90 | 293 | UInt8* __restrict c_pos = c.data(); | 91 | 293 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.93k | 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 | 293 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 100 | PaddedPODArray<UInt8>& c) { | 88 | 100 | size_t size = a.size(); | 89 | 100 | const A* __restrict a_pos = a.data(); | 90 | 100 | UInt8* __restrict c_pos = c.data(); | 91 | 100 | 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 | 100 | } |
_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 | 216 | PaddedPODArray<UInt8>& c) { | 88 | 216 | size_t size = a.size(); | 89 | 216 | const A* __restrict a_pos = a.data(); | 90 | 216 | UInt8* __restrict c_pos = c.data(); | 91 | 216 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.57k | while (a_pos < a_end) { | 94 | 3.36k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.36k | ++a_pos; | 96 | 3.36k | ++c_pos; | 97 | 3.36k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 64 | while (a_pos < a_end) { | 94 | 38 | *c_pos = Op::apply(*a_pos, b); | 95 | 38 | ++a_pos; | 96 | 38 | ++c_pos; | 97 | 38 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.37k | PaddedPODArray<UInt8>& c) { | 88 | 2.37k | size_t size = a.size(); | 89 | 2.37k | const A* __restrict a_pos = a.data(); | 90 | 2.37k | UInt8* __restrict c_pos = c.data(); | 91 | 2.37k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 346k | while (a_pos < a_end) { | 94 | 343k | *c_pos = Op::apply(*a_pos, b); | 95 | 343k | ++a_pos; | 96 | 343k | ++c_pos; | 97 | 343k | } | 98 | 2.37k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 232 | PaddedPODArray<UInt8>& c) { | 88 | 232 | size_t size = a.size(); | 89 | 232 | const A* __restrict a_pos = a.data(); | 90 | 232 | UInt8* __restrict c_pos = c.data(); | 91 | 232 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 641k | while (a_pos < a_end) { | 94 | 641k | *c_pos = Op::apply(*a_pos, b); | 95 | 641k | ++a_pos; | 96 | 641k | ++c_pos; | 97 | 641k | } | 98 | 232 | } |
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 | 175 | PaddedPODArray<UInt8>& c) { | 88 | 175 | size_t size = a.size(); | 89 | 175 | const A* __restrict a_pos = a.data(); | 90 | 175 | UInt8* __restrict c_pos = c.data(); | 91 | 175 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 127k | while (a_pos < a_end) { | 94 | 127k | *c_pos = Op::apply(*a_pos, b); | 95 | 127k | ++a_pos; | 96 | 127k | ++c_pos; | 97 | 127k | } | 98 | 175 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 192 | PaddedPODArray<UInt8>& c) { | 88 | 192 | size_t size = a.size(); | 89 | 192 | const A* __restrict a_pos = a.data(); | 90 | 192 | UInt8* __restrict c_pos = c.data(); | 91 | 192 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 165k | while (a_pos < a_end) { | 94 | 164k | *c_pos = Op::apply(*a_pos, b); | 95 | 164k | ++a_pos; | 96 | 164k | ++c_pos; | 97 | 164k | } | 98 | 192 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.23k | PaddedPODArray<UInt8>& c) { | 88 | 2.23k | size_t size = a.size(); | 89 | 2.23k | const A* __restrict a_pos = a.data(); | 90 | 2.23k | UInt8* __restrict c_pos = c.data(); | 91 | 2.23k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.00M | while (a_pos < a_end) { | 94 | 5.00M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.00M | ++a_pos; | 96 | 5.00M | ++c_pos; | 97 | 5.00M | } | 98 | 2.23k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 28.3k | PaddedPODArray<UInt8>& c) { | 88 | 28.3k | size_t size = a.size(); | 89 | 28.3k | const A* __restrict a_pos = a.data(); | 90 | 28.3k | UInt8* __restrict c_pos = c.data(); | 91 | 28.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 75.4M | while (a_pos < a_end) { | 94 | 75.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 75.3M | ++a_pos; | 96 | 75.3M | ++c_pos; | 97 | 75.3M | } | 98 | 28.3k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 721 | PaddedPODArray<UInt8>& c) { | 88 | 721 | size_t size = a.size(); | 89 | 721 | const A* __restrict a_pos = a.data(); | 90 | 721 | UInt8* __restrict c_pos = c.data(); | 91 | 721 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8k | while (a_pos < a_end) { | 94 | 30.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.1k | ++a_pos; | 96 | 30.1k | ++c_pos; | 97 | 30.1k | } | 98 | 721 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 381 | PaddedPODArray<UInt8>& c) { | 88 | 381 | size_t size = a.size(); | 89 | 381 | const A* __restrict a_pos = a.data(); | 90 | 381 | UInt8* __restrict c_pos = c.data(); | 91 | 381 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.8k | while (a_pos < a_end) { | 94 | 15.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.4k | ++a_pos; | 96 | 15.4k | ++c_pos; | 97 | 15.4k | } | 98 | 381 | } |
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 | 91 | PaddedPODArray<UInt8>& c) { | 88 | 91 | size_t size = a.size(); | 89 | 91 | const A* __restrict a_pos = a.data(); | 90 | 91 | UInt8* __restrict c_pos = c.data(); | 91 | 91 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 91 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 141 | PaddedPODArray<UInt8>& c) { | 88 | 141 | size_t size = a.size(); | 89 | 141 | const A* __restrict a_pos = a.data(); | 90 | 141 | UInt8* __restrict c_pos = c.data(); | 91 | 141 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 154k | while (a_pos < a_end) { | 94 | 154k | *c_pos = Op::apply(*a_pos, b); | 95 | 154k | ++a_pos; | 96 | 154k | ++c_pos; | 97 | 154k | } | 98 | 141 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 137 | PaddedPODArray<UInt8>& c) { | 88 | 137 | size_t size = a.size(); | 89 | 137 | const A* __restrict a_pos = a.data(); | 90 | 137 | UInt8* __restrict c_pos = c.data(); | 91 | 137 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 132k | while (a_pos < a_end) { | 94 | 132k | *c_pos = Op::apply(*a_pos, b); | 95 | 132k | ++a_pos; | 96 | 132k | ++c_pos; | 97 | 132k | } | 98 | 137 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 209 | PaddedPODArray<UInt8>& c) { | 88 | 209 | size_t size = a.size(); | 89 | 209 | const A* __restrict a_pos = a.data(); | 90 | 209 | UInt8* __restrict c_pos = c.data(); | 91 | 209 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 141k | while (a_pos < a_end) { | 94 | 141k | *c_pos = Op::apply(*a_pos, b); | 95 | 141k | ++a_pos; | 96 | 141k | ++c_pos; | 97 | 141k | } | 98 | 209 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 32.2k | PaddedPODArray<UInt8>& c) { | 88 | 32.2k | size_t size = a.size(); | 89 | 32.2k | const A* __restrict a_pos = a.data(); | 90 | 32.2k | UInt8* __restrict c_pos = c.data(); | 91 | 32.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 27.3M | while (a_pos < a_end) { | 94 | 27.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 27.3M | ++a_pos; | 96 | 27.3M | ++c_pos; | 97 | 27.3M | } | 98 | 32.2k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 39.7k | PaddedPODArray<UInt8>& c) { | 88 | 39.7k | size_t size = a.size(); | 89 | 39.7k | const A* __restrict a_pos = a.data(); | 90 | 39.7k | UInt8* __restrict c_pos = c.data(); | 91 | 39.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31.6M | while (a_pos < a_end) { | 94 | 31.6M | *c_pos = Op::apply(*a_pos, b); | 95 | 31.6M | ++a_pos; | 96 | 31.6M | ++c_pos; | 97 | 31.6M | } | 98 | 39.7k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 610 | PaddedPODArray<UInt8>& c) { | 88 | 610 | size_t size = a.size(); | 89 | 610 | const A* __restrict a_pos = a.data(); | 90 | 610 | UInt8* __restrict c_pos = c.data(); | 91 | 610 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 39.9k | while (a_pos < a_end) { | 94 | 39.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 39.3k | ++a_pos; | 96 | 39.3k | ++c_pos; | 97 | 39.3k | } | 98 | 610 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.23k | PaddedPODArray<UInt8>& c) { | 88 | 1.23k | size_t size = a.size(); | 89 | 1.23k | const A* __restrict a_pos = a.data(); | 90 | 1.23k | UInt8* __restrict c_pos = c.data(); | 91 | 1.23k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 46.3k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 1.23k | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 58 | PaddedPODArray<UInt8>& c) { | 88 | 58 | size_t size = a.size(); | 89 | 58 | const A* __restrict a_pos = a.data(); | 90 | 58 | UInt8* __restrict c_pos = c.data(); | 91 | 58 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 58 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 73 | PaddedPODArray<UInt8>& c) { | 88 | 73 | size_t size = a.size(); | 89 | 73 | const A* __restrict a_pos = a.data(); | 90 | 73 | UInt8* __restrict c_pos = c.data(); | 91 | 73 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 73 | } |
_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 | 170 | PaddedPODArray<UInt8>& c) { | 88 | 170 | size_t size = a.size(); | 89 | 170 | const A* __restrict a_pos = a.data(); | 90 | 170 | UInt8* __restrict c_pos = c.data(); | 91 | 170 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 342 | while (a_pos < a_end) { | 94 | 172 | *c_pos = Op::apply(*a_pos, b); | 95 | 172 | ++a_pos; | 96 | 172 | ++c_pos; | 97 | 172 | } | 98 | 170 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 166 | PaddedPODArray<UInt8>& c) { | 88 | 166 | size_t size = a.size(); | 89 | 166 | const A* __restrict a_pos = a.data(); | 90 | 166 | UInt8* __restrict c_pos = c.data(); | 91 | 166 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 332 | while (a_pos < a_end) { | 94 | 166 | *c_pos = Op::apply(*a_pos, b); | 95 | 166 | ++a_pos; | 96 | 166 | ++c_pos; | 97 | 166 | } | 98 | 166 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 107 | PaddedPODArray<UInt8>& c) { | 88 | 107 | size_t size = a.size(); | 89 | 107 | const A* __restrict a_pos = a.data(); | 90 | 107 | UInt8* __restrict c_pos = c.data(); | 91 | 107 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 601k | while (a_pos < a_end) { | 94 | 601k | *c_pos = Op::apply(*a_pos, b); | 95 | 601k | ++a_pos; | 96 | 601k | ++c_pos; | 97 | 601k | } | 98 | 107 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 115 | PaddedPODArray<UInt8>& c) { | 88 | 115 | size_t size = a.size(); | 89 | 115 | const A* __restrict a_pos = a.data(); | 90 | 115 | UInt8* __restrict c_pos = c.data(); | 91 | 115 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 601k | while (a_pos < a_end) { | 94 | 601k | *c_pos = Op::apply(*a_pos, b); | 95 | 601k | ++a_pos; | 96 | 601k | ++c_pos; | 97 | 601k | } | 98 | 115 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 6.96k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 6.96k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 6.96k | } 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 | 258 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 258 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 258 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 30 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 30 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 30 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 142 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 142 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 142 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 884 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 884 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 884 | } |
_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 | 110 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 110 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 110 | } |
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 | 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 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 222 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 222 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 222 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 518 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 518 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 518 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 54 | } |
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 | 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 | } |
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 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 80 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 92 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 92 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 92 | } |
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 | 602 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 602 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 602 | } |
_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 | 166 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 166 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 591k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 591k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 591k | } |
119 | 166 | } _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 | 68 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 68 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 339k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 339k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 339k | } | 119 | 68 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 61 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 61 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 252k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 252k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 252k | } | 119 | 61 | } |
|
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 | 636 | PaddedPODArray<UInt8>& c) { |
133 | 636 | size_t size = a_offsets.size(); |
134 | 636 | ColumnString::Offset prev_a_offset = 0; |
135 | 636 | ColumnString::Offset prev_b_offset = 0; |
136 | 636 | const auto* a_pos = a_data.data(); |
137 | 636 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.99k | for (size_t i = 0; i < size; ++i) { |
140 | 1.36k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.36k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.36k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.36k | 0); |
144 | | |
145 | 1.36k | prev_a_offset = a_offsets[i]; |
146 | 1.36k | prev_b_offset = b_offsets[i]; |
147 | 1.36k | } |
148 | 636 | } _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 | 94 | PaddedPODArray<UInt8>& c) { | 133 | 94 | size_t size = a_offsets.size(); | 134 | 94 | ColumnString::Offset prev_a_offset = 0; | 135 | 94 | ColumnString::Offset prev_b_offset = 0; | 136 | 94 | const auto* a_pos = a_data.data(); | 137 | 94 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 346 | for (size_t i = 0; i < size; ++i) { | 140 | 252 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 252 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 252 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 252 | 0); | 144 | | | 145 | 252 | prev_a_offset = a_offsets[i]; | 146 | 252 | prev_b_offset = b_offsets[i]; | 147 | 252 | } | 148 | 94 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 416 | PaddedPODArray<UInt8>& c) { | 133 | 416 | size_t size = a_offsets.size(); | 134 | 416 | ColumnString::Offset prev_a_offset = 0; | 135 | 416 | ColumnString::Offset prev_b_offset = 0; | 136 | 416 | const auto* a_pos = a_data.data(); | 137 | 416 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.35k | for (size_t i = 0; i < size; ++i) { | 140 | 938 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 938 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 938 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 938 | 0); | 144 | | | 145 | 938 | prev_a_offset = a_offsets[i]; | 146 | 938 | prev_b_offset = b_offsets[i]; | 147 | 938 | } | 148 | 416 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 124 | PaddedPODArray<UInt8>& c) { | 133 | 124 | size_t size = a_offsets.size(); | 134 | 124 | ColumnString::Offset prev_a_offset = 0; | 135 | 124 | ColumnString::Offset prev_b_offset = 0; | 136 | 124 | const auto* a_pos = a_data.data(); | 137 | 124 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 248 | for (size_t i = 0; i < size; ++i) { | 140 | 124 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 124 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 124 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 124 | 0); | 144 | | | 145 | 124 | prev_a_offset = a_offsets[i]; | 146 | 124 | prev_b_offset = b_offsets[i]; | 147 | 124 | } | 148 | 124 | } |
|
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 | 1.85k | PaddedPODArray<UInt8>& c) { |
155 | 1.85k | size_t size = a_offsets.size(); |
156 | 1.85k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.85k | const auto* a_pos = a_data.data(); |
158 | 1.85k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.56M | for (size_t i = 0; i < size; ++i) { |
161 | 1.56M | c[i] = Op::apply( |
162 | 1.56M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.56M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.56M | 0); |
165 | | |
166 | 1.56M | prev_a_offset = a_offsets[i]; |
167 | 1.56M | } |
168 | 1.85k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 179 | PaddedPODArray<UInt8>& c) { | 155 | 179 | size_t size = a_offsets.size(); | 156 | 179 | ColumnString::Offset prev_a_offset = 0; | 157 | 179 | const auto* a_pos = a_data.data(); | 158 | 179 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 325k | for (size_t i = 0; i < size; ++i) { | 161 | 325k | c[i] = Op::apply( | 162 | 325k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 325k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 325k | 0); | 165 | | | 166 | 325k | prev_a_offset = a_offsets[i]; | 167 | 325k | } | 168 | 179 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 243 | PaddedPODArray<UInt8>& c) { | 155 | 243 | size_t size = a_offsets.size(); | 156 | 243 | ColumnString::Offset prev_a_offset = 0; | 157 | 243 | const auto* a_pos = a_data.data(); | 158 | 243 | 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 | 243 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 610 | PaddedPODArray<UInt8>& c) { | 155 | 610 | size_t size = a_offsets.size(); | 156 | 610 | ColumnString::Offset prev_a_offset = 0; | 157 | 610 | const auto* a_pos = a_data.data(); | 158 | 610 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 520k | for (size_t i = 0; i < size; ++i) { | 161 | 519k | c[i] = Op::apply( | 162 | 519k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 519k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 519k | 0); | 165 | | | 166 | 519k | prev_a_offset = a_offsets[i]; | 167 | 519k | } | 168 | 610 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 820 | PaddedPODArray<UInt8>& c) { | 155 | 820 | size_t size = a_offsets.size(); | 156 | 820 | ColumnString::Offset prev_a_offset = 0; | 157 | 820 | const auto* a_pos = a_data.data(); | 158 | 820 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 569k | for (size_t i = 0; i < size; ++i) { | 161 | 569k | c[i] = Op::apply( | 162 | 569k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 569k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 569k | 0); | 165 | | | 166 | 569k | prev_a_offset = a_offsets[i]; | 167 | 569k | } | 168 | 820 | } |
|
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 | 1.46k | PaddedPODArray<UInt8>& c) { |
187 | 1.46k | size_t size = a_offsets.size(); |
188 | 1.46k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.46k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.46k | const auto* a_pos = a_data.data(); |
191 | 1.46k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 3.43k | for (size_t i = 0; i < size; ++i) { |
194 | 1.96k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.96k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.96k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.96k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.96k | prev_a_offset = a_offsets[i]; |
201 | 1.96k | prev_b_offset = b_offsets[i]; |
202 | 1.96k | } |
203 | 1.46k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.41k | PaddedPODArray<UInt8>& c) { | 187 | 1.41k | size_t size = a_offsets.size(); | 188 | 1.41k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.41k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.41k | const auto* a_pos = a_data.data(); | 191 | 1.41k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 3.32k | for (size_t i = 0; i < size; ++i) { | 194 | 1.90k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.90k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.90k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.90k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.90k | prev_a_offset = a_offsets[i]; | 201 | 1.90k | prev_b_offset = b_offsets[i]; | 202 | 1.90k | } | 203 | 1.41k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 52 | PaddedPODArray<UInt8>& c) { | 187 | 52 | size_t size = a_offsets.size(); | 188 | 52 | ColumnString::Offset prev_a_offset = 0; | 189 | 52 | ColumnString::Offset prev_b_offset = 0; | 190 | 52 | const auto* a_pos = a_data.data(); | 191 | 52 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 113 | for (size_t i = 0; i < size; ++i) { | 194 | 61 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 61 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 61 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 61 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 61 | prev_a_offset = a_offsets[i]; | 201 | 61 | prev_b_offset = b_offsets[i]; | 202 | 61 | } | 203 | 52 | } |
|
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 | 24.9k | PaddedPODArray<UInt8>& c) { |
210 | 24.9k | size_t size = a_offsets.size(); |
211 | 24.9k | if (b_size == 0) { |
212 | 2 | auto* __restrict data = c.data(); |
213 | 2 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 2 | ColumnString::Offset prev_a_offset = 0; |
216 | 10 | for (size_t i = 0; i < size; ++i) { |
217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 8 | prev_a_offset = offsets[i]; |
219 | 8 | } |
220 | 24.9k | } else { |
221 | 24.9k | ColumnString::Offset prev_a_offset = 0; |
222 | 24.9k | const auto* a_pos = a_data.data(); |
223 | 24.9k | const auto* b_pos = b_data.data(); |
224 | 12.6M | for (size_t i = 0; i < size; ++i) { |
225 | 12.6M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 12.6M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 12.6M | b_pos, b_size); |
228 | 12.6M | prev_a_offset = a_offsets[i]; |
229 | 12.6M | } |
230 | 24.9k | } |
231 | 24.9k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 22.5k | PaddedPODArray<UInt8>& c) { | 210 | 22.5k | size_t size = a_offsets.size(); | 211 | 22.5k | 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 | 22.5k | } else { | 221 | 22.5k | ColumnString::Offset prev_a_offset = 0; | 222 | 22.5k | const auto* a_pos = a_data.data(); | 223 | 22.5k | const auto* b_pos = b_data.data(); | 224 | 8.79M | for (size_t i = 0; i < size; ++i) { | 225 | 8.77M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.77M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.77M | b_pos, b_size); | 228 | 8.77M | prev_a_offset = a_offsets[i]; | 229 | 8.77M | } | 230 | 22.5k | } | 231 | 22.5k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.43k | PaddedPODArray<UInt8>& c) { | 210 | 2.43k | size_t size = a_offsets.size(); | 211 | 2.43k | if (b_size == 0) { | 212 | 2 | auto* __restrict data = c.data(); | 213 | 2 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 2 | ColumnString::Offset prev_a_offset = 0; | 216 | 10 | for (size_t i = 0; i < size; ++i) { | 217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 8 | prev_a_offset = offsets[i]; | 219 | 8 | } | 220 | 2.42k | } else { | 221 | 2.42k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.42k | const auto* a_pos = a_data.data(); | 223 | 2.42k | const auto* b_pos = b_data.data(); | 224 | 3.83M | for (size_t i = 0; i < size; ++i) { | 225 | 3.82M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.82M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.82M | b_pos, b_size); | 228 | 3.82M | prev_a_offset = a_offsets[i]; | 229 | 3.82M | } | 230 | 2.42k | } | 231 | 2.43k | } |
|
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 | 36.0k | Op op) { |
296 | 36.0k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 36.0k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 36.0k | slot_literal->slot_type); |
300 | 36.0k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 36.0k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 36.0k | if (zone_map_ptr == nullptr) { |
305 | 938 | return unsupported_zonemap_filter(ctx); |
306 | 938 | } |
307 | 35.0k | const auto& zone_map = *zone_map_ptr; |
308 | 35.0k | if (!zone_map.has_not_null) { |
309 | 215 | return ZoneMapFilterResult::kNoMatch; |
310 | 215 | } |
311 | 34.8k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 109 | return unsupported_zonemap_filter(ctx); |
313 | 109 | } |
314 | | |
315 | 34.7k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 34.7k | const auto& literal = slot_literal->literal; |
317 | 34.7k | switch (effective_op) { |
318 | 9.08k | case Op::EQ: |
319 | 9.08k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.08k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.08k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 2.97k | case Op::LT: |
327 | 2.97k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 2.97k | : ZoneMapFilterResult::kMayMatch; |
329 | 9.60k | case Op::LE: |
330 | 9.60k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 9.60k | : ZoneMapFilterResult::kMayMatch; |
332 | 5.10k | case Op::GT: |
333 | 5.10k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.10k | : ZoneMapFilterResult::kMayMatch; |
335 | 6.84k | case Op::GE: |
336 | 6.84k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 6.84k | : ZoneMapFilterResult::kMayMatch; |
338 | 34.7k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 34.7k | } |
343 | | |
344 | 162k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 162k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 162k | if (!slot_literal.has_value()) { |
347 | 39.4k | return false; |
348 | 39.4k | } |
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 | 123k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 123k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 123k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 123k | 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 | 9 | return false; |
364 | 9 | } |
365 | | |
366 | 123k | return true; |
367 | 123k | } |
368 | | |
369 | 65.8k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 65.8k | return op == Op::EQ && can_evaluate(arguments); |
371 | 65.8k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 40.9k | const VExprSPtrs& arguments, Op op) { |
375 | 40.9k | DORIS_CHECK(op == Op::EQ); |
376 | 40.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 40.9k | DORIS_CHECK(slot_literal.has_value()); |
378 | 40.9k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 40.9k | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 14 | const VExprSPtrs& arguments, Op op) { |
383 | 14 | DORIS_CHECK(op == Op::EQ); |
384 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 14 | DORIS_CHECK(slot_literal.has_value()); |
386 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 14 | } |
388 | | |
389 | 249k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 249k | if (name == NameEquals::name) { |
391 | 146k | return Op::EQ; |
392 | 146k | } |
393 | 103k | if (name == NameNotEquals::name) { |
394 | 7.21k | return Op::NE; |
395 | 7.21k | } |
396 | 95.9k | if (name == NameLess::name) { |
397 | 12.9k | return Op::LT; |
398 | 12.9k | } |
399 | 82.9k | if (name == NameLessOrEquals::name) { |
400 | 31.5k | return Op::LE; |
401 | 31.5k | } |
402 | 51.4k | if (name == NameGreater::name) { |
403 | 25.6k | return Op::GT; |
404 | 25.6k | } |
405 | 25.7k | if (name == NameGreaterOrEquals::name) { |
406 | 25.7k | return Op::GE; |
407 | 25.7k | } |
408 | 18.4E | return std::nullopt; |
409 | 25.7k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 506k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 450k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 2.73k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 9.07k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 15.4k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 4.47k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 23.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 506k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 451k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 2.73k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 9.07k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 15.4k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 4.47k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 23.9k | FunctionComparison() = default; |
|
419 | | |
420 | 1.21M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 1.19M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 654 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 3.08k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 11.8k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.73k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 8.08k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 227k | const ColumnPtr& col_right_ptr) const { |
426 | 227k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 227k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 227k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 227k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 227k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 227k | if (!left_is_const && !right_is_const) { |
435 | 12.8k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 12.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 12.8k | vec_res.resize(col_left->get_data().size()); |
439 | 12.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 12.8k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 12.8k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 12.8k | vec_res); |
443 | | |
444 | 12.8k | block.replace_by_position(result, std::move(col_res)); |
445 | 214k | } else if (!left_is_const && right_is_const) { |
446 | 207k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 207k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 207k | vec_res.resize(col_left->size()); |
450 | 207k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 207k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 207k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 207k | col_right->get_element(0), vec_res); |
454 | | |
455 | 207k | block.replace_by_position(result, std::move(col_res)); |
456 | 207k | } else if (left_is_const && !right_is_const) { |
457 | 6.96k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 6.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 6.96k | vec_res.resize(col_right->size()); |
461 | 6.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 6.96k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 6.96k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 6.96k | col_right->get_data(), vec_res); |
465 | | |
466 | 6.96k | block.replace_by_position(result, std::move(col_res)); |
467 | 6.96k | } |
468 | 227k | return Status::OK(); |
469 | 227k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.60k | const ColumnPtr& col_right_ptr) const { | 426 | 1.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.60k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.60k | if (!left_is_const && !right_is_const) { | 435 | 65 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 65 | vec_res.resize(col_left->get_data().size()); | 439 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 65 | vec_res); | 443 | | | 444 | 65 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.53k | } else if (!left_is_const && right_is_const) { | 446 | 1.53k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.53k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.53k | vec_res.resize(col_left->size()); | 450 | 1.53k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.53k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.53k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.53k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.53k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.53k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.60k | return Status::OK(); | 469 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.35k | const ColumnPtr& col_right_ptr) const { | 426 | 1.35k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.35k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.35k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.35k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.35k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.35k | if (!left_is_const && !right_is_const) { | 435 | 626 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 626 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 626 | vec_res.resize(col_left->get_data().size()); | 439 | 626 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 626 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 626 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 626 | vec_res); | 443 | | | 444 | 626 | block.replace_by_position(result, std::move(col_res)); | 445 | 726 | } else if (!left_is_const && right_is_const) { | 446 | 726 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 726 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 726 | vec_res.resize(col_left->size()); | 450 | 726 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 726 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 726 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 726 | col_right->get_element(0), vec_res); | 454 | | | 455 | 726 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.35k | return Status::OK(); | 469 | 1.35k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 721 | const ColumnPtr& col_right_ptr) const { | 426 | 721 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 721 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 721 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 721 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 721 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 721 | if (!left_is_const && !right_is_const) { | 435 | 415 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 415 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 415 | vec_res.resize(col_left->get_data().size()); | 439 | 415 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 415 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 415 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 415 | vec_res); | 443 | | | 444 | 415 | block.replace_by_position(result, std::move(col_res)); | 445 | 415 | } else if (!left_is_const && right_is_const) { | 446 | 306 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 306 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 306 | vec_res.resize(col_left->size()); | 450 | 306 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 306 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 306 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 306 | col_right->get_element(0), vec_res); | 454 | | | 455 | 306 | block.replace_by_position(result, std::move(col_res)); | 456 | 306 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 721 | return Status::OK(); | 469 | 721 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 6.98k | const ColumnPtr& col_right_ptr) const { | 426 | 6.98k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 6.98k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 6.98k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 6.98k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 6.98k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 6.98k | if (!left_is_const && !right_is_const) { | 435 | 171 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 171 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 171 | vec_res.resize(col_left->get_data().size()); | 439 | 171 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 171 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 171 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 171 | vec_res); | 443 | | | 444 | 171 | block.replace_by_position(result, std::move(col_res)); | 445 | 6.81k | } else if (!left_is_const && right_is_const) { | 446 | 6.55k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6.55k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6.55k | vec_res.resize(col_left->size()); | 450 | 6.55k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6.55k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6.55k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6.55k | col_right->get_element(0), vec_res); | 454 | | | 455 | 6.55k | block.replace_by_position(result, std::move(col_res)); | 456 | 6.55k | } else if (left_is_const && !right_is_const) { | 457 | 258 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 258 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 258 | vec_res.resize(col_right->size()); | 461 | 258 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 258 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 258 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 258 | col_right->get_data(), vec_res); | 465 | | | 466 | 258 | block.replace_by_position(result, std::move(col_res)); | 467 | 258 | } | 468 | 6.98k | return Status::OK(); | 469 | 6.98k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.60k | const ColumnPtr& col_right_ptr) const { | 426 | 1.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.60k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.60k | if (!left_is_const && !right_is_const) { | 435 | 97 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 97 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 97 | vec_res.resize(col_left->get_data().size()); | 439 | 97 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 97 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 97 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 97 | vec_res); | 443 | | | 444 | 97 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.51k | } else if (!left_is_const && right_is_const) { | 446 | 1.48k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.48k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.48k | vec_res.resize(col_left->size()); | 450 | 1.48k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.48k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.48k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.48k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.48k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.48k | } else if (left_is_const && !right_is_const) { | 457 | 30 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 30 | vec_res.resize(col_right->size()); | 461 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 30 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 30 | col_right->get_data(), vec_res); | 465 | | | 466 | 30 | block.replace_by_position(result, std::move(col_res)); | 467 | 30 | } | 468 | 1.60k | return Status::OK(); | 469 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 12.4k | const ColumnPtr& col_right_ptr) const { | 426 | 12.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 12.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 12.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 12.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 12.4k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 12.4k | if (!left_is_const && !right_is_const) { | 435 | 975 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 975 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 975 | vec_res.resize(col_left->get_data().size()); | 439 | 975 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 975 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 975 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 975 | vec_res); | 443 | | | 444 | 975 | block.replace_by_position(result, std::move(col_res)); | 445 | 11.5k | } else if (!left_is_const && right_is_const) { | 446 | 11.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 11.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 11.3k | vec_res.resize(col_left->size()); | 450 | 11.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 11.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 11.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 11.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 11.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 11.3k | } else if (left_is_const && !right_is_const) { | 457 | 142 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 142 | vec_res.resize(col_right->size()); | 461 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 142 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 142 | col_right->get_data(), vec_res); | 465 | | | 466 | 142 | block.replace_by_position(result, std::move(col_res)); | 467 | 142 | } | 468 | 12.4k | return Status::OK(); | 469 | 12.4k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 29.0k | const ColumnPtr& col_right_ptr) const { | 426 | 29.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 29.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 29.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 29.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 29.0k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 29.0k | if (!left_is_const && !right_is_const) { | 435 | 294 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 294 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 294 | vec_res.resize(col_left->get_data().size()); | 439 | 294 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 294 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 294 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 294 | vec_res); | 443 | | | 444 | 294 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.7k | } else if (!left_is_const && right_is_const) { | 446 | 27.8k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 27.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 27.8k | vec_res.resize(col_left->size()); | 450 | 27.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 27.8k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 27.8k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 27.8k | col_right->get_element(0), vec_res); | 454 | | | 455 | 27.8k | block.replace_by_position(result, std::move(col_res)); | 456 | 27.8k | } else if (left_is_const && !right_is_const) { | 457 | 884 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 884 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 884 | vec_res.resize(col_right->size()); | 461 | 884 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 884 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 884 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 884 | col_right->get_data(), vec_res); | 465 | | | 466 | 884 | block.replace_by_position(result, std::move(col_res)); | 467 | 884 | } | 468 | 29.0k | return Status::OK(); | 469 | 29.0k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 165 | const ColumnPtr& col_right_ptr) const { | 426 | 165 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 165 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 165 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 165 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 165 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 165 | if (!left_is_const && !right_is_const) { | 435 | 92 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 92 | vec_res.resize(col_left->get_data().size()); | 439 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 92 | vec_res); | 443 | | | 444 | 92 | block.replace_by_position(result, std::move(col_res)); | 445 | 92 | } else if (!left_is_const && right_is_const) { | 446 | 57 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 57 | vec_res.resize(col_left->size()); | 450 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 57 | col_right->get_element(0), vec_res); | 454 | | | 455 | 57 | block.replace_by_position(result, std::move(col_res)); | 456 | 57 | } else if (left_is_const && !right_is_const) { | 457 | 16 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 16 | vec_res.resize(col_right->size()); | 461 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 16 | col_right->get_data(), vec_res); | 465 | | | 466 | 16 | block.replace_by_position(result, std::move(col_res)); | 467 | 16 | } | 468 | 165 | return Status::OK(); | 469 | 165 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 29 | const ColumnPtr& col_right_ptr) const { | 426 | 29 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 29 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 29 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 29 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 29 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 29 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 13 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13 | vec_res.resize(col_left->size()); | 450 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13 | col_right->get_element(0), vec_res); | 454 | | | 455 | 13 | block.replace_by_position(result, std::move(col_res)); | 456 | 13 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 29 | return Status::OK(); | 469 | 29 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 30 | const ColumnPtr& col_right_ptr) const { | 426 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 30 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 30 | if (!left_is_const && !right_is_const) { | 435 | 24 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 24 | vec_res.resize(col_left->get_data().size()); | 439 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 24 | vec_res); | 443 | | | 444 | 24 | block.replace_by_position(result, std::move(col_res)); | 445 | 24 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 30 | return Status::OK(); | 469 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 119 | const ColumnPtr& col_right_ptr) const { | 426 | 119 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 119 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 119 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 119 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 119 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 119 | if (!left_is_const && !right_is_const) { | 435 | 115 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 115 | vec_res.resize(col_left->get_data().size()); | 439 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 115 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 115 | vec_res); | 443 | | | 444 | 115 | block.replace_by_position(result, std::move(col_res)); | 445 | 115 | } else if (!left_is_const && right_is_const) { | 446 | 4 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4 | vec_res.resize(col_left->size()); | 450 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4 | col_right->get_element(0), vec_res); | 454 | | | 455 | 4 | block.replace_by_position(result, std::move(col_res)); | 456 | 4 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 119 | return Status::OK(); | 469 | 119 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 954 | const ColumnPtr& col_right_ptr) const { | 426 | 954 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 954 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 954 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 954 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 954 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 954 | if (!left_is_const && !right_is_const) { | 435 | 121 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 121 | vec_res.resize(col_left->get_data().size()); | 439 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 121 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 121 | vec_res); | 443 | | | 444 | 121 | block.replace_by_position(result, std::move(col_res)); | 445 | 833 | } else if (!left_is_const && right_is_const) { | 446 | 833 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 833 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 833 | vec_res.resize(col_left->size()); | 450 | 833 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 833 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 833 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 833 | col_right->get_element(0), vec_res); | 454 | | | 455 | 833 | block.replace_by_position(result, std::move(col_res)); | 456 | 833 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 954 | return Status::OK(); | 469 | 954 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 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 | 425 | 82 | const ColumnPtr& col_right_ptr) const { | 426 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 82 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 82 | if (!left_is_const && !right_is_const) { | 435 | 47 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 47 | vec_res.resize(col_left->get_data().size()); | 439 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 47 | vec_res); | 443 | | | 444 | 47 | block.replace_by_position(result, std::move(col_res)); | 445 | 47 | } else if (!left_is_const && right_is_const) { | 446 | 35 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 35 | vec_res.resize(col_left->size()); | 450 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 35 | col_right->get_element(0), vec_res); | 454 | | | 455 | 35 | block.replace_by_position(result, std::move(col_res)); | 456 | 35 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 82 | return Status::OK(); | 469 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 26 | const ColumnPtr& col_right_ptr) const { | 426 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 26 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 26 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 26 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 26 | return Status::OK(); | 469 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 5.35k | const ColumnPtr& col_right_ptr) const { | 426 | 5.35k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 5.35k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 5.35k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 5.35k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 5.35k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 5.35k | if (!left_is_const && !right_is_const) { | 435 | 3.67k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3.67k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3.67k | vec_res.resize(col_left->get_data().size()); | 439 | 3.67k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3.67k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3.67k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3.67k | vec_res); | 443 | | | 444 | 3.67k | block.replace_by_position(result, std::move(col_res)); | 445 | 3.67k | } else if (!left_is_const && right_is_const) { | 446 | 1.68k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.68k | vec_res.resize(col_left->size()); | 450 | 1.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.68k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.68k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.68k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.68k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.68k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 5.35k | return Status::OK(); | 469 | 5.35k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.45k | const ColumnPtr& col_right_ptr) const { | 426 | 2.45k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.45k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.45k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.45k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.45k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.45k | if (!left_is_const && !right_is_const) { | 435 | 366 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 366 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 366 | vec_res.resize(col_left->get_data().size()); | 439 | 366 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 366 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 366 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 366 | vec_res); | 443 | | | 444 | 366 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.08k | } else if (!left_is_const && right_is_const) { | 446 | 1.97k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.97k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.97k | vec_res.resize(col_left->size()); | 450 | 1.97k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.97k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.97k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.97k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.97k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.97k | } else if (left_is_const && !right_is_const) { | 457 | 110 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 110 | vec_res.resize(col_right->size()); | 461 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 110 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 110 | col_right->get_data(), vec_res); | 465 | | | 466 | 110 | block.replace_by_position(result, std::move(col_res)); | 467 | 110 | } | 468 | 2.45k | return Status::OK(); | 469 | 2.45k | } |
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 | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 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 | 425 | 1.24k | const ColumnPtr& col_right_ptr) const { | 426 | 1.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.24k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.24k | if (!left_is_const && !right_is_const) { | 435 | 1.08k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.08k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.08k | vec_res.resize(col_left->get_data().size()); | 439 | 1.08k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.08k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.08k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.08k | vec_res); | 443 | | | 444 | 1.08k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.08k | } else if (!left_is_const && right_is_const) { | 446 | 161 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 161 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 161 | vec_res.resize(col_left->size()); | 450 | 161 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 161 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 161 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 161 | col_right->get_element(0), vec_res); | 454 | | | 455 | 161 | block.replace_by_position(result, std::move(col_res)); | 456 | 161 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.24k | return Status::OK(); | 469 | 1.24k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 94 | const ColumnPtr& col_right_ptr) const { | 426 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 94 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 94 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 94 | } else if (!left_is_const && right_is_const) { | 446 | 94 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 94 | vec_res.resize(col_left->size()); | 450 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 94 | col_right->get_element(0), vec_res); | 454 | | | 455 | 94 | block.replace_by_position(result, std::move(col_res)); | 456 | 94 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 94 | return Status::OK(); | 469 | 94 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.04k | const ColumnPtr& col_right_ptr) const { | 426 | 1.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.04k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.04k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.00k | } else if (!left_is_const && right_is_const) { | 446 | 780 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 780 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 780 | vec_res.resize(col_left->size()); | 450 | 780 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 780 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 780 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 780 | col_right->get_element(0), vec_res); | 454 | | | 455 | 780 | block.replace_by_position(result, std::move(col_res)); | 456 | 780 | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 1.04k | return Status::OK(); | 469 | 1.04k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.79k | const ColumnPtr& col_right_ptr) const { | 426 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.79k | if (!left_is_const && !right_is_const) { | 435 | 112 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 112 | vec_res.resize(col_left->get_data().size()); | 439 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 112 | vec_res); | 443 | | | 444 | 112 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.68k | } else if (!left_is_const && right_is_const) { | 446 | 1.45k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.45k | vec_res.resize(col_left->size()); | 450 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.45k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.45k | } else if (left_is_const && !right_is_const) { | 457 | 222 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 222 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 222 | vec_res.resize(col_right->size()); | 461 | 222 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 222 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 222 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 222 | col_right->get_data(), vec_res); | 465 | | | 466 | 222 | block.replace_by_position(result, std::move(col_res)); | 467 | 222 | } | 468 | 1.79k | return Status::OK(); | 469 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 23.2k | const ColumnPtr& col_right_ptr) const { | 426 | 23.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 23.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 23.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 23.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 23.2k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 23.2k | if (!left_is_const && !right_is_const) { | 435 | 79 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 79 | vec_res.resize(col_left->get_data().size()); | 439 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 79 | vec_res); | 443 | | | 444 | 79 | block.replace_by_position(result, std::move(col_res)); | 445 | 23.1k | } else if (!left_is_const && right_is_const) { | 446 | 19.8k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 19.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 19.8k | vec_res.resize(col_left->size()); | 450 | 19.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 19.8k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 19.8k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 19.8k | col_right->get_element(0), vec_res); | 454 | | | 455 | 19.8k | block.replace_by_position(result, std::move(col_res)); | 456 | 19.8k | } else if (left_is_const && !right_is_const) { | 457 | 3.33k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 3.33k | vec_res.resize(col_right->size()); | 461 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 3.33k | col_right->get_data(), vec_res); | 465 | | | 466 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 467 | 3.33k | } | 468 | 23.2k | return Status::OK(); | 469 | 23.2k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.9k | const ColumnPtr& col_right_ptr) const { | 426 | 13.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.9k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.9k | if (!left_is_const && !right_is_const) { | 435 | 64 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 64 | vec_res.resize(col_left->get_data().size()); | 439 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 64 | vec_res); | 443 | | | 444 | 64 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.8k | } else if (!left_is_const && right_is_const) { | 446 | 13.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13.3k | vec_res.resize(col_left->size()); | 450 | 13.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 13.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 13.3k | } else if (left_is_const && !right_is_const) { | 457 | 518 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 518 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 518 | vec_res.resize(col_right->size()); | 461 | 518 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 518 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 518 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 518 | col_right->get_data(), vec_res); | 465 | | | 466 | 518 | block.replace_by_position(result, std::move(col_res)); | 467 | 518 | } | 468 | 13.9k | return Status::OK(); | 469 | 13.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 257 | const ColumnPtr& col_right_ptr) const { | 426 | 257 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 257 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 257 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 257 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 257 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 257 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 255 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 54 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 54 | vec_res.resize(col_right->size()); | 461 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 54 | col_right->get_data(), vec_res); | 465 | | | 466 | 54 | block.replace_by_position(result, std::move(col_res)); | 467 | 54 | } | 468 | 257 | return Status::OK(); | 469 | 257 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 235 | const ColumnPtr& col_right_ptr) const { | 426 | 235 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 235 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 235 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 235 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 235 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 235 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 215 | } else if (!left_is_const && right_is_const) { | 446 | 215 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 215 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 215 | vec_res.resize(col_left->size()); | 450 | 215 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 215 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 215 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 215 | col_right->get_element(0), vec_res); | 454 | | | 455 | 215 | block.replace_by_position(result, std::move(col_res)); | 456 | 215 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 235 | return Status::OK(); | 469 | 235 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.40k | const ColumnPtr& col_right_ptr) const { | 426 | 2.40k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.40k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.40k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.40k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.40k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.40k | if (!left_is_const && !right_is_const) { | 435 | 29 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 29 | vec_res.resize(col_left->get_data().size()); | 439 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 29 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 29 | vec_res); | 443 | | | 444 | 29 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.37k | } else if (!left_is_const && right_is_const) { | 446 | 2.37k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.37k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.37k | vec_res.resize(col_left->size()); | 450 | 2.37k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.37k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.37k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.37k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.37k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.37k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.40k | return Status::OK(); | 469 | 2.40k | } |
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 | 425 | 187 | const ColumnPtr& col_right_ptr) const { | 426 | 187 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 187 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 187 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 187 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 187 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 187 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 175 | } else if (!left_is_const && right_is_const) { | 446 | 175 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 175 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 175 | vec_res.resize(col_left->size()); | 450 | 175 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 175 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 175 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 175 | col_right->get_element(0), vec_res); | 454 | | | 455 | 175 | block.replace_by_position(result, std::move(col_res)); | 456 | 175 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 187 | return Status::OK(); | 469 | 187 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.26k | const ColumnPtr& col_right_ptr) const { | 426 | 2.26k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.26k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.26k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.26k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.26k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.26k | if (!left_is_const && !right_is_const) { | 435 | 31 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 31 | vec_res.resize(col_left->get_data().size()); | 439 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 31 | vec_res); | 443 | | | 444 | 31 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.23k | } else if (!left_is_const && right_is_const) { | 446 | 2.22k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.22k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.22k | vec_res.resize(col_left->size()); | 450 | 2.22k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.22k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.22k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.22k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.22k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.22k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 2.26k | return Status::OK(); | 469 | 2.26k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 787 | const ColumnPtr& col_right_ptr) const { | 426 | 787 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 787 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 787 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 787 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 787 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 787 | if (!left_is_const && !right_is_const) { | 435 | 66 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 66 | vec_res.resize(col_left->get_data().size()); | 439 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 66 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 66 | vec_res); | 443 | | | 444 | 66 | block.replace_by_position(result, std::move(col_res)); | 445 | 721 | } else if (!left_is_const && right_is_const) { | 446 | 721 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 721 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 721 | vec_res.resize(col_left->size()); | 450 | 721 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 721 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 721 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 721 | col_right->get_element(0), vec_res); | 454 | | | 455 | 721 | block.replace_by_position(result, std::move(col_res)); | 456 | 721 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 787 | return Status::OK(); | 469 | 787 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 91 | const ColumnPtr& col_right_ptr) const { | 426 | 91 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 91 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 91 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 91 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 91 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 91 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 91 | } else if (!left_is_const && right_is_const) { | 446 | 91 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 91 | vec_res.resize(col_left->size()); | 450 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 91 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 91 | col_right->get_element(0), vec_res); | 454 | | | 455 | 91 | block.replace_by_position(result, std::move(col_res)); | 456 | 91 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 91 | return Status::OK(); | 469 | 91 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 137 | const ColumnPtr& col_right_ptr) const { | 426 | 137 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 137 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 137 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 137 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 137 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 137 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 137 | } else if (!left_is_const && right_is_const) { | 446 | 137 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 137 | vec_res.resize(col_left->size()); | 450 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 137 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 137 | col_right->get_element(0), vec_res); | 454 | | | 455 | 137 | block.replace_by_position(result, std::move(col_res)); | 456 | 137 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 137 | return Status::OK(); | 469 | 137 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 31.7k | const ColumnPtr& col_right_ptr) const { | 426 | 31.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 31.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 31.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 31.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 31.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 31.7k | if (!left_is_const && !right_is_const) { | 435 | 49 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 49 | vec_res.resize(col_left->get_data().size()); | 439 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 49 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 49 | vec_res); | 443 | | | 444 | 49 | block.replace_by_position(result, std::move(col_res)); | 445 | 31.6k | } else if (!left_is_const && right_is_const) { | 446 | 31.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 31.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 31.6k | vec_res.resize(col_left->size()); | 450 | 31.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 31.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 31.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 31.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 31.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 31.6k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 31.7k | return Status::OK(); | 469 | 31.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 595 | const ColumnPtr& col_right_ptr) const { | 426 | 595 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 595 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 595 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 595 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 595 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 595 | if (!left_is_const && !right_is_const) { | 435 | 21 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 21 | vec_res.resize(col_left->get_data().size()); | 439 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 21 | vec_res); | 443 | | | 444 | 21 | block.replace_by_position(result, std::move(col_res)); | 445 | 574 | } else if (!left_is_const && right_is_const) { | 446 | 574 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 574 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 574 | vec_res.resize(col_left->size()); | 450 | 574 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 574 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 574 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 574 | col_right->get_element(0), vec_res); | 454 | | | 455 | 574 | block.replace_by_position(result, std::move(col_res)); | 456 | 574 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 595 | return Status::OK(); | 469 | 595 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 58 | const ColumnPtr& col_right_ptr) const { | 426 | 58 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 58 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 58 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 58 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 58 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 58 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 58 | } else if (!left_is_const && right_is_const) { | 446 | 58 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 58 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 58 | vec_res.resize(col_left->size()); | 450 | 58 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 58 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 58 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 58 | col_right->get_element(0), vec_res); | 454 | | | 455 | 58 | block.replace_by_position(result, std::move(col_res)); | 456 | 58 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 58 | return Status::OK(); | 469 | 58 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 230 | const ColumnPtr& col_right_ptr) const { | 426 | 230 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 230 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 230 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 230 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 230 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 230 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 170 | } else if (!left_is_const && right_is_const) { | 446 | 170 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 170 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 170 | vec_res.resize(col_left->size()); | 450 | 170 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 170 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 170 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 170 | col_right->get_element(0), vec_res); | 454 | | | 455 | 170 | block.replace_by_position(result, std::move(col_res)); | 456 | 170 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 230 | return Status::OK(); | 469 | 230 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 129 | const ColumnPtr& col_right_ptr) const { | 426 | 129 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 129 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 129 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 129 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 129 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 129 | if (!left_is_const && !right_is_const) { | 435 | 23 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 23 | vec_res.resize(col_left->get_data().size()); | 439 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 23 | vec_res); | 443 | | | 444 | 23 | block.replace_by_position(result, std::move(col_res)); | 445 | 106 | } else if (!left_is_const && right_is_const) { | 446 | 106 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 106 | vec_res.resize(col_left->size()); | 450 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 106 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 106 | col_right->get_element(0), vec_res); | 454 | | | 455 | 106 | block.replace_by_position(result, std::move(col_res)); | 456 | 106 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 129 | return Status::OK(); | 469 | 129 | } |
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 | 425 | 91 | const ColumnPtr& col_right_ptr) const { | 426 | 91 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 91 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 91 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 91 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 91 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 91 | if (!left_is_const && !right_is_const) { | 435 | 91 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 91 | vec_res.resize(col_left->get_data().size()); | 439 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 91 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 91 | vec_res); | 443 | | | 444 | 91 | block.replace_by_position(result, std::move(col_res)); | 445 | 91 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 91 | return Status::OK(); | 469 | 91 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.16k | const ColumnPtr& col_right_ptr) const { | 426 | 2.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.16k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.16k | if (!left_is_const && !right_is_const) { | 435 | 1.69k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.69k | vec_res.resize(col_left->get_data().size()); | 439 | 1.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.69k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.69k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.69k | vec_res); | 443 | | | 444 | 1.69k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.69k | } else if (!left_is_const && right_is_const) { | 446 | 469 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 469 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 469 | vec_res.resize(col_left->size()); | 450 | 469 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 469 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 469 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 469 | col_right->get_element(0), vec_res); | 454 | | | 455 | 469 | block.replace_by_position(result, std::move(col_res)); | 456 | 469 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.16k | return Status::OK(); | 469 | 2.16k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 652 | const ColumnPtr& col_right_ptr) const { | 426 | 652 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 652 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 652 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 652 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 652 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 652 | if (!left_is_const && !right_is_const) { | 435 | 279 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 279 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 279 | vec_res.resize(col_left->get_data().size()); | 439 | 279 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 279 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 279 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 279 | vec_res); | 443 | | | 444 | 279 | block.replace_by_position(result, std::move(col_res)); | 445 | 373 | } else if (!left_is_const && right_is_const) { | 446 | 373 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 373 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 373 | vec_res.resize(col_left->size()); | 450 | 373 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 373 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 373 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 373 | col_right->get_element(0), vec_res); | 454 | | | 455 | 373 | block.replace_by_position(result, std::move(col_res)); | 456 | 373 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 652 | return Status::OK(); | 469 | 652 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.16k | const ColumnPtr& col_right_ptr) const { | 426 | 2.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.16k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.16k | if (!left_is_const && !right_is_const) { | 435 | 151 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 151 | vec_res.resize(col_left->get_data().size()); | 439 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 151 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 151 | vec_res); | 443 | | | 444 | 151 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.01k | } else if (!left_is_const && right_is_const) { | 446 | 1.78k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.78k | vec_res.resize(col_left->size()); | 450 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.78k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.78k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.78k | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 2.16k | return Status::OK(); | 469 | 2.16k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 399 | const ColumnPtr& col_right_ptr) const { | 426 | 399 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 399 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 399 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 399 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 399 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 399 | if (!left_is_const && !right_is_const) { | 435 | 137 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 137 | vec_res.resize(col_left->get_data().size()); | 439 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 137 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 137 | vec_res); | 443 | | | 444 | 137 | block.replace_by_position(result, std::move(col_res)); | 445 | 262 | } else if (!left_is_const && right_is_const) { | 446 | 262 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 262 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 262 | vec_res.resize(col_left->size()); | 450 | 262 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 262 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 262 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 262 | col_right->get_element(0), vec_res); | 454 | | | 455 | 262 | block.replace_by_position(result, std::move(col_res)); | 456 | 262 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 399 | return Status::OK(); | 469 | 399 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3.29k | const ColumnPtr& col_right_ptr) const { | 426 | 3.29k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3.29k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3.29k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3.29k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3.29k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3.29k | if (!left_is_const && !right_is_const) { | 435 | 179 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 179 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 179 | vec_res.resize(col_left->get_data().size()); | 439 | 179 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 179 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 179 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 179 | vec_res); | 443 | | | 444 | 179 | block.replace_by_position(result, std::move(col_res)); | 445 | 3.11k | } else if (!left_is_const && right_is_const) { | 446 | 2.99k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.99k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.99k | vec_res.resize(col_left->size()); | 450 | 2.99k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.99k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.99k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.99k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.99k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.99k | } else if (left_is_const && !right_is_const) { | 457 | 121 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 121 | vec_res.resize(col_right->size()); | 461 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 121 | col_right->get_data(), vec_res); | 465 | | | 466 | 121 | block.replace_by_position(result, std::move(col_res)); | 467 | 121 | } | 468 | 3.29k | return Status::OK(); | 469 | 3.29k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.75k | const ColumnPtr& col_right_ptr) const { | 426 | 1.75k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.75k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.75k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.75k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.75k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.75k | if (!left_is_const && !right_is_const) { | 435 | 232 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 232 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 232 | vec_res.resize(col_left->get_data().size()); | 439 | 232 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 232 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 232 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 232 | vec_res); | 443 | | | 444 | 232 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.52k | } else if (!left_is_const && right_is_const) { | 446 | 1.44k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.44k | vec_res.resize(col_left->size()); | 450 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.44k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.44k | } else if (left_is_const && !right_is_const) { | 457 | 80 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 80 | vec_res.resize(col_right->size()); | 461 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 80 | col_right->get_data(), vec_res); | 465 | | | 466 | 80 | block.replace_by_position(result, std::move(col_res)); | 467 | 80 | } | 468 | 1.75k | return Status::OK(); | 469 | 1.75k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 289 | const ColumnPtr& col_right_ptr) const { | 426 | 289 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 289 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 289 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 289 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 289 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 289 | if (!left_is_const && !right_is_const) { | 435 | 151 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 151 | vec_res.resize(col_left->get_data().size()); | 439 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 151 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 151 | vec_res); | 443 | | | 444 | 151 | block.replace_by_position(result, std::move(col_res)); | 445 | 151 | } else if (!left_is_const && right_is_const) { | 446 | 46 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 46 | vec_res.resize(col_left->size()); | 450 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 46 | col_right->get_element(0), vec_res); | 454 | | | 455 | 46 | block.replace_by_position(result, std::move(col_res)); | 456 | 92 | } else if (left_is_const && !right_is_const) { | 457 | 92 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 92 | vec_res.resize(col_right->size()); | 461 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 92 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 92 | col_right->get_data(), vec_res); | 465 | | | 466 | 92 | block.replace_by_position(result, std::move(col_res)); | 467 | 92 | } | 468 | 289 | return Status::OK(); | 469 | 289 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 179 | const ColumnPtr& col_right_ptr) const { | 426 | 179 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 179 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 179 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 179 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 179 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 179 | if (!left_is_const && !right_is_const) { | 435 | 153 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 153 | vec_res.resize(col_left->get_data().size()); | 439 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 153 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 153 | vec_res); | 443 | | | 444 | 153 | block.replace_by_position(result, std::move(col_res)); | 445 | 153 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 179 | return Status::OK(); | 469 | 179 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 398 | const ColumnPtr& col_right_ptr) const { | 426 | 398 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 398 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 398 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 398 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 398 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 398 | if (!left_is_const && !right_is_const) { | 435 | 166 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 166 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 166 | vec_res.resize(col_left->get_data().size()); | 439 | 166 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 166 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 166 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 166 | vec_res); | 443 | | | 444 | 166 | block.replace_by_position(result, std::move(col_res)); | 445 | 232 | } else if (!left_is_const && right_is_const) { | 446 | 232 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 232 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 232 | vec_res.resize(col_left->size()); | 450 | 232 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 232 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 232 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 232 | col_right->get_element(0), vec_res); | 454 | | | 455 | 232 | block.replace_by_position(result, std::move(col_res)); | 456 | 232 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 398 | return Status::OK(); | 469 | 398 | } |
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 | 425 | 204 | const ColumnPtr& col_right_ptr) const { | 426 | 204 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 204 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 204 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 204 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 204 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 204 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 192 | } else if (!left_is_const && right_is_const) { | 446 | 192 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 192 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 192 | vec_res.resize(col_left->size()); | 450 | 192 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 192 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 192 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 192 | col_right->get_element(0), vec_res); | 454 | | | 455 | 192 | block.replace_by_position(result, std::move(col_res)); | 456 | 192 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 204 | return Status::OK(); | 469 | 204 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 28.8k | const ColumnPtr& col_right_ptr) const { | 426 | 28.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 28.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 28.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 28.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 28.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 28.8k | if (!left_is_const && !right_is_const) { | 435 | 444 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 444 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 444 | vec_res.resize(col_left->get_data().size()); | 439 | 444 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 444 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 444 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 444 | vec_res); | 443 | | | 444 | 444 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.3k | } else if (!left_is_const && right_is_const) { | 446 | 28.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28.3k | vec_res.resize(col_left->size()); | 450 | 28.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 28.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 28.3k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 28.8k | return Status::OK(); | 469 | 28.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 441 | const ColumnPtr& col_right_ptr) const { | 426 | 441 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 441 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 441 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 441 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 441 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 441 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 381 | } else if (!left_is_const && right_is_const) { | 446 | 381 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 381 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 381 | vec_res.resize(col_left->size()); | 450 | 381 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 381 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 381 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 381 | col_right->get_element(0), vec_res); | 454 | | | 455 | 381 | block.replace_by_position(result, std::move(col_res)); | 456 | 381 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 441 | return Status::OK(); | 469 | 441 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 142 | const ColumnPtr& col_right_ptr) const { | 426 | 142 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 142 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 142 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 142 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 142 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 142 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 141 | } else if (!left_is_const && right_is_const) { | 446 | 141 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 141 | vec_res.resize(col_left->size()); | 450 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 141 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 141 | col_right->get_element(0), vec_res); | 454 | | | 455 | 141 | block.replace_by_position(result, std::move(col_res)); | 456 | 141 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 142 | return Status::OK(); | 469 | 142 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 209 | const ColumnPtr& col_right_ptr) const { | 426 | 209 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 209 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 209 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 209 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 209 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 209 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 209 | } else if (!left_is_const && right_is_const) { | 446 | 209 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 209 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 209 | vec_res.resize(col_left->size()); | 450 | 209 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 209 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 209 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 209 | col_right->get_element(0), vec_res); | 454 | | | 455 | 209 | block.replace_by_position(result, std::move(col_res)); | 456 | 209 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 209 | return Status::OK(); | 469 | 209 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 40.3k | const ColumnPtr& col_right_ptr) const { | 426 | 40.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 40.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 40.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 40.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 40.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 40.3k | if (!left_is_const && !right_is_const) { | 435 | 53 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 53 | vec_res.resize(col_left->get_data().size()); | 439 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 53 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 53 | vec_res); | 443 | | | 444 | 53 | block.replace_by_position(result, std::move(col_res)); | 445 | 40.3k | } else if (!left_is_const && right_is_const) { | 446 | 39.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 39.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 39.7k | vec_res.resize(col_left->size()); | 450 | 39.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 39.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 39.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 39.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 39.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 39.7k | } else if (left_is_const && !right_is_const) { | 457 | 602 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 602 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 602 | vec_res.resize(col_right->size()); | 461 | 602 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 602 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 602 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 602 | col_right->get_data(), vec_res); | 465 | | | 466 | 602 | block.replace_by_position(result, std::move(col_res)); | 467 | 602 | } | 468 | 40.3k | return Status::OK(); | 469 | 40.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.30k | const ColumnPtr& col_right_ptr) const { | 426 | 1.30k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.30k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.30k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.30k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.30k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.30k | if (!left_is_const && !right_is_const) { | 435 | 43 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 43 | vec_res.resize(col_left->get_data().size()); | 439 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 43 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 43 | vec_res); | 443 | | | 444 | 43 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.26k | } else if (!left_is_const && right_is_const) { | 446 | 1.23k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.23k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.23k | vec_res.resize(col_left->size()); | 450 | 1.23k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.23k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.23k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.23k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.23k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.23k | } else if (left_is_const && !right_is_const) { | 457 | 36 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 36 | vec_res.resize(col_right->size()); | 461 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 36 | col_right->get_data(), vec_res); | 465 | | | 466 | 36 | block.replace_by_position(result, std::move(col_res)); | 467 | 36 | } | 468 | 1.30k | return Status::OK(); | 469 | 1.30k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 73 | const ColumnPtr& col_right_ptr) const { | 426 | 73 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 73 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 73 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 73 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 73 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 73 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 73 | } else if (!left_is_const && right_is_const) { | 446 | 73 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 73 | vec_res.resize(col_left->size()); | 450 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 73 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 73 | col_right->get_element(0), vec_res); | 454 | | | 455 | 73 | block.replace_by_position(result, std::move(col_res)); | 456 | 73 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 73 | return Status::OK(); | 469 | 73 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 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 | 425 | 226 | const ColumnPtr& col_right_ptr) const { | 426 | 226 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 226 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 226 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 226 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 226 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 226 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 166 | } else if (!left_is_const && right_is_const) { | 446 | 166 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 166 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 166 | vec_res.resize(col_left->size()); | 450 | 166 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 166 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 166 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 166 | col_right->get_element(0), vec_res); | 454 | | | 455 | 166 | block.replace_by_position(result, std::move(col_res)); | 456 | 166 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 226 | return Status::OK(); | 469 | 226 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 136 | const ColumnPtr& col_right_ptr) const { | 426 | 136 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 136 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 136 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 136 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 136 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 136 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 116 | } else if (!left_is_const && right_is_const) { | 446 | 115 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 115 | vec_res.resize(col_left->size()); | 450 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 115 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 115 | col_right->get_element(0), vec_res); | 454 | | | 455 | 115 | block.replace_by_position(result, std::move(col_res)); | 456 | 115 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 136 | return Status::OK(); | 469 | 136 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 25.2k | const ColumnWithTypeAndName& col_right) const { |
473 | 25.2k | auto call = [&](const auto& type) -> bool { |
474 | 25.2k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 25.2k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 25.2k | block, result, col_left, col_right); |
477 | 25.2k | return true; |
478 | 25.2k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 293 | auto call = [&](const auto& type) -> bool { | 474 | 293 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 293 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 293 | block, result, col_left, col_right); | 477 | 293 | return true; | 478 | 293 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 309 | auto call = [&](const auto& type) -> bool { | 474 | 309 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 309 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 309 | block, result, col_left, col_right); | 477 | 309 | return true; | 478 | 309 | }; |
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 | 473 | 1.22k | auto call = [&](const auto& type) -> bool { | 474 | 1.22k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.22k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.22k | block, result, col_left, col_right); | 477 | 1.22k | return true; | 478 | 1.22k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 34 | auto call = [&](const auto& type) -> bool { | 474 | 34 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 34 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 34 | block, result, col_left, col_right); | 477 | 34 | return true; | 478 | 34 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 68 | auto call = [&](const auto& type) -> bool { | 474 | 68 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 68 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 68 | block, result, col_left, col_right); | 477 | 68 | return true; | 478 | 68 | }; |
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 | 473 | 324 | auto call = [&](const auto& type) -> bool { | 474 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 324 | block, result, col_left, col_right); | 477 | 324 | return true; | 478 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 46 | auto call = [&](const auto& type) -> bool { | 474 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 46 | block, result, col_left, col_right); | 477 | 46 | return true; | 478 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 16.8k | auto call = [&](const auto& type) -> bool { | 474 | 16.8k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16.8k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16.8k | block, result, col_left, col_right); | 477 | 16.8k | return true; | 478 | 16.8k | }; |
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 | 473 | 1.37k | auto call = [&](const auto& type) -> bool { | 474 | 1.37k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.37k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.37k | block, result, col_left, col_right); | 477 | 1.37k | return true; | 478 | 1.37k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 9 | auto call = [&](const auto& type) -> bool { | 474 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9 | block, result, col_left, col_right); | 477 | 9 | return true; | 478 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 333 | auto call = [&](const auto& type) -> bool { | 474 | 333 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 333 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 333 | block, result, col_left, col_right); | 477 | 333 | return true; | 478 | 333 | }; |
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 | 473 | 67 | auto call = [&](const auto& type) -> bool { | 474 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 67 | block, result, col_left, col_right); | 477 | 67 | return true; | 478 | 67 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 27 | auto call = [&](const auto& type) -> bool { | 474 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 27 | block, result, col_left, col_right); | 477 | 27 | return true; | 478 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 218 | auto call = [&](const auto& type) -> bool { | 474 | 218 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 218 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 218 | block, result, col_left, col_right); | 477 | 218 | return true; | 478 | 218 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 259 | auto call = [&](const auto& type) -> bool { | 474 | 259 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 259 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 259 | block, result, col_left, col_right); | 477 | 259 | return true; | 478 | 259 | }; |
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 | 473 | 487 | auto call = [&](const auto& type) -> bool { | 474 | 487 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 487 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 487 | block, result, col_left, col_right); | 477 | 487 | return true; | 478 | 487 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 5 | auto call = [&](const auto& type) -> bool { | 474 | 5 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 5 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 5 | block, result, col_left, col_right); | 477 | 5 | return true; | 478 | 5 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 2.22k | auto call = [&](const auto& type) -> bool { | 474 | 2.22k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.22k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.22k | block, result, col_left, col_right); | 477 | 2.22k | return true; | 478 | 2.22k | }; |
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 | 473 | 969 | auto call = [&](const auto& type) -> bool { | 474 | 969 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 969 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 969 | block, result, col_left, col_right); | 477 | 969 | return true; | 478 | 969 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 26 | auto call = [&](const auto& type) -> bool { | 474 | 26 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 26 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 26 | block, result, col_left, col_right); | 477 | 26 | return true; | 478 | 26 | }; |
|
479 | | |
480 | 25.2k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 25.2k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 25.2k | return Status::OK(); |
491 | 25.2k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.86k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.86k | auto call = [&](const auto& type) -> bool { | 474 | 1.86k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.86k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.86k | block, result, col_left, col_right); | 477 | 1.86k | return true; | 478 | 1.86k | }; | 479 | | | 480 | 1.86k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.86k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.86k | return Status::OK(); | 491 | 1.86k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 421 | const ColumnWithTypeAndName& col_right) const { | 473 | 421 | auto call = [&](const auto& type) -> bool { | 474 | 421 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 421 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 421 | block, result, col_left, col_right); | 477 | 421 | return true; | 478 | 421 | }; | 479 | | | 480 | 421 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 421 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 421 | return Status::OK(); | 491 | 421 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 18.3k | const ColumnWithTypeAndName& col_right) const { | 473 | 18.3k | auto call = [&](const auto& type) -> bool { | 474 | 18.3k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 18.3k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 18.3k | block, result, col_left, col_right); | 477 | 18.3k | return true; | 478 | 18.3k | }; | 479 | | | 480 | 18.3k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 18.3k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 18.3k | return Status::OK(); | 491 | 18.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 436 | const ColumnWithTypeAndName& col_right) const { | 473 | 436 | auto call = [&](const auto& type) -> bool { | 474 | 436 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 436 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 436 | block, result, col_left, col_right); | 477 | 436 | return true; | 478 | 436 | }; | 479 | | | 480 | 436 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 436 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 436 | return Status::OK(); | 491 | 436 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 965 | const ColumnWithTypeAndName& col_right) const { | 473 | 965 | auto call = [&](const auto& type) -> bool { | 474 | 965 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 965 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 965 | block, result, col_left, col_right); | 477 | 965 | return true; | 478 | 965 | }; | 479 | | | 480 | 965 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 965 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 965 | return Status::OK(); | 491 | 965 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 3.22k | const ColumnWithTypeAndName& col_right) const { | 473 | 3.22k | auto call = [&](const auto& type) -> bool { | 474 | 3.22k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 3.22k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 3.22k | block, result, col_left, col_right); | 477 | 3.22k | return true; | 478 | 3.22k | }; | 479 | | | 480 | 3.22k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 3.22k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 3.22k | return Status::OK(); | 491 | 3.22k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 28.9k | const IColumn* c1) const { |
495 | 28.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 28.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 28.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 28.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 28.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 28.9k | DCHECK(!(c0_const && c1_const)); |
504 | 28.9k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 28.9k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 28.9k | ColumnString::Offset c0_const_size = 0; |
507 | 28.9k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 28.9k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 28.9k | if (c1_const) { |
523 | 26.7k | const ColumnString* c1_const_string = |
524 | 26.7k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 26.7k | if (c1_const_string) { |
527 | 26.7k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 26.7k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 26.7k | } else { |
530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 0 | c1->get_name(), name); |
532 | 0 | } |
533 | 26.7k | } |
534 | | |
535 | 28.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 28.9k | auto c_res = ColumnUInt8::create(); |
538 | 28.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 28.9k | vec_res.resize(c0->size()); |
540 | | |
541 | 28.9k | if (c0_string && c1_string) { |
542 | 2.10k | StringImpl::string_vector_string_vector( |
543 | 2.10k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 2.10k | c1_string->get_offsets(), vec_res); |
545 | 26.8k | } else if (c0_string && c1_const) { |
546 | 26.7k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 26.7k | *c1_const_chars, c1_const_size, vec_res); |
548 | 26.7k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 18.4E | } else { |
553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 18.4E | c0->get_name(), c1->get_name(), name); |
555 | 18.4E | } |
556 | 28.9k | block.replace_by_position(result, std::move(c_res)); |
557 | 28.9k | return Status::OK(); |
558 | 28.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 23.9k | const IColumn* c1) const { | 495 | 23.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 23.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 23.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 23.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 23.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 23.9k | DCHECK(!(c0_const && c1_const)); | 504 | 23.9k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 23.9k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 23.9k | ColumnString::Offset c0_const_size = 0; | 507 | 23.9k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 23.9k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 23.9k | if (c1_const) { | 523 | 22.5k | const ColumnString* c1_const_string = | 524 | 22.5k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 22.5k | if (c1_const_string) { | 527 | 22.5k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 22.5k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 22.5k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 22.5k | } | 534 | | | 535 | 23.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 23.9k | auto c_res = ColumnUInt8::create(); | 538 | 23.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 23.9k | vec_res.resize(c0->size()); | 540 | | | 541 | 23.9k | if (c0_string && c1_string) { | 542 | 1.41k | StringImpl::string_vector_string_vector( | 543 | 1.41k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.41k | c1_string->get_offsets(), vec_res); | 545 | 22.5k | } else if (c0_string && c1_const) { | 546 | 22.5k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 22.5k | *c1_const_chars, c1_const_size, vec_res); | 548 | 22.5k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 23.9k | block.replace_by_position(result, std::move(c_res)); | 557 | 23.9k | return Status::OK(); | 558 | 23.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 2.48k | const IColumn* c1) const { | 495 | 2.48k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 2.48k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 2.48k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 2.48k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 2.48k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 2.48k | DCHECK(!(c0_const && c1_const)); | 504 | 2.48k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 2.48k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 2.48k | ColumnString::Offset c0_const_size = 0; | 507 | 2.48k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 2.48k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 2.48k | if (c1_const) { | 523 | 2.43k | const ColumnString* c1_const_string = | 524 | 2.43k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 2.43k | if (c1_const_string) { | 527 | 2.43k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 2.43k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 2.43k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 2.43k | } | 534 | | | 535 | 2.48k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 2.48k | auto c_res = ColumnUInt8::create(); | 538 | 2.48k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 2.48k | vec_res.resize(c0->size()); | 540 | | | 541 | 2.48k | if (c0_string && c1_string) { | 542 | 52 | StringImpl::string_vector_string_vector( | 543 | 52 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 52 | c1_string->get_offsets(), vec_res); | 545 | 2.43k | } else if (c0_string && c1_const) { | 546 | 2.43k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 2.43k | *c1_const_chars, c1_const_size, vec_res); | 548 | 2.43k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 2.48k | block.replace_by_position(result, std::move(c_res)); | 557 | 2.48k | return Status::OK(); | 558 | 2.48k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 175 | const IColumn* c1) const { | 495 | 175 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 175 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 175 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 175 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 175 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 175 | DCHECK(!(c0_const && c1_const)); | 504 | 175 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 175 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 175 | ColumnString::Offset c0_const_size = 0; | 507 | 175 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 175 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 175 | if (c1_const) { | 523 | 173 | const ColumnString* c1_const_string = | 524 | 173 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 173 | if (c1_const_string) { | 527 | 173 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 173 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 173 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 173 | } | 534 | | | 535 | 175 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 175 | auto c_res = ColumnUInt8::create(); | 538 | 175 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 175 | vec_res.resize(c0->size()); | 540 | | | 541 | 175 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 173 | } else if (c0_string && c1_const) { | 546 | 173 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 173 | *c1_const_chars, c1_const_size, vec_res); | 548 | 173 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 175 | block.replace_by_position(result, std::move(c_res)); | 557 | 175 | return Status::OK(); | 558 | 175 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 704 | const IColumn* c1) const { | 495 | 704 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 704 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 704 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 704 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 704 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 704 | DCHECK(!(c0_const && c1_const)); | 504 | 704 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 704 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 704 | ColumnString::Offset c0_const_size = 0; | 507 | 704 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 704 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 704 | if (c1_const) { | 523 | 610 | const ColumnString* c1_const_string = | 524 | 610 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 610 | if (c1_const_string) { | 527 | 610 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 610 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 610 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 610 | } | 534 | | | 535 | 704 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 704 | auto c_res = ColumnUInt8::create(); | 538 | 704 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 704 | vec_res.resize(c0->size()); | 540 | | | 541 | 704 | if (c0_string && c1_string) { | 542 | 94 | StringImpl::string_vector_string_vector( | 543 | 94 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 94 | c1_string->get_offsets(), vec_res); | 545 | 610 | } else if (c0_string && c1_const) { | 546 | 610 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 610 | *c1_const_chars, c1_const_size, vec_res); | 548 | 610 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 704 | block.replace_by_position(result, std::move(c_res)); | 557 | 704 | return Status::OK(); | 558 | 704 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 664 | const IColumn* c1) const { | 495 | 664 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 664 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 664 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 664 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 665 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 664 | DCHECK(!(c0_const && c1_const)); | 504 | 664 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 664 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 664 | ColumnString::Offset c0_const_size = 0; | 507 | 664 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 664 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 664 | if (c1_const) { | 523 | 243 | const ColumnString* c1_const_string = | 524 | 243 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 243 | if (c1_const_string) { | 527 | 243 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 243 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 243 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 243 | } | 534 | | | 535 | 664 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 664 | auto c_res = ColumnUInt8::create(); | 538 | 664 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 664 | vec_res.resize(c0->size()); | 540 | | | 541 | 664 | if (c0_string && c1_string) { | 542 | 416 | StringImpl::string_vector_string_vector( | 543 | 416 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 416 | c1_string->get_offsets(), vec_res); | 545 | 416 | } else if (c0_string && c1_const) { | 546 | 243 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 243 | *c1_const_chars, c1_const_size, vec_res); | 548 | 243 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 665 | block.replace_by_position(result, std::move(c_res)); | 557 | 665 | return Status::OK(); | 558 | 664 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 944 | const IColumn* c1) const { | 495 | 944 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 944 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 944 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 944 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 944 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 944 | DCHECK(!(c0_const && c1_const)); | 504 | 944 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 944 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 944 | ColumnString::Offset c0_const_size = 0; | 507 | 944 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 944 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 944 | if (c1_const) { | 523 | 819 | const ColumnString* c1_const_string = | 524 | 819 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 819 | if (c1_const_string) { | 527 | 819 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 819 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 819 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 819 | } | 534 | | | 535 | 944 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 944 | auto c_res = ColumnUInt8::create(); | 538 | 944 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 944 | vec_res.resize(c0->size()); | 540 | | | 541 | 944 | if (c0_string && c1_string) { | 542 | 124 | StringImpl::string_vector_string_vector( | 543 | 124 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 124 | c1_string->get_offsets(), vec_res); | 545 | 820 | } else if (c0_string && c1_const) { | 546 | 820 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 820 | *c1_const_chars, c1_const_size, vec_res); | 548 | 820 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 944 | block.replace_by_position(result, std::move(c_res)); | 557 | 944 | return Status::OK(); | 558 | 944 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 175 | const IColumn* c1) const { |
562 | 175 | bool c0_const = is_column_const(*c0); |
563 | 175 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 175 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 175 | auto c_res = ColumnUInt8::create(); |
568 | 175 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 175 | vec_res.resize(c0->size()); |
570 | | |
571 | 175 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 175 | } else if (c1_const) { |
574 | 166 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 166 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 175 | block.replace_by_position(result, std::move(c_res)); |
580 | 175 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 62 | const IColumn* c1) const { | 562 | 62 | bool c0_const = is_column_const(*c0); | 563 | 62 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 62 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 62 | auto c_res = ColumnUInt8::create(); | 568 | 62 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 62 | vec_res.resize(c0->size()); | 570 | | | 571 | 62 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 62 | } else if (c1_const) { | 574 | 61 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 61 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 62 | block.replace_by_position(result, std::move(c_res)); | 580 | 62 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 68 | const IColumn* c1) const { | 562 | 68 | bool c0_const = is_column_const(*c0); | 563 | 68 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 68 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 68 | auto c_res = ColumnUInt8::create(); | 568 | 68 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 68 | vec_res.resize(c0->size()); | 570 | | | 571 | 68 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 68 | } else if (c1_const) { | 574 | 68 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 68 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 68 | block.replace_by_position(result, std::move(c_res)); | 580 | 68 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 175 | const ColumnWithTypeAndName& c1) const { |
584 | 175 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 175 | return Status::OK(); |
586 | 175 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 62 | const ColumnWithTypeAndName& c1) const { | 584 | 62 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 62 | return Status::OK(); | 586 | 62 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 68 | const ColumnWithTypeAndName& c1) const { | 584 | 68 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 68 | return Status::OK(); | 586 | 68 | } |
|
587 | | |
588 | | public: |
589 | 219 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 78 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 506k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 450k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 2.72k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 9.05k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 15.3k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 4.46k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 23.8k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 35.9k | const VExprSPtrs& arguments) const override { |
595 | 35.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 35.9k | DORIS_CHECK(op.has_value()); |
597 | 35.9k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 35.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.24k | const VExprSPtrs& arguments) const override { | 595 | 9.24k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.24k | DORIS_CHECK(op.has_value()); | 597 | 9.24k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.24k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.17k | const VExprSPtrs& arguments) const override { | 595 | 1.17k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.17k | DORIS_CHECK(op.has_value()); | 597 | 1.17k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.17k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.10k | const VExprSPtrs& arguments) const override { | 595 | 5.10k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.10k | DORIS_CHECK(op.has_value()); | 597 | 5.10k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.10k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 7.27k | const VExprSPtrs& arguments) const override { | 595 | 7.27k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 7.27k | DORIS_CHECK(op.has_value()); | 597 | 7.27k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 7.27k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.05k | const VExprSPtrs& arguments) const override { | 595 | 3.05k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.05k | DORIS_CHECK(op.has_value()); | 597 | 3.05k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.05k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 10.1k | const VExprSPtrs& arguments) const override { | 595 | 10.1k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 10.1k | DORIS_CHECK(op.has_value()); | 597 | 10.1k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 10.1k | } |
|
599 | | |
600 | 106k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 106k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 106k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 106k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 40.6k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 40.6k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 40.6k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 40.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 4.00k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 4.00k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 4.00k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 4.00k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 15.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 15.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 15.8k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 15.8k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 17.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 17.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 17.1k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 17.1k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 8.40k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 8.40k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 8.40k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 8.40k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 20.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 20.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 20.8k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 20.8k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 40.9k | const VExprSPtrs& arguments) const override { |
607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 40.9k | DORIS_CHECK(op.has_value()); |
609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 40.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 40.9k | const VExprSPtrs& arguments) const override { | 607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 40.9k | DORIS_CHECK(op.has_value()); | 609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 40.9k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 57.6k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 57.6k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 57.6k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 57.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 50.9k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 50.9k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 50.9k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 50.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 1.34k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 1.34k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 1.34k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 3.14k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 3.14k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 3.14k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 3.14k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 856 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 856 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 858 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 856 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 966 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 966 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 966 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 966 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 336 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 336 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 338 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 336 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 14 | const VExprSPtrs& arguments) const override { |
619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 14 | DORIS_CHECK(op.has_value()); |
621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 14 | const VExprSPtrs& arguments) const override { | 619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 14 | DORIS_CHECK(op.has_value()); | 621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 8.27k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 8.27k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 8.27k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 8.27k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 4.79k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 4.79k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 4.79k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 4.79k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 695 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.60k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.60k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.60k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 428 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 428 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 430 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 428 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 516 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 516 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 516 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 516 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 242 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 242 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 242 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 242 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 506k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 506k | return std::make_shared<DataTypeUInt8>(); |
632 | 506k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 450k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 450k | return std::make_shared<DataTypeUInt8>(); | 632 | 450k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 2.72k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 2.72k | return std::make_shared<DataTypeUInt8>(); | 632 | 2.72k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 9.06k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 9.06k | return std::make_shared<DataTypeUInt8>(); | 632 | 9.06k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 15.3k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 15.3k | return std::make_shared<DataTypeUInt8>(); | 632 | 15.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 4.46k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 4.46k | return std::make_shared<DataTypeUInt8>(); | 632 | 4.46k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 23.8k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 23.8k | return std::make_shared<DataTypeUInt8>(); | 632 | 23.8k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.33k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.33k | DCHECK(arguments.size() == 1); |
641 | 1.33k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.33k | DCHECK(iterators.size() == 1); |
643 | 1.33k | auto* iter = iterators[0]; |
644 | 1.33k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.33k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.33k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 303 | return Status::OK(); |
650 | 303 | } |
651 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.03k | std::string_view name_view(name); |
653 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 711 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 711 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 249 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 168 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 95 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 93 | } else { |
664 | 2 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 2 | } |
666 | | |
667 | 1.03k | if (segment_v2::is_range_query(query_type) && |
668 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 901 | Field param_value; |
673 | 901 | arguments[0].column->get(0, param_value); |
674 | 901 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 899 | segment_v2::InvertedIndexParam param; |
678 | 899 | param.column_name = data_type_with_name.first; |
679 | 899 | param.column_type = data_type_with_name.second; |
680 | 899 | param.query_value = param_value; |
681 | 899 | param.query_type = query_type; |
682 | 899 | param.num_rows = num_rows; |
683 | 899 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 899 | param.analyzer_ctx = analyzer_ctx; |
685 | 899 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 750 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 750 | if (iter->has_null()) { |
688 | 750 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 750 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 750 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 750 | } |
692 | 750 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 750 | bitmap_result = result; |
694 | 750 | bitmap_result.mask_out_null(); |
695 | | |
696 | 750 | if (name_view == NameNotEquals::name) { |
697 | 59 | roaring::Roaring full_result; |
698 | 59 | full_result.addRange(0, num_rows); |
699 | 59 | bitmap_result.op_not(&full_result); |
700 | 59 | } |
701 | | |
702 | 750 | return Status::OK(); |
703 | 750 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 682 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 682 | DCHECK(arguments.size() == 1); | 641 | 682 | DCHECK(data_type_with_names.size() == 1); | 642 | 682 | DCHECK(iterators.size() == 1); | 643 | 682 | auto* iter = iterators[0]; | 644 | 682 | auto data_type_with_name = data_type_with_names[0]; | 645 | 682 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 682 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 36 | return Status::OK(); | 650 | 36 | } | 651 | 646 | segment_v2::InvertedIndexQueryType query_type; | 652 | 646 | std::string_view name_view(name); | 653 | 646 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 646 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 646 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 646 | if (segment_v2::is_range_query(query_type) && | 668 | 646 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 646 | Field param_value; | 673 | 646 | arguments[0].column->get(0, param_value); | 674 | 646 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 644 | segment_v2::InvertedIndexParam param; | 678 | 644 | param.column_name = data_type_with_name.first; | 679 | 644 | param.column_type = data_type_with_name.second; | 680 | 644 | param.query_value = param_value; | 681 | 644 | param.query_type = query_type; | 682 | 644 | param.num_rows = num_rows; | 683 | 644 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 644 | param.analyzer_ctx = analyzer_ctx; | 685 | 644 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 602 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 602 | if (iter->has_null()) { | 688 | 601 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 601 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 601 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 601 | } | 692 | 602 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 602 | bitmap_result = result; | 694 | 602 | bitmap_result.mask_out_null(); | 695 | | | 696 | 602 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 602 | return Status::OK(); | 703 | 602 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 65 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 65 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 1 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 1 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 1 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 1 | } else { | 664 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 1 | } | 666 | | | 667 | 65 | if (segment_v2::is_range_query(query_type) && | 668 | 65 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 65 | Field param_value; | 673 | 65 | arguments[0].column->get(0, param_value); | 674 | 65 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 65 | segment_v2::InvertedIndexParam param; | 678 | 65 | param.column_name = data_type_with_name.first; | 679 | 65 | param.column_type = data_type_with_name.second; | 680 | 65 | param.query_value = param_value; | 681 | 65 | param.query_type = query_type; | 682 | 65 | param.num_rows = num_rows; | 683 | 65 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 65 | param.analyzer_ctx = analyzer_ctx; | 685 | 65 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 58 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 59 | } | 692 | 58 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 58 | bitmap_result = result; | 694 | 58 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 59 | roaring::Roaring full_result; | 698 | 59 | full_result.addRange(0, num_rows); | 699 | 59 | bitmap_result.op_not(&full_result); | 700 | 59 | } | 701 | | | 702 | 58 | return Status::OK(); | 703 | 58 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 112 | DCHECK(arguments.size() == 1); | 641 | 112 | DCHECK(data_type_with_names.size() == 1); | 642 | 112 | DCHECK(iterators.size() == 1); | 643 | 112 | auto* iter = iterators[0]; | 644 | 112 | auto data_type_with_name = data_type_with_names[0]; | 645 | 112 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 38 | return Status::OK(); | 650 | 38 | } | 651 | 74 | segment_v2::InvertedIndexQueryType query_type; | 652 | 74 | std::string_view name_view(name); | 653 | 74 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 74 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 74 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 74 | } else if (name_view == NameGreater::name) { | 660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 1 | } else { | 664 | 1 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 1 | } | 666 | | | 667 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 119 | DCHECK(arguments.size() == 1); | 641 | 119 | DCHECK(data_type_with_names.size() == 1); | 642 | 119 | DCHECK(iterators.size() == 1); | 643 | 119 | auto* iter = iterators[0]; | 644 | 119 | auto data_type_with_name = data_type_with_names[0]; | 645 | 119 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 76 | segment_v2::InvertedIndexQueryType query_type; | 652 | 76 | std::string_view name_view(name); | 653 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 76 | } else if (name_view == NameLess::name) { | 656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 76 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 76 | if (segment_v2::is_range_query(query_type) && | 668 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 58 | Field param_value; | 673 | 58 | arguments[0].column->get(0, param_value); | 674 | 58 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 58 | segment_v2::InvertedIndexParam param; | 678 | 58 | param.column_name = data_type_with_name.first; | 679 | 58 | param.column_type = data_type_with_name.second; | 680 | 58 | param.query_value = param_value; | 681 | 58 | param.query_type = query_type; | 682 | 58 | param.num_rows = num_rows; | 683 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 58 | param.analyzer_ctx = analyzer_ctx; | 685 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 39 | if (iter->has_null()) { | 688 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 39 | } | 692 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 39 | bitmap_result = result; | 694 | 39 | bitmap_result.mask_out_null(); | 695 | | | 696 | 39 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 39 | return Status::OK(); | 703 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 281k | uint32_t result, size_t input_rows_count) const override { |
707 | 281k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 281k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 281k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 281k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 281k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 281k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 281k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 281k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 281k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 281k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 508k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 508k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 508k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 135k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 135k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 135k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 19.1k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 19.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 19.1k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 107k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 107k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 107k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 73.6k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 73.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 73.6k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 24.4k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 24.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 24.4k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 148k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 148k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 148k | }; |
|
747 | | |
748 | 281k | if (can_compare(left_type->get_primitive_type()) && |
749 | 281k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 227k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 227k | } |
757 | | |
758 | 281k | auto compare_type = left_type->get_primitive_type(); |
759 | 281k | switch (compare_type) { |
760 | 2.08k | case TYPE_BOOLEAN: |
761 | 2.08k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 35.9k | case TYPE_DATEV2: |
763 | 35.9k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 2.69k | case TYPE_DATETIMEV2: |
765 | 2.69k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 12 | case TYPE_TIMESTAMPTZ: |
767 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 10.5k | case TYPE_TINYINT: |
769 | 10.5k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 4.17k | case TYPE_SMALLINT: |
771 | 4.17k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 116k | case TYPE_INT: |
773 | 116k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 49.0k | case TYPE_BIGINT: |
775 | 49.0k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 842 | case TYPE_LARGEINT: |
777 | 842 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 72 | case TYPE_IPV4: |
779 | 72 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 48 | case TYPE_IPV6: |
781 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 1.03k | case TYPE_FLOAT: |
783 | 1.03k | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 4.07k | case TYPE_DOUBLE: |
785 | 4.07k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 571 | case TYPE_DECIMAL32: |
790 | 20.6k | case TYPE_DECIMAL64: |
791 | 25.1k | case TYPE_DECIMAL128I: |
792 | 25.2k | case TYPE_DECIMAL256: |
793 | 25.2k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 25.2k | col_with_type_and_name_right); |
795 | 984 | case TYPE_CHAR: |
796 | 10.2k | case TYPE_VARCHAR: |
797 | 28.9k | case TYPE_STRING: |
798 | 28.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 175 | default: |
800 | 175 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 175 | col_with_type_and_name_right); |
802 | 281k | } |
803 | 0 | return Status::OK(); |
804 | 281k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 80.9k | uint32_t result, size_t input_rows_count) const override { | 707 | 80.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 80.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 80.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 80.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 80.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 80.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 80.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 80.9k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 80.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 80.9k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 80.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 80.9k | }; | 747 | | | 748 | 80.9k | if (can_compare(left_type->get_primitive_type()) && | 749 | 80.9k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 55.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 55.0k | } | 757 | | | 758 | 80.9k | auto compare_type = left_type->get_primitive_type(); | 759 | 80.9k | switch (compare_type) { | 760 | 1.60k | case TYPE_BOOLEAN: | 761 | 1.60k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.35k | case TYPE_DATEV2: | 763 | 1.35k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 721 | case TYPE_DATETIMEV2: | 765 | 721 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 6.98k | case TYPE_TINYINT: | 769 | 6.98k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.60k | case TYPE_SMALLINT: | 771 | 1.60k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 12.4k | case TYPE_INT: | 773 | 12.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 29.0k | case TYPE_BIGINT: | 775 | 29.0k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 165 | case TYPE_LARGEINT: | 777 | 165 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 29 | case TYPE_IPV4: | 779 | 29 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 30 | case TYPE_IPV6: | 781 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 119 | case TYPE_FLOAT: | 783 | 119 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 954 | case TYPE_DOUBLE: | 785 | 954 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 293 | case TYPE_DECIMAL32: | 790 | 602 | case TYPE_DECIMAL64: | 791 | 1.83k | case TYPE_DECIMAL128I: | 792 | 1.86k | case TYPE_DECIMAL256: | 793 | 1.86k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.86k | col_with_type_and_name_right); | 795 | 644 | case TYPE_CHAR: | 796 | 8.73k | case TYPE_VARCHAR: | 797 | 23.9k | case TYPE_STRING: | 798 | 23.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 80.9k | } | 803 | 0 | return Status::OK(); | 804 | 80.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 11.0k | uint32_t result, size_t input_rows_count) const override { | 707 | 11.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 11.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 11.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 11.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 11.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 11.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 11.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 11.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 11.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 11.0k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 11.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 11.0k | }; | 747 | | | 748 | 11.0k | if (can_compare(left_type->get_primitive_type()) && | 749 | 11.0k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 8.12k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 8.12k | } | 757 | | | 758 | 11.0k | auto compare_type = left_type->get_primitive_type(); | 759 | 11.0k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 82 | case TYPE_DATEV2: | 763 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 2 | case TYPE_DATETIMEV2: | 765 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 100 | case TYPE_TINYINT: | 769 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 26 | case TYPE_SMALLINT: | 771 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 5.35k | case TYPE_INT: | 773 | 5.35k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.45k | case TYPE_BIGINT: | 775 | 2.45k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 68 | case TYPE_DECIMAL64: | 791 | 392 | case TYPE_DECIMAL128I: | 792 | 422 | case TYPE_DECIMAL256: | 793 | 422 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 422 | col_with_type_and_name_right); | 795 | 9 | case TYPE_CHAR: | 796 | 304 | case TYPE_VARCHAR: | 797 | 2.48k | case TYPE_STRING: | 798 | 2.48k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 11.0k | } | 803 | 0 | return Status::OK(); | 804 | 11.0k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 62.7k | uint32_t result, size_t input_rows_count) const override { | 707 | 62.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 62.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 62.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 62.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 62.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 62.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 62.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 62.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 62.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 62.7k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 62.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 62.7k | }; | 747 | | | 748 | 62.7k | if (can_compare(left_type->get_primitive_type()) && | 749 | 62.7k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 44.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 44.2k | } | 757 | | | 758 | 62.7k | auto compare_type = left_type->get_primitive_type(); | 759 | 62.7k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.24k | case TYPE_DATEV2: | 763 | 1.24k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 94 | case TYPE_DATETIMEV2: | 765 | 94 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.04k | case TYPE_TINYINT: | 769 | 1.04k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.79k | case TYPE_SMALLINT: | 771 | 1.79k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 23.2k | case TYPE_INT: | 773 | 23.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 13.9k | case TYPE_BIGINT: | 775 | 13.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 257 | case TYPE_LARGEINT: | 777 | 257 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 235 | case TYPE_FLOAT: | 783 | 235 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 2.40k | case TYPE_DOUBLE: | 785 | 2.40k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 46 | case TYPE_DECIMAL32: | 790 | 16.9k | case TYPE_DECIMAL64: | 791 | 18.3k | case TYPE_DECIMAL128I: | 792 | 18.3k | case TYPE_DECIMAL256: | 793 | 18.3k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 18.3k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 175 | case TYPE_STRING: | 798 | 175 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 62.7k | } | 803 | 0 | return Status::OK(); | 804 | 62.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 37.4k | uint32_t result, size_t input_rows_count) const override { | 707 | 37.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 37.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 37.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 37.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 37.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 37.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 37.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 37.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 37.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 37.4k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 37.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 37.4k | }; | 747 | | | 748 | 37.4k | if (can_compare(left_type->get_primitive_type()) && | 749 | 37.4k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 36.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 36.2k | } | 757 | | | 758 | 37.4k | auto compare_type = left_type->get_primitive_type(); | 759 | 37.4k | switch (compare_type) { | 760 | 187 | case TYPE_BOOLEAN: | 761 | 187 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.26k | case TYPE_DATEV2: | 763 | 2.26k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 787 | case TYPE_DATETIMEV2: | 765 | 787 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 91 | case TYPE_TINYINT: | 769 | 91 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 137 | case TYPE_SMALLINT: | 771 | 137 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 31.7k | case TYPE_INT: | 773 | 31.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 595 | case TYPE_BIGINT: | 775 | 595 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 58 | case TYPE_LARGEINT: | 777 | 58 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 230 | case TYPE_FLOAT: | 783 | 230 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 129 | case TYPE_DOUBLE: | 785 | 129 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 9 | case TYPE_DECIMAL32: | 790 | 342 | case TYPE_DECIMAL64: | 791 | 409 | case TYPE_DECIMAL128I: | 792 | 436 | case TYPE_DECIMAL256: | 793 | 436 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 436 | col_with_type_and_name_right); | 795 | 28 | case TYPE_CHAR: | 796 | 270 | case TYPE_VARCHAR: | 797 | 704 | case TYPE_STRING: | 798 | 704 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 62 | default: | 800 | 62 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 62 | col_with_type_and_name_right); | 802 | 37.4k | } | 803 | 0 | return Status::OK(); | 804 | 37.4k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 13.0k | uint32_t result, size_t input_rows_count) const override { | 707 | 13.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 13.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 13.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 13.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 13.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 13.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 13.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 13.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 13.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 13.0k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 13.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 13.0k | }; | 747 | | | 748 | 13.0k | if (can_compare(left_type->get_primitive_type()) && | 749 | 13.0k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.4k | } | 757 | | | 758 | 13.0k | auto compare_type = left_type->get_primitive_type(); | 759 | 13.0k | switch (compare_type) { | 760 | 91 | case TYPE_BOOLEAN: | 761 | 91 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.16k | case TYPE_DATEV2: | 763 | 2.16k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 652 | case TYPE_DATETIMEV2: | 765 | 652 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.16k | case TYPE_TINYINT: | 769 | 2.16k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 399 | case TYPE_SMALLINT: | 771 | 399 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 3.29k | case TYPE_INT: | 773 | 3.29k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.75k | case TYPE_BIGINT: | 775 | 1.75k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 289 | case TYPE_LARGEINT: | 777 | 289 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 179 | case TYPE_FLOAT: | 783 | 179 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 398 | case TYPE_DOUBLE: | 785 | 398 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 218 | case TYPE_DECIMAL32: | 790 | 477 | case TYPE_DECIMAL64: | 791 | 964 | case TYPE_DECIMAL128I: | 792 | 965 | case TYPE_DECIMAL256: | 793 | 965 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 965 | col_with_type_and_name_right); | 795 | 179 | case TYPE_CHAR: | 796 | 362 | case TYPE_VARCHAR: | 797 | 665 | case TYPE_STRING: | 798 | 665 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 13.0k | } | 803 | 0 | return Status::OK(); | 804 | 13.0k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 76.2k | uint32_t result, size_t input_rows_count) const override { | 707 | 76.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 76.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 76.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 76.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 76.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 76.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 76.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 76.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 76.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 76.2k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 76.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 76.2k | }; | 747 | | | 748 | 76.2k | if (can_compare(left_type->get_primitive_type()) && | 749 | 76.2k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 72.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 72.0k | } | 757 | | | 758 | 76.2k | auto compare_type = left_type->get_primitive_type(); | 759 | 76.2k | switch (compare_type) { | 760 | 204 | case TYPE_BOOLEAN: | 761 | 204 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 28.8k | case TYPE_DATEV2: | 763 | 28.8k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 441 | case TYPE_DATETIMEV2: | 765 | 441 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 142 | case TYPE_TINYINT: | 769 | 142 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 209 | case TYPE_SMALLINT: | 771 | 209 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 40.3k | case TYPE_INT: | 773 | 40.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.30k | case TYPE_BIGINT: | 775 | 1.30k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 73 | case TYPE_LARGEINT: | 777 | 73 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 226 | case TYPE_FLOAT: | 783 | 226 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 136 | case TYPE_DOUBLE: | 785 | 136 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 5 | case TYPE_DECIMAL32: | 790 | 2.22k | case TYPE_DECIMAL64: | 791 | 3.19k | case TYPE_DECIMAL128I: | 792 | 3.22k | case TYPE_DECIMAL256: | 793 | 3.22k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 3.22k | col_with_type_and_name_right); | 795 | 110 | case TYPE_CHAR: | 796 | 452 | case TYPE_VARCHAR: | 797 | 944 | case TYPE_STRING: | 798 | 944 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 68 | default: | 800 | 68 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 68 | col_with_type_and_name_right); | 802 | 76.2k | } | 803 | 0 | return Status::OK(); | 804 | 76.2k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |