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 | 11.2k | PaddedPODArray<UInt8>& c) { |
72 | 11.2k | size_t size = a.size(); |
73 | 11.2k | const A* __restrict a_pos = a.data(); |
74 | 11.2k | const B* __restrict b_pos = b.data(); |
75 | 11.2k | UInt8* __restrict c_pos = c.data(); |
76 | 11.2k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 4.99M | while (a_pos < a_end) { |
79 | 4.98M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 4.98M | ++a_pos; |
81 | 4.98M | ++b_pos; |
82 | 4.98M | ++c_pos; |
83 | 4.98M | } |
84 | 11.2k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 72 | PaddedPODArray<UInt8>& c) { | 72 | 72 | size_t size = a.size(); | 73 | 72 | const A* __restrict a_pos = a.data(); | 74 | 72 | const B* __restrict b_pos = b.data(); | 75 | 72 | UInt8* __restrict c_pos = c.data(); | 76 | 72 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 144 | while (a_pos < a_end) { | 79 | 72 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 72 | ++a_pos; | 81 | 72 | ++b_pos; | 82 | 72 | ++c_pos; | 83 | 72 | } | 84 | 72 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 703 | PaddedPODArray<UInt8>& c) { | 72 | 703 | size_t size = a.size(); | 73 | 703 | const A* __restrict a_pos = a.data(); | 74 | 703 | const B* __restrict b_pos = b.data(); | 75 | 703 | UInt8* __restrict c_pos = c.data(); | 76 | 703 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.26k | while (a_pos < a_end) { | 79 | 1.55k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.55k | ++a_pos; | 81 | 1.55k | ++b_pos; | 82 | 1.55k | ++c_pos; | 83 | 1.55k | } | 84 | 703 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 362 | PaddedPODArray<UInt8>& c) { | 72 | 362 | size_t size = a.size(); | 73 | 362 | const A* __restrict a_pos = a.data(); | 74 | 362 | const B* __restrict b_pos = b.data(); | 75 | 362 | UInt8* __restrict c_pos = c.data(); | 76 | 362 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 742 | while (a_pos < a_end) { | 79 | 380 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 380 | ++a_pos; | 81 | 380 | ++b_pos; | 82 | 380 | ++c_pos; | 83 | 380 | } | 84 | 362 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 138 | PaddedPODArray<UInt8>& c) { | 72 | 138 | size_t size = a.size(); | 73 | 138 | const A* __restrict a_pos = a.data(); | 74 | 138 | const B* __restrict b_pos = b.data(); | 75 | 138 | UInt8* __restrict c_pos = c.data(); | 76 | 138 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 418 | while (a_pos < a_end) { | 79 | 280 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 280 | ++a_pos; | 81 | 280 | ++b_pos; | 82 | 280 | ++c_pos; | 83 | 280 | } | 84 | 138 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_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 | 158 | 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 | 79 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.04k | PaddedPODArray<UInt8>& c) { | 72 | 1.04k | size_t size = a.size(); | 73 | 1.04k | const A* __restrict a_pos = a.data(); | 74 | 1.04k | const B* __restrict b_pos = b.data(); | 75 | 1.04k | UInt8* __restrict c_pos = c.data(); | 76 | 1.04k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.44k | while (a_pos < a_end) { | 79 | 2.40k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.40k | ++a_pos; | 81 | 2.40k | ++b_pos; | 82 | 2.40k | ++c_pos; | 83 | 2.40k | } | 84 | 1.04k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 269 | PaddedPODArray<UInt8>& c) { | 72 | 269 | size_t size = a.size(); | 73 | 269 | const A* __restrict a_pos = a.data(); | 74 | 269 | const B* __restrict b_pos = b.data(); | 75 | 269 | UInt8* __restrict c_pos = c.data(); | 76 | 269 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.80k | 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 | 269 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 77 | PaddedPODArray<UInt8>& c) { | 72 | 77 | size_t size = a.size(); | 73 | 77 | const A* __restrict a_pos = a.data(); | 74 | 77 | const B* __restrict b_pos = b.data(); | 75 | 77 | UInt8* __restrict c_pos = c.data(); | 76 | 77 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 154 | 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 | 77 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 96 | PaddedPODArray<UInt8>& c) { | 72 | 96 | size_t size = a.size(); | 73 | 96 | const A* __restrict a_pos = a.data(); | 74 | 96 | const B* __restrict b_pos = b.data(); | 75 | 96 | UInt8* __restrict c_pos = c.data(); | 76 | 96 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 211 | while (a_pos < a_end) { | 79 | 115 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 115 | ++a_pos; | 81 | 115 | ++b_pos; | 82 | 115 | ++c_pos; | 83 | 115 | } | 84 | 96 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 95 | PaddedPODArray<UInt8>& c) { | 72 | 95 | size_t size = a.size(); | 73 | 95 | const A* __restrict a_pos = a.data(); | 74 | 95 | const B* __restrict b_pos = b.data(); | 75 | 95 | UInt8* __restrict c_pos = c.data(); | 76 | 95 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 211 | while (a_pos < a_end) { | 79 | 116 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 116 | ++a_pos; | 81 | 116 | ++b_pos; | 82 | 116 | ++c_pos; | 83 | 116 | } | 84 | 95 | } |
_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 | 1.12k | PaddedPODArray<UInt8>& c) { | 72 | 1.12k | size_t size = a.size(); | 73 | 1.12k | const A* __restrict a_pos = a.data(); | 74 | 1.12k | const B* __restrict b_pos = b.data(); | 75 | 1.12k | UInt8* __restrict c_pos = c.data(); | 76 | 1.12k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 359k | while (a_pos < a_end) { | 79 | 358k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 358k | ++a_pos; | 81 | 358k | ++b_pos; | 82 | 358k | ++c_pos; | 83 | 358k | } | 84 | 1.12k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 407 | PaddedPODArray<UInt8>& c) { | 72 | 407 | size_t size = a.size(); | 73 | 407 | const A* __restrict a_pos = a.data(); | 74 | 407 | const B* __restrict b_pos = b.data(); | 75 | 407 | UInt8* __restrict c_pos = c.data(); | 76 | 407 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 7.60k | while (a_pos < a_end) { | 79 | 7.20k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 7.20k | ++a_pos; | 81 | 7.20k | ++b_pos; | 82 | 7.20k | ++c_pos; | 83 | 7.20k | } | 84 | 407 | } |
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.25k | PaddedPODArray<UInt8>& c) { | 72 | 1.25k | size_t size = a.size(); | 73 | 1.25k | const A* __restrict a_pos = a.data(); | 74 | 1.25k | const B* __restrict b_pos = b.data(); | 75 | 1.25k | UInt8* __restrict c_pos = c.data(); | 76 | 1.25k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.79M | while (a_pos < a_end) { | 79 | 2.79M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.79M | ++a_pos; | 81 | 2.79M | ++b_pos; | 82 | 2.79M | ++c_pos; | 83 | 2.79M | } | 84 | 1.25k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 8 | PaddedPODArray<UInt8>& c) { | 72 | 8 | size_t size = a.size(); | 73 | 8 | const A* __restrict a_pos = a.data(); | 74 | 8 | const B* __restrict b_pos = b.data(); | 75 | 8 | UInt8* __restrict c_pos = c.data(); | 76 | 8 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 16 | while (a_pos < a_end) { | 79 | 8 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 8 | ++a_pos; | 81 | 8 | ++b_pos; | 82 | 8 | ++c_pos; | 83 | 8 | } | 84 | 8 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 38 | PaddedPODArray<UInt8>& c) { | 72 | 38 | size_t size = a.size(); | 73 | 38 | const A* __restrict a_pos = a.data(); | 74 | 38 | const B* __restrict b_pos = b.data(); | 75 | 38 | UInt8* __restrict c_pos = c.data(); | 76 | 38 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 322 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 112 | PaddedPODArray<UInt8>& c) { | 72 | 112 | size_t size = a.size(); | 73 | 112 | const A* __restrict a_pos = a.data(); | 74 | 112 | const B* __restrict b_pos = b.data(); | 75 | 112 | UInt8* __restrict c_pos = c.data(); | 76 | 112 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 264 | ++a_pos; | 81 | 264 | ++b_pos; | 82 | 264 | ++c_pos; | 83 | 264 | } | 84 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 342 | while (a_pos < a_end) { | 79 | 260 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 260 | ++a_pos; | 81 | 260 | ++b_pos; | 82 | 260 | ++c_pos; | 83 | 260 | } | 84 | 82 | } |
_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 | 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 | 101 | 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 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 61 | PaddedPODArray<UInt8>& c) { | 72 | 61 | size_t size = a.size(); | 73 | 61 | const A* __restrict a_pos = a.data(); | 74 | 61 | const B* __restrict b_pos = b.data(); | 75 | 61 | UInt8* __restrict c_pos = c.data(); | 76 | 61 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 122 | while (a_pos < a_end) { | 79 | 61 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 61 | ++a_pos; | 81 | 61 | ++b_pos; | 82 | 61 | ++c_pos; | 83 | 61 | } | 84 | 61 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 98 | PaddedPODArray<UInt8>& c) { | 72 | 98 | size_t size = a.size(); | 73 | 98 | const A* __restrict a_pos = a.data(); | 74 | 98 | const B* __restrict b_pos = b.data(); | 75 | 98 | UInt8* __restrict c_pos = c.data(); | 76 | 98 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 247 | while (a_pos < a_end) { | 79 | 149 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 149 | ++a_pos; | 81 | 149 | ++b_pos; | 82 | 149 | ++c_pos; | 83 | 149 | } | 84 | 98 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 159 | while (a_pos < a_end) { | 79 | 80 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 80 | ++a_pos; | 81 | 80 | ++b_pos; | 82 | 80 | ++c_pos; | 83 | 80 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 39 | PaddedPODArray<UInt8>& c) { | 72 | 39 | size_t size = a.size(); | 73 | 39 | const A* __restrict a_pos = a.data(); | 74 | 39 | const B* __restrict b_pos = b.data(); | 75 | 39 | UInt8* __restrict c_pos = c.data(); | 76 | 39 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 85 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 85 | ++a_pos; | 81 | 85 | ++b_pos; | 82 | 85 | ++c_pos; | 83 | 85 | } | 84 | 39 | } |
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 | 80 | PaddedPODArray<UInt8>& c) { | 72 | 80 | size_t size = a.size(); | 73 | 80 | const A* __restrict a_pos = a.data(); | 74 | 80 | const B* __restrict b_pos = b.data(); | 75 | 80 | UInt8* __restrict c_pos = c.data(); | 76 | 80 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 179 | while (a_pos < a_end) { | 79 | 99 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 99 | ++a_pos; | 81 | 99 | ++b_pos; | 82 | 99 | ++c_pos; | 83 | 99 | } | 84 | 80 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 22 | PaddedPODArray<UInt8>& c) { | 72 | 22 | size_t size = a.size(); | 73 | 22 | const A* __restrict a_pos = a.data(); | 74 | 22 | const B* __restrict b_pos = b.data(); | 75 | 22 | UInt8* __restrict c_pos = c.data(); | 76 | 22 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 65 | 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 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 98 | PaddedPODArray<UInt8>& c) { | 72 | 98 | size_t size = a.size(); | 73 | 98 | const A* __restrict a_pos = a.data(); | 74 | 98 | const B* __restrict b_pos = b.data(); | 75 | 98 | UInt8* __restrict c_pos = c.data(); | 76 | 98 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 370 | while (a_pos < a_end) { | 79 | 272 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 272 | ++a_pos; | 81 | 272 | ++b_pos; | 82 | 272 | ++c_pos; | 83 | 272 | } | 84 | 98 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 2.10k | PaddedPODArray<UInt8>& c) { | 72 | 2.10k | size_t size = a.size(); | 73 | 2.10k | const A* __restrict a_pos = a.data(); | 74 | 2.10k | const B* __restrict b_pos = b.data(); | 75 | 2.10k | UInt8* __restrict c_pos = c.data(); | 76 | 2.10k | 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 | 2.10k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 274 | PaddedPODArray<UInt8>& c) { | 72 | 274 | size_t size = a.size(); | 73 | 274 | const A* __restrict a_pos = a.data(); | 74 | 274 | const B* __restrict b_pos = b.data(); | 75 | 274 | UInt8* __restrict c_pos = c.data(); | 76 | 274 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 896 | while (a_pos < a_end) { | 79 | 622 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 622 | ++a_pos; | 81 | 622 | ++b_pos; | 82 | 622 | ++c_pos; | 83 | 622 | } | 84 | 274 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 480 | while (a_pos < a_end) { | 79 | 327 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 327 | ++a_pos; | 81 | 327 | ++b_pos; | 82 | 327 | ++c_pos; | 83 | 327 | } | 84 | 153 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 460 | while (a_pos < a_end) { | 79 | 318 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 318 | ++a_pos; | 81 | 318 | ++b_pos; | 82 | 318 | ++c_pos; | 83 | 318 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 175 | PaddedPODArray<UInt8>& c) { | 72 | 175 | size_t size = a.size(); | 73 | 175 | const A* __restrict a_pos = a.data(); | 74 | 175 | const B* __restrict b_pos = b.data(); | 75 | 175 | UInt8* __restrict c_pos = c.data(); | 76 | 175 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.04k | while (a_pos < a_end) { | 79 | 865 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 865 | ++a_pos; | 81 | 865 | ++b_pos; | 82 | 865 | ++c_pos; | 83 | 865 | } | 84 | 175 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 226 | PaddedPODArray<UInt8>& c) { | 72 | 226 | size_t size = a.size(); | 73 | 226 | const A* __restrict a_pos = a.data(); | 74 | 226 | const B* __restrict b_pos = b.data(); | 75 | 226 | UInt8* __restrict c_pos = c.data(); | 76 | 226 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.44k | while (a_pos < a_end) { | 79 | 5.22k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.22k | ++a_pos; | 81 | 5.22k | ++b_pos; | 82 | 5.22k | ++c_pos; | 83 | 5.22k | } | 84 | 226 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 158 | PaddedPODArray<UInt8>& c) { | 72 | 158 | size_t size = a.size(); | 73 | 158 | const A* __restrict a_pos = a.data(); | 74 | 158 | const B* __restrict b_pos = b.data(); | 75 | 158 | UInt8* __restrict c_pos = c.data(); | 76 | 158 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 490 | while (a_pos < a_end) { | 79 | 332 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 332 | ++a_pos; | 81 | 332 | ++b_pos; | 82 | 332 | ++c_pos; | 83 | 332 | } | 84 | 158 | } |
_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 | 151 | PaddedPODArray<UInt8>& c) { | 72 | 151 | size_t size = a.size(); | 73 | 151 | const A* __restrict a_pos = a.data(); | 74 | 151 | const B* __restrict b_pos = b.data(); | 75 | 151 | UInt8* __restrict c_pos = c.data(); | 76 | 151 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 495 | while (a_pos < a_end) { | 79 | 344 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 344 | ++a_pos; | 81 | 344 | ++b_pos; | 82 | 344 | ++c_pos; | 83 | 344 | } | 84 | 151 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 163 | PaddedPODArray<UInt8>& c) { | 72 | 163 | size_t size = a.size(); | 73 | 163 | const A* __restrict a_pos = a.data(); | 74 | 163 | const B* __restrict b_pos = b.data(); | 75 | 163 | UInt8* __restrict c_pos = c.data(); | 76 | 163 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 527 | while (a_pos < a_end) { | 79 | 364 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 364 | ++a_pos; | 81 | 364 | ++b_pos; | 82 | 364 | ++c_pos; | 83 | 364 | } | 84 | 163 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 466 | PaddedPODArray<UInt8>& c) { | 72 | 466 | size_t size = a.size(); | 73 | 466 | const A* __restrict a_pos = a.data(); | 74 | 466 | const B* __restrict b_pos = b.data(); | 75 | 466 | UInt8* __restrict c_pos = c.data(); | 76 | 466 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.78k | while (a_pos < a_end) { | 79 | 6.32k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.32k | ++a_pos; | 81 | 6.32k | ++b_pos; | 82 | 6.32k | ++c_pos; | 83 | 6.32k | } | 84 | 466 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 90 | PaddedPODArray<UInt8>& c) { | 72 | 90 | size_t size = a.size(); | 73 | 90 | const A* __restrict a_pos = a.data(); | 74 | 90 | const B* __restrict b_pos = b.data(); | 75 | 90 | UInt8* __restrict c_pos = c.data(); | 76 | 90 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 180 | while (a_pos < a_end) { | 79 | 90 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 90 | ++a_pos; | 81 | 90 | ++b_pos; | 82 | 90 | ++c_pos; | 83 | 90 | } | 84 | 90 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 83 | PaddedPODArray<UInt8>& c) { | 72 | 83 | size_t size = a.size(); | 73 | 83 | const A* __restrict a_pos = a.data(); | 74 | 83 | const B* __restrict b_pos = b.data(); | 75 | 83 | UInt8* __restrict c_pos = c.data(); | 76 | 83 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 225 | 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 | 83 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 99 | PaddedPODArray<UInt8>& c) { | 72 | 99 | size_t size = a.size(); | 73 | 99 | const A* __restrict a_pos = a.data(); | 74 | 99 | const B* __restrict b_pos = b.data(); | 75 | 99 | UInt8* __restrict c_pos = c.data(); | 76 | 99 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 249 | while (a_pos < a_end) { | 79 | 150 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 150 | ++a_pos; | 81 | 150 | ++b_pos; | 82 | 150 | ++c_pos; | 83 | 150 | } | 84 | 99 | } |
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 | 80 | PaddedPODArray<UInt8>& c) { | 72 | 80 | size_t size = a.size(); | 73 | 80 | const A* __restrict a_pos = a.data(); | 74 | 80 | const B* __restrict b_pos = b.data(); | 75 | 80 | UInt8* __restrict c_pos = c.data(); | 76 | 80 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 179 | while (a_pos < a_end) { | 79 | 99 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 99 | ++a_pos; | 81 | 99 | ++b_pos; | 82 | 99 | ++c_pos; | 83 | 99 | } | 84 | 80 | } |
_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 | 232k | PaddedPODArray<UInt8>& c) { |
88 | 232k | size_t size = a.size(); |
89 | 232k | const A* __restrict a_pos = a.data(); |
90 | 232k | UInt8* __restrict c_pos = c.data(); |
91 | 232k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 95.0M | while (a_pos < a_end) { |
94 | 94.8M | *c_pos = Op::apply(*a_pos, b); |
95 | 94.8M | ++a_pos; |
96 | 94.8M | ++c_pos; |
97 | 94.8M | } |
98 | 232k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.50k | PaddedPODArray<UInt8>& c) { | 88 | 1.50k | size_t size = a.size(); | 89 | 1.50k | const A* __restrict a_pos = a.data(); | 90 | 1.50k | UInt8* __restrict c_pos = c.data(); | 91 | 1.50k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.84k | while (a_pos < a_end) { | 94 | 3.33k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.33k | ++a_pos; | 96 | 3.33k | ++c_pos; | 97 | 3.33k | } | 98 | 1.50k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 969 | PaddedPODArray<UInt8>& c) { | 88 | 969 | size_t size = a.size(); | 89 | 969 | const A* __restrict a_pos = a.data(); | 90 | 969 | UInt8* __restrict c_pos = c.data(); | 91 | 969 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 206k | while (a_pos < a_end) { | 94 | 205k | *c_pos = Op::apply(*a_pos, b); | 95 | 205k | ++a_pos; | 96 | 205k | ++c_pos; | 97 | 205k | } | 98 | 969 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 309 | PaddedPODArray<UInt8>& c) { | 88 | 309 | size_t size = a.size(); | 89 | 309 | const A* __restrict a_pos = a.data(); | 90 | 309 | UInt8* __restrict c_pos = c.data(); | 91 | 309 | 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 | 309 | } |
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 | 5.33k | PaddedPODArray<UInt8>& c) { | 88 | 5.33k | size_t size = a.size(); | 89 | 5.33k | const A* __restrict a_pos = a.data(); | 90 | 5.33k | UInt8* __restrict c_pos = c.data(); | 91 | 5.33k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.11M | 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 | 5.33k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 691 | PaddedPODArray<UInt8>& c) { | 88 | 691 | size_t size = a.size(); | 89 | 691 | const A* __restrict a_pos = a.data(); | 90 | 691 | UInt8* __restrict c_pos = c.data(); | 91 | 691 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 159k | *c_pos = Op::apply(*a_pos, b); | 95 | 159k | ++a_pos; | 96 | 159k | ++c_pos; | 97 | 159k | } | 98 | 691 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 61.1k | PaddedPODArray<UInt8>& c) { | 88 | 61.1k | size_t size = a.size(); | 89 | 61.1k | const A* __restrict a_pos = a.data(); | 90 | 61.1k | UInt8* __restrict c_pos = c.data(); | 91 | 61.1k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.42M | while (a_pos < a_end) { | 94 | 1.36M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.36M | ++a_pos; | 96 | 1.36M | ++c_pos; | 97 | 1.36M | } | 98 | 61.1k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.7k | PaddedPODArray<UInt8>& c) { | 88 | 17.7k | size_t size = a.size(); | 89 | 17.7k | const A* __restrict a_pos = a.data(); | 90 | 17.7k | UInt8* __restrict c_pos = c.data(); | 91 | 17.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.00M | while (a_pos < a_end) { | 94 | 2.98M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.98M | ++a_pos; | 96 | 2.98M | ++c_pos; | 97 | 2.98M | } | 98 | 17.7k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 71 | PaddedPODArray<UInt8>& c) { | 88 | 71 | size_t size = a.size(); | 89 | 71 | const A* __restrict a_pos = a.data(); | 90 | 71 | UInt8* __restrict c_pos = c.data(); | 91 | 71 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 71 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17 | PaddedPODArray<UInt8>& c) { | 88 | 17 | size_t size = a.size(); | 89 | 17 | const A* __restrict a_pos = a.data(); | 90 | 17 | UInt8* __restrict c_pos = c.data(); | 91 | 17 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 131 | 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 | 17 | } |
_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 | 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 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 832 | PaddedPODArray<UInt8>& c) { | 88 | 832 | size_t size = a.size(); | 89 | 832 | const A* __restrict a_pos = a.data(); | 90 | 832 | UInt8* __restrict c_pos = c.data(); | 91 | 832 | 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 | 832 | } |
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 | 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 | 8 | while (a_pos < a_end) { | 94 | 4 | *c_pos = Op::apply(*a_pos, b); | 95 | 4 | ++a_pos; | 96 | 4 | ++c_pos; | 97 | 4 | } | 98 | 4 | } |
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.24k | while (a_pos < a_end) { | 94 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.19k | ++a_pos; | 96 | 1.19k | ++c_pos; | 97 | 1.19k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_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 | 786 | 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 | 10 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.12k | PaddedPODArray<UInt8>& c) { | 88 | 1.12k | size_t size = a.size(); | 89 | 1.12k | const A* __restrict a_pos = a.data(); | 90 | 1.12k | UInt8* __restrict c_pos = c.data(); | 91 | 1.12k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 629k | while (a_pos < a_end) { | 94 | 628k | *c_pos = Op::apply(*a_pos, b); | 95 | 628k | ++a_pos; | 96 | 628k | ++c_pos; | 97 | 628k | } | 98 | 1.12k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.73k | PaddedPODArray<UInt8>& c) { | 88 | 2.73k | size_t size = a.size(); | 89 | 2.73k | const A* __restrict a_pos = a.data(); | 90 | 2.73k | UInt8* __restrict c_pos = c.data(); | 91 | 2.73k | 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.73k | } |
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 | 139 | PaddedPODArray<UInt8>& c) { | 88 | 139 | size_t size = a.size(); | 89 | 139 | const A* __restrict a_pos = a.data(); | 90 | 139 | UInt8* __restrict c_pos = c.data(); | 91 | 139 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.46k | while (a_pos < a_end) { | 94 | 4.32k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.32k | ++a_pos; | 96 | 4.32k | ++c_pos; | 97 | 4.32k | } | 98 | 139 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 422 | PaddedPODArray<UInt8>& c) { | 88 | 422 | size_t size = a.size(); | 89 | 422 | const A* __restrict a_pos = a.data(); | 90 | 422 | UInt8* __restrict c_pos = c.data(); | 91 | 422 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.34M | while (a_pos < a_end) { | 94 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.34M | ++a_pos; | 96 | 1.34M | ++c_pos; | 97 | 1.34M | } | 98 | 422 | } |
_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 | 230 | while (a_pos < a_end) { | 94 | 136 | *c_pos = Op::apply(*a_pos, b); | 95 | 136 | ++a_pos; | 96 | 136 | ++c_pos; | 97 | 136 | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 437 | PaddedPODArray<UInt8>& c) { | 88 | 437 | size_t size = a.size(); | 89 | 437 | const A* __restrict a_pos = a.data(); | 90 | 437 | UInt8* __restrict c_pos = c.data(); | 91 | 437 | 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 | 437 | } |
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.13k | PaddedPODArray<UInt8>& c) { | 88 | 1.13k | size_t size = a.size(); | 89 | 1.13k | const A* __restrict a_pos = a.data(); | 90 | 1.13k | UInt8* __restrict c_pos = c.data(); | 91 | 1.13k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.67k | while (a_pos < a_end) { | 94 | 5.53k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.53k | ++a_pos; | 96 | 5.53k | ++c_pos; | 97 | 5.53k | } | 98 | 1.13k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.03k | PaddedPODArray<UInt8>& c) { | 88 | 2.03k | size_t size = a.size(); | 89 | 2.03k | const A* __restrict a_pos = a.data(); | 90 | 2.03k | UInt8* __restrict c_pos = c.data(); | 91 | 2.03k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.79k | while (a_pos < a_end) { | 94 | 5.75k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.75k | ++a_pos; | 96 | 5.75k | ++c_pos; | 97 | 5.75k | } | 98 | 2.03k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.46k | while (a_pos < a_end) { | 94 | 5.00k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.00k | ++a_pos; | 96 | 5.00k | ++c_pos; | 97 | 5.00k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 384 | PaddedPODArray<UInt8>& c) { | 88 | 384 | size_t size = a.size(); | 89 | 384 | const A* __restrict a_pos = a.data(); | 90 | 384 | UInt8* __restrict c_pos = c.data(); | 91 | 384 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.7k | 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 | 384 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10.0k | PaddedPODArray<UInt8>& c) { | 88 | 10.0k | size_t size = a.size(); | 89 | 10.0k | const A* __restrict a_pos = a.data(); | 90 | 10.0k | UInt8* __restrict c_pos = c.data(); | 91 | 10.0k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.90M | while (a_pos < a_end) { | 94 | 1.89M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.89M | ++a_pos; | 96 | 1.89M | ++c_pos; | 97 | 1.89M | } | 98 | 10.0k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 65.1k | PaddedPODArray<UInt8>& c) { | 88 | 65.1k | size_t size = a.size(); | 89 | 65.1k | const A* __restrict a_pos = a.data(); | 90 | 65.1k | UInt8* __restrict c_pos = c.data(); | 91 | 65.1k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.46M | while (a_pos < a_end) { | 94 | 9.39M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.39M | ++a_pos; | 96 | 9.39M | ++c_pos; | 97 | 9.39M | } | 98 | 65.1k | } |
_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 | 170k | while (a_pos < a_end) { | 94 | 156k | *c_pos = Op::apply(*a_pos, b); | 95 | 156k | ++a_pos; | 96 | 156k | ++c_pos; | 97 | 156k | } | 98 | 13.4k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.94k | PaddedPODArray<UInt8>& c) { | 88 | 1.94k | size_t size = a.size(); | 89 | 1.94k | const A* __restrict a_pos = a.data(); | 90 | 1.94k | UInt8* __restrict c_pos = c.data(); | 91 | 1.94k | 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.94k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 268 | PaddedPODArray<UInt8>& c) { | 88 | 268 | size_t size = a.size(); | 89 | 268 | const A* __restrict a_pos = a.data(); | 90 | 268 | UInt8* __restrict c_pos = c.data(); | 91 | 268 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.90k | 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 | 268 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 144 | PaddedPODArray<UInt8>& c) { | 88 | 144 | size_t size = a.size(); | 89 | 144 | const A* __restrict a_pos = a.data(); | 90 | 144 | UInt8* __restrict c_pos = c.data(); | 91 | 144 | 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 | 144 | } |
_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.77k | while (a_pos < a_end) { | 94 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.55k | ++a_pos; | 96 | 3.55k | ++c_pos; | 97 | 3.55k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_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 | 64 | while (a_pos < a_end) { | 94 | 36 | *c_pos = Op::apply(*a_pos, b); | 95 | 36 | ++a_pos; | 96 | 36 | ++c_pos; | 97 | 36 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.20k | PaddedPODArray<UInt8>& c) { | 88 | 2.20k | size_t size = a.size(); | 89 | 2.20k | const A* __restrict a_pos = a.data(); | 90 | 2.20k | UInt8* __restrict c_pos = c.data(); | 91 | 2.20k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 342k | while (a_pos < a_end) { | 94 | 339k | *c_pos = Op::apply(*a_pos, b); | 95 | 339k | ++a_pos; | 96 | 339k | ++c_pos; | 97 | 339k | } | 98 | 2.20k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 225 | PaddedPODArray<UInt8>& c) { | 88 | 225 | size_t size = a.size(); | 89 | 225 | const A* __restrict a_pos = a.data(); | 90 | 225 | UInt8* __restrict c_pos = c.data(); | 91 | 225 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 315k | while (a_pos < a_end) { | 94 | 315k | *c_pos = Op::apply(*a_pos, b); | 95 | 315k | ++a_pos; | 96 | 315k | ++c_pos; | 97 | 315k | } | 98 | 225 | } |
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 | 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 | 112k | while (a_pos < a_end) { | 94 | 112k | *c_pos = Op::apply(*a_pos, b); | 95 | 112k | ++a_pos; | 96 | 112k | ++c_pos; | 97 | 112k | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 122 | PaddedPODArray<UInt8>& c) { | 88 | 122 | size_t size = a.size(); | 89 | 122 | const A* __restrict a_pos = a.data(); | 90 | 122 | UInt8* __restrict c_pos = c.data(); | 91 | 122 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 172k | while (a_pos < a_end) { | 94 | 172k | *c_pos = Op::apply(*a_pos, b); | 95 | 172k | ++a_pos; | 96 | 172k | ++c_pos; | 97 | 172k | } | 98 | 122 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.26k | PaddedPODArray<UInt8>& c) { | 88 | 2.26k | size_t size = a.size(); | 89 | 2.26k | const A* __restrict a_pos = a.data(); | 90 | 2.26k | UInt8* __restrict c_pos = c.data(); | 91 | 2.26k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.62M | while (a_pos < a_end) { | 94 | 4.62M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.62M | ++a_pos; | 96 | 4.62M | ++c_pos; | 97 | 4.62M | } | 98 | 2.26k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 6.42k | PaddedPODArray<UInt8>& c) { | 88 | 6.42k | size_t size = a.size(); | 89 | 6.42k | const A* __restrict a_pos = a.data(); | 90 | 6.42k | UInt8* __restrict c_pos = c.data(); | 91 | 6.42k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 39.3M | while (a_pos < a_end) { | 94 | 39.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 39.3M | ++a_pos; | 96 | 39.3M | ++c_pos; | 97 | 39.3M | } | 98 | 6.42k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 765 | PaddedPODArray<UInt8>& c) { | 88 | 765 | size_t size = a.size(); | 89 | 765 | const A* __restrict a_pos = a.data(); | 90 | 765 | UInt8* __restrict c_pos = c.data(); | 91 | 765 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8k | while (a_pos < a_end) { | 94 | 30.0k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.0k | ++a_pos; | 96 | 30.0k | ++c_pos; | 97 | 30.0k | } | 98 | 765 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 297 | PaddedPODArray<UInt8>& c) { | 88 | 297 | size_t size = a.size(); | 89 | 297 | const A* __restrict a_pos = a.data(); | 90 | 297 | UInt8* __restrict c_pos = c.data(); | 91 | 297 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.6k | while (a_pos < a_end) { | 94 | 15.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.3k | ++a_pos; | 96 | 15.3k | ++c_pos; | 97 | 15.3k | } | 98 | 297 | } |
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 | 54 | PaddedPODArray<UInt8>& c) { | 88 | 54 | size_t size = a.size(); | 89 | 54 | const A* __restrict a_pos = a.data(); | 90 | 54 | UInt8* __restrict c_pos = c.data(); | 91 | 54 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90.7k | while (a_pos < a_end) { | 94 | 90.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 90.6k | ++a_pos; | 96 | 90.6k | ++c_pos; | 97 | 90.6k | } | 98 | 54 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 83 | PaddedPODArray<UInt8>& c) { | 88 | 83 | size_t size = a.size(); | 89 | 83 | const A* __restrict a_pos = a.data(); | 90 | 83 | UInt8* __restrict c_pos = c.data(); | 91 | 83 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 128k | 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 | 83 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 95 | PaddedPODArray<UInt8>& c) { | 88 | 95 | size_t size = a.size(); | 89 | 95 | const A* __restrict a_pos = a.data(); | 90 | 95 | UInt8* __restrict c_pos = c.data(); | 91 | 95 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 136k | while (a_pos < a_end) { | 94 | 135k | *c_pos = Op::apply(*a_pos, b); | 95 | 135k | ++a_pos; | 96 | 135k | ++c_pos; | 97 | 135k | } | 98 | 95 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 126 | PaddedPODArray<UInt8>& c) { | 88 | 126 | size_t size = a.size(); | 89 | 126 | const A* __restrict a_pos = a.data(); | 90 | 126 | UInt8* __restrict c_pos = c.data(); | 91 | 126 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 120k | while (a_pos < a_end) { | 94 | 120k | *c_pos = Op::apply(*a_pos, b); | 95 | 120k | ++a_pos; | 96 | 120k | ++c_pos; | 97 | 120k | } | 98 | 126 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10.2k | PaddedPODArray<UInt8>& c) { | 88 | 10.2k | size_t size = a.size(); | 89 | 10.2k | const A* __restrict a_pos = a.data(); | 90 | 10.2k | UInt8* __restrict c_pos = c.data(); | 91 | 10.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.88M | while (a_pos < a_end) { | 94 | 7.87M | *c_pos = Op::apply(*a_pos, b); | 95 | 7.87M | ++a_pos; | 96 | 7.87M | ++c_pos; | 97 | 7.87M | } | 98 | 10.2k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.8k | PaddedPODArray<UInt8>& c) { | 88 | 17.8k | size_t size = a.size(); | 89 | 17.8k | const A* __restrict a_pos = a.data(); | 90 | 17.8k | UInt8* __restrict c_pos = c.data(); | 91 | 17.8k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12.0M | while (a_pos < a_end) { | 94 | 12.0M | *c_pos = Op::apply(*a_pos, b); | 95 | 12.0M | ++a_pos; | 96 | 12.0M | ++c_pos; | 97 | 12.0M | } | 98 | 17.8k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 600 | PaddedPODArray<UInt8>& c) { | 88 | 600 | size_t size = a.size(); | 89 | 600 | const A* __restrict a_pos = a.data(); | 90 | 600 | UInt8* __restrict c_pos = c.data(); | 91 | 600 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 36.4k | while (a_pos < a_end) { | 94 | 35.8k | *c_pos = Op::apply(*a_pos, b); | 95 | 35.8k | ++a_pos; | 96 | 35.8k | ++c_pos; | 97 | 35.8k | } | 98 | 600 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 897 | PaddedPODArray<UInt8>& c) { | 88 | 897 | size_t size = a.size(); | 89 | 897 | const A* __restrict a_pos = a.data(); | 90 | 897 | UInt8* __restrict c_pos = c.data(); | 91 | 897 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 47.1k | while (a_pos < a_end) { | 94 | 46.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 46.2k | ++a_pos; | 96 | 46.2k | ++c_pos; | 97 | 46.2k | } | 98 | 897 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 50 | PaddedPODArray<UInt8>& c) { | 88 | 50 | size_t size = a.size(); | 89 | 50 | const A* __restrict a_pos = a.data(); | 90 | 50 | UInt8* __restrict c_pos = c.data(); | 91 | 50 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 150k | while (a_pos < a_end) { | 94 | 150k | *c_pos = Op::apply(*a_pos, b); | 95 | 150k | ++a_pos; | 96 | 150k | ++c_pos; | 97 | 150k | } | 98 | 50 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 49 | PaddedPODArray<UInt8>& c) { | 88 | 49 | size_t size = a.size(); | 89 | 49 | const A* __restrict a_pos = a.data(); | 90 | 49 | UInt8* __restrict c_pos = c.data(); | 91 | 49 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 27.7k | while (a_pos < a_end) { | 94 | 27.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 27.6k | ++a_pos; | 96 | 27.6k | ++c_pos; | 97 | 27.6k | } | 98 | 49 | } |
_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 | 122 | PaddedPODArray<UInt8>& c) { | 88 | 122 | size_t size = a.size(); | 89 | 122 | const A* __restrict a_pos = a.data(); | 90 | 122 | UInt8* __restrict c_pos = c.data(); | 91 | 122 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 246 | while (a_pos < a_end) { | 94 | 124 | *c_pos = Op::apply(*a_pos, b); | 95 | 124 | ++a_pos; | 96 | 124 | ++c_pos; | 97 | 124 | } | 98 | 122 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 118 | PaddedPODArray<UInt8>& c) { | 88 | 118 | size_t size = a.size(); | 89 | 118 | const A* __restrict a_pos = a.data(); | 90 | 118 | UInt8* __restrict c_pos = c.data(); | 91 | 118 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 236 | while (a_pos < a_end) { | 94 | 118 | *c_pos = Op::apply(*a_pos, b); | 95 | 118 | ++a_pos; | 96 | 118 | ++c_pos; | 97 | 118 | } | 98 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 127 | PaddedPODArray<UInt8>& c) { | 88 | 127 | size_t size = a.size(); | 89 | 127 | const A* __restrict a_pos = a.data(); | 90 | 127 | UInt8* __restrict c_pos = c.data(); | 91 | 127 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 276k | while (a_pos < a_end) { | 94 | 276k | *c_pos = Op::apply(*a_pos, b); | 95 | 276k | ++a_pos; | 96 | 276k | ++c_pos; | 97 | 276k | } | 98 | 127 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 120 | PaddedPODArray<UInt8>& c) { | 88 | 120 | size_t size = a.size(); | 89 | 120 | const A* __restrict a_pos = a.data(); | 90 | 120 | UInt8* __restrict c_pos = c.data(); | 91 | 120 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 275k | while (a_pos < a_end) { | 94 | 275k | *c_pos = Op::apply(*a_pos, b); | 95 | 275k | ++a_pos; | 96 | 275k | ++c_pos; | 97 | 275k | } | 98 | 120 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 93.8k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 93.8k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 93.8k | } 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 | 300 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 300 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 300 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 27.4k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 27.4k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 27.4k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1.16k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1.16k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1.16k | } |
_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 | 802 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 802 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 802 | } |
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 | 252 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 252 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 252 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 62.1k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 62.1k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 62.1k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 511 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 511 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 511 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 56 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 56 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 56 | } |
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 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 264 | } |
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 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 66 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 66 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 66 | } |
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 | 329 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 329 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 329 | } |
_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 | 131 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 131 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 359k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 359k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 359k | } |
119 | 131 | } _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 | 40 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 40 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 150k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 149k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 149k | } | 119 | 40 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 54 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 54 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 209k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 209k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 209k | } | 119 | 54 | } |
|
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 | 779 | PaddedPODArray<UInt8>& c) { |
133 | 779 | size_t size = a_offsets.size(); |
134 | 779 | ColumnString::Offset prev_a_offset = 0; |
135 | 779 | ColumnString::Offset prev_b_offset = 0; |
136 | 779 | const auto* a_pos = a_data.data(); |
137 | 779 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 2.28k | for (size_t i = 0; i < size; ++i) { |
140 | 1.50k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.50k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.50k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.50k | 0); |
144 | | |
145 | 1.50k | prev_a_offset = a_offsets[i]; |
146 | 1.50k | prev_b_offset = b_offsets[i]; |
147 | 1.50k | } |
148 | 779 | } _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 | 122 | PaddedPODArray<UInt8>& c) { | 133 | 122 | size_t size = a_offsets.size(); | 134 | 122 | ColumnString::Offset prev_a_offset = 0; | 135 | 122 | ColumnString::Offset prev_b_offset = 0; | 136 | 122 | const auto* a_pos = a_data.data(); | 137 | 122 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 402 | for (size_t i = 0; i < size; ++i) { | 140 | 280 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 280 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 280 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 280 | 0); | 144 | | | 145 | 280 | prev_a_offset = a_offsets[i]; | 146 | 280 | prev_b_offset = b_offsets[i]; | 147 | 280 | } | 148 | 122 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 485 | PaddedPODArray<UInt8>& c) { | 133 | 485 | size_t size = a_offsets.size(); | 134 | 485 | ColumnString::Offset prev_a_offset = 0; | 135 | 485 | ColumnString::Offset prev_b_offset = 0; | 136 | 485 | const auto* a_pos = a_data.data(); | 137 | 485 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.49k | for (size_t i = 0; i < size; ++i) { | 140 | 1.00k | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 1.00k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 1.00k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 1.00k | 0); | 144 | | | 145 | 1.00k | prev_a_offset = a_offsets[i]; | 146 | 1.00k | prev_b_offset = b_offsets[i]; | 147 | 1.00k | } | 148 | 485 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 170 | PaddedPODArray<UInt8>& c) { | 133 | 170 | size_t size = a_offsets.size(); | 134 | 170 | ColumnString::Offset prev_a_offset = 0; | 135 | 170 | ColumnString::Offset prev_b_offset = 0; | 136 | 170 | const auto* a_pos = a_data.data(); | 137 | 170 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 340 | for (size_t i = 0; i < size; ++i) { | 140 | 170 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 170 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 170 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 170 | 0); | 144 | | | 145 | 170 | prev_a_offset = a_offsets[i]; | 146 | 170 | prev_b_offset = b_offsets[i]; | 147 | 170 | } | 148 | 170 | } |
|
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.54k | PaddedPODArray<UInt8>& c) { |
155 | 1.54k | size_t size = a_offsets.size(); |
156 | 1.54k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.54k | const auto* a_pos = a_data.data(); |
158 | 1.54k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.47M | for (size_t i = 0; i < size; ++i) { |
161 | 1.47M | c[i] = Op::apply( |
162 | 1.47M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.47M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.47M | 0); |
165 | | |
166 | 1.47M | prev_a_offset = a_offsets[i]; |
167 | 1.47M | } |
168 | 1.54k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 176 | PaddedPODArray<UInt8>& c) { | 155 | 176 | size_t size = a_offsets.size(); | 156 | 176 | ColumnString::Offset prev_a_offset = 0; | 157 | 176 | const auto* a_pos = a_data.data(); | 158 | 176 | 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 | 176 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 200 | PaddedPODArray<UInt8>& c) { | 155 | 200 | size_t size = a_offsets.size(); | 156 | 200 | ColumnString::Offset prev_a_offset = 0; | 157 | 200 | const auto* a_pos = a_data.data(); | 158 | 200 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.1k | for (size_t i = 0; i < size; ++i) { | 161 | 72.9k | c[i] = Op::apply( | 162 | 72.9k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.9k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.9k | 0); | 165 | | | 166 | 72.9k | prev_a_offset = a_offsets[i]; | 167 | 72.9k | } | 168 | 200 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 502 | PaddedPODArray<UInt8>& c) { | 155 | 502 | size_t size = a_offsets.size(); | 156 | 502 | ColumnString::Offset prev_a_offset = 0; | 157 | 502 | const auto* a_pos = a_data.data(); | 158 | 502 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 495k | for (size_t i = 0; i < size; ++i) { | 161 | 494k | c[i] = Op::apply( | 162 | 494k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 494k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 494k | 0); | 165 | | | 166 | 494k | prev_a_offset = a_offsets[i]; | 167 | 494k | } | 168 | 502 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 671 | PaddedPODArray<UInt8>& c) { | 155 | 671 | size_t size = a_offsets.size(); | 156 | 671 | ColumnString::Offset prev_a_offset = 0; | 157 | 671 | const auto* a_pos = a_data.data(); | 158 | 671 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 577k | for (size_t i = 0; i < size; ++i) { | 161 | 577k | c[i] = Op::apply( | 162 | 577k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 577k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 577k | 0); | 165 | | | 166 | 577k | prev_a_offset = a_offsets[i]; | 167 | 577k | } | 168 | 671 | } |
|
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 | 2.62k | PaddedPODArray<UInt8>& c) { |
187 | 2.62k | size_t size = a_offsets.size(); |
188 | 2.62k | ColumnString::Offset prev_a_offset = 0; |
189 | 2.62k | ColumnString::Offset prev_b_offset = 0; |
190 | 2.62k | const auto* a_pos = a_data.data(); |
191 | 2.62k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 5.74k | for (size_t i = 0; i < size; ++i) { |
194 | 3.12k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 3.12k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 3.12k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 3.12k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 3.12k | prev_a_offset = a_offsets[i]; |
201 | 3.12k | prev_b_offset = b_offsets[i]; |
202 | 3.12k | } |
203 | 2.62k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 2.56k | PaddedPODArray<UInt8>& c) { | 187 | 2.56k | size_t size = a_offsets.size(); | 188 | 2.56k | ColumnString::Offset prev_a_offset = 0; | 189 | 2.56k | ColumnString::Offset prev_b_offset = 0; | 190 | 2.56k | const auto* a_pos = a_data.data(); | 191 | 2.56k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 5.61k | for (size_t i = 0; i < size; ++i) { | 194 | 3.05k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 3.05k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 3.05k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 3.05k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 3.05k | prev_a_offset = a_offsets[i]; | 201 | 3.05k | prev_b_offset = b_offsets[i]; | 202 | 3.05k | } | 203 | 2.56k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 60 | PaddedPODArray<UInt8>& c) { | 187 | 60 | size_t size = a_offsets.size(); | 188 | 60 | ColumnString::Offset prev_a_offset = 0; | 189 | 60 | ColumnString::Offset prev_b_offset = 0; | 190 | 60 | const auto* a_pos = a_data.data(); | 191 | 60 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 129 | for (size_t i = 0; i < size; ++i) { | 194 | 69 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 69 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 69 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 69 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 69 | prev_a_offset = a_offsets[i]; | 201 | 69 | prev_b_offset = b_offsets[i]; | 202 | 69 | } | 203 | 60 | } |
|
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.3M | for (size_t i = 0; i < size; ++i) { |
225 | 12.2M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 12.2M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 12.2M | b_pos, b_size); |
228 | 12.2M | prev_a_offset = a_offsets[i]; |
229 | 12.2M | } |
230 | 24.9k | } |
231 | 24.9k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 22.4k | PaddedPODArray<UInt8>& c) { | 210 | 22.4k | size_t size = a_offsets.size(); | 211 | 22.4k | 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.4k | } else { | 221 | 22.4k | ColumnString::Offset prev_a_offset = 0; | 222 | 22.4k | const auto* a_pos = a_data.data(); | 223 | 22.4k | const auto* b_pos = b_data.data(); | 224 | 8.36M | for (size_t i = 0; i < size; ++i) { | 225 | 8.34M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.34M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.34M | b_pos, b_size); | 228 | 8.34M | prev_a_offset = a_offsets[i]; | 229 | 8.34M | } | 230 | 22.4k | } | 231 | 22.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.47k | PaddedPODArray<UInt8>& c) { | 210 | 2.47k | size_t size = a_offsets.size(); | 211 | 2.47k | 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.47k | } else { | 221 | 2.47k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.47k | const auto* a_pos = a_data.data(); | 223 | 2.47k | const auto* b_pos = b_data.data(); | 224 | 3.94M | for (size_t i = 0; i < size; ++i) { | 225 | 3.93M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.93M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.93M | b_pos, b_size); | 228 | 3.93M | prev_a_offset = a_offsets[i]; | 229 | 3.93M | } | 230 | 2.47k | } | 231 | 2.47k | } |
|
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 | 16 | PaddedPODArray<UInt8>& c) { |
238 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 16 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 237 | 16 | PaddedPODArray<UInt8>& c) { | 238 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 239 | 16 | } |
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 | 7 | inline Op symmetric_op(Op op) { |
278 | 7 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 5 | case Op::LT: |
283 | 5 | 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 | 7 | } |
291 | 0 | __builtin_unreachable(); |
292 | 7 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 35.8k | Op op) { |
296 | 35.8k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 35.8k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 35.8k | slot_literal->slot_type); |
300 | 35.8k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 35.8k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 35.8k | if (zone_map_ptr == nullptr) { |
305 | 80 | return unsupported_zonemap_filter(ctx); |
306 | 80 | } |
307 | 35.7k | const auto& zone_map = *zone_map_ptr; |
308 | 35.7k | if (!zone_map.has_not_null) { |
309 | 220 | return ZoneMapFilterResult::kNoMatch; |
310 | 220 | } |
311 | 35.5k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 116 | return unsupported_zonemap_filter(ctx); |
313 | 116 | } |
314 | | |
315 | 35.4k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 35.4k | const auto& literal = slot_literal->literal; |
317 | 35.4k | switch (effective_op) { |
318 | 9.42k | case Op::EQ: |
319 | 9.42k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.42k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.42k | : 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 | 3.04k | case Op::LT: |
327 | 3.04k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 3.04k | : ZoneMapFilterResult::kMayMatch; |
329 | 9.66k | case Op::LE: |
330 | 9.66k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 9.66k | : ZoneMapFilterResult::kMayMatch; |
332 | 5.08k | case Op::GT: |
333 | 5.08k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.08k | : ZoneMapFilterResult::kMayMatch; |
335 | 7.08k | case Op::GE: |
336 | 7.08k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 7.08k | : ZoneMapFilterResult::kMayMatch; |
338 | 35.4k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 35.4k | } |
343 | | |
344 | 139k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 139k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 139k | if (!slot_literal.has_value()) { |
347 | 43.2k | return false; |
348 | 43.2k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 96.6k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 96.6k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 96.6k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 96.6k | 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 | 19 | return false; |
364 | 19 | } |
365 | | |
366 | 96.6k | return true; |
367 | 96.6k | } |
368 | | |
369 | 8.57k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 8.57k | return op == Op::EQ && can_evaluate(arguments); |
371 | 8.57k | } |
372 | | |
373 | 53.4k | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
374 | 53.4k | switch (op) { |
375 | 53.3k | case Op::EQ: |
376 | 53.3k | return value == literal; |
377 | 4 | case Op::NE: |
378 | 4 | return value != literal; |
379 | 5 | case Op::LT: |
380 | 5 | return value < literal; |
381 | 8 | case Op::LE: |
382 | 8 | return value <= literal; |
383 | 14 | case Op::GT: |
384 | 14 | return value > literal; |
385 | 16 | case Op::GE: |
386 | 16 | return value >= literal; |
387 | 53.4k | } |
388 | 0 | __builtin_unreachable(); |
389 | 53.4k | } |
390 | | |
391 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
392 | 660 | const VExprSPtrs& arguments, Op op) { |
393 | 660 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
394 | 660 | DORIS_CHECK(slot_literal.has_value()); |
395 | 660 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
396 | 660 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
397 | 0 | return ZoneMapFilterResult::kUnsupported; |
398 | 0 | } |
399 | 660 | DORIS_CHECK( |
400 | 660 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
401 | 660 | if (slot_literal->literal.is_null()) { |
402 | 0 | return ZoneMapFilterResult::kUnsupported; |
403 | 0 | } |
404 | 660 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
405 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
406 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
407 | 660 | return std::ranges::any_of(dictionary->values, |
408 | 53.4k | [&](const Field& value) { |
409 | 53.4k | return dictionary_value_matches(value, slot_literal->literal, |
410 | 53.4k | effective_op); |
411 | 53.4k | }) |
412 | 660 | ? ZoneMapFilterResult::kMayMatch |
413 | 660 | : ZoneMapFilterResult::kNoMatch; |
414 | 660 | } |
415 | | |
416 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
417 | 14 | const VExprSPtrs& arguments, Op op) { |
418 | 14 | DORIS_CHECK(op == Op::EQ); |
419 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
420 | 14 | DORIS_CHECK(slot_literal.has_value()); |
421 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
422 | 14 | } |
423 | | |
424 | 179k | inline std::optional<Op> op_from_name(std::string_view name) { |
425 | 179k | if (name == NameEquals::name) { |
426 | 69.3k | return Op::EQ; |
427 | 69.3k | } |
428 | 110k | if (name == NameNotEquals::name) { |
429 | 7.45k | return Op::NE; |
430 | 7.45k | } |
431 | 103k | if (name == NameLess::name) { |
432 | 14.9k | return Op::LT; |
433 | 14.9k | } |
434 | 88.2k | if (name == NameLessOrEquals::name) { |
435 | 32.7k | return Op::LE; |
436 | 32.7k | } |
437 | 55.4k | if (name == NameGreater::name) { |
438 | 27.6k | return Op::GT; |
439 | 27.6k | } |
440 | 28.0k | if (name == NameGreaterOrEquals::name) { |
441 | 28.0k | return Op::GE; |
442 | 28.0k | } |
443 | 18.4E | return std::nullopt; |
444 | 27.8k | } |
445 | | } // namespace comparison_zonemap_detail |
446 | | |
447 | | template <template <PrimitiveType> class Op, typename Name> |
448 | | class FunctionComparison : public IFunction { |
449 | | public: |
450 | | static constexpr auto name = Name::name; |
451 | 576k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 451 | 485k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 451 | 2.81k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 451 | 42.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 451 | 15.3k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 451 | 4.66k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 451 | 24.5k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
452 | | |
453 | 576k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 453 | 486k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 453 | 2.81k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 453 | 43.1k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 453 | 15.3k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 453 | 4.67k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 453 | 24.5k | FunctionComparison() = default; |
|
454 | | |
455 | 1.31M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 455 | 1.28M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 455 | 657 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 455 | 3.17k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 455 | 14.3k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 455 | 1.77k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 455 | 10.1k | double execute_cost() const override { return 0.5; } |
|
456 | | |
457 | | private: |
458 | | template <PrimitiveType PT> |
459 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
460 | 244k | const ColumnPtr& col_right_ptr) const { |
461 | 244k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
462 | 244k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
463 | | |
464 | 244k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
465 | 244k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
466 | | |
467 | 244k | DCHECK(!(left_is_const && right_is_const)); |
468 | | |
469 | 244k | if (!left_is_const && !right_is_const) { |
470 | 11.2k | auto col_res = ColumnUInt8::create(); |
471 | | |
472 | 11.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
473 | 11.2k | vec_res.resize(col_left->get_data().size()); |
474 | 11.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
475 | 11.2k | typename PrimitiveTypeTraits<PT>::CppType, |
476 | 11.2k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
477 | 11.2k | vec_res); |
478 | | |
479 | 11.2k | block.replace_by_position(result, std::move(col_res)); |
480 | 232k | } else if (!left_is_const && right_is_const) { |
481 | 138k | auto col_res = ColumnUInt8::create(); |
482 | | |
483 | 138k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
484 | 138k | vec_res.resize(col_left->size()); |
485 | 138k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
486 | 138k | typename PrimitiveTypeTraits<PT>::CppType, |
487 | 138k | Op<PT>>::vector_constant(col_left->get_data(), |
488 | 138k | col_right->get_element(0), vec_res); |
489 | | |
490 | 138k | block.replace_by_position(result, std::move(col_res)); |
491 | 138k | } else if (left_is_const && !right_is_const) { |
492 | 93.8k | auto col_res = ColumnUInt8::create(); |
493 | | |
494 | 93.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
495 | 93.8k | vec_res.resize(col_right->size()); |
496 | 93.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
497 | 93.8k | typename PrimitiveTypeTraits<PT>::CppType, |
498 | 93.8k | Op<PT>>::constant_vector(col_left->get_element(0), |
499 | 93.8k | col_right->get_data(), vec_res); |
500 | | |
501 | 93.8k | block.replace_by_position(result, std::move(col_res)); |
502 | 93.8k | } |
503 | 244k | return Status::OK(); |
504 | 244k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.57k | const ColumnPtr& col_right_ptr) const { | 461 | 1.57k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.57k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.57k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.57k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.57k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.57k | if (!left_is_const && !right_is_const) { | 470 | 72 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 72 | vec_res.resize(col_left->get_data().size()); | 474 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 72 | vec_res); | 478 | | | 479 | 72 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.50k | } else if (!left_is_const && right_is_const) { | 481 | 1.50k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.50k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.50k | vec_res.resize(col_left->size()); | 485 | 1.50k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.50k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.50k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.50k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.50k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.50k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.57k | return Status::OK(); | 504 | 1.57k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.67k | const ColumnPtr& col_right_ptr) const { | 461 | 1.67k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.67k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.67k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.67k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.67k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.67k | if (!left_is_const && !right_is_const) { | 470 | 703 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 703 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 703 | vec_res.resize(col_left->get_data().size()); | 474 | 703 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 703 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 703 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 703 | vec_res); | 478 | | | 479 | 703 | block.replace_by_position(result, std::move(col_res)); | 480 | 969 | } else if (!left_is_const && right_is_const) { | 481 | 969 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 969 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 969 | vec_res.resize(col_left->size()); | 485 | 969 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 969 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 969 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 969 | col_right->get_element(0), vec_res); | 489 | | | 490 | 969 | block.replace_by_position(result, std::move(col_res)); | 491 | 969 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.67k | return Status::OK(); | 504 | 1.67k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 671 | const ColumnPtr& col_right_ptr) const { | 461 | 671 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 671 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 671 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 671 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 671 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 671 | if (!left_is_const && !right_is_const) { | 470 | 362 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 362 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 362 | vec_res.resize(col_left->get_data().size()); | 474 | 362 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 362 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 362 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 362 | vec_res); | 478 | | | 479 | 362 | block.replace_by_position(result, std::move(col_res)); | 480 | 362 | } else if (!left_is_const && right_is_const) { | 481 | 309 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 309 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 309 | vec_res.resize(col_left->size()); | 485 | 309 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 309 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 309 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 309 | col_right->get_element(0), vec_res); | 489 | | | 490 | 309 | block.replace_by_position(result, std::move(col_res)); | 491 | 309 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 671 | return Status::OK(); | 504 | 671 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2 | const ColumnPtr& col_right_ptr) const { | 461 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2 | if (!left_is_const && !right_is_const) { | 470 | 2 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 2 | vec_res.resize(col_left->get_data().size()); | 474 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 2 | vec_res); | 478 | | | 479 | 2 | block.replace_by_position(result, std::move(col_res)); | 480 | 2 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2 | return Status::OK(); | 504 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 5.47k | const ColumnPtr& col_right_ptr) const { | 461 | 5.47k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 5.47k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 5.47k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 5.47k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 5.47k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 5.47k | if (!left_is_const && !right_is_const) { | 470 | 138 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 138 | vec_res.resize(col_left->get_data().size()); | 474 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 138 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 138 | vec_res); | 478 | | | 479 | 138 | block.replace_by_position(result, std::move(col_res)); | 480 | 5.33k | } else if (!left_is_const && right_is_const) { | 481 | 5.03k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 5.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 5.03k | vec_res.resize(col_left->size()); | 485 | 5.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 5.03k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 5.03k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 5.03k | col_right->get_element(0), vec_res); | 489 | | | 490 | 5.03k | block.replace_by_position(result, std::move(col_res)); | 491 | 5.03k | } else if (left_is_const && !right_is_const) { | 492 | 300 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 300 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 300 | vec_res.resize(col_right->size()); | 496 | 300 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 300 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 300 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 300 | col_right->get_data(), vec_res); | 500 | | | 501 | 300 | block.replace_by_position(result, std::move(col_res)); | 502 | 300 | } | 503 | 5.47k | return Status::OK(); | 504 | 5.47k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 770 | const ColumnPtr& col_right_ptr) const { | 461 | 770 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 770 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 770 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 770 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 770 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 770 | if (!left_is_const && !right_is_const) { | 470 | 79 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 79 | vec_res.resize(col_left->get_data().size()); | 474 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 79 | vec_res); | 478 | | | 479 | 79 | block.replace_by_position(result, std::move(col_res)); | 480 | 691 | } else if (!left_is_const && right_is_const) { | 481 | 655 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 655 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 655 | vec_res.resize(col_left->size()); | 485 | 655 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 655 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 655 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 655 | col_right->get_element(0), vec_res); | 489 | | | 490 | 655 | block.replace_by_position(result, std::move(col_res)); | 491 | 655 | } else if (left_is_const && !right_is_const) { | 492 | 36 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 36 | vec_res.resize(col_right->size()); | 496 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 36 | col_right->get_data(), vec_res); | 500 | | | 501 | 36 | block.replace_by_position(result, std::move(col_res)); | 502 | 36 | } | 503 | 770 | return Status::OK(); | 504 | 770 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 62.1k | const ColumnPtr& col_right_ptr) const { | 461 | 62.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 62.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 62.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 62.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 62.1k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 62.1k | if (!left_is_const && !right_is_const) { | 470 | 1.04k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.04k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.04k | vec_res.resize(col_left->get_data().size()); | 474 | 1.04k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.04k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.04k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.04k | vec_res); | 478 | | | 479 | 1.04k | block.replace_by_position(result, std::move(col_res)); | 480 | 61.1k | } else if (!left_is_const && right_is_const) { | 481 | 33.7k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 33.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 33.7k | vec_res.resize(col_left->size()); | 485 | 33.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 33.7k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 33.7k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 33.7k | col_right->get_element(0), vec_res); | 489 | | | 490 | 33.7k | block.replace_by_position(result, std::move(col_res)); | 491 | 33.7k | } else if (left_is_const && !right_is_const) { | 492 | 27.4k | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 27.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 27.4k | vec_res.resize(col_right->size()); | 496 | 27.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 27.4k | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 27.4k | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 27.4k | col_right->get_data(), vec_res); | 500 | | | 501 | 27.4k | block.replace_by_position(result, std::move(col_res)); | 502 | 27.4k | } | 503 | 62.1k | return Status::OK(); | 504 | 62.1k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 17.9k | const ColumnPtr& col_right_ptr) const { | 461 | 17.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 17.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 17.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 17.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 17.9k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 17.9k | if (!left_is_const && !right_is_const) { | 470 | 269 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 269 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 269 | vec_res.resize(col_left->get_data().size()); | 474 | 269 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 269 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 269 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 269 | vec_res); | 478 | | | 479 | 269 | block.replace_by_position(result, std::move(col_res)); | 480 | 17.7k | } else if (!left_is_const && right_is_const) { | 481 | 16.5k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 16.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 16.5k | vec_res.resize(col_left->size()); | 485 | 16.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 16.5k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 16.5k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 16.5k | col_right->get_element(0), vec_res); | 489 | | | 490 | 16.5k | block.replace_by_position(result, std::move(col_res)); | 491 | 16.5k | } else if (left_is_const && !right_is_const) { | 492 | 1.16k | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 1.16k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 1.16k | vec_res.resize(col_right->size()); | 496 | 1.16k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 1.16k | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 1.16k | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 1.16k | col_right->get_data(), vec_res); | 500 | | | 501 | 1.16k | block.replace_by_position(result, std::move(col_res)); | 502 | 1.16k | } | 503 | 17.9k | return Status::OK(); | 504 | 17.9k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 148 | const ColumnPtr& col_right_ptr) const { | 461 | 148 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 148 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 148 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 148 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 148 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 148 | if (!left_is_const && !right_is_const) { | 470 | 77 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 77 | vec_res.resize(col_left->get_data().size()); | 474 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 77 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 77 | vec_res); | 478 | | | 479 | 77 | block.replace_by_position(result, std::move(col_res)); | 480 | 77 | } else if (!left_is_const && right_is_const) { | 481 | 55 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 55 | vec_res.resize(col_left->size()); | 485 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 55 | col_right->get_element(0), vec_res); | 489 | | | 490 | 55 | block.replace_by_position(result, std::move(col_res)); | 491 | 55 | } else if (left_is_const && !right_is_const) { | 492 | 16 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 16 | vec_res.resize(col_right->size()); | 496 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 16 | col_right->get_data(), vec_res); | 500 | | | 501 | 16 | block.replace_by_position(result, std::move(col_res)); | 502 | 16 | } | 503 | 148 | return Status::OK(); | 504 | 148 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 22 | const ColumnPtr& col_right_ptr) const { | 461 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 22 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 22 | if (!left_is_const && !right_is_const) { | 470 | 5 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 5 | vec_res.resize(col_left->get_data().size()); | 474 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 5 | vec_res); | 478 | | | 479 | 5 | block.replace_by_position(result, std::move(col_res)); | 480 | 17 | } else if (!left_is_const && right_is_const) { | 481 | 17 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 17 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 17 | vec_res.resize(col_left->size()); | 485 | 17 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 17 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 17 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 17 | col_right->get_element(0), vec_res); | 489 | | | 490 | 17 | block.replace_by_position(result, std::move(col_res)); | 491 | 17 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 22 | return Status::OK(); | 504 | 22 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 19 | const ColumnPtr& col_right_ptr) const { | 461 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 19 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 19 | if (!left_is_const && !right_is_const) { | 470 | 13 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 13 | vec_res.resize(col_left->get_data().size()); | 474 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 13 | vec_res); | 478 | | | 479 | 13 | block.replace_by_position(result, std::move(col_res)); | 480 | 13 | } else if (!left_is_const && right_is_const) { | 481 | 6 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 6 | vec_res.resize(col_left->size()); | 485 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 6 | col_right->get_element(0), vec_res); | 489 | | | 490 | 6 | block.replace_by_position(result, std::move(col_res)); | 491 | 6 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 19 | return Status::OK(); | 504 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 98 | const ColumnPtr& col_right_ptr) const { | 461 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 98 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 98 | if (!left_is_const && !right_is_const) { | 470 | 96 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 96 | vec_res.resize(col_left->get_data().size()); | 474 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 96 | vec_res); | 478 | | | 479 | 96 | block.replace_by_position(result, std::move(col_res)); | 480 | 96 | } else if (!left_is_const && right_is_const) { | 481 | 2 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2 | vec_res.resize(col_left->size()); | 485 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2 | col_right->get_element(0), vec_res); | 489 | | | 490 | 2 | block.replace_by_position(result, std::move(col_res)); | 491 | 2 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 98 | return Status::OK(); | 504 | 98 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 926 | const ColumnPtr& col_right_ptr) const { | 461 | 926 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 926 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 926 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 926 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 926 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 926 | if (!left_is_const && !right_is_const) { | 470 | 95 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 95 | vec_res.resize(col_left->get_data().size()); | 474 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 95 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 95 | vec_res); | 478 | | | 479 | 95 | block.replace_by_position(result, std::move(col_res)); | 480 | 832 | } else if (!left_is_const && right_is_const) { | 481 | 832 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 832 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 832 | vec_res.resize(col_left->size()); | 485 | 832 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 832 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 832 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 832 | col_right->get_element(0), vec_res); | 489 | | | 490 | 832 | block.replace_by_position(result, std::move(col_res)); | 491 | 18.4E | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 926 | return Status::OK(); | 504 | 926 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 4 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 4 | vec_res.resize(col_left->get_data().size()); | 474 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 4 | vec_res); | 478 | | | 479 | 4 | block.replace_by_position(result, std::move(col_res)); | 480 | 4 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 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 | 460 | 82 | const ColumnPtr& col_right_ptr) const { | 461 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 82 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 82 | if (!left_is_const && !right_is_const) { | 470 | 47 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 47 | vec_res.resize(col_left->get_data().size()); | 474 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 47 | vec_res); | 478 | | | 479 | 47 | block.replace_by_position(result, std::move(col_res)); | 480 | 47 | } else if (!left_is_const && right_is_const) { | 481 | 35 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 35 | vec_res.resize(col_left->size()); | 485 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 35 | col_right->get_element(0), vec_res); | 489 | | | 490 | 35 | block.replace_by_position(result, std::move(col_res)); | 491 | 35 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 82 | return Status::OK(); | 504 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 4 | } else if (!left_is_const && right_is_const) { | 481 | 4 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 4 | vec_res.resize(col_left->size()); | 485 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 4 | col_right->get_element(0), vec_res); | 489 | | | 490 | 4 | block.replace_by_position(result, std::move(col_res)); | 491 | 4 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 4 | } |
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 | 460 | 100 | const ColumnPtr& col_right_ptr) const { | 461 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 100 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 100 | if (!left_is_const && !right_is_const) { | 470 | 56 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 56 | vec_res.resize(col_left->get_data().size()); | 474 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 56 | vec_res); | 478 | | | 479 | 56 | block.replace_by_position(result, std::move(col_res)); | 480 | 56 | } else if (!left_is_const && right_is_const) { | 481 | 44 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 44 | vec_res.resize(col_left->size()); | 485 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 44 | col_right->get_element(0), vec_res); | 489 | | | 490 | 44 | block.replace_by_position(result, std::move(col_res)); | 491 | 44 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 100 | return Status::OK(); | 504 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 10 | const ColumnPtr& col_right_ptr) const { | 461 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 10 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 10 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 10 | return Status::OK(); | 504 | 10 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.24k | const ColumnPtr& col_right_ptr) const { | 461 | 2.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.24k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.24k | if (!left_is_const && !right_is_const) { | 470 | 1.12k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.12k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.12k | vec_res.resize(col_left->get_data().size()); | 474 | 1.12k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.12k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.12k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.12k | vec_res); | 478 | | | 479 | 1.12k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.12k | } else if (!left_is_const && right_is_const) { | 481 | 1.12k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.12k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.12k | vec_res.resize(col_left->size()); | 485 | 1.12k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.12k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.12k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.12k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.12k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.12k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.24k | return Status::OK(); | 504 | 2.24k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 3.14k | const ColumnPtr& col_right_ptr) const { | 461 | 3.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 3.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 3.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 3.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 3.14k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 3.14k | if (!left_is_const && !right_is_const) { | 470 | 407 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 407 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 407 | vec_res.resize(col_left->get_data().size()); | 474 | 407 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 407 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 407 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 407 | vec_res); | 478 | | | 479 | 407 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.73k | } else if (!left_is_const && right_is_const) { | 481 | 1.93k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.93k | vec_res.resize(col_left->size()); | 485 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.93k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.93k | } else if (left_is_const && !right_is_const) { | 492 | 802 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 802 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 802 | vec_res.resize(col_right->size()); | 496 | 802 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 802 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 802 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 802 | col_right->get_data(), vec_res); | 500 | | | 501 | 802 | block.replace_by_position(result, std::move(col_res)); | 502 | 802 | } | 503 | 3.14k | return Status::OK(); | 504 | 3.14k | } |
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 | 460 | 48 | const ColumnPtr& col_right_ptr) const { | 461 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 48 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 48 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 28 | } else if (!left_is_const && right_is_const) { | 481 | 28 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 28 | vec_res.resize(col_left->size()); | 485 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 28 | col_right->get_element(0), vec_res); | 489 | | | 490 | 28 | block.replace_by_position(result, std::move(col_res)); | 491 | 28 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 48 | return Status::OK(); | 504 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 60 | const ColumnPtr& col_right_ptr) const { | 461 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 60 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 60 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 40 | } else if (!left_is_const && right_is_const) { | 481 | 40 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 40 | vec_res.resize(col_left->size()); | 485 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 40 | col_right->get_element(0), vec_res); | 489 | | | 490 | 40 | block.replace_by_position(result, std::move(col_res)); | 491 | 40 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 60 | return Status::OK(); | 504 | 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 | 460 | 1.39k | const ColumnPtr& col_right_ptr) const { | 461 | 1.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.39k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.39k | if (!left_is_const && !right_is_const) { | 470 | 1.25k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.25k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.25k | vec_res.resize(col_left->get_data().size()); | 474 | 1.25k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.25k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.25k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.25k | vec_res); | 478 | | | 479 | 1.25k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.25k | } else if (!left_is_const && right_is_const) { | 481 | 139 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 139 | vec_res.resize(col_left->size()); | 485 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 139 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 139 | col_right->get_element(0), vec_res); | 489 | | | 490 | 139 | block.replace_by_position(result, std::move(col_res)); | 491 | 139 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.39k | return Status::OK(); | 504 | 1.39k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 102 | const ColumnPtr& col_right_ptr) const { | 461 | 102 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 102 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 102 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 102 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 102 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 102 | if (!left_is_const && !right_is_const) { | 470 | 8 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 8 | vec_res.resize(col_left->get_data().size()); | 474 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 8 | vec_res); | 478 | | | 479 | 8 | block.replace_by_position(result, std::move(col_res)); | 480 | 94 | } else if (!left_is_const && right_is_const) { | 481 | 94 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 94 | vec_res.resize(col_left->size()); | 485 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 94 | col_right->get_element(0), vec_res); | 489 | | | 490 | 94 | block.replace_by_position(result, std::move(col_res)); | 491 | 94 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 102 | return Status::OK(); | 504 | 102 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.16k | const ColumnPtr& col_right_ptr) const { | 461 | 1.16k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.16k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.16k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.16k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.16k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.16k | if (!left_is_const && !right_is_const) { | 470 | 38 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 38 | vec_res.resize(col_left->get_data().size()); | 474 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 38 | vec_res); | 478 | | | 479 | 38 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.12k | } else if (!left_is_const && right_is_const) { | 481 | 871 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 871 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 871 | vec_res.resize(col_left->size()); | 485 | 871 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 871 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 871 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 871 | col_right->get_element(0), vec_res); | 489 | | | 490 | 871 | block.replace_by_position(result, std::move(col_res)); | 491 | 871 | } else if (left_is_const && !right_is_const) { | 492 | 252 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 252 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 252 | vec_res.resize(col_right->size()); | 496 | 252 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 252 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 252 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 252 | col_right->get_data(), vec_res); | 500 | | | 501 | 252 | block.replace_by_position(result, std::move(col_res)); | 502 | 252 | } | 503 | 1.16k | return Status::OK(); | 504 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.80k | const ColumnPtr& col_right_ptr) const { | 461 | 1.80k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.80k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.80k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.80k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.80k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.80k | if (!left_is_const && !right_is_const) { | 470 | 112 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 112 | vec_res.resize(col_left->get_data().size()); | 474 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 112 | vec_res); | 478 | | | 479 | 112 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.69k | } else if (!left_is_const && right_is_const) { | 481 | 1.45k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.45k | vec_res.resize(col_left->size()); | 485 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.45k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.45k | } else if (left_is_const && !right_is_const) { | 492 | 240 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 240 | vec_res.resize(col_right->size()); | 496 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 240 | col_right->get_data(), vec_res); | 500 | | | 501 | 240 | block.replace_by_position(result, std::move(col_res)); | 502 | 240 | } | 503 | 1.80k | return Status::OK(); | 504 | 1.80k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 72.1k | const ColumnPtr& col_right_ptr) const { | 461 | 72.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 72.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 72.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 72.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 72.1k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 72.1k | if (!left_is_const && !right_is_const) { | 470 | 82 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 82 | vec_res.resize(col_left->get_data().size()); | 474 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 82 | vec_res); | 478 | | | 479 | 82 | block.replace_by_position(result, std::move(col_res)); | 480 | 72.0k | } else if (!left_is_const && right_is_const) { | 481 | 9.87k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 9.87k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 9.87k | vec_res.resize(col_left->size()); | 485 | 9.87k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 9.87k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 9.87k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 9.87k | col_right->get_element(0), vec_res); | 489 | | | 490 | 9.87k | block.replace_by_position(result, std::move(col_res)); | 491 | 62.1k | } else if (left_is_const && !right_is_const) { | 492 | 62.1k | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 62.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 62.1k | vec_res.resize(col_right->size()); | 496 | 62.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 62.1k | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 62.1k | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 62.1k | col_right->get_data(), vec_res); | 500 | | | 501 | 62.1k | block.replace_by_position(result, std::move(col_res)); | 502 | 62.1k | } | 503 | 72.1k | return Status::OK(); | 504 | 72.1k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 13.9k | const ColumnPtr& col_right_ptr) const { | 461 | 13.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 13.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 13.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 13.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 13.9k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 13.9k | if (!left_is_const && !right_is_const) { | 470 | 64 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 64 | vec_res.resize(col_left->get_data().size()); | 474 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 64 | vec_res); | 478 | | | 479 | 64 | block.replace_by_position(result, std::move(col_res)); | 480 | 13.8k | } else if (!left_is_const && right_is_const) { | 481 | 13.3k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 13.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 13.3k | vec_res.resize(col_left->size()); | 485 | 13.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 13.3k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 13.3k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 13.3k | col_right->get_element(0), vec_res); | 489 | | | 490 | 13.3k | block.replace_by_position(result, std::move(col_res)); | 491 | 13.3k | } else if (left_is_const && !right_is_const) { | 492 | 511 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 511 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 511 | vec_res.resize(col_right->size()); | 496 | 511 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 511 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 511 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 511 | col_right->get_data(), vec_res); | 500 | | | 501 | 511 | block.replace_by_position(result, std::move(col_res)); | 502 | 511 | } | 503 | 13.9k | return Status::OK(); | 504 | 13.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 260 | const ColumnPtr& col_right_ptr) const { | 461 | 260 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 260 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 260 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 260 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 260 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 260 | if (!left_is_const && !right_is_const) { | 470 | 2 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 2 | vec_res.resize(col_left->get_data().size()); | 474 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 2 | vec_res); | 478 | | | 479 | 2 | block.replace_by_position(result, std::move(col_res)); | 480 | 258 | } else if (!left_is_const && right_is_const) { | 481 | 202 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 202 | vec_res.resize(col_left->size()); | 485 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 202 | col_right->get_element(0), vec_res); | 489 | | | 490 | 202 | block.replace_by_position(result, std::move(col_res)); | 491 | 202 | } else if (left_is_const && !right_is_const) { | 492 | 56 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 56 | vec_res.resize(col_right->size()); | 496 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 56 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 56 | col_right->get_data(), vec_res); | 500 | | | 501 | 56 | block.replace_by_position(result, std::move(col_res)); | 502 | 56 | } | 503 | 260 | return Status::OK(); | 504 | 260 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 3 | } else if (!left_is_const && right_is_const) { | 481 | 3 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 3 | vec_res.resize(col_left->size()); | 485 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 3 | col_right->get_element(0), vec_res); | 489 | | | 490 | 3 | block.replace_by_position(result, std::move(col_res)); | 491 | 3 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 236 | const ColumnPtr& col_right_ptr) const { | 461 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 236 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 236 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 216 | } else if (!left_is_const && right_is_const) { | 481 | 216 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 216 | vec_res.resize(col_left->size()); | 485 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 216 | col_right->get_element(0), vec_res); | 489 | | | 490 | 216 | block.replace_by_position(result, std::move(col_res)); | 491 | 216 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 236 | return Status::OK(); | 504 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.23k | const ColumnPtr& col_right_ptr) const { | 461 | 2.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.23k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.23k | if (!left_is_const && !right_is_const) { | 470 | 31 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 31 | vec_res.resize(col_left->get_data().size()); | 474 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 31 | vec_res); | 478 | | | 479 | 31 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.20k | } else if (!left_is_const && right_is_const) { | 481 | 2.20k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.20k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.20k | vec_res.resize(col_left->size()); | 485 | 2.20k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.20k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.20k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.20k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.20k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.20k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.23k | return Status::OK(); | 504 | 2.23k | } |
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 | 460 | 136 | const ColumnPtr& col_right_ptr) const { | 461 | 136 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 136 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 136 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 136 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 136 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 136 | if (!left_is_const && !right_is_const) { | 470 | 42 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 42 | vec_res.resize(col_left->get_data().size()); | 474 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 42 | vec_res); | 478 | | | 479 | 42 | block.replace_by_position(result, std::move(col_res)); | 480 | 94 | } else if (!left_is_const && right_is_const) { | 481 | 94 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 94 | vec_res.resize(col_left->size()); | 485 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 94 | col_right->get_element(0), vec_res); | 489 | | | 490 | 94 | block.replace_by_position(result, std::move(col_res)); | 491 | 94 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 136 | return Status::OK(); | 504 | 136 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.32k | const ColumnPtr& col_right_ptr) const { | 461 | 2.32k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.32k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.32k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.32k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.32k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.32k | if (!left_is_const && !right_is_const) { | 470 | 61 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 61 | vec_res.resize(col_left->get_data().size()); | 474 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 61 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 61 | vec_res); | 478 | | | 479 | 61 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.26k | } else if (!left_is_const && right_is_const) { | 481 | 2.26k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.26k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.26k | vec_res.resize(col_left->size()); | 485 | 2.26k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.26k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.26k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.26k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.26k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.26k | } else if (left_is_const && !right_is_const) { | 492 | 6 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 6 | vec_res.resize(col_right->size()); | 496 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 6 | col_right->get_data(), vec_res); | 500 | | | 501 | 6 | block.replace_by_position(result, std::move(col_res)); | 502 | 6 | } | 503 | 2.32k | return Status::OK(); | 504 | 2.32k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 863 | const ColumnPtr& col_right_ptr) const { | 461 | 863 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 863 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 863 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 863 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 863 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 863 | if (!left_is_const && !right_is_const) { | 470 | 98 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 98 | vec_res.resize(col_left->get_data().size()); | 474 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 98 | vec_res); | 478 | | | 479 | 98 | block.replace_by_position(result, std::move(col_res)); | 480 | 765 | } else if (!left_is_const && right_is_const) { | 481 | 765 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 765 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 765 | vec_res.resize(col_left->size()); | 485 | 765 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 765 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 765 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 765 | col_right->get_element(0), vec_res); | 489 | | | 490 | 765 | block.replace_by_position(result, std::move(col_res)); | 491 | 765 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 863 | return Status::OK(); | 504 | 863 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 54 | const ColumnPtr& col_right_ptr) const { | 461 | 54 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 54 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 54 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 54 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 54 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 54 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 54 | } else if (!left_is_const && right_is_const) { | 481 | 54 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 54 | vec_res.resize(col_left->size()); | 485 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 54 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 54 | col_right->get_element(0), vec_res); | 489 | | | 490 | 54 | block.replace_by_position(result, std::move(col_res)); | 491 | 54 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 54 | return Status::OK(); | 504 | 54 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 95 | const ColumnPtr& col_right_ptr) const { | 461 | 95 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 95 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 95 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 95 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 95 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 95 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 95 | } else if (!left_is_const && right_is_const) { | 481 | 95 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 95 | vec_res.resize(col_left->size()); | 485 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 95 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 95 | col_right->get_element(0), vec_res); | 489 | | | 490 | 95 | block.replace_by_position(result, std::move(col_res)); | 491 | 95 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 95 | return Status::OK(); | 504 | 95 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 10.0k | const ColumnPtr& col_right_ptr) const { | 461 | 10.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 10.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 10.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 10.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 10.0k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 10.0k | if (!left_is_const && !right_is_const) { | 470 | 79 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 79 | vec_res.resize(col_left->get_data().size()); | 474 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 79 | vec_res); | 478 | | | 479 | 79 | block.replace_by_position(result, std::move(col_res)); | 480 | 9.93k | } else if (!left_is_const && right_is_const) { | 481 | 9.93k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 9.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 9.93k | vec_res.resize(col_left->size()); | 485 | 9.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 9.93k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 9.93k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 9.93k | col_right->get_element(0), vec_res); | 489 | | | 490 | 9.93k | block.replace_by_position(result, std::move(col_res)); | 491 | 9.93k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 10.0k | return Status::OK(); | 504 | 10.0k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 603 | const ColumnPtr& col_right_ptr) const { | 461 | 603 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 603 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 603 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 603 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 603 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 603 | if (!left_is_const && !right_is_const) { | 470 | 39 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 39 | vec_res.resize(col_left->get_data().size()); | 474 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 39 | vec_res); | 478 | | | 479 | 39 | block.replace_by_position(result, std::move(col_res)); | 480 | 564 | } else if (!left_is_const && right_is_const) { | 481 | 564 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 564 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 564 | vec_res.resize(col_left->size()); | 485 | 564 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 564 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 564 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 564 | col_right->get_element(0), vec_res); | 489 | | | 490 | 564 | block.replace_by_position(result, std::move(col_res)); | 491 | 564 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 603 | return Status::OK(); | 504 | 603 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 50 | const ColumnPtr& col_right_ptr) const { | 461 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 50 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 50 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 50 | } else if (!left_is_const && right_is_const) { | 481 | 50 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 50 | vec_res.resize(col_left->size()); | 485 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 50 | col_right->get_element(0), vec_res); | 489 | | | 490 | 50 | block.replace_by_position(result, std::move(col_res)); | 491 | 50 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 50 | return Status::OK(); | 504 | 50 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 11 | const ColumnPtr& col_right_ptr) const { | 461 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 11 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 11 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 11 | return Status::OK(); | 504 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 202 | const ColumnPtr& col_right_ptr) const { | 461 | 202 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 202 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 202 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 202 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 202 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 202 | if (!left_is_const && !right_is_const) { | 470 | 80 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 80 | vec_res.resize(col_left->get_data().size()); | 474 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 80 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 80 | vec_res); | 478 | | | 479 | 80 | block.replace_by_position(result, std::move(col_res)); | 480 | 122 | } else if (!left_is_const && right_is_const) { | 481 | 122 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 122 | vec_res.resize(col_left->size()); | 485 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 122 | col_right->get_element(0), vec_res); | 489 | | | 490 | 122 | block.replace_by_position(result, std::move(col_res)); | 491 | 122 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 202 | return Status::OK(); | 504 | 202 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 148 | const ColumnPtr& col_right_ptr) const { | 461 | 148 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 148 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 148 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 148 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 148 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 148 | if (!left_is_const && !right_is_const) { | 470 | 22 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 22 | vec_res.resize(col_left->get_data().size()); | 474 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 22 | vec_res); | 478 | | | 479 | 22 | block.replace_by_position(result, std::move(col_res)); | 480 | 126 | } else if (!left_is_const && right_is_const) { | 481 | 126 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 126 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 126 | vec_res.resize(col_left->size()); | 485 | 126 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 126 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 126 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 126 | col_right->get_element(0), vec_res); | 489 | | | 490 | 126 | block.replace_by_position(result, std::move(col_res)); | 491 | 126 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 148 | return Status::OK(); | 504 | 148 | } |
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 | 460 | 98 | const ColumnPtr& col_right_ptr) const { | 461 | 98 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 98 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 98 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 98 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 98 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 98 | if (!left_is_const && !right_is_const) { | 470 | 98 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 98 | vec_res.resize(col_left->get_data().size()); | 474 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 98 | vec_res); | 478 | | | 479 | 98 | block.replace_by_position(result, std::move(col_res)); | 480 | 98 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 98 | return Status::OK(); | 504 | 98 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.52k | const ColumnPtr& col_right_ptr) const { | 461 | 2.52k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.52k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.52k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.52k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.52k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.52k | if (!left_is_const && !right_is_const) { | 470 | 2.10k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 2.10k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 2.10k | vec_res.resize(col_left->get_data().size()); | 474 | 2.10k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 2.10k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 2.10k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 2.10k | vec_res); | 478 | | | 479 | 2.10k | block.replace_by_position(result, std::move(col_res)); | 480 | 2.10k | } else if (!left_is_const && right_is_const) { | 481 | 422 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 422 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 422 | vec_res.resize(col_left->size()); | 485 | 422 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 422 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 422 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 422 | col_right->get_element(0), vec_res); | 489 | | | 490 | 422 | block.replace_by_position(result, std::move(col_res)); | 491 | 422 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.52k | return Status::OK(); | 504 | 2.52k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 711 | const ColumnPtr& col_right_ptr) const { | 461 | 711 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 711 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 711 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 711 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 711 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 711 | if (!left_is_const && !right_is_const) { | 470 | 274 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 274 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 274 | vec_res.resize(col_left->get_data().size()); | 474 | 274 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 274 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 274 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 274 | vec_res); | 478 | | | 479 | 274 | block.replace_by_position(result, std::move(col_res)); | 480 | 437 | } else if (!left_is_const && right_is_const) { | 481 | 437 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 437 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 437 | vec_res.resize(col_left->size()); | 485 | 437 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 437 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 437 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 437 | col_right->get_element(0), vec_res); | 489 | | | 490 | 437 | block.replace_by_position(result, std::move(col_res)); | 491 | 437 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 711 | return Status::OK(); | 504 | 711 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2 | const ColumnPtr& col_right_ptr) const { | 461 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 1 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1 | vec_res.resize(col_left->size()); | 485 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1 | col_right->get_element(0), vec_res); | 489 | | | 490 | 1 | block.replace_by_position(result, std::move(col_res)); | 491 | 1 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2 | return Status::OK(); | 504 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.20k | const ColumnPtr& col_right_ptr) const { | 461 | 2.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.20k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.20k | if (!left_is_const && !right_is_const) { | 470 | 153 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 153 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 153 | vec_res.resize(col_left->get_data().size()); | 474 | 153 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 153 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 153 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 153 | vec_res); | 478 | | | 479 | 153 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.04k | } else if (!left_is_const && right_is_const) { | 481 | 1.78k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.78k | vec_res.resize(col_left->size()); | 485 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.78k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.78k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.78k | } else if (left_is_const && !right_is_const) { | 492 | 264 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 264 | vec_res.resize(col_right->size()); | 496 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 264 | col_right->get_data(), vec_res); | 500 | | | 501 | 264 | block.replace_by_position(result, std::move(col_res)); | 502 | 264 | } | 503 | 2.20k | return Status::OK(); | 504 | 2.20k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 286 | const ColumnPtr& col_right_ptr) const { | 461 | 286 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 286 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 286 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 286 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 286 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 286 | if (!left_is_const && !right_is_const) { | 470 | 142 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 142 | vec_res.resize(col_left->get_data().size()); | 474 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 142 | vec_res); | 478 | | | 479 | 142 | block.replace_by_position(result, std::move(col_res)); | 480 | 144 | } else if (!left_is_const && right_is_const) { | 481 | 144 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 144 | vec_res.resize(col_left->size()); | 485 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 144 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 144 | col_right->get_element(0), vec_res); | 489 | | | 490 | 144 | block.replace_by_position(result, std::move(col_res)); | 491 | 144 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 286 | return Status::OK(); | 504 | 286 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 3.22k | const ColumnPtr& col_right_ptr) const { | 461 | 3.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 3.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 3.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 3.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 3.22k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 3.22k | if (!left_is_const && !right_is_const) { | 470 | 175 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 175 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 175 | vec_res.resize(col_left->get_data().size()); | 474 | 175 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 175 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 175 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 175 | vec_res); | 478 | | | 479 | 175 | block.replace_by_position(result, std::move(col_res)); | 480 | 3.04k | } else if (!left_is_const && right_is_const) { | 481 | 2.92k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.92k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.92k | vec_res.resize(col_left->size()); | 485 | 2.92k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.92k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.92k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.92k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.92k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.92k | } else if (left_is_const && !right_is_const) { | 492 | 121 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 121 | vec_res.resize(col_right->size()); | 496 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 121 | col_right->get_data(), vec_res); | 500 | | | 501 | 121 | block.replace_by_position(result, std::move(col_res)); | 502 | 121 | } | 503 | 3.22k | return Status::OK(); | 504 | 3.22k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.74k | const ColumnPtr& col_right_ptr) const { | 461 | 1.74k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.74k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.74k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.74k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.74k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.74k | if (!left_is_const && !right_is_const) { | 470 | 226 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 226 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 226 | vec_res.resize(col_left->get_data().size()); | 474 | 226 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 226 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 226 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 226 | vec_res); | 478 | | | 479 | 226 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.51k | } else if (!left_is_const && right_is_const) { | 481 | 1.43k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.43k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.43k | vec_res.resize(col_left->size()); | 485 | 1.43k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.43k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.43k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.43k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.43k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.43k | } else if (left_is_const && !right_is_const) { | 492 | 79 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 79 | vec_res.resize(col_right->size()); | 496 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 79 | col_right->get_data(), vec_res); | 500 | | | 501 | 79 | block.replace_by_position(result, std::move(col_res)); | 502 | 79 | } | 503 | 1.74k | return Status::OK(); | 504 | 1.74k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 312 | const ColumnPtr& col_right_ptr) const { | 461 | 312 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 312 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 312 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 312 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 312 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 312 | if (!left_is_const && !right_is_const) { | 470 | 158 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 158 | vec_res.resize(col_left->get_data().size()); | 474 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 158 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 158 | vec_res); | 478 | | | 479 | 158 | block.replace_by_position(result, std::move(col_res)); | 480 | 158 | } else if (!left_is_const && right_is_const) { | 481 | 88 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 88 | vec_res.resize(col_left->size()); | 485 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 88 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 88 | col_right->get_element(0), vec_res); | 489 | | | 490 | 88 | block.replace_by_position(result, std::move(col_res)); | 491 | 88 | } else if (left_is_const && !right_is_const) { | 492 | 66 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 66 | vec_res.resize(col_right->size()); | 496 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 66 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 66 | col_right->get_data(), vec_res); | 500 | | | 501 | 66 | block.replace_by_position(result, std::move(col_res)); | 502 | 66 | } | 503 | 312 | return Status::OK(); | 504 | 312 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18 | const ColumnPtr& col_right_ptr) const { | 461 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18 | if (!left_is_const && !right_is_const) { | 470 | 16 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 16 | vec_res.resize(col_left->get_data().size()); | 474 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 16 | vec_res); | 478 | | | 479 | 16 | block.replace_by_position(result, std::move(col_res)); | 480 | 16 | } else if (!left_is_const && right_is_const) { | 481 | 2 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2 | vec_res.resize(col_left->size()); | 485 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2 | col_right->get_element(0), vec_res); | 489 | | | 490 | 2 | block.replace_by_position(result, std::move(col_res)); | 491 | 2 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 18 | return Status::OK(); | 504 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 16 | const ColumnPtr& col_right_ptr) const { | 461 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 16 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 16 | if (!left_is_const && !right_is_const) { | 470 | 16 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 16 | vec_res.resize(col_left->get_data().size()); | 474 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 16 | vec_res); | 478 | | | 479 | 16 | block.replace_by_position(result, std::move(col_res)); | 480 | 16 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 16 | return Status::OK(); | 504 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 179 | const ColumnPtr& col_right_ptr) const { | 461 | 179 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 179 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 179 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 179 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 179 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 179 | if (!left_is_const && !right_is_const) { | 470 | 150 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 150 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 150 | vec_res.resize(col_left->get_data().size()); | 474 | 150 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 150 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 150 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 150 | vec_res); | 478 | | | 479 | 150 | block.replace_by_position(result, std::move(col_res)); | 480 | 150 | } else if (!left_is_const && right_is_const) { | 481 | 28 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 28 | vec_res.resize(col_left->size()); | 485 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 28 | col_right->get_element(0), vec_res); | 489 | | | 490 | 28 | block.replace_by_position(result, std::move(col_res)); | 491 | 28 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 179 | return Status::OK(); | 504 | 179 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 388 | const ColumnPtr& col_right_ptr) const { | 461 | 388 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 388 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 388 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 388 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 388 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 388 | if (!left_is_const && !right_is_const) { | 470 | 163 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 163 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 163 | vec_res.resize(col_left->get_data().size()); | 474 | 163 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 163 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 163 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 163 | vec_res); | 478 | | | 479 | 163 | block.replace_by_position(result, std::move(col_res)); | 480 | 225 | } else if (!left_is_const && right_is_const) { | 481 | 225 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 225 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 225 | vec_res.resize(col_left->size()); | 485 | 225 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 225 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 225 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 225 | col_right->get_element(0), vec_res); | 489 | | | 490 | 225 | block.replace_by_position(result, std::move(col_res)); | 491 | 225 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 388 | return Status::OK(); | 504 | 388 | } |
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 | 460 | 164 | const ColumnPtr& col_right_ptr) const { | 461 | 164 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 164 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 164 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 164 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 164 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 164 | if (!left_is_const && !right_is_const) { | 470 | 42 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 42 | vec_res.resize(col_left->get_data().size()); | 474 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 42 | vec_res); | 478 | | | 479 | 42 | block.replace_by_position(result, std::move(col_res)); | 480 | 122 | } else if (!left_is_const && right_is_const) { | 481 | 122 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 122 | vec_res.resize(col_left->size()); | 485 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 122 | col_right->get_element(0), vec_res); | 489 | | | 490 | 122 | block.replace_by_position(result, std::move(col_res)); | 491 | 122 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 164 | return Status::OK(); | 504 | 164 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 6.89k | const ColumnPtr& col_right_ptr) const { | 461 | 6.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 6.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 6.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 6.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 6.89k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 6.89k | if (!left_is_const && !right_is_const) { | 470 | 465 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 465 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 465 | vec_res.resize(col_left->get_data().size()); | 474 | 465 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 465 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 465 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 465 | vec_res); | 478 | | | 479 | 465 | block.replace_by_position(result, std::move(col_res)); | 480 | 6.42k | } else if (!left_is_const && right_is_const) { | 481 | 6.42k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 6.42k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 6.42k | vec_res.resize(col_left->size()); | 485 | 6.42k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 6.42k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 6.42k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 6.42k | col_right->get_element(0), vec_res); | 489 | | | 490 | 6.42k | block.replace_by_position(result, std::move(col_res)); | 491 | 6.42k | } else if (left_is_const && !right_is_const) { | 492 | 5 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 5 | vec_res.resize(col_right->size()); | 496 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 5 | col_right->get_data(), vec_res); | 500 | | | 501 | 5 | block.replace_by_position(result, std::move(col_res)); | 502 | 5 | } | 503 | 6.89k | return Status::OK(); | 504 | 6.89k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 387 | const ColumnPtr& col_right_ptr) const { | 461 | 387 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 387 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 387 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 387 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 387 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 387 | if (!left_is_const && !right_is_const) { | 470 | 90 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 90 | vec_res.resize(col_left->get_data().size()); | 474 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 90 | vec_res); | 478 | | | 479 | 90 | block.replace_by_position(result, std::move(col_res)); | 480 | 297 | } else if (!left_is_const && right_is_const) { | 481 | 297 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 297 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 297 | vec_res.resize(col_left->size()); | 485 | 297 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 297 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 297 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 297 | col_right->get_element(0), vec_res); | 489 | | | 490 | 297 | block.replace_by_position(result, std::move(col_res)); | 491 | 297 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 387 | return Status::OK(); | 504 | 387 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 84 | const ColumnPtr& col_right_ptr) const { | 461 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 84 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 84 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 83 | } else if (!left_is_const && right_is_const) { | 481 | 83 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 83 | vec_res.resize(col_left->size()); | 485 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 83 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 83 | col_right->get_element(0), vec_res); | 489 | | | 490 | 83 | block.replace_by_position(result, std::move(col_res)); | 491 | 83 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 84 | return Status::OK(); | 504 | 84 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 126 | const ColumnPtr& col_right_ptr) const { | 461 | 126 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 126 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 126 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 126 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 126 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 126 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 126 | } else if (!left_is_const && right_is_const) { | 481 | 126 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 126 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 126 | vec_res.resize(col_left->size()); | 485 | 126 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 126 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 126 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 126 | col_right->get_element(0), vec_res); | 489 | | | 490 | 126 | block.replace_by_position(result, std::move(col_res)); | 491 | 126 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 126 | return Status::OK(); | 504 | 126 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18.2k | const ColumnPtr& col_right_ptr) const { | 461 | 18.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18.2k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18.2k | if (!left_is_const && !right_is_const) { | 470 | 83 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 83 | vec_res.resize(col_left->get_data().size()); | 474 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 83 | vec_res); | 478 | | | 479 | 83 | block.replace_by_position(result, std::move(col_res)); | 480 | 18.1k | } else if (!left_is_const && right_is_const) { | 481 | 17.8k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 17.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 17.8k | vec_res.resize(col_left->size()); | 485 | 17.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 17.8k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 17.8k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 17.8k | col_right->get_element(0), vec_res); | 489 | | | 490 | 17.8k | block.replace_by_position(result, std::move(col_res)); | 491 | 17.8k | } else if (left_is_const && !right_is_const) { | 492 | 329 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 329 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 329 | vec_res.resize(col_right->size()); | 496 | 329 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 329 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 329 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 329 | col_right->get_data(), vec_res); | 500 | | | 501 | 329 | block.replace_by_position(result, std::move(col_res)); | 502 | 329 | } | 503 | 18.2k | return Status::OK(); | 504 | 18.2k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.03k | const ColumnPtr& col_right_ptr) const { | 461 | 1.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.03k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.03k | if (!left_is_const && !right_is_const) { | 470 | 99 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 99 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 99 | vec_res.resize(col_left->get_data().size()); | 474 | 99 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 99 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 99 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 99 | vec_res); | 478 | | | 479 | 99 | block.replace_by_position(result, std::move(col_res)); | 480 | 933 | } else if (!left_is_const && right_is_const) { | 481 | 897 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 897 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 897 | vec_res.resize(col_left->size()); | 485 | 897 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 897 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 897 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 897 | col_right->get_element(0), vec_res); | 489 | | | 490 | 897 | block.replace_by_position(result, std::move(col_res)); | 491 | 897 | } else if (left_is_const && !right_is_const) { | 492 | 36 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 36 | vec_res.resize(col_right->size()); | 496 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 36 | col_right->get_data(), vec_res); | 500 | | | 501 | 36 | block.replace_by_position(result, std::move(col_res)); | 502 | 36 | } | 503 | 1.03k | return Status::OK(); | 504 | 1.03k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 49 | const ColumnPtr& col_right_ptr) const { | 461 | 49 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 49 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 49 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 49 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 49 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 49 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 49 | } else if (!left_is_const && right_is_const) { | 481 | 49 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 49 | vec_res.resize(col_left->size()); | 485 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 49 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 49 | col_right->get_element(0), vec_res); | 489 | | | 490 | 49 | block.replace_by_position(result, std::move(col_res)); | 491 | 49 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 49 | return Status::OK(); | 504 | 49 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 10 | const ColumnPtr& col_right_ptr) const { | 461 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 10 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 10 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 10 | return Status::OK(); | 504 | 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 | 460 | 198 | const ColumnPtr& col_right_ptr) const { | 461 | 198 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 198 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 198 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 198 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 198 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 198 | if (!left_is_const && !right_is_const) { | 470 | 80 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 80 | vec_res.resize(col_left->get_data().size()); | 474 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 80 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 80 | vec_res); | 478 | | | 479 | 80 | block.replace_by_position(result, std::move(col_res)); | 480 | 118 | } else if (!left_is_const && right_is_const) { | 481 | 118 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 118 | vec_res.resize(col_left->size()); | 485 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 118 | col_right->get_element(0), vec_res); | 489 | | | 490 | 118 | block.replace_by_position(result, std::move(col_res)); | 491 | 118 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 198 | return Status::OK(); | 504 | 198 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 141 | const ColumnPtr& col_right_ptr) const { | 461 | 141 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 141 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 141 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 141 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 141 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 141 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 121 | } else if (!left_is_const && right_is_const) { | 481 | 120 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 120 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 120 | vec_res.resize(col_left->size()); | 485 | 120 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 120 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 120 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 120 | col_right->get_element(0), vec_res); | 489 | | | 490 | 120 | block.replace_by_position(result, std::move(col_res)); | 491 | 120 | } else if (left_is_const && !right_is_const) { | 492 | 1 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 1 | vec_res.resize(col_right->size()); | 496 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 1 | col_right->get_data(), vec_res); | 500 | | | 501 | 1 | block.replace_by_position(result, std::move(col_res)); | 502 | 1 | } | 503 | 141 | return Status::OK(); | 504 | 141 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
505 | | |
506 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
507 | 13.0k | const ColumnWithTypeAndName& col_right) const { |
508 | 13.0k | auto call = [&](const auto& type) -> bool { |
509 | 13.0k | using DispatchType = std::decay_t<decltype(type)>; |
510 | 13.0k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
511 | 13.0k | block, result, col_left, col_right); |
512 | 13.0k | return true; |
513 | 13.0k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 272 | auto call = [&](const auto& type) -> bool { | 509 | 272 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 272 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 272 | block, result, col_left, col_right); | 512 | 272 | return true; | 513 | 272 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 283 | auto call = [&](const auto& type) -> bool { | 509 | 283 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 283 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 283 | block, result, col_left, col_right); | 512 | 283 | return true; | 513 | 283 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 508 | 1.13k | auto call = [&](const auto& type) -> bool { | 509 | 1.13k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.13k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.13k | block, result, col_left, col_right); | 512 | 1.13k | return true; | 513 | 1.13k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 34 | auto call = [&](const auto& type) -> bool { | 509 | 34 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 34 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 34 | block, result, col_left, col_right); | 512 | 34 | return true; | 513 | 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 | 508 | 65 | auto call = [&](const auto& type) -> bool { | 509 | 65 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 65 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 65 | block, result, col_left, col_right); | 512 | 65 | return true; | 513 | 65 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 508 | 324 | auto call = [&](const auto& type) -> bool { | 509 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 324 | block, result, col_left, col_right); | 512 | 324 | return true; | 513 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 30 | auto call = [&](const auto& type) -> bool { | 509 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 30 | block, result, col_left, col_right); | 512 | 30 | return true; | 513 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 46 | auto call = [&](const auto& type) -> bool { | 509 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 46 | block, result, col_left, col_right); | 512 | 46 | return true; | 513 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 5.03k | auto call = [&](const auto& type) -> bool { | 509 | 5.03k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 5.03k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 5.03k | block, result, col_left, col_right); | 512 | 5.03k | return true; | 513 | 5.03k | }; |
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 | 508 | 1.40k | auto call = [&](const auto& type) -> bool { | 509 | 1.40k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.40k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.40k | block, result, col_left, col_right); | 512 | 1.40k | return true; | 513 | 1.40k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 2 | auto call = [&](const auto& type) -> bool { | 509 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 2 | block, result, col_left, col_right); | 512 | 2 | return true; | 513 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 9 | auto call = [&](const auto& type) -> bool { | 509 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 9 | block, result, col_left, col_right); | 512 | 9 | return true; | 513 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 284 | auto call = [&](const auto& type) -> bool { | 509 | 284 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 284 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 284 | block, result, col_left, col_right); | 512 | 284 | return true; | 513 | 284 | }; |
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 | 508 | 109 | auto call = [&](const auto& type) -> bool { | 509 | 109 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 109 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 109 | block, result, col_left, col_right); | 512 | 109 | return true; | 513 | 109 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 21 | auto call = [&](const auto& type) -> bool { | 509 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 21 | block, result, col_left, col_right); | 512 | 21 | return true; | 513 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 215 | auto call = [&](const auto& type) -> bool { | 509 | 215 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 215 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 215 | block, result, col_left, col_right); | 512 | 215 | return true; | 513 | 215 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 262 | auto call = [&](const auto& type) -> bool { | 509 | 262 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 262 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 262 | block, result, col_left, col_right); | 512 | 262 | return true; | 513 | 262 | }; |
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 | 508 | 475 | auto call = [&](const auto& type) -> bool { | 509 | 475 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 475 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 475 | block, result, col_left, col_right); | 512 | 475 | return true; | 513 | 475 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 1 | auto call = [&](const auto& type) -> bool { | 509 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1 | block, result, col_left, col_right); | 512 | 1 | return true; | 513 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 4 | auto call = [&](const auto& type) -> bool { | 509 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 4 | block, result, col_left, col_right); | 512 | 4 | return true; | 513 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 2.05k | auto call = [&](const auto& type) -> bool { | 509 | 2.05k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 2.05k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 2.05k | block, result, col_left, col_right); | 512 | 2.05k | return true; | 513 | 2.05k | }; |
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 | 508 | 929 | auto call = [&](const auto& type) -> bool { | 509 | 929 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 929 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 929 | block, result, col_left, col_right); | 512 | 929 | return true; | 513 | 929 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 16 | auto call = [&](const auto& type) -> bool { | 509 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 16 | block, result, col_left, col_right); | 512 | 16 | return true; | 513 | 16 | }; |
|
514 | | |
515 | 13.0k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
516 | 0 | return Status::RuntimeError( |
517 | 0 | "type of left column {} is not equal to type of right column {}", |
518 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
519 | 0 | } |
520 | | |
521 | 13.0k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
523 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
524 | 0 | } |
525 | 13.0k | return Status::OK(); |
526 | 13.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 1.72k | const ColumnWithTypeAndName& col_right) const { | 508 | 1.72k | auto call = [&](const auto& type) -> bool { | 509 | 1.72k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.72k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.72k | block, result, col_left, col_right); | 512 | 1.72k | return true; | 513 | 1.72k | }; | 514 | | | 515 | 1.72k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 1.72k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 1.72k | return Status::OK(); | 526 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 419 | const ColumnWithTypeAndName& col_right) const { | 508 | 419 | auto call = [&](const auto& type) -> bool { | 509 | 419 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 419 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 419 | block, result, col_left, col_right); | 512 | 419 | return true; | 513 | 419 | }; | 514 | | | 515 | 419 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 419 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 419 | return Status::OK(); | 526 | 419 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 6.48k | const ColumnWithTypeAndName& col_right) const { | 508 | 6.48k | auto call = [&](const auto& type) -> bool { | 509 | 6.48k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 6.48k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 6.48k | block, result, col_left, col_right); | 512 | 6.48k | return true; | 513 | 6.48k | }; | 514 | | | 515 | 6.48k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 6.48k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 6.48k | return Status::OK(); | 526 | 6.48k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 423 | const ColumnWithTypeAndName& col_right) const { | 508 | 423 | auto call = [&](const auto& type) -> bool { | 509 | 423 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 423 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 423 | block, result, col_left, col_right); | 512 | 423 | return true; | 513 | 423 | }; | 514 | | | 515 | 423 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 423 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 423 | return Status::OK(); | 526 | 423 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 953 | const ColumnWithTypeAndName& col_right) const { | 508 | 953 | auto call = [&](const auto& type) -> bool { | 509 | 953 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 953 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 953 | block, result, col_left, col_right); | 512 | 953 | return true; | 513 | 953 | }; | 514 | | | 515 | 953 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 953 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 953 | return Status::OK(); | 526 | 953 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 3.00k | const ColumnWithTypeAndName& col_right) const { | 508 | 3.00k | auto call = [&](const auto& type) -> bool { | 509 | 3.00k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 3.00k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 3.00k | block, result, col_left, col_right); | 512 | 3.00k | return true; | 513 | 3.00k | }; | 514 | | | 515 | 3.00k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 3.00k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 3.00k | return Status::OK(); | 526 | 3.00k | } |
|
527 | | |
528 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
529 | 29.8k | const IColumn* c1) const { |
530 | 29.8k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
531 | 29.8k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
532 | 29.8k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
533 | 29.8k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
534 | 29.8k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
536 | 0 | c0->get_name(), c1->get_name(), name); |
537 | 0 | } |
538 | 29.8k | DCHECK(!(c0_const && c1_const)); |
539 | 29.8k | const ColumnString::Chars* c0_const_chars = nullptr; |
540 | 29.8k | const ColumnString::Chars* c1_const_chars = nullptr; |
541 | 29.8k | ColumnString::Offset c0_const_size = 0; |
542 | 29.8k | ColumnString::Offset c1_const_size = 0; |
543 | | |
544 | 29.8k | if (c0_const) { |
545 | 22 | const ColumnString* c0_const_string = |
546 | 22 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
547 | | |
548 | 22 | if (c0_const_string) { |
549 | 22 | c0_const_chars = &c0_const_string->get_chars(); |
550 | 22 | c0_const_size = c0_const_string->get_offsets()[0]; |
551 | 22 | } else { |
552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
553 | 0 | c0->get_name(), name); |
554 | 0 | } |
555 | 22 | } |
556 | | |
557 | 29.8k | if (c1_const) { |
558 | 26.4k | const ColumnString* c1_const_string = |
559 | 26.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
560 | | |
561 | 26.4k | if (c1_const_string) { |
562 | 26.4k | c1_const_chars = &c1_const_string->get_chars(); |
563 | 26.4k | c1_const_size = c1_const_string->get_offsets()[0]; |
564 | 26.4k | } else { |
565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
566 | 0 | c1->get_name(), name); |
567 | 0 | } |
568 | 26.4k | } |
569 | | |
570 | 29.8k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
571 | | |
572 | 29.8k | auto c_res = ColumnUInt8::create(); |
573 | 29.8k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
574 | 29.8k | vec_res.resize(c0->size()); |
575 | | |
576 | 29.8k | if (c0_string && c1_string) { |
577 | 3.40k | StringImpl::string_vector_string_vector( |
578 | 3.40k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
579 | 3.40k | c1_string->get_offsets(), vec_res); |
580 | 26.4k | } else if (c0_string && c1_const) { |
581 | 26.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
582 | 26.4k | *c1_const_chars, c1_const_size, vec_res); |
583 | 26.4k | } else if (c0_const && c1_string) { |
584 | 22 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
585 | 22 | c1_string->get_chars(), c1_string->get_offsets(), |
586 | 22 | vec_res); |
587 | 18.4E | } else { |
588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
589 | 18.4E | c0->get_name(), c1->get_name(), name); |
590 | 18.4E | } |
591 | 29.8k | block.replace_by_position(result, std::move(c_res)); |
592 | 29.8k | return Status::OK(); |
593 | 29.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 25.0k | const IColumn* c1) const { | 530 | 25.0k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 25.0k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 25.0k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 25.0k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 25.0k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 25.0k | DCHECK(!(c0_const && c1_const)); | 539 | 25.0k | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 25.0k | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 25.0k | ColumnString::Offset c0_const_size = 0; | 542 | 25.0k | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 25.0k | if (c0_const) { | 545 | 16 | const ColumnString* c0_const_string = | 546 | 16 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | | | 548 | 16 | if (c0_const_string) { | 549 | 16 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 16 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 16 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 16 | } | 556 | | | 557 | 25.0k | if (c1_const) { | 558 | 22.4k | const ColumnString* c1_const_string = | 559 | 22.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 22.4k | if (c1_const_string) { | 562 | 22.4k | c1_const_chars = &c1_const_string->get_chars(); | 563 | 22.4k | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 22.4k | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 22.4k | } | 569 | | | 570 | 25.0k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 25.0k | auto c_res = ColumnUInt8::create(); | 573 | 25.0k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 25.0k | vec_res.resize(c0->size()); | 575 | | | 576 | 25.0k | if (c0_string && c1_string) { | 577 | 2.56k | StringImpl::string_vector_string_vector( | 578 | 2.56k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 2.56k | c1_string->get_offsets(), vec_res); | 580 | 22.4k | } else if (c0_string && c1_const) { | 581 | 22.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 22.4k | *c1_const_chars, c1_const_size, vec_res); | 583 | 22.4k | } else if (c0_const && c1_string) { | 584 | 16 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 16 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 16 | vec_res); | 587 | 18.4E | } else { | 588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 18.4E | c0->get_name(), c1->get_name(), name); | 590 | 18.4E | } | 591 | 25.0k | block.replace_by_position(result, std::move(c_res)); | 592 | 25.0k | return Status::OK(); | 593 | 25.0k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 2.53k | const IColumn* c1) const { | 530 | 2.53k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 2.53k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 2.53k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 2.53k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 2.53k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 2.53k | DCHECK(!(c0_const && c1_const)); | 539 | 2.53k | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 2.53k | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 2.53k | ColumnString::Offset c0_const_size = 0; | 542 | 2.53k | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 2.53k | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 2.53k | if (c1_const) { | 558 | 2.47k | const ColumnString* c1_const_string = | 559 | 2.47k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 2.47k | if (c1_const_string) { | 562 | 2.47k | c1_const_chars = &c1_const_string->get_chars(); | 563 | 2.47k | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 2.47k | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 2.47k | } | 569 | | | 570 | 2.53k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 2.53k | auto c_res = ColumnUInt8::create(); | 573 | 2.53k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 2.53k | vec_res.resize(c0->size()); | 575 | | | 576 | 2.53k | if (c0_string && c1_string) { | 577 | 60 | StringImpl::string_vector_string_vector( | 578 | 60 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 60 | c1_string->get_offsets(), vec_res); | 580 | 2.47k | } else if (c0_string && c1_const) { | 581 | 2.47k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 2.47k | *c1_const_chars, c1_const_size, vec_res); | 583 | 2.47k | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 2.53k | block.replace_by_position(result, std::move(c_res)); | 592 | 2.53k | return Status::OK(); | 593 | 2.53k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 172 | const IColumn* c1) const { | 530 | 172 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 172 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 172 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 172 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 172 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 172 | DCHECK(!(c0_const && c1_const)); | 539 | 172 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 172 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 172 | ColumnString::Offset c0_const_size = 0; | 542 | 172 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 172 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 172 | if (c1_const) { | 558 | 170 | const ColumnString* c1_const_string = | 559 | 170 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 170 | if (c1_const_string) { | 562 | 170 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 170 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 170 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 170 | } | 569 | | | 570 | 172 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 172 | auto c_res = ColumnUInt8::create(); | 573 | 172 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 172 | vec_res.resize(c0->size()); | 575 | | | 576 | 172 | if (c0_string && c1_string) { | 577 | 2 | StringImpl::string_vector_string_vector( | 578 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 2 | c1_string->get_offsets(), vec_res); | 580 | 170 | } else if (c0_string && c1_const) { | 581 | 170 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 170 | *c1_const_chars, c1_const_size, vec_res); | 583 | 170 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 172 | block.replace_by_position(result, std::move(c_res)); | 592 | 172 | return Status::OK(); | 593 | 172 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 624 | const IColumn* c1) const { | 530 | 624 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 624 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 624 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 624 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 624 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 624 | DCHECK(!(c0_const && c1_const)); | 539 | 624 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 624 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 624 | ColumnString::Offset c0_const_size = 0; | 542 | 624 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 624 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 624 | if (c1_const) { | 558 | 502 | const ColumnString* c1_const_string = | 559 | 502 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 502 | if (c1_const_string) { | 562 | 502 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 502 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 502 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 502 | } | 569 | | | 570 | 624 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 624 | auto c_res = ColumnUInt8::create(); | 573 | 624 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 624 | vec_res.resize(c0->size()); | 575 | | | 576 | 624 | if (c0_string && c1_string) { | 577 | 122 | StringImpl::string_vector_string_vector( | 578 | 122 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 122 | c1_string->get_offsets(), vec_res); | 580 | 502 | } else if (c0_string && c1_const) { | 581 | 502 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 502 | *c1_const_chars, c1_const_size, vec_res); | 583 | 502 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 624 | block.replace_by_position(result, std::move(c_res)); | 592 | 624 | return Status::OK(); | 593 | 624 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 691 | const IColumn* c1) const { | 530 | 691 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 691 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 691 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 691 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 691 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 691 | DCHECK(!(c0_const && c1_const)); | 539 | 691 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 691 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 691 | ColumnString::Offset c0_const_size = 0; | 542 | 691 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 691 | if (c0_const) { | 545 | 6 | const ColumnString* c0_const_string = | 546 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | | | 548 | 6 | if (c0_const_string) { | 549 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 6 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 6 | } | 556 | | | 557 | 691 | if (c1_const) { | 558 | 200 | const ColumnString* c1_const_string = | 559 | 200 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 200 | if (c1_const_string) { | 562 | 200 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 200 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 200 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 200 | } | 569 | | | 570 | 691 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 691 | auto c_res = ColumnUInt8::create(); | 573 | 691 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 691 | vec_res.resize(c0->size()); | 575 | | | 576 | 691 | if (c0_string && c1_string) { | 577 | 485 | StringImpl::string_vector_string_vector( | 578 | 485 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 485 | c1_string->get_offsets(), vec_res); | 580 | 485 | } else if (c0_string && c1_const) { | 581 | 200 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 200 | *c1_const_chars, c1_const_size, vec_res); | 583 | 200 | } else if (c0_const && c1_string) { | 584 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 6 | vec_res); | 587 | 6 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 691 | block.replace_by_position(result, std::move(c_res)); | 592 | 691 | return Status::OK(); | 593 | 691 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 841 | const IColumn* c1) const { | 530 | 841 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 841 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 841 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 841 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 841 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 841 | DCHECK(!(c0_const && c1_const)); | 539 | 841 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 841 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 841 | ColumnString::Offset c0_const_size = 0; | 542 | 841 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 841 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 841 | if (c1_const) { | 558 | 671 | const ColumnString* c1_const_string = | 559 | 671 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 671 | if (c1_const_string) { | 562 | 671 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 671 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 671 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 671 | } | 569 | | | 570 | 841 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 841 | auto c_res = ColumnUInt8::create(); | 573 | 841 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 841 | vec_res.resize(c0->size()); | 575 | | | 576 | 841 | if (c0_string && c1_string) { | 577 | 170 | StringImpl::string_vector_string_vector( | 578 | 170 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 170 | c1_string->get_offsets(), vec_res); | 580 | 671 | } else if (c0_string && c1_const) { | 581 | 671 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 671 | *c1_const_chars, c1_const_size, vec_res); | 583 | 671 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 841 | block.replace_by_position(result, std::move(c_res)); | 592 | 841 | return Status::OK(); | 593 | 841 | } |
|
594 | | |
595 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
596 | 140 | const IColumn* c1) const { |
597 | 140 | bool c0_const = is_column_const(*c0); |
598 | 140 | bool c1_const = is_column_const(*c1); |
599 | | |
600 | 140 | DCHECK(!(c0_const && c1_const)); |
601 | | |
602 | 140 | auto c_res = ColumnUInt8::create(); |
603 | 140 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
604 | 140 | vec_res.resize(c0->size()); |
605 | | |
606 | 140 | if (c0_const) { |
607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
608 | 140 | } else if (c1_const) { |
609 | 131 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
610 | 131 | } else { |
611 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
612 | 9 | } |
613 | | |
614 | 140 | block.replace_by_position(result, std::move(c_res)); |
615 | 140 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 17 | const IColumn* c1) const { | 597 | 17 | bool c0_const = is_column_const(*c0); | 598 | 17 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 17 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 17 | auto c_res = ColumnUInt8::create(); | 603 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 17 | vec_res.resize(c0->size()); | 605 | | | 606 | 17 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 17 | } else if (c1_const) { | 609 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 13 | } else { | 611 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 4 | } | 613 | | | 614 | 17 | block.replace_by_position(result, std::move(c_res)); | 615 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 8 | const IColumn* c1) const { | 597 | 8 | bool c0_const = is_column_const(*c0); | 598 | 8 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 8 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 8 | auto c_res = ColumnUInt8::create(); | 603 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 8 | vec_res.resize(c0->size()); | 605 | | | 606 | 8 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 8 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 0 | } | 613 | | | 614 | 8 | block.replace_by_position(result, std::move(c_res)); | 615 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 9 | const IColumn* c1) const { | 597 | 9 | bool c0_const = is_column_const(*c0); | 598 | 9 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 9 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 9 | auto c_res = ColumnUInt8::create(); | 603 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 9 | vec_res.resize(c0->size()); | 605 | | | 606 | 9 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 9 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 1 | } | 613 | | | 614 | 9 | block.replace_by_position(result, std::move(c_res)); | 615 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 55 | const IColumn* c1) const { | 597 | 55 | bool c0_const = is_column_const(*c0); | 598 | 55 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 55 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 55 | auto c_res = ColumnUInt8::create(); | 603 | 55 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 55 | vec_res.resize(c0->size()); | 605 | | | 606 | 55 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 55 | } else if (c1_const) { | 609 | 54 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 54 | } else { | 611 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 1 | } | 613 | | | 614 | 55 | block.replace_by_position(result, std::move(c_res)); | 615 | 55 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 11 | const IColumn* c1) const { | 597 | 11 | bool c0_const = is_column_const(*c0); | 598 | 11 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 11 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 11 | auto c_res = ColumnUInt8::create(); | 603 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 11 | vec_res.resize(c0->size()); | 605 | | | 606 | 11 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 11 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 3 | } | 613 | | | 614 | 11 | block.replace_by_position(result, std::move(c_res)); | 615 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 40 | const IColumn* c1) const { | 597 | 40 | bool c0_const = is_column_const(*c0); | 598 | 40 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 40 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 40 | auto c_res = ColumnUInt8::create(); | 603 | 40 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 40 | vec_res.resize(c0->size()); | 605 | | | 606 | 40 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 40 | } else if (c1_const) { | 609 | 40 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 40 | } else { | 611 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 0 | } | 613 | | | 614 | 40 | block.replace_by_position(result, std::move(c_res)); | 615 | 40 | } |
|
616 | | |
617 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
618 | 140 | const ColumnWithTypeAndName& c1) const { |
619 | 140 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
620 | 140 | return Status::OK(); |
621 | 140 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 17 | const ColumnWithTypeAndName& c1) const { | 619 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 17 | return Status::OK(); | 621 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 8 | const ColumnWithTypeAndName& c1) const { | 619 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 8 | return Status::OK(); | 621 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 9 | const ColumnWithTypeAndName& c1) const { | 619 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 9 | return Status::OK(); | 621 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 55 | const ColumnWithTypeAndName& c1) const { | 619 | 55 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 55 | return Status::OK(); | 621 | 55 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 11 | const ColumnWithTypeAndName& c1) const { | 619 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 11 | return Status::OK(); | 621 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 40 | const ColumnWithTypeAndName& c1) const { | 619 | 40 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 40 | return Status::OK(); | 621 | 40 | } |
|
622 | | |
623 | | public: |
624 | 221 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 62 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 1 | String get_name() const override { return name; } |
|
625 | | |
626 | 576k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 485k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 2.80k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 626 | 43.0k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 15.2k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 626 | 4.65k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 24.4k | size_t get_number_of_arguments() const override { return 2; } |
|
627 | | |
628 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
629 | 35.8k | const VExprSPtrs& arguments) const override { |
630 | 35.8k | auto op = comparison_zonemap_detail::op_from_name(name); |
631 | 35.8k | DORIS_CHECK(op.has_value()); |
632 | 35.8k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
633 | 35.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 9.49k | const VExprSPtrs& arguments) const override { | 630 | 9.49k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 9.49k | DORIS_CHECK(op.has_value()); | 632 | 9.49k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 9.49k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 1.16k | const VExprSPtrs& arguments) const override { | 630 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 1.16k | DORIS_CHECK(op.has_value()); | 632 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 5.10k | const VExprSPtrs& arguments) const override { | 630 | 5.10k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 5.10k | DORIS_CHECK(op.has_value()); | 632 | 5.10k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 5.10k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 7.11k | const VExprSPtrs& arguments) const override { | 630 | 7.11k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 7.11k | DORIS_CHECK(op.has_value()); | 632 | 7.11k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 7.11k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 3.12k | const VExprSPtrs& arguments) const override { | 630 | 3.12k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 3.12k | DORIS_CHECK(op.has_value()); | 632 | 3.12k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 3.12k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 9.81k | const VExprSPtrs& arguments) const override { | 630 | 9.81k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 9.81k | DORIS_CHECK(op.has_value()); | 632 | 9.81k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 9.81k | } |
|
634 | | |
635 | 117k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
636 | 117k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
637 | 117k | comparison_zonemap_detail::can_evaluate(arguments); |
638 | 117k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 46.0k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 46.0k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 46.0k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 46.0k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 4.66k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 4.66k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 4.67k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 4.66k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 17.5k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 17.5k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 17.6k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 17.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 18.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 18.3k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 18.3k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 18.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 10.0k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 10.0k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 10.1k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 10.0k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 21.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 21.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 21.2k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 21.1k | } |
|
639 | | |
640 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
641 | 660 | const VExprSPtrs& arguments) const override { |
642 | 660 | auto op = comparison_zonemap_detail::op_from_name(name); |
643 | 660 | DORIS_CHECK(op.has_value()); |
644 | 660 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
645 | 660 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 622 | const VExprSPtrs& arguments) const override { | 642 | 622 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 622 | DORIS_CHECK(op.has_value()); | 644 | 622 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 622 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 4 | const VExprSPtrs& arguments) const override { | 642 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 4 | DORIS_CHECK(op.has_value()); | 644 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 3 | const VExprSPtrs& arguments) const override { | 642 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 3 | DORIS_CHECK(op.has_value()); | 644 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 16 | const VExprSPtrs& arguments) const override { | 642 | 16 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 16 | DORIS_CHECK(op.has_value()); | 644 | 16 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 7 | const VExprSPtrs& arguments) const override { | 642 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 7 | DORIS_CHECK(op.has_value()); | 644 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 7 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 8 | const VExprSPtrs& arguments) const override { | 642 | 8 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 8 | DORIS_CHECK(op.has_value()); | 644 | 8 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 8 | } |
|
646 | | |
647 | 17.1k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
648 | 17.1k | auto op = comparison_zonemap_detail::op_from_name(name); |
649 | 17.1k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
650 | 17.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 8.23k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 8.23k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 8.23k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 8.23k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 909 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 909 | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 909 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 909 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 3.19k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 3.19k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 3.21k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 3.19k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 2.10k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 2.10k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 2.10k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 2.10k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 1.19k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 1.19k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 1.19k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 1.19k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 1.46k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 1.46k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 1.46k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 1.46k | } |
|
651 | | |
652 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
653 | 14 | const VExprSPtrs& arguments) const override { |
654 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
655 | 14 | DORIS_CHECK(op.has_value()); |
656 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
657 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 653 | 14 | const VExprSPtrs& arguments) const override { | 654 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 655 | 14 | DORIS_CHECK(op.has_value()); | 656 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 657 | 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 |
658 | | |
659 | 8.57k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
660 | 8.57k | auto op = comparison_zonemap_detail::op_from_name(name); |
661 | 8.60k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
662 | 8.57k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 4.86k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 4.86k | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 4.87k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 4.86k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 693 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 693 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 693 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 1.71k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 1.71k | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 1.72k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 1.71k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 520 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 520 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 522 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 520 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 537 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 537 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 539 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 537 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 246 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 246 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 248 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 246 | } |
|
663 | | |
664 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
665 | 575k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
666 | 575k | return std::make_shared<DataTypeUInt8>(); |
667 | 575k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 485k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 485k | return std::make_shared<DataTypeUInt8>(); | 667 | 485k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 2.80k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 2.80k | return std::make_shared<DataTypeUInt8>(); | 667 | 2.80k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 42.9k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 42.9k | return std::make_shared<DataTypeUInt8>(); | 667 | 42.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 15.3k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 15.3k | return std::make_shared<DataTypeUInt8>(); | 667 | 15.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 4.65k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 4.65k | return std::make_shared<DataTypeUInt8>(); | 667 | 4.65k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 24.4k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 24.4k | return std::make_shared<DataTypeUInt8>(); | 667 | 24.4k | } |
|
668 | | |
669 | | Status evaluate_inverted_index( |
670 | | const ColumnsWithTypeAndName& arguments, |
671 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
672 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
673 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
674 | 1.36k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
675 | 1.36k | DCHECK(arguments.size() == 1); |
676 | 1.36k | DCHECK(data_type_with_names.size() == 1); |
677 | 1.36k | DCHECK(iterators.size() == 1); |
678 | 1.36k | auto* iter = iterators[0]; |
679 | 1.36k | auto data_type_with_name = data_type_with_names[0]; |
680 | 1.36k | if (iter == nullptr) { |
681 | 0 | return Status::OK(); |
682 | 0 | } |
683 | 1.36k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
684 | 304 | return Status::OK(); |
685 | 304 | } |
686 | 1.05k | segment_v2::InvertedIndexQueryType query_type; |
687 | 1.05k | std::string_view name_view(name); |
688 | 1.05k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
689 | 733 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
690 | 733 | } else if (name_view == NameLess::name) { |
691 | 78 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
692 | 247 | } else if (name_view == NameLessOrEquals::name) { |
693 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
694 | 166 | } else if (name_view == NameGreater::name) { |
695 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
696 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
697 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
698 | 93 | } else { |
699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
700 | 0 | } |
701 | | |
702 | 1.05k | if (segment_v2::is_range_query(query_type) && |
703 | 1.05k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
705 | 133 | return Status::OK(); |
706 | 133 | } |
707 | 925 | Field param_value; |
708 | 925 | arguments[0].column->get(0, param_value); |
709 | 925 | if (param_value.is_null()) { |
710 | 2 | return Status::OK(); |
711 | 2 | } |
712 | 923 | segment_v2::InvertedIndexParam param; |
713 | 923 | param.column_name = data_type_with_name.first; |
714 | 923 | param.column_type = data_type_with_name.second; |
715 | 923 | param.query_value = param_value; |
716 | 923 | param.query_type = query_type; |
717 | 923 | param.num_rows = num_rows; |
718 | 923 | param.roaring = std::make_shared<roaring::Roaring>(); |
719 | 923 | param.analyzer_ctx = analyzer_ctx; |
720 | 923 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
721 | 761 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
722 | 761 | if (iter->has_null()) { |
723 | 760 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
724 | 760 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
725 | 760 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
726 | 760 | } |
727 | 761 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
728 | 761 | bitmap_result = result; |
729 | 761 | bitmap_result.mask_out_null(); |
730 | | |
731 | 761 | if (name_view == NameNotEquals::name) { |
732 | 58 | roaring::Roaring full_result; |
733 | 58 | full_result.addRange(0, num_rows); |
734 | 58 | bitmap_result.op_not(&full_result); |
735 | 58 | } |
736 | | |
737 | 761 | return Status::OK(); |
738 | 761 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 703 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 703 | DCHECK(arguments.size() == 1); | 676 | 703 | DCHECK(data_type_with_names.size() == 1); | 677 | 703 | DCHECK(iterators.size() == 1); | 678 | 703 | auto* iter = iterators[0]; | 679 | 703 | auto data_type_with_name = data_type_with_names[0]; | 680 | 703 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 703 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 36 | return Status::OK(); | 685 | 36 | } | 686 | 667 | segment_v2::InvertedIndexQueryType query_type; | 687 | 667 | std::string_view name_view(name); | 688 | 667 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 667 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 667 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 0 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 0 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 667 | if (segment_v2::is_range_query(query_type) && | 703 | 667 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 667 | Field param_value; | 708 | 667 | arguments[0].column->get(0, param_value); | 709 | 667 | if (param_value.is_null()) { | 710 | 2 | return Status::OK(); | 711 | 2 | } | 712 | 665 | segment_v2::InvertedIndexParam param; | 713 | 665 | param.column_name = data_type_with_name.first; | 714 | 665 | param.column_type = data_type_with_name.second; | 715 | 665 | param.query_value = param_value; | 716 | 665 | param.query_type = query_type; | 717 | 665 | param.num_rows = num_rows; | 718 | 665 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 665 | param.analyzer_ctx = analyzer_ctx; | 720 | 665 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 610 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 610 | if (iter->has_null()) { | 723 | 610 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 610 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 610 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 610 | } | 727 | 610 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 610 | bitmap_result = result; | 729 | 610 | bitmap_result.mask_out_null(); | 730 | | | 731 | 610 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 610 | return Status::OK(); | 738 | 610 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 72 | DCHECK(arguments.size() == 1); | 676 | 72 | DCHECK(data_type_with_names.size() == 1); | 677 | 72 | DCHECK(iterators.size() == 1); | 678 | 72 | auto* iter = iterators[0]; | 679 | 72 | auto data_type_with_name = data_type_with_names[0]; | 680 | 72 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 6 | return Status::OK(); | 685 | 6 | } | 686 | 66 | segment_v2::InvertedIndexQueryType query_type; | 687 | 66 | std::string_view name_view(name); | 688 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 66 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 0 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 0 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 66 | if (segment_v2::is_range_query(query_type) && | 703 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 66 | Field param_value; | 708 | 66 | arguments[0].column->get(0, param_value); | 709 | 66 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 66 | segment_v2::InvertedIndexParam param; | 713 | 66 | param.column_name = data_type_with_name.first; | 714 | 66 | param.column_type = data_type_with_name.second; | 715 | 66 | param.query_value = param_value; | 716 | 66 | param.query_type = query_type; | 717 | 66 | param.num_rows = num_rows; | 718 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 66 | param.analyzer_ctx = analyzer_ctx; | 720 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 59 | if (iter->has_null()) { | 723 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 59 | } | 727 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 59 | bitmap_result = result; | 729 | 59 | bitmap_result.mask_out_null(); | 730 | | | 731 | 59 | if (name_view == NameNotEquals::name) { | 732 | 58 | roaring::Roaring full_result; | 733 | 58 | full_result.addRange(0, num_rows); | 734 | 58 | bitmap_result.op_not(&full_result); | 735 | 58 | } | 736 | | | 737 | 59 | return Status::OK(); | 738 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 112 | DCHECK(arguments.size() == 1); | 676 | 112 | DCHECK(data_type_with_names.size() == 1); | 677 | 112 | DCHECK(iterators.size() == 1); | 678 | 112 | auto* iter = iterators[0]; | 679 | 112 | auto data_type_with_name = data_type_with_names[0]; | 680 | 112 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 39 | return Status::OK(); | 685 | 39 | } | 686 | 73 | segment_v2::InvertedIndexQueryType query_type; | 687 | 73 | std::string_view name_view(name); | 688 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 73 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 73 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 73 | } else if (name_view == NameGreater::name) { | 695 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 73 | if (segment_v2::is_range_query(query_type) && | 703 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 17 | return Status::OK(); | 706 | 17 | } | 707 | 56 | Field param_value; | 708 | 56 | arguments[0].column->get(0, param_value); | 709 | 56 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 56 | segment_v2::InvertedIndexParam param; | 713 | 56 | param.column_name = data_type_with_name.first; | 714 | 56 | param.column_type = data_type_with_name.second; | 715 | 56 | param.query_value = param_value; | 716 | 56 | param.query_type = query_type; | 717 | 56 | param.num_rows = num_rows; | 718 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 56 | param.analyzer_ctx = analyzer_ctx; | 720 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 38 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 38 | if (iter->has_null()) { | 723 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 37 | } | 727 | 38 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 38 | bitmap_result = result; | 729 | 38 | bitmap_result.mask_out_null(); | 730 | | | 731 | 38 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 38 | return Status::OK(); | 738 | 38 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 179 | DCHECK(arguments.size() == 1); | 676 | 179 | DCHECK(data_type_with_names.size() == 1); | 677 | 179 | DCHECK(iterators.size() == 1); | 678 | 179 | auto* iter = iterators[0]; | 679 | 179 | auto data_type_with_name = data_type_with_names[0]; | 680 | 179 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 86 | return Status::OK(); | 685 | 86 | } | 686 | 93 | segment_v2::InvertedIndexQueryType query_type; | 687 | 93 | std::string_view name_view(name); | 688 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 93 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 93 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 93 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 93 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 93 | if (segment_v2::is_range_query(query_type) && | 703 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 47 | return Status::OK(); | 706 | 47 | } | 707 | 46 | Field param_value; | 708 | 46 | arguments[0].column->get(0, param_value); | 709 | 46 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 46 | segment_v2::InvertedIndexParam param; | 713 | 46 | param.column_name = data_type_with_name.first; | 714 | 46 | param.column_type = data_type_with_name.second; | 715 | 46 | param.query_value = param_value; | 716 | 46 | param.query_type = query_type; | 717 | 46 | param.num_rows = num_rows; | 718 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 46 | param.analyzer_ctx = analyzer_ctx; | 720 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 5 | if (iter->has_null()) { | 723 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 5 | } | 727 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 5 | bitmap_result = result; | 729 | 5 | bitmap_result.mask_out_null(); | 730 | | | 731 | 5 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 5 | return Status::OK(); | 738 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 121 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 121 | DCHECK(arguments.size() == 1); | 676 | 121 | DCHECK(data_type_with_names.size() == 1); | 677 | 121 | DCHECK(iterators.size() == 1); | 678 | 121 | auto* iter = iterators[0]; | 679 | 121 | auto data_type_with_name = data_type_with_names[0]; | 680 | 121 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 121 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 43 | return Status::OK(); | 685 | 43 | } | 686 | 78 | segment_v2::InvertedIndexQueryType query_type; | 687 | 78 | std::string_view name_view(name); | 688 | 78 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 78 | } else if (name_view == NameLess::name) { | 691 | 78 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 78 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 0 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 78 | if (segment_v2::is_range_query(query_type) && | 703 | 78 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 18 | return Status::OK(); | 706 | 18 | } | 707 | 60 | Field param_value; | 708 | 60 | arguments[0].column->get(0, param_value); | 709 | 60 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 60 | segment_v2::InvertedIndexParam param; | 713 | 60 | param.column_name = data_type_with_name.first; | 714 | 60 | param.column_type = data_type_with_name.second; | 715 | 60 | param.query_value = param_value; | 716 | 60 | param.query_type = query_type; | 717 | 60 | param.num_rows = num_rows; | 718 | 60 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 60 | param.analyzer_ctx = analyzer_ctx; | 720 | 60 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 40 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 40 | if (iter->has_null()) { | 723 | 40 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 40 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 40 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 40 | } | 727 | 40 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 40 | bitmap_result = result; | 729 | 40 | bitmap_result.mask_out_null(); | 730 | | | 731 | 40 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 40 | return Status::OK(); | 738 | 40 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 175 | DCHECK(arguments.size() == 1); | 676 | 175 | DCHECK(data_type_with_names.size() == 1); | 677 | 175 | DCHECK(iterators.size() == 1); | 678 | 175 | auto* iter = iterators[0]; | 679 | 175 | auto data_type_with_name = data_type_with_names[0]; | 680 | 175 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 94 | return Status::OK(); | 685 | 94 | } | 686 | 81 | segment_v2::InvertedIndexQueryType query_type; | 687 | 81 | std::string_view name_view(name); | 688 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 81 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 81 | } else if (name_view == NameLessOrEquals::name) { | 693 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 81 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 0 | } else { | 699 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 0 | } | 701 | | | 702 | 81 | if (segment_v2::is_range_query(query_type) && | 703 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 51 | return Status::OK(); | 706 | 51 | } | 707 | 30 | Field param_value; | 708 | 30 | arguments[0].column->get(0, param_value); | 709 | 30 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 30 | segment_v2::InvertedIndexParam param; | 713 | 30 | param.column_name = data_type_with_name.first; | 714 | 30 | param.column_type = data_type_with_name.second; | 715 | 30 | param.query_value = param_value; | 716 | 30 | param.query_type = query_type; | 717 | 30 | param.num_rows = num_rows; | 718 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 30 | param.analyzer_ctx = analyzer_ctx; | 720 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 9 | if (iter->has_null()) { | 723 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 9 | } | 727 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 9 | bitmap_result = result; | 729 | 9 | bitmap_result.mask_out_null(); | 730 | | | 731 | 9 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 9 | return Status::OK(); | 738 | 9 | } |
|
739 | | |
740 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
741 | 287k | uint32_t result, size_t input_rows_count) const override { |
742 | 287k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
743 | 287k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
744 | | |
745 | 287k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
746 | 287k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
747 | 287k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
748 | 287k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
749 | | |
750 | 287k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
751 | 287k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
752 | | |
753 | | /// The case when arguments are the same (tautological comparison). Return constant. |
754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
756 | 287k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
757 | 287k | col_left_untyped == col_right_untyped) { |
758 | | /// Always true: =, <=, >= |
759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
763 | 0 | block.get_by_position(result).column = |
764 | 0 | DataTypeUInt8() |
765 | 0 | .create_column_const(input_rows_count, |
766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
767 | 0 | ->convert_to_full_column_if_const(); |
768 | 0 | return Status::OK(); |
769 | 0 | } else { |
770 | 0 | block.get_by_position(result).column = |
771 | 0 | DataTypeUInt8() |
772 | 0 | .create_column_const(input_rows_count, |
773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
774 | 0 | ->convert_to_full_column_if_const(); |
775 | 0 | return Status::OK(); |
776 | 0 | } |
777 | 0 | } |
778 | | |
779 | 531k | auto can_compare = [](PrimitiveType t) -> bool { |
780 | 531k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
781 | 531k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 209k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 209k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 209k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 14.3k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 14.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 14.3k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 193k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 193k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 193k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 30.1k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 30.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 30.1k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 25.0k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 25.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 25.0k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 58.5k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 58.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 58.5k | }; |
|
782 | | |
783 | 287k | if (can_compare(left_type->get_primitive_type()) && |
784 | 287k | can_compare(right_type->get_primitive_type())) { |
785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
786 | 244k | if (!left_type->equals_ignore_precision(*right_type)) { |
787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
788 | 0 | get_name(), left_type->get_name(), |
789 | 0 | right_type->get_name()); |
790 | 0 | } |
791 | 244k | } |
792 | | |
793 | 287k | auto compare_type = left_type->get_primitive_type(); |
794 | 287k | switch (compare_type) { |
795 | 1.97k | case TYPE_BOOLEAN: |
796 | 1.97k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
797 | 14.8k | case TYPE_DATEV2: |
798 | 14.8k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
799 | 2.73k | case TYPE_DATETIMEV2: |
800 | 2.73k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
801 | 7 | case TYPE_TIMESTAMPTZ: |
802 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
803 | 9.07k | case TYPE_TINYINT: |
804 | 9.07k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
805 | 3.09k | case TYPE_SMALLINT: |
806 | 3.09k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
807 | 168k | case TYPE_INT: |
808 | 168k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
809 | 38.4k | case TYPE_BIGINT: |
810 | 38.4k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
811 | 819 | case TYPE_LARGEINT: |
812 | 819 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
813 | 65 | case TYPE_IPV4: |
814 | 65 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
815 | 37 | case TYPE_IPV6: |
816 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
817 | 961 | case TYPE_FLOAT: |
818 | 961 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
819 | 3.89k | case TYPE_DOUBLE: |
820 | 3.89k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
821 | 4 | case TYPE_TIMEV2: |
822 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
823 | 0 | case TYPE_DECIMALV2: |
824 | 546 | case TYPE_DECIMAL32: |
825 | 8.52k | case TYPE_DECIMAL64: |
826 | 12.8k | case TYPE_DECIMAL128I: |
827 | 13.0k | case TYPE_DECIMAL256: |
828 | 13.0k | return execute_decimal(block, result, col_with_type_and_name_left, |
829 | 13.0k | col_with_type_and_name_right); |
830 | 1.12k | case TYPE_CHAR: |
831 | 10.5k | case TYPE_VARCHAR: |
832 | 29.8k | case TYPE_STRING: |
833 | 29.8k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
834 | 140 | default: |
835 | 140 | return execute_generic(block, result, col_with_type_and_name_left, |
836 | 140 | col_with_type_and_name_right); |
837 | 287k | } |
838 | 0 | return Status::OK(); |
839 | 287k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 118k | uint32_t result, size_t input_rows_count) const override { | 742 | 118k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 118k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 118k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 118k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 118k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 118k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 118k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 118k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 118k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 118k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 118k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 118k | }; | 782 | | | 783 | 118k | if (can_compare(left_type->get_primitive_type()) && | 784 | 118k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 91.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 91.5k | } | 792 | | | 793 | 118k | auto compare_type = left_type->get_primitive_type(); | 794 | 118k | switch (compare_type) { | 795 | 1.57k | case TYPE_BOOLEAN: | 796 | 1.57k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 1.67k | case TYPE_DATEV2: | 798 | 1.67k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 671 | case TYPE_DATETIMEV2: | 800 | 671 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 2 | case TYPE_TIMESTAMPTZ: | 802 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 5.47k | case TYPE_TINYINT: | 804 | 5.47k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 770 | case TYPE_SMALLINT: | 806 | 770 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 62.1k | case TYPE_INT: | 808 | 62.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 17.9k | case TYPE_BIGINT: | 810 | 17.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 148 | case TYPE_LARGEINT: | 812 | 148 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 22 | case TYPE_IPV4: | 814 | 22 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 19 | case TYPE_IPV6: | 816 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 98 | case TYPE_FLOAT: | 818 | 98 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 925 | case TYPE_DOUBLE: | 820 | 925 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 4 | case TYPE_TIMEV2: | 822 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 272 | case TYPE_DECIMAL32: | 825 | 555 | case TYPE_DECIMAL64: | 826 | 1.68k | case TYPE_DECIMAL128I: | 827 | 1.72k | case TYPE_DECIMAL256: | 828 | 1.72k | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 1.72k | col_with_type_and_name_right); | 830 | 762 | case TYPE_CHAR: | 831 | 8.96k | case TYPE_VARCHAR: | 832 | 25.0k | case TYPE_STRING: | 833 | 25.0k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 17 | default: | 835 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 17 | col_with_type_and_name_right); | 837 | 118k | } | 838 | 0 | return Status::OK(); | 839 | 118k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 8.65k | uint32_t result, size_t input_rows_count) const override { | 742 | 8.65k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 8.65k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 8.65k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 8.65k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 8.65k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 8.65k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 8.65k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 8.65k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 8.65k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 8.65k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 8.65k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 8.65k | }; | 782 | | | 783 | 8.65k | if (can_compare(left_type->get_primitive_type()) && | 784 | 8.65k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 5.69k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 5.69k | } | 792 | | | 793 | 8.65k | auto compare_type = left_type->get_primitive_type(); | 794 | 8.65k | switch (compare_type) { | 795 | 0 | case TYPE_BOOLEAN: | 796 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 82 | case TYPE_DATEV2: | 798 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 4 | case TYPE_DATETIMEV2: | 800 | 4 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_TIMESTAMPTZ: | 802 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 100 | case TYPE_TINYINT: | 804 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 10 | case TYPE_SMALLINT: | 806 | 10 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 2.24k | case TYPE_INT: | 808 | 2.24k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 3.14k | case TYPE_BIGINT: | 810 | 3.14k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 0 | case TYPE_LARGEINT: | 812 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 0 | case TYPE_IPV4: | 814 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 0 | case TYPE_IPV6: | 816 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 48 | case TYPE_FLOAT: | 818 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 60 | case TYPE_DOUBLE: | 820 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 0 | case TYPE_DECIMAL32: | 825 | 65 | case TYPE_DECIMAL64: | 826 | 389 | case TYPE_DECIMAL128I: | 827 | 419 | case TYPE_DECIMAL256: | 828 | 419 | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 419 | col_with_type_and_name_right); | 830 | 9 | case TYPE_CHAR: | 831 | 299 | case TYPE_VARCHAR: | 832 | 2.53k | case TYPE_STRING: | 833 | 2.53k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 8 | default: | 835 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 8 | col_with_type_and_name_right); | 837 | 8.65k | } | 838 | 0 | return Status::OK(); | 839 | 8.65k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 99.9k | uint32_t result, size_t input_rows_count) const override { | 742 | 99.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 99.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 99.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 99.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 99.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 99.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 99.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 99.9k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 99.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 99.9k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 99.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 99.9k | }; | 782 | | | 783 | 99.9k | if (can_compare(left_type->get_primitive_type()) && | 784 | 99.9k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 93.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 93.2k | } | 792 | | | 793 | 99.9k | auto compare_type = left_type->get_primitive_type(); | 794 | 99.9k | switch (compare_type) { | 795 | 0 | case TYPE_BOOLEAN: | 796 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 1.39k | case TYPE_DATEV2: | 798 | 1.39k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 102 | case TYPE_DATETIMEV2: | 800 | 102 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 1 | case TYPE_TIMESTAMPTZ: | 802 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 1.16k | case TYPE_TINYINT: | 804 | 1.16k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 1.80k | case TYPE_SMALLINT: | 806 | 1.80k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 72.1k | case TYPE_INT: | 808 | 72.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 13.9k | case TYPE_BIGINT: | 810 | 13.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 260 | case TYPE_LARGEINT: | 812 | 260 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 4 | case TYPE_IPV4: | 814 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 1 | case TYPE_IPV6: | 816 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 236 | case TYPE_FLOAT: | 818 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 2.23k | case TYPE_DOUBLE: | 820 | 2.23k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 46 | case TYPE_DECIMAL32: | 825 | 5.08k | case TYPE_DECIMAL64: | 826 | 6.48k | case TYPE_DECIMAL128I: | 827 | 6.48k | case TYPE_DECIMAL256: | 828 | 6.48k | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 6.48k | col_with_type_and_name_right); | 830 | 14 | case TYPE_CHAR: | 831 | 76 | case TYPE_VARCHAR: | 832 | 172 | case TYPE_STRING: | 833 | 172 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 9 | default: | 835 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 9 | col_with_type_and_name_right); | 837 | 99.9k | } | 838 | 0 | return Status::OK(); | 839 | 99.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 15.6k | uint32_t result, size_t input_rows_count) const override { | 742 | 15.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 15.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 15.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 15.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 15.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 15.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 15.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 15.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 15.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 15.6k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 15.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 15.6k | }; | 782 | | | 783 | 15.6k | if (can_compare(left_type->get_primitive_type()) && | 784 | 15.6k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 14.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 14.5k | } | 792 | | | 793 | 15.6k | auto compare_type = left_type->get_primitive_type(); | 794 | 15.6k | switch (compare_type) { | 795 | 136 | case TYPE_BOOLEAN: | 796 | 136 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 2.32k | case TYPE_DATEV2: | 798 | 2.32k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 863 | case TYPE_DATETIMEV2: | 800 | 863 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 1 | case TYPE_TIMESTAMPTZ: | 802 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 54 | case TYPE_TINYINT: | 804 | 54 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 95 | case TYPE_SMALLINT: | 806 | 95 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 10.0k | case TYPE_INT: | 808 | 10.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 603 | case TYPE_BIGINT: | 810 | 603 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 50 | case TYPE_LARGEINT: | 812 | 50 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 11 | case TYPE_IPV4: | 814 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 1 | case TYPE_IPV6: | 816 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 202 | case TYPE_FLOAT: | 818 | 202 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 148 | case TYPE_DOUBLE: | 820 | 148 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 9 | case TYPE_DECIMAL32: | 825 | 293 | case TYPE_DECIMAL64: | 826 | 402 | case TYPE_DECIMAL128I: | 827 | 423 | case TYPE_DECIMAL256: | 828 | 423 | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 423 | col_with_type_and_name_right); | 830 | 36 | case TYPE_CHAR: | 831 | 314 | case TYPE_VARCHAR: | 832 | 624 | case TYPE_STRING: | 833 | 624 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 55 | default: | 835 | 55 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 55 | col_with_type_and_name_right); | 837 | 15.6k | } | 838 | 0 | return Status::OK(); | 839 | 15.6k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 13.3k | uint32_t result, size_t input_rows_count) const override { | 742 | 13.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 13.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 13.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 13.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 13.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 13.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 13.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 13.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 13.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 13.3k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 13.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 13.3k | }; | 782 | | | 783 | 13.3k | if (can_compare(left_type->get_primitive_type()) && | 784 | 13.3k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 11.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 11.6k | } | 792 | | | 793 | 13.3k | auto compare_type = left_type->get_primitive_type(); | 794 | 13.3k | switch (compare_type) { | 795 | 97 | case TYPE_BOOLEAN: | 796 | 97 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 2.52k | case TYPE_DATEV2: | 798 | 2.52k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 711 | case TYPE_DATETIMEV2: | 800 | 711 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 2 | case TYPE_TIMESTAMPTZ: | 802 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 2.19k | case TYPE_TINYINT: | 804 | 2.19k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 286 | case TYPE_SMALLINT: | 806 | 286 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 3.22k | case TYPE_INT: | 808 | 3.22k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 1.74k | case TYPE_BIGINT: | 810 | 1.74k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 312 | case TYPE_LARGEINT: | 812 | 312 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 18 | case TYPE_IPV4: | 814 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 16 | case TYPE_IPV6: | 816 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 179 | case TYPE_FLOAT: | 818 | 179 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 388 | case TYPE_DOUBLE: | 820 | 388 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 215 | case TYPE_DECIMAL32: | 825 | 477 | case TYPE_DECIMAL64: | 826 | 952 | case TYPE_DECIMAL128I: | 827 | 953 | case TYPE_DECIMAL256: | 828 | 953 | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 953 | col_with_type_and_name_right); | 830 | 204 | case TYPE_CHAR: | 831 | 409 | case TYPE_VARCHAR: | 832 | 691 | case TYPE_STRING: | 833 | 691 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 11 | default: | 835 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 11 | col_with_type_and_name_right); | 837 | 13.3k | } | 838 | 0 | return Status::OK(); | 839 | 13.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 31.1k | uint32_t result, size_t input_rows_count) const override { | 742 | 31.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 31.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 31.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 31.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 31.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 31.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 31.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 31.1k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 31.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 31.1k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 31.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 31.1k | }; | 782 | | | 783 | 31.1k | if (can_compare(left_type->get_primitive_type()) && | 784 | 31.1k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 27.3k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 27.3k | } | 792 | | | 793 | 31.1k | auto compare_type = left_type->get_primitive_type(); | 794 | 31.1k | switch (compare_type) { | 795 | 164 | case TYPE_BOOLEAN: | 796 | 164 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 6.89k | case TYPE_DATEV2: | 798 | 6.89k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 387 | case TYPE_DATETIMEV2: | 800 | 387 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 1 | case TYPE_TIMESTAMPTZ: | 802 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 84 | case TYPE_TINYINT: | 804 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 126 | case TYPE_SMALLINT: | 806 | 126 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 18.2k | case TYPE_INT: | 808 | 18.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 1.03k | case TYPE_BIGINT: | 810 | 1.03k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 49 | case TYPE_LARGEINT: | 812 | 49 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 10 | case TYPE_IPV4: | 814 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 0 | case TYPE_IPV6: | 816 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 198 | case TYPE_FLOAT: | 818 | 198 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 141 | case TYPE_DOUBLE: | 820 | 141 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 4 | case TYPE_DECIMAL32: | 825 | 2.05k | case TYPE_DECIMAL64: | 826 | 2.98k | case TYPE_DECIMAL128I: | 827 | 3.00k | case TYPE_DECIMAL256: | 828 | 3.00k | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 3.00k | col_with_type_and_name_right); | 830 | 96 | case TYPE_CHAR: | 831 | 438 | case TYPE_VARCHAR: | 832 | 841 | case TYPE_STRING: | 833 | 841 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 40 | default: | 835 | 40 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 40 | col_with_type_and_name_right); | 837 | 31.1k | } | 838 | 0 | return Status::OK(); | 839 | 31.1k | } |
|
840 | | }; |
841 | | |
842 | | } // namespace doris |