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 | 10.2k | PaddedPODArray<UInt8>& c) { |
72 | 10.2k | size_t size = a.size(); |
73 | 10.2k | const A* __restrict a_pos = a.data(); |
74 | 10.2k | const B* __restrict b_pos = b.data(); |
75 | 10.2k | UInt8* __restrict c_pos = c.data(); |
76 | 10.2k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 3.72M | while (a_pos < a_end) { |
79 | 3.71M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 3.71M | ++a_pos; |
81 | 3.71M | ++b_pos; |
82 | 3.71M | ++c_pos; |
83 | 3.71M | } |
84 | 10.2k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 76 | PaddedPODArray<UInt8>& c) { | 72 | 76 | size_t size = a.size(); | 73 | 76 | const A* __restrict a_pos = a.data(); | 74 | 76 | const B* __restrict b_pos = b.data(); | 75 | 76 | UInt8* __restrict c_pos = c.data(); | 76 | 76 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 152 | while (a_pos < a_end) { | 79 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 76 | ++a_pos; | 81 | 76 | ++b_pos; | 82 | 76 | ++c_pos; | 83 | 76 | } | 84 | 76 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 607 | PaddedPODArray<UInt8>& c) { | 72 | 607 | size_t size = a.size(); | 73 | 607 | const A* __restrict a_pos = a.data(); | 74 | 607 | const B* __restrict b_pos = b.data(); | 75 | 607 | UInt8* __restrict c_pos = c.data(); | 76 | 607 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.22k | while (a_pos < a_end) { | 79 | 613 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 613 | ++a_pos; | 81 | 613 | ++b_pos; | 82 | 613 | ++c_pos; | 83 | 613 | } | 84 | 607 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 398 | PaddedPODArray<UInt8>& c) { | 72 | 398 | size_t size = a.size(); | 73 | 398 | const A* __restrict a_pos = a.data(); | 74 | 398 | const B* __restrict b_pos = b.data(); | 75 | 398 | UInt8* __restrict c_pos = c.data(); | 76 | 398 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 814 | while (a_pos < a_end) { | 79 | 416 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 416 | ++a_pos; | 81 | 416 | ++b_pos; | 82 | 416 | ++c_pos; | 83 | 416 | } | 84 | 398 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 13 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 177 | PaddedPODArray<UInt8>& c) { | 72 | 177 | size_t size = a.size(); | 73 | 177 | const A* __restrict a_pos = a.data(); | 74 | 177 | const B* __restrict b_pos = b.data(); | 75 | 177 | UInt8* __restrict c_pos = c.data(); | 76 | 177 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 496 | while (a_pos < a_end) { | 79 | 319 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 319 | ++a_pos; | 81 | 319 | ++b_pos; | 82 | 319 | ++c_pos; | 83 | 319 | } | 84 | 177 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_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 | 196 | while (a_pos < a_end) { | 79 | 98 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 98 | ++a_pos; | 81 | 98 | ++b_pos; | 82 | 98 | ++c_pos; | 83 | 98 | } | 84 | 98 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 991 | PaddedPODArray<UInt8>& c) { | 72 | 991 | size_t size = a.size(); | 73 | 991 | const A* __restrict a_pos = a.data(); | 74 | 991 | const B* __restrict b_pos = b.data(); | 75 | 991 | UInt8* __restrict c_pos = c.data(); | 76 | 991 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.26k | while (a_pos < a_end) { | 79 | 2.27k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.27k | ++a_pos; | 81 | 2.27k | ++b_pos; | 82 | 2.27k | ++c_pos; | 83 | 2.27k | } | 84 | 991 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 303 | PaddedPODArray<UInt8>& c) { | 72 | 303 | size_t size = a.size(); | 73 | 303 | const A* __restrict a_pos = a.data(); | 74 | 303 | const B* __restrict b_pos = b.data(); | 75 | 303 | UInt8* __restrict c_pos = c.data(); | 76 | 303 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.78k | while (a_pos < a_end) { | 79 | 1.48k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.48k | ++a_pos; | 81 | 1.48k | ++b_pos; | 82 | 1.48k | ++c_pos; | 83 | 1.48k | } | 84 | 303 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 88 | PaddedPODArray<UInt8>& c) { | 72 | 88 | size_t size = a.size(); | 73 | 88 | const A* __restrict a_pos = a.data(); | 74 | 88 | const B* __restrict b_pos = b.data(); | 75 | 88 | UInt8* __restrict c_pos = c.data(); | 76 | 88 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 176 | while (a_pos < a_end) { | 79 | 88 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 88 | ++a_pos; | 81 | 88 | ++b_pos; | 82 | 88 | ++c_pos; | 83 | 88 | } | 84 | 88 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 48 | while (a_pos < a_end) { | 79 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 24 | ++a_pos; | 81 | 24 | ++b_pos; | 82 | 24 | ++c_pos; | 83 | 24 | } | 84 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 118 | PaddedPODArray<UInt8>& c) { | 72 | 118 | size_t size = a.size(); | 73 | 118 | const A* __restrict a_pos = a.data(); | 74 | 118 | const B* __restrict b_pos = b.data(); | 75 | 118 | UInt8* __restrict c_pos = c.data(); | 76 | 118 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 255 | while (a_pos < a_end) { | 79 | 137 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 137 | ++a_pos; | 81 | 137 | ++b_pos; | 82 | 137 | ++c_pos; | 83 | 137 | } | 84 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 109 | PaddedPODArray<UInt8>& c) { | 72 | 109 | size_t size = a.size(); | 73 | 109 | const A* __restrict a_pos = a.data(); | 74 | 109 | const B* __restrict b_pos = b.data(); | 75 | 109 | UInt8* __restrict c_pos = c.data(); | 76 | 109 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 239 | while (a_pos < a_end) { | 79 | 130 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 130 | ++a_pos; | 81 | 130 | ++b_pos; | 82 | 130 | ++c_pos; | 83 | 130 | } | 84 | 109 | } |
_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 | 963 | PaddedPODArray<UInt8>& c) { | 72 | 963 | size_t size = a.size(); | 73 | 963 | const A* __restrict a_pos = a.data(); | 74 | 963 | const B* __restrict b_pos = b.data(); | 75 | 963 | UInt8* __restrict c_pos = c.data(); | 76 | 963 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 296k | while (a_pos < a_end) { | 79 | 295k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 295k | ++a_pos; | 81 | 295k | ++b_pos; | 82 | 295k | ++c_pos; | 83 | 295k | } | 84 | 963 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 326 | PaddedPODArray<UInt8>& c) { | 72 | 326 | size_t size = a.size(); | 73 | 326 | const A* __restrict a_pos = a.data(); | 74 | 326 | const B* __restrict b_pos = b.data(); | 75 | 326 | UInt8* __restrict c_pos = c.data(); | 76 | 326 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.20k | while (a_pos < a_end) { | 79 | 5.87k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.87k | ++a_pos; | 81 | 5.87k | ++b_pos; | 82 | 5.87k | ++c_pos; | 83 | 5.87k | } | 84 | 326 | } |
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.06k | PaddedPODArray<UInt8>& c) { | 72 | 1.06k | size_t size = a.size(); | 73 | 1.06k | const A* __restrict a_pos = a.data(); | 74 | 1.06k | const B* __restrict b_pos = b.data(); | 75 | 1.06k | UInt8* __restrict c_pos = c.data(); | 76 | 1.06k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.59M | while (a_pos < a_end) { | 79 | 1.58M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.58M | ++a_pos; | 81 | 1.58M | ++b_pos; | 82 | 1.58M | ++c_pos; | 83 | 1.58M | } | 84 | 1.06k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 331 | while (a_pos < a_end) { | 79 | 252 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 252 | ++a_pos; | 81 | 252 | ++b_pos; | 82 | 252 | ++c_pos; | 83 | 252 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 65 | PaddedPODArray<UInt8>& c) { | 72 | 65 | size_t size = a.size(); | 73 | 65 | const A* __restrict a_pos = a.data(); | 74 | 65 | const B* __restrict b_pos = b.data(); | 75 | 65 | UInt8* __restrict c_pos = c.data(); | 76 | 65 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 581 | while (a_pos < a_end) { | 79 | 516 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 516 | ++a_pos; | 81 | 516 | ++b_pos; | 82 | 516 | ++c_pos; | 83 | 516 | } | 84 | 65 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 9 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 27 | PaddedPODArray<UInt8>& c) { | 72 | 27 | size_t size = a.size(); | 73 | 27 | const A* __restrict a_pos = a.data(); | 74 | 27 | const B* __restrict b_pos = b.data(); | 75 | 27 | UInt8* __restrict c_pos = c.data(); | 76 | 27 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 97 | 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 | 27 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 62 | while (a_pos < a_end) { | 79 | 31 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 31 | ++a_pos; | 81 | 31 | ++b_pos; | 82 | 31 | ++c_pos; | 83 | 31 | } | 84 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 66 | PaddedPODArray<UInt8>& c) { | 72 | 66 | size_t size = a.size(); | 73 | 66 | const A* __restrict a_pos = a.data(); | 74 | 66 | const B* __restrict b_pos = b.data(); | 75 | 66 | UInt8* __restrict c_pos = c.data(); | 76 | 66 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 190 | while (a_pos < a_end) { | 79 | 124 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 124 | ++a_pos; | 81 | 124 | ++b_pos; | 82 | 124 | ++c_pos; | 83 | 124 | } | 84 | 66 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 51 | PaddedPODArray<UInt8>& c) { | 72 | 51 | size_t size = a.size(); | 73 | 51 | const A* __restrict a_pos = a.data(); | 74 | 51 | const B* __restrict b_pos = b.data(); | 75 | 51 | UInt8* __restrict c_pos = c.data(); | 76 | 51 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 113 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 51 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_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 | 86 | while (a_pos < a_end) { | 79 | 66 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 66 | ++a_pos; | 81 | 66 | ++b_pos; | 82 | 66 | ++c_pos; | 83 | 66 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 67 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 101 | PaddedPODArray<UInt8>& c) { | 72 | 101 | size_t size = a.size(); | 73 | 101 | const A* __restrict a_pos = a.data(); | 74 | 101 | const B* __restrict b_pos = b.data(); | 75 | 101 | UInt8* __restrict c_pos = c.data(); | 76 | 101 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.94k | PaddedPODArray<UInt8>& c) { | 72 | 1.94k | size_t size = a.size(); | 73 | 1.94k | const A* __restrict a_pos = a.data(); | 74 | 1.94k | const B* __restrict b_pos = b.data(); | 75 | 1.94k | UInt8* __restrict c_pos = c.data(); | 76 | 1.94k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.80M | while (a_pos < a_end) { | 79 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.80M | ++a_pos; | 81 | 1.80M | ++b_pos; | 82 | 1.80M | ++c_pos; | 83 | 1.80M | } | 84 | 1.94k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 258 | PaddedPODArray<UInt8>& c) { | 72 | 258 | size_t size = a.size(); | 73 | 258 | const A* __restrict a_pos = a.data(); | 74 | 258 | const B* __restrict b_pos = b.data(); | 75 | 258 | UInt8* __restrict c_pos = c.data(); | 76 | 258 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 864 | while (a_pos < a_end) { | 79 | 606 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 606 | ++a_pos; | 81 | 606 | ++b_pos; | 82 | 606 | ++c_pos; | 83 | 606 | } | 84 | 258 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_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 | 452 | while (a_pos < a_end) { | 79 | 314 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 314 | ++a_pos; | 81 | 314 | ++b_pos; | 82 | 314 | ++c_pos; | 83 | 314 | } | 84 | 138 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 165 | PaddedPODArray<UInt8>& c) { | 72 | 165 | size_t size = a.size(); | 73 | 165 | const A* __restrict a_pos = a.data(); | 74 | 165 | const B* __restrict b_pos = b.data(); | 75 | 165 | UInt8* __restrict c_pos = c.data(); | 76 | 165 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.01k | while (a_pos < a_end) { | 79 | 852 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 852 | ++a_pos; | 81 | 852 | ++b_pos; | 82 | 852 | ++c_pos; | 83 | 852 | } | 84 | 165 | } |
_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.21k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.21k | ++a_pos; | 81 | 5.21k | ++b_pos; | 82 | 5.21k | ++c_pos; | 83 | 5.21k | } | 84 | 226 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 146 | PaddedPODArray<UInt8>& c) { | 72 | 146 | size_t size = a.size(); | 73 | 146 | const A* __restrict a_pos = a.data(); | 74 | 146 | const B* __restrict b_pos = b.data(); | 75 | 146 | UInt8* __restrict c_pos = c.data(); | 76 | 146 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 466 | while (a_pos < a_end) { | 79 | 320 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 320 | ++a_pos; | 81 | 320 | ++b_pos; | 82 | 320 | ++c_pos; | 83 | 320 | } | 84 | 146 | } |
_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 | 154 | PaddedPODArray<UInt8>& c) { | 72 | 154 | size_t size = a.size(); | 73 | 154 | const A* __restrict a_pos = a.data(); | 74 | 154 | const B* __restrict b_pos = b.data(); | 75 | 154 | UInt8* __restrict c_pos = c.data(); | 76 | 154 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 501 | while (a_pos < a_end) { | 79 | 347 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 347 | ++a_pos; | 81 | 347 | ++b_pos; | 82 | 347 | ++c_pos; | 83 | 347 | } | 84 | 154 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 143 | PaddedPODArray<UInt8>& c) { | 72 | 143 | size_t size = a.size(); | 73 | 143 | const A* __restrict a_pos = a.data(); | 74 | 143 | const B* __restrict b_pos = b.data(); | 75 | 143 | UInt8* __restrict c_pos = c.data(); | 76 | 143 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 488 | while (a_pos < a_end) { | 79 | 345 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 345 | ++a_pos; | 81 | 345 | ++b_pos; | 82 | 345 | ++c_pos; | 83 | 345 | } | 84 | 143 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 12 | PaddedPODArray<UInt8>& c) { | 72 | 12 | size_t size = a.size(); | 73 | 12 | const A* __restrict a_pos = a.data(); | 74 | 12 | const B* __restrict b_pos = b.data(); | 75 | 12 | UInt8* __restrict c_pos = c.data(); | 76 | 12 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 24 | while (a_pos < a_end) { | 79 | 12 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 12 | ++a_pos; | 81 | 12 | ++b_pos; | 82 | 12 | ++c_pos; | 83 | 12 | } | 84 | 12 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 429 | PaddedPODArray<UInt8>& c) { | 72 | 429 | size_t size = a.size(); | 73 | 429 | const A* __restrict a_pos = a.data(); | 74 | 429 | const B* __restrict b_pos = b.data(); | 75 | 429 | UInt8* __restrict c_pos = c.data(); | 76 | 429 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.60k | while (a_pos < a_end) { | 79 | 6.17k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.17k | ++a_pos; | 81 | 6.17k | ++b_pos; | 82 | 6.17k | ++c_pos; | 83 | 6.17k | } | 84 | 429 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 93 | while (a_pos < a_end) { | 79 | 53 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 53 | ++a_pos; | 81 | 53 | ++b_pos; | 82 | 53 | ++c_pos; | 83 | 53 | } | 84 | 40 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 81 | PaddedPODArray<UInt8>& c) { | 72 | 81 | size_t size = a.size(); | 73 | 81 | const A* __restrict a_pos = a.data(); | 74 | 81 | const B* __restrict b_pos = b.data(); | 75 | 81 | UInt8* __restrict c_pos = c.data(); | 76 | 81 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 213 | while (a_pos < a_end) { | 79 | 132 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 132 | ++a_pos; | 81 | 132 | ++b_pos; | 82 | 132 | ++c_pos; | 83 | 132 | } | 84 | 81 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 139 | while (a_pos < a_end) { | 79 | 79 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 79 | ++a_pos; | 81 | 79 | ++b_pos; | 82 | 79 | ++c_pos; | 83 | 79 | } | 84 | 60 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 304k | PaddedPODArray<UInt8>& c) { |
88 | 304k | size_t size = a.size(); |
89 | 304k | const A* __restrict a_pos = a.data(); |
90 | 304k | UInt8* __restrict c_pos = c.data(); |
91 | 304k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 185M | while (a_pos < a_end) { |
94 | 185M | *c_pos = Op::apply(*a_pos, b); |
95 | 185M | ++a_pos; |
96 | 185M | ++c_pos; |
97 | 185M | } |
98 | 304k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.54k | PaddedPODArray<UInt8>& c) { | 88 | 1.54k | size_t size = a.size(); | 89 | 1.54k | const A* __restrict a_pos = a.data(); | 90 | 1.54k | UInt8* __restrict c_pos = c.data(); | 91 | 1.54k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.04k | while (a_pos < a_end) { | 94 | 3.49k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.49k | ++a_pos; | 96 | 3.49k | ++c_pos; | 97 | 3.49k | } | 98 | 1.54k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 618 | PaddedPODArray<UInt8>& c) { | 88 | 618 | size_t size = a.size(); | 89 | 618 | const A* __restrict a_pos = a.data(); | 90 | 618 | UInt8* __restrict c_pos = c.data(); | 91 | 618 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 202k | while (a_pos < a_end) { | 94 | 202k | *c_pos = Op::apply(*a_pos, b); | 95 | 202k | ++a_pos; | 96 | 202k | ++c_pos; | 97 | 202k | } | 98 | 618 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 320 | PaddedPODArray<UInt8>& c) { | 88 | 320 | size_t size = a.size(); | 89 | 320 | const A* __restrict a_pos = a.data(); | 90 | 320 | UInt8* __restrict c_pos = c.data(); | 91 | 320 | 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 | 320 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.78k | PaddedPODArray<UInt8>& c) { | 88 | 6.78k | size_t size = a.size(); | 89 | 6.78k | const A* __restrict a_pos = a.data(); | 90 | 6.78k | UInt8* __restrict c_pos = c.data(); | 91 | 6.78k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.15M | while (a_pos < a_end) { | 94 | 9.14M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.14M | ++a_pos; | 96 | 9.14M | ++c_pos; | 97 | 9.14M | } | 98 | 6.78k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.52k | PaddedPODArray<UInt8>& c) { | 88 | 1.52k | size_t size = a.size(); | 89 | 1.52k | const A* __restrict a_pos = a.data(); | 90 | 1.52k | UInt8* __restrict c_pos = c.data(); | 91 | 1.52k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 158k | *c_pos = Op::apply(*a_pos, b); | 95 | 158k | ++a_pos; | 96 | 158k | ++c_pos; | 97 | 158k | } | 98 | 1.52k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 65.7k | PaddedPODArray<UInt8>& c) { | 88 | 65.7k | size_t size = a.size(); | 89 | 65.7k | const A* __restrict a_pos = a.data(); | 90 | 65.7k | UInt8* __restrict c_pos = c.data(); | 91 | 65.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.86M | while (a_pos < a_end) { | 94 | 1.79M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.79M | ++a_pos; | 96 | 1.79M | ++c_pos; | 97 | 1.79M | } | 98 | 65.7k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28.9k | PaddedPODArray<UInt8>& c) { | 88 | 28.9k | size_t size = a.size(); | 89 | 28.9k | const A* __restrict a_pos = a.data(); | 90 | 28.9k | UInt8* __restrict c_pos = c.data(); | 91 | 28.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.86M | while (a_pos < a_end) { | 94 | 3.83M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.83M | ++a_pos; | 96 | 3.83M | ++c_pos; | 97 | 3.83M | } | 98 | 28.9k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 73 | PaddedPODArray<UInt8>& c) { | 88 | 73 | size_t size = a.size(); | 89 | 73 | const A* __restrict a_pos = a.data(); | 90 | 73 | UInt8* __restrict c_pos = c.data(); | 91 | 73 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 101k | *c_pos = Op::apply(*a_pos, b); | 95 | 101k | ++a_pos; | 96 | 101k | ++c_pos; | 97 | 101k | } | 98 | 73 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 16 | PaddedPODArray<UInt8>& c) { | 88 | 16 | size_t size = a.size(); | 89 | 16 | const A* __restrict a_pos = a.data(); | 90 | 16 | UInt8* __restrict c_pos = c.data(); | 91 | 16 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130 | 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 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 26 | while (a_pos < a_end) { | 94 | 22 | *c_pos = Op::apply(*a_pos, b); | 95 | 22 | ++a_pos; | 96 | 22 | ++c_pos; | 97 | 22 | } | 98 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 653 | PaddedPODArray<UInt8>& c) { | 88 | 653 | size_t size = a.size(); | 89 | 653 | const A* __restrict a_pos = a.data(); | 90 | 653 | UInt8* __restrict c_pos = c.data(); | 91 | 653 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 712k | while (a_pos < a_end) { | 94 | 711k | *c_pos = Op::apply(*a_pos, b); | 95 | 711k | ++a_pos; | 96 | 711k | ++c_pos; | 97 | 711k | } | 98 | 653 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.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 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 802 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.68k | PaddedPODArray<UInt8>& c) { | 88 | 1.68k | size_t size = a.size(); | 89 | 1.68k | const A* __restrict a_pos = a.data(); | 90 | 1.68k | UInt8* __restrict c_pos = c.data(); | 91 | 1.68k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 646k | while (a_pos < a_end) { | 94 | 644k | *c_pos = Op::apply(*a_pos, b); | 95 | 644k | ++a_pos; | 96 | 644k | ++c_pos; | 97 | 644k | } | 98 | 1.68k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.56k | PaddedPODArray<UInt8>& c) { | 88 | 2.56k | size_t size = a.size(); | 89 | 2.56k | const A* __restrict a_pos = a.data(); | 90 | 2.56k | UInt8* __restrict c_pos = c.data(); | 91 | 2.56k | 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.56k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70 | while (a_pos < a_end) { | 94 | 42 | *c_pos = Op::apply(*a_pos, b); | 95 | 42 | ++a_pos; | 96 | 42 | ++c_pos; | 97 | 42 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282 | while (a_pos < a_end) { | 94 | 242 | *c_pos = Op::apply(*a_pos, b); | 95 | 242 | ++a_pos; | 96 | 242 | ++c_pos; | 97 | 242 | } | 98 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 161 | PaddedPODArray<UInt8>& c) { | 88 | 161 | size_t size = a.size(); | 89 | 161 | const A* __restrict a_pos = a.data(); | 90 | 161 | UInt8* __restrict c_pos = c.data(); | 91 | 161 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.68k | while (a_pos < a_end) { | 94 | 4.52k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.52k | ++a_pos; | 96 | 4.52k | ++c_pos; | 97 | 4.52k | } | 98 | 161 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 514 | PaddedPODArray<UInt8>& c) { | 88 | 514 | size_t size = a.size(); | 89 | 514 | const A* __restrict a_pos = a.data(); | 90 | 514 | UInt8* __restrict c_pos = c.data(); | 91 | 514 | 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 | 514 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 210 | while (a_pos < a_end) { | 94 | 116 | *c_pos = Op::apply(*a_pos, b); | 95 | 116 | ++a_pos; | 96 | 116 | ++c_pos; | 97 | 116 | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 373 | PaddedPODArray<UInt8>& c) { | 88 | 373 | size_t size = a.size(); | 89 | 373 | const A* __restrict a_pos = a.data(); | 90 | 373 | UInt8* __restrict c_pos = c.data(); | 91 | 373 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 373 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 87 | 1 | PaddedPODArray<UInt8>& c) { | 88 | 1 | size_t size = a.size(); | 89 | 1 | const A* __restrict a_pos = a.data(); | 90 | 1 | UInt8* __restrict c_pos = c.data(); | 91 | 1 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 7 | *c_pos = Op::apply(*a_pos, b); | 95 | 7 | ++a_pos; | 96 | 7 | ++c_pos; | 97 | 7 | } | 98 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.29k | PaddedPODArray<UInt8>& c) { | 88 | 1.29k | size_t size = a.size(); | 89 | 1.29k | const A* __restrict a_pos = a.data(); | 90 | 1.29k | UInt8* __restrict c_pos = c.data(); | 91 | 1.29k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.10k | while (a_pos < a_end) { | 94 | 5.80k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.80k | ++a_pos; | 96 | 5.80k | ++c_pos; | 97 | 5.80k | } | 98 | 1.29k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.00k | PaddedPODArray<UInt8>& c) { | 88 | 2.00k | size_t size = a.size(); | 89 | 2.00k | const A* __restrict a_pos = a.data(); | 90 | 2.00k | UInt8* __restrict c_pos = c.data(); | 91 | 2.00k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.76k | while (a_pos < a_end) { | 94 | 5.76k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.76k | ++a_pos; | 96 | 5.76k | ++c_pos; | 97 | 5.76k | } | 98 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.43k | PaddedPODArray<UInt8>& c) { | 88 | 1.43k | size_t size = a.size(); | 89 | 1.43k | const A* __restrict a_pos = a.data(); | 90 | 1.43k | UInt8* __restrict c_pos = c.data(); | 91 | 1.43k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.40k | while (a_pos < a_end) { | 94 | 4.97k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.97k | ++a_pos; | 96 | 4.97k | ++c_pos; | 97 | 4.97k | } | 98 | 1.43k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 490 | PaddedPODArray<UInt8>& c) { | 88 | 490 | size_t size = a.size(); | 89 | 490 | const A* __restrict a_pos = a.data(); | 90 | 490 | UInt8* __restrict c_pos = c.data(); | 91 | 490 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.8k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 490 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 19.9k | PaddedPODArray<UInt8>& c) { | 88 | 19.9k | size_t size = a.size(); | 89 | 19.9k | const A* __restrict a_pos = a.data(); | 90 | 19.9k | UInt8* __restrict c_pos = c.data(); | 91 | 19.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.65M | while (a_pos < a_end) { | 94 | 6.63M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.63M | ++a_pos; | 96 | 6.63M | ++c_pos; | 97 | 6.63M | } | 98 | 19.9k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.67k | PaddedPODArray<UInt8>& c) { | 88 | 6.67k | size_t size = a.size(); | 89 | 6.67k | const A* __restrict a_pos = a.data(); | 90 | 6.67k | UInt8* __restrict c_pos = c.data(); | 91 | 6.67k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.37M | while (a_pos < a_end) { | 94 | 5.36M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.36M | ++a_pos; | 96 | 5.36M | ++c_pos; | 97 | 5.36M | } | 98 | 6.67k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.4k | PaddedPODArray<UInt8>& c) { | 88 | 13.4k | size_t size = a.size(); | 89 | 13.4k | const A* __restrict a_pos = a.data(); | 90 | 13.4k | UInt8* __restrict c_pos = c.data(); | 91 | 13.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 173k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 13.4k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.93k | PaddedPODArray<UInt8>& c) { | 88 | 1.93k | size_t size = a.size(); | 89 | 1.93k | const A* __restrict a_pos = a.data(); | 90 | 1.93k | UInt8* __restrict c_pos = c.data(); | 91 | 1.93k | 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.93k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 273 | PaddedPODArray<UInt8>& c) { | 88 | 273 | size_t size = a.size(); | 89 | 273 | const A* __restrict a_pos = a.data(); | 90 | 273 | UInt8* __restrict c_pos = c.data(); | 91 | 273 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.91k | while (a_pos < a_end) { | 94 | 1.64k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.64k | ++a_pos; | 96 | 1.64k | ++c_pos; | 97 | 1.64k | } | 98 | 273 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 101 | PaddedPODArray<UInt8>& c) { | 88 | 101 | size_t size = a.size(); | 89 | 101 | const A* __restrict a_pos = a.data(); | 90 | 101 | UInt8* __restrict c_pos = c.data(); | 91 | 101 | 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 | 101 | } |
_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 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 64 | while (a_pos < a_end) { | 94 | 38 | *c_pos = Op::apply(*a_pos, b); | 95 | 38 | ++a_pos; | 96 | 38 | ++c_pos; | 97 | 38 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.36k | PaddedPODArray<UInt8>& c) { | 88 | 2.36k | size_t size = a.size(); | 89 | 2.36k | const A* __restrict a_pos = a.data(); | 90 | 2.36k | UInt8* __restrict c_pos = c.data(); | 91 | 2.36k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 346k | while (a_pos < a_end) { | 94 | 343k | *c_pos = Op::apply(*a_pos, b); | 95 | 343k | ++a_pos; | 96 | 343k | ++c_pos; | 97 | 343k | } | 98 | 2.36k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 243 | PaddedPODArray<UInt8>& c) { | 88 | 243 | size_t size = a.size(); | 89 | 243 | const A* __restrict a_pos = a.data(); | 90 | 243 | UInt8* __restrict c_pos = c.data(); | 91 | 243 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 316k | 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 | 243 | } |
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 | 169 | PaddedPODArray<UInt8>& c) { | 88 | 169 | size_t size = a.size(); | 89 | 169 | const A* __restrict a_pos = a.data(); | 90 | 169 | UInt8* __restrict c_pos = c.data(); | 91 | 169 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110k | while (a_pos < a_end) { | 94 | 110k | *c_pos = Op::apply(*a_pos, b); | 95 | 110k | ++a_pos; | 96 | 110k | ++c_pos; | 97 | 110k | } | 98 | 169 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 180 | PaddedPODArray<UInt8>& c) { | 88 | 180 | size_t size = a.size(); | 89 | 180 | const A* __restrict a_pos = a.data(); | 90 | 180 | UInt8* __restrict c_pos = c.data(); | 91 | 180 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 145k | while (a_pos < a_end) { | 94 | 145k | *c_pos = Op::apply(*a_pos, b); | 95 | 145k | ++a_pos; | 96 | 145k | ++c_pos; | 97 | 145k | } | 98 | 180 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.29k | PaddedPODArray<UInt8>& c) { | 88 | 2.29k | size_t size = a.size(); | 89 | 2.29k | const A* __restrict a_pos = a.data(); | 90 | 2.29k | UInt8* __restrict c_pos = c.data(); | 91 | 2.29k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.68M | while (a_pos < a_end) { | 94 | 4.68M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.68M | ++a_pos; | 96 | 4.68M | ++c_pos; | 97 | 4.68M | } | 98 | 2.29k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 28.3k | PaddedPODArray<UInt8>& c) { | 88 | 28.3k | size_t size = a.size(); | 89 | 28.3k | const A* __restrict a_pos = a.data(); | 90 | 28.3k | UInt8* __restrict c_pos = c.data(); | 91 | 28.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 75.4M | while (a_pos < a_end) { | 94 | 75.4M | *c_pos = Op::apply(*a_pos, b); | 95 | 75.4M | ++a_pos; | 96 | 75.4M | ++c_pos; | 97 | 75.4M | } | 98 | 28.3k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 722 | PaddedPODArray<UInt8>& c) { | 88 | 722 | size_t size = a.size(); | 89 | 722 | const A* __restrict a_pos = a.data(); | 90 | 722 | UInt8* __restrict c_pos = c.data(); | 91 | 722 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8k | while (a_pos < a_end) { | 94 | 30.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.1k | ++a_pos; | 96 | 30.1k | ++c_pos; | 97 | 30.1k | } | 98 | 722 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 364 | PaddedPODArray<UInt8>& c) { | 88 | 364 | size_t size = a.size(); | 89 | 364 | const A* __restrict a_pos = a.data(); | 90 | 364 | UInt8* __restrict c_pos = c.data(); | 91 | 364 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.6k | while (a_pos < a_end) { | 94 | 15.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.2k | ++a_pos; | 96 | 15.2k | ++c_pos; | 97 | 15.2k | } | 98 | 364 | } |
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 | 72 | PaddedPODArray<UInt8>& c) { | 88 | 72 | size_t size = a.size(); | 89 | 72 | const A* __restrict a_pos = a.data(); | 90 | 72 | UInt8* __restrict c_pos = c.data(); | 91 | 72 | 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 | 72 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 104 | PaddedPODArray<UInt8>& c) { | 88 | 104 | size_t size = a.size(); | 89 | 104 | const A* __restrict a_pos = a.data(); | 90 | 104 | UInt8* __restrict c_pos = c.data(); | 91 | 104 | 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 | 104 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 67 | PaddedPODArray<UInt8>& c) { | 88 | 67 | size_t size = a.size(); | 89 | 67 | const A* __restrict a_pos = a.data(); | 90 | 67 | UInt8* __restrict c_pos = c.data(); | 91 | 67 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110k | while (a_pos < a_end) { | 94 | 110k | *c_pos = Op::apply(*a_pos, b); | 95 | 110k | ++a_pos; | 96 | 110k | ++c_pos; | 97 | 110k | } | 98 | 67 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 109 | PaddedPODArray<UInt8>& c) { | 88 | 109 | size_t size = a.size(); | 89 | 109 | const A* __restrict a_pos = a.data(); | 90 | 109 | UInt8* __restrict c_pos = c.data(); | 91 | 109 | 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 | 109 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 49.4k | PaddedPODArray<UInt8>& c) { | 88 | 49.4k | size_t size = a.size(); | 89 | 49.4k | const A* __restrict a_pos = a.data(); | 90 | 49.4k | UInt8* __restrict c_pos = c.data(); | 91 | 49.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 34.4M | while (a_pos < a_end) { | 94 | 34.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 34.3M | ++a_pos; | 96 | 34.3M | ++c_pos; | 97 | 34.3M | } | 98 | 49.4k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 57.6k | PaddedPODArray<UInt8>& c) { | 88 | 57.6k | size_t size = a.size(); | 89 | 57.6k | const A* __restrict a_pos = a.data(); | 90 | 57.6k | UInt8* __restrict c_pos = c.data(); | 91 | 57.6k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 38.0M | while (a_pos < a_end) { | 94 | 37.9M | *c_pos = Op::apply(*a_pos, b); | 95 | 37.9M | ++a_pos; | 96 | 37.9M | ++c_pos; | 97 | 37.9M | } | 98 | 57.6k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 562 | PaddedPODArray<UInt8>& c) { | 88 | 562 | size_t size = a.size(); | 89 | 562 | const A* __restrict a_pos = a.data(); | 90 | 562 | UInt8* __restrict c_pos = c.data(); | 91 | 562 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 38.1k | while (a_pos < a_end) { | 94 | 37.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 37.5k | ++a_pos; | 96 | 37.5k | ++c_pos; | 97 | 37.5k | } | 98 | 562 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.16k | PaddedPODArray<UInt8>& c) { | 88 | 1.16k | size_t size = a.size(); | 89 | 1.16k | const A* __restrict a_pos = a.data(); | 90 | 1.16k | UInt8* __restrict c_pos = c.data(); | 91 | 1.16k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 44.6k | while (a_pos < a_end) { | 94 | 43.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 43.4k | ++a_pos; | 96 | 43.4k | ++c_pos; | 97 | 43.4k | } | 98 | 1.16k | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 140k | while (a_pos < a_end) { | 94 | 140k | *c_pos = Op::apply(*a_pos, b); | 95 | 140k | ++a_pos; | 96 | 140k | ++c_pos; | 97 | 140k | } | 98 | 54 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 60 | PaddedPODArray<UInt8>& c) { | 88 | 60 | size_t size = a.size(); | 89 | 60 | const A* __restrict a_pos = a.data(); | 90 | 60 | UInt8* __restrict c_pos = c.data(); | 91 | 60 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 140k | while (a_pos < a_end) { | 94 | 140k | *c_pos = Op::apply(*a_pos, b); | 95 | 140k | ++a_pos; | 96 | 140k | ++c_pos; | 97 | 140k | } | 98 | 60 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 170 | PaddedPODArray<UInt8>& c) { | 88 | 170 | size_t size = a.size(); | 89 | 170 | const A* __restrict a_pos = a.data(); | 90 | 170 | UInt8* __restrict c_pos = c.data(); | 91 | 170 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 342 | while (a_pos < a_end) { | 94 | 172 | *c_pos = Op::apply(*a_pos, b); | 95 | 172 | ++a_pos; | 96 | 172 | ++c_pos; | 97 | 172 | } | 98 | 170 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 166 | PaddedPODArray<UInt8>& c) { | 88 | 166 | size_t size = a.size(); | 89 | 166 | const A* __restrict a_pos = a.data(); | 90 | 166 | UInt8* __restrict c_pos = c.data(); | 91 | 166 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 332 | while (a_pos < a_end) { | 94 | 166 | *c_pos = Op::apply(*a_pos, b); | 95 | 166 | ++a_pos; | 96 | 166 | ++c_pos; | 97 | 166 | } | 98 | 166 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 130 | PaddedPODArray<UInt8>& c) { | 88 | 130 | size_t size = a.size(); | 89 | 130 | const A* __restrict a_pos = a.data(); | 90 | 130 | UInt8* __restrict c_pos = c.data(); | 91 | 130 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 356k | *c_pos = Op::apply(*a_pos, b); | 95 | 356k | ++a_pos; | 96 | 356k | ++c_pos; | 97 | 356k | } | 98 | 130 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_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 | 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 | 118 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 34.9k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 34.9k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 34.9k | } 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 | 288 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 288 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 288 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 27.3k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 27.3k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 27.3k | } |
_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 | 634 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 634 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 634 | } |
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 | 222 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 222 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 222 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.69k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.69k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.69k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 515 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 515 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 515 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 45 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 45 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 45 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 193 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 193 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 193 | } |
_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 | 72 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 72 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 72 | } |
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 | 63 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 63 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 63 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
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 | 367k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 367k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 367k | } |
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 | 42 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 42 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 207k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 207k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 207k | } | 119 | 42 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 52 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 52 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 160k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 160k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 160k | } | 119 | 52 | } |
|
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 | 691 | PaddedPODArray<UInt8>& c) { |
133 | 691 | size_t size = a_offsets.size(); |
134 | 691 | ColumnString::Offset prev_a_offset = 0; |
135 | 691 | ColumnString::Offset prev_b_offset = 0; |
136 | 691 | const auto* a_pos = a_data.data(); |
137 | 691 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 2.10k | for (size_t i = 0; i < size; ++i) { |
140 | 1.41k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.41k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.41k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.41k | 0); |
144 | | |
145 | 1.41k | prev_a_offset = a_offsets[i]; |
146 | 1.41k | prev_b_offset = b_offsets[i]; |
147 | 1.41k | } |
148 | 691 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 94 | PaddedPODArray<UInt8>& c) { | 133 | 94 | size_t size = a_offsets.size(); | 134 | 94 | ColumnString::Offset prev_a_offset = 0; | 135 | 94 | ColumnString::Offset prev_b_offset = 0; | 136 | 94 | const auto* a_pos = a_data.data(); | 137 | 94 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 346 | for (size_t i = 0; i < size; ++i) { | 140 | 252 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 252 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 252 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 252 | 0); | 144 | | | 145 | 252 | prev_a_offset = a_offsets[i]; | 146 | 252 | prev_b_offset = b_offsets[i]; | 147 | 252 | } | 148 | 94 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 471 | PaddedPODArray<UInt8>& c) { | 133 | 471 | size_t size = a_offsets.size(); | 134 | 471 | ColumnString::Offset prev_a_offset = 0; | 135 | 471 | ColumnString::Offset prev_b_offset = 0; | 136 | 471 | const auto* a_pos = a_data.data(); | 137 | 471 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.46k | for (size_t i = 0; i < size; ++i) { | 140 | 993 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 993 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 993 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 993 | 0); | 144 | | | 145 | 993 | prev_a_offset = a_offsets[i]; | 146 | 993 | prev_b_offset = b_offsets[i]; | 147 | 993 | } | 148 | 471 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 124 | PaddedPODArray<UInt8>& c) { | 133 | 124 | size_t size = a_offsets.size(); | 134 | 124 | ColumnString::Offset prev_a_offset = 0; | 135 | 124 | ColumnString::Offset prev_b_offset = 0; | 136 | 124 | const auto* a_pos = a_data.data(); | 137 | 124 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 248 | for (size_t i = 0; i < size; ++i) { | 140 | 124 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 124 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 124 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 124 | 0); | 144 | | | 145 | 124 | prev_a_offset = a_offsets[i]; | 146 | 124 | prev_b_offset = b_offsets[i]; | 147 | 124 | } | 148 | 124 | } |
|
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 1.74k | PaddedPODArray<UInt8>& c) { |
155 | 1.74k | size_t size = a_offsets.size(); |
156 | 1.74k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.74k | const auto* a_pos = a_data.data(); |
158 | 1.74k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.53M | for (size_t i = 0; i < size; ++i) { |
161 | 1.53M | c[i] = Op::apply( |
162 | 1.53M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.53M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.53M | 0); |
165 | | |
166 | 1.53M | prev_a_offset = a_offsets[i]; |
167 | 1.53M | } |
168 | 1.74k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 177 | PaddedPODArray<UInt8>& c) { | 155 | 177 | size_t size = a_offsets.size(); | 156 | 177 | ColumnString::Offset prev_a_offset = 0; | 157 | 177 | const auto* a_pos = a_data.data(); | 158 | 177 | 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 | 177 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 243 | PaddedPODArray<UInt8>& c) { | 155 | 243 | size_t size = a_offsets.size(); | 156 | 243 | ColumnString::Offset prev_a_offset = 0; | 157 | 243 | const auto* a_pos = a_data.data(); | 158 | 243 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.2k | for (size_t i = 0; i < size; ++i) { | 161 | 73.0k | c[i] = Op::apply( | 162 | 73.0k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 73.0k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 73.0k | 0); | 165 | | | 166 | 73.0k | prev_a_offset = a_offsets[i]; | 167 | 73.0k | } | 168 | 243 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 589 | PaddedPODArray<UInt8>& c) { | 155 | 589 | size_t size = a_offsets.size(); | 156 | 589 | ColumnString::Offset prev_a_offset = 0; | 157 | 589 | const auto* a_pos = a_data.data(); | 158 | 589 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 555k | for (size_t i = 0; i < size; ++i) { | 161 | 554k | c[i] = Op::apply( | 162 | 554k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 554k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 554k | 0); | 165 | | | 166 | 554k | prev_a_offset = a_offsets[i]; | 167 | 554k | } | 168 | 589 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 738 | PaddedPODArray<UInt8>& c) { | 155 | 738 | size_t size = a_offsets.size(); | 156 | 738 | ColumnString::Offset prev_a_offset = 0; | 157 | 738 | const auto* a_pos = a_data.data(); | 158 | 738 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 580k | for (size_t i = 0; i < size; ++i) { | 161 | 579k | c[i] = Op::apply( | 162 | 579k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 579k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 579k | 0); | 165 | | | 166 | 579k | prev_a_offset = a_offsets[i]; | 167 | 579k | } | 168 | 738 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 1.52k | PaddedPODArray<UInt8>& c) { |
187 | 1.52k | size_t size = a_offsets.size(); |
188 | 1.52k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.52k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.52k | const auto* a_pos = a_data.data(); |
191 | 1.52k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 3.50k | for (size_t i = 0; i < size; ++i) { |
194 | 1.98k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.98k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.98k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.98k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.98k | prev_a_offset = a_offsets[i]; |
201 | 1.98k | prev_b_offset = b_offsets[i]; |
202 | 1.98k | } |
203 | 1.52k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.47k | PaddedPODArray<UInt8>& c) { | 187 | 1.47k | size_t size = a_offsets.size(); | 188 | 1.47k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.47k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.47k | const auto* a_pos = a_data.data(); | 191 | 1.47k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 3.39k | for (size_t i = 0; i < size; ++i) { | 194 | 1.92k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.92k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.92k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.92k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.92k | prev_a_offset = a_offsets[i]; | 201 | 1.92k | prev_b_offset = b_offsets[i]; | 202 | 1.92k | } | 203 | 1.47k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 52 | PaddedPODArray<UInt8>& c) { | 187 | 52 | size_t size = a_offsets.size(); | 188 | 52 | ColumnString::Offset prev_a_offset = 0; | 189 | 52 | ColumnString::Offset prev_b_offset = 0; | 190 | 52 | const auto* a_pos = a_data.data(); | 191 | 52 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 113 | for (size_t i = 0; i < size; ++i) { | 194 | 61 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 61 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 61 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 61 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 61 | prev_a_offset = a_offsets[i]; | 201 | 61 | prev_b_offset = b_offsets[i]; | 202 | 61 | } | 203 | 52 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 24.5k | PaddedPODArray<UInt8>& c) { |
210 | 24.5k | size_t size = a_offsets.size(); |
211 | 24.5k | 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.5k | } else { |
221 | 24.5k | ColumnString::Offset prev_a_offset = 0; |
222 | 24.5k | const auto* a_pos = a_data.data(); |
223 | 24.5k | 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.5k | } |
231 | 24.5k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 22.0k | PaddedPODArray<UInt8>& c) { | 210 | 22.0k | size_t size = a_offsets.size(); | 211 | 22.0k | 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.0k | } else { | 221 | 22.0k | ColumnString::Offset prev_a_offset = 0; | 222 | 22.0k | const auto* a_pos = a_data.data(); | 223 | 22.0k | const auto* b_pos = b_data.data(); | 224 | 8.49M | for (size_t i = 0; i < size; ++i) { | 225 | 8.47M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.47M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.47M | b_pos, b_size); | 228 | 8.47M | prev_a_offset = a_offsets[i]; | 229 | 8.47M | } | 230 | 22.0k | } | 231 | 22.0k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.42k | PaddedPODArray<UInt8>& c) { | 210 | 2.42k | size_t size = a_offsets.size(); | 211 | 2.42k | 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.41k | } else { | 221 | 2.41k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.41k | const auto* a_pos = a_data.data(); | 223 | 2.41k | const auto* b_pos = b_data.data(); | 224 | 3.80M | for (size_t i = 0; i < size; ++i) { | 225 | 3.80M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.80M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.80M | b_pos, b_size); | 228 | 3.80M | prev_a_offset = a_offsets[i]; | 229 | 3.80M | } | 230 | 2.41k | } | 231 | 2.42k | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 36.9k | Op op) { |
296 | 36.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 36.9k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 36.9k | slot_literal->slot_type); |
300 | 36.9k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 36.9k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 36.9k | if (zone_map_ptr == nullptr) { |
305 | 930 | return unsupported_zonemap_filter(ctx); |
306 | 930 | } |
307 | 36.0k | const auto& zone_map = *zone_map_ptr; |
308 | 36.0k | if (!zone_map.has_not_null) { |
309 | 213 | return ZoneMapFilterResult::kNoMatch; |
310 | 213 | } |
311 | 35.8k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 107 | return unsupported_zonemap_filter(ctx); |
313 | 107 | } |
314 | | |
315 | 35.7k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 35.7k | const auto& literal = slot_literal->literal; |
317 | 35.7k | switch (effective_op) { |
318 | 8.96k | case Op::EQ: |
319 | 8.96k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 8.96k | ? ZoneMapFilterResult::kNoMatch |
321 | 8.96k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 2.96k | case Op::LT: |
327 | 2.96k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 2.96k | : ZoneMapFilterResult::kMayMatch; |
329 | 10.1k | case Op::LE: |
330 | 10.1k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 10.1k | : 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.41k | case Op::GE: |
336 | 7.41k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 7.41k | : ZoneMapFilterResult::kMayMatch; |
338 | 35.7k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 35.7k | } |
343 | | |
344 | 165k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 165k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 165k | if (!slot_literal.has_value()) { |
347 | 41.7k | return false; |
348 | 41.7k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 123k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 123k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 123k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 123k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 9 | return false; |
364 | 9 | } |
365 | | |
366 | 123k | return true; |
367 | 123k | } |
368 | | |
369 | 65.8k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 65.8k | return op == Op::EQ && can_evaluate(arguments); |
371 | 65.8k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 40.9k | const VExprSPtrs& arguments, Op op) { |
375 | 40.9k | DORIS_CHECK(op == Op::EQ); |
376 | 40.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 40.9k | DORIS_CHECK(slot_literal.has_value()); |
378 | 40.9k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 40.9k | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 14 | const VExprSPtrs& arguments, Op op) { |
383 | 14 | DORIS_CHECK(op == Op::EQ); |
384 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 14 | DORIS_CHECK(slot_literal.has_value()); |
386 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 14 | } |
388 | | |
389 | 253k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 253k | if (name == NameEquals::name) { |
391 | 146k | return Op::EQ; |
392 | 146k | } |
393 | 106k | if (name == NameNotEquals::name) { |
394 | 7.14k | return Op::NE; |
395 | 7.14k | } |
396 | 99.8k | if (name == NameLess::name) { |
397 | 14.1k | return Op::LT; |
398 | 14.1k | } |
399 | 85.6k | if (name == NameLessOrEquals::name) { |
400 | 32.9k | return Op::LE; |
401 | 32.9k | } |
402 | 52.6k | if (name == NameGreater::name) { |
403 | 25.6k | return Op::GT; |
404 | 25.6k | } |
405 | 27.3k | if (name == NameGreaterOrEquals::name) { |
406 | 27.3k | return Op::GE; |
407 | 27.3k | } |
408 | 18.4E | return std::nullopt; |
409 | 27.0k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 499k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 447k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 2.72k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 9.01k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 13.6k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 4.46k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 22.6k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 500k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 447k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 2.73k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 9.01k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 13.7k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 4.46k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 22.6k | FunctionComparison() = default; |
|
419 | | |
420 | 1.21M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 1.18M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 657 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 3.07k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 13.0k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.74k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 9.06k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 314k | const ColumnPtr& col_right_ptr) const { |
426 | 314k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 314k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 314k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 314k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 314k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 314k | if (!left_is_const && !right_is_const) { |
435 | 10.2k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 10.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 10.2k | vec_res.resize(col_left->get_data().size()); |
439 | 10.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 10.2k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 10.2k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 10.2k | vec_res); |
443 | | |
444 | 10.2k | block.replace_by_position(result, std::move(col_res)); |
445 | 304k | } else if (!left_is_const && right_is_const) { |
446 | 269k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 269k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 269k | vec_res.resize(col_left->size()); |
450 | 269k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 269k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 269k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 269k | col_right->get_element(0), vec_res); |
454 | | |
455 | 269k | block.replace_by_position(result, std::move(col_res)); |
456 | 269k | } else if (left_is_const && !right_is_const) { |
457 | 34.8k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 34.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 34.8k | vec_res.resize(col_right->size()); |
461 | 34.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 34.8k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 34.8k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 34.8k | col_right->get_data(), vec_res); |
465 | | |
466 | 34.8k | block.replace_by_position(result, std::move(col_res)); |
467 | 34.8k | } |
468 | 314k | return Status::OK(); |
469 | 314k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.62k | const ColumnPtr& col_right_ptr) const { | 426 | 1.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.62k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.62k | if (!left_is_const && !right_is_const) { | 435 | 76 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 76 | vec_res.resize(col_left->get_data().size()); | 439 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 76 | vec_res); | 443 | | | 444 | 76 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.54k | } else if (!left_is_const && right_is_const) { | 446 | 1.54k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.54k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.54k | vec_res.resize(col_left->size()); | 450 | 1.54k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.54k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.54k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.54k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.54k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.54k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.62k | return Status::OK(); | 469 | 1.62k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.22k | const ColumnPtr& col_right_ptr) const { | 426 | 1.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.22k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.22k | if (!left_is_const && !right_is_const) { | 435 | 607 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 607 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 607 | vec_res.resize(col_left->get_data().size()); | 439 | 607 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 607 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 607 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 607 | vec_res); | 443 | | | 444 | 607 | block.replace_by_position(result, std::move(col_res)); | 445 | 618 | } else if (!left_is_const && right_is_const) { | 446 | 618 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 618 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 618 | vec_res.resize(col_left->size()); | 450 | 618 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 618 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 618 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 618 | col_right->get_element(0), vec_res); | 454 | | | 455 | 618 | block.replace_by_position(result, std::move(col_res)); | 456 | 618 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.22k | return Status::OK(); | 469 | 1.22k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 718 | const ColumnPtr& col_right_ptr) const { | 426 | 718 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 718 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 718 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 718 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 718 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 718 | if (!left_is_const && !right_is_const) { | 435 | 398 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 398 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 398 | vec_res.resize(col_left->get_data().size()); | 439 | 398 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 398 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 398 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 398 | vec_res); | 443 | | | 444 | 398 | block.replace_by_position(result, std::move(col_res)); | 445 | 398 | } else if (!left_is_const && right_is_const) { | 446 | 320 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 320 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 320 | vec_res.resize(col_left->size()); | 450 | 320 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 320 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 320 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 320 | col_right->get_element(0), vec_res); | 454 | | | 455 | 320 | block.replace_by_position(result, std::move(col_res)); | 456 | 320 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 718 | return Status::OK(); | 469 | 718 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 6.96k | const ColumnPtr& col_right_ptr) const { | 426 | 6.96k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 6.96k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 6.96k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 6.96k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 6.96k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 6.96k | if (!left_is_const && !right_is_const) { | 435 | 177 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 177 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 177 | vec_res.resize(col_left->get_data().size()); | 439 | 177 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 177 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 177 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 177 | vec_res); | 443 | | | 444 | 177 | block.replace_by_position(result, std::move(col_res)); | 445 | 6.78k | } else if (!left_is_const && right_is_const) { | 446 | 6.49k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6.49k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6.49k | vec_res.resize(col_left->size()); | 450 | 6.49k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6.49k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6.49k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6.49k | col_right->get_element(0), vec_res); | 454 | | | 455 | 6.49k | block.replace_by_position(result, std::move(col_res)); | 456 | 6.49k | } else if (left_is_const && !right_is_const) { | 457 | 288 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 288 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 288 | vec_res.resize(col_right->size()); | 461 | 288 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 288 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 288 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 288 | col_right->get_data(), vec_res); | 465 | | | 466 | 288 | block.replace_by_position(result, std::move(col_res)); | 467 | 288 | } | 468 | 6.96k | return Status::OK(); | 469 | 6.96k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.62k | const ColumnPtr& col_right_ptr) const { | 426 | 1.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.62k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.62k | if (!left_is_const && !right_is_const) { | 435 | 98 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 98 | vec_res.resize(col_left->get_data().size()); | 439 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 98 | vec_res); | 443 | | | 444 | 98 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.52k | } else if (!left_is_const && right_is_const) { | 446 | 1.48k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.48k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.48k | vec_res.resize(col_left->size()); | 450 | 1.48k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.48k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.48k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.48k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.48k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.48k | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 1.62k | return Status::OK(); | 469 | 1.62k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 66.7k | const ColumnPtr& col_right_ptr) const { | 426 | 66.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 66.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 66.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 66.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 66.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 66.7k | if (!left_is_const && !right_is_const) { | 435 | 991 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 991 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 991 | vec_res.resize(col_left->get_data().size()); | 439 | 991 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 991 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 991 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 991 | vec_res); | 443 | | | 444 | 991 | block.replace_by_position(result, std::move(col_res)); | 445 | 65.7k | } else if (!left_is_const && right_is_const) { | 446 | 38.4k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 38.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 38.4k | vec_res.resize(col_left->size()); | 450 | 38.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 38.4k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 38.4k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 38.4k | col_right->get_element(0), vec_res); | 454 | | | 455 | 38.4k | block.replace_by_position(result, std::move(col_res)); | 456 | 38.4k | } else if (left_is_const && !right_is_const) { | 457 | 27.3k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 27.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 27.3k | vec_res.resize(col_right->size()); | 461 | 27.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 27.3k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 27.3k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 27.3k | col_right->get_data(), vec_res); | 465 | | | 466 | 27.3k | block.replace_by_position(result, std::move(col_res)); | 467 | 27.3k | } | 468 | 66.7k | return Status::OK(); | 469 | 66.7k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 29.2k | const ColumnPtr& col_right_ptr) const { | 426 | 29.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 29.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 29.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 29.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 29.2k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 29.2k | if (!left_is_const && !right_is_const) { | 435 | 303 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 303 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 303 | vec_res.resize(col_left->get_data().size()); | 439 | 303 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 303 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 303 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 303 | vec_res); | 443 | | | 444 | 303 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.9k | } else if (!left_is_const && right_is_const) { | 446 | 27.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 27.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 27.7k | vec_res.resize(col_left->size()); | 450 | 27.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 27.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 27.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 27.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 27.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 27.7k | } else if (left_is_const && !right_is_const) { | 457 | 1.16k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1.16k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1.16k | vec_res.resize(col_right->size()); | 461 | 1.16k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1.16k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1.16k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1.16k | col_right->get_data(), vec_res); | 465 | | | 466 | 1.16k | block.replace_by_position(result, std::move(col_res)); | 467 | 1.16k | } | 468 | 29.2k | return Status::OK(); | 469 | 29.2k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 161 | const ColumnPtr& col_right_ptr) const { | 426 | 161 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 161 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 161 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 161 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 161 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 161 | if (!left_is_const && !right_is_const) { | 435 | 88 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 88 | vec_res.resize(col_left->get_data().size()); | 439 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 88 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 88 | vec_res); | 443 | | | 444 | 88 | block.replace_by_position(result, std::move(col_res)); | 445 | 88 | } else if (!left_is_const && right_is_const) { | 446 | 57 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 57 | vec_res.resize(col_left->size()); | 450 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 57 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 57 | col_right->get_element(0), vec_res); | 454 | | | 455 | 57 | block.replace_by_position(result, std::move(col_res)); | 456 | 57 | } else if (left_is_const && !right_is_const) { | 457 | 16 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 16 | vec_res.resize(col_right->size()); | 461 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 16 | col_right->get_data(), vec_res); | 465 | | | 466 | 16 | block.replace_by_position(result, std::move(col_res)); | 467 | 16 | } | 468 | 161 | return Status::OK(); | 469 | 161 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 32 | const ColumnPtr& col_right_ptr) const { | 426 | 32 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 32 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 32 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 32 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 32 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 32 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 16 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 16 | vec_res.resize(col_left->size()); | 450 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 16 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 16 | col_right->get_element(0), vec_res); | 454 | | | 455 | 16 | block.replace_by_position(result, std::move(col_res)); | 456 | 16 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 32 | return Status::OK(); | 469 | 32 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 30 | const ColumnPtr& col_right_ptr) const { | 426 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 30 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 30 | if (!left_is_const && !right_is_const) { | 435 | 24 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 24 | vec_res.resize(col_left->get_data().size()); | 439 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 24 | vec_res); | 443 | | | 444 | 24 | block.replace_by_position(result, std::move(col_res)); | 445 | 24 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 30 | return Status::OK(); | 469 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 122 | const ColumnPtr& col_right_ptr) const { | 426 | 122 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 122 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 122 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 122 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 122 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 122 | if (!left_is_const && !right_is_const) { | 435 | 118 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 118 | vec_res.resize(col_left->get_data().size()); | 439 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 118 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 118 | vec_res); | 443 | | | 444 | 118 | block.replace_by_position(result, std::move(col_res)); | 445 | 118 | } else if (!left_is_const && right_is_const) { | 446 | 4 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4 | vec_res.resize(col_left->size()); | 450 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4 | col_right->get_element(0), vec_res); | 454 | | | 455 | 4 | block.replace_by_position(result, std::move(col_res)); | 456 | 4 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 122 | return Status::OK(); | 469 | 122 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 762 | const ColumnPtr& col_right_ptr) const { | 426 | 762 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 762 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 762 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 762 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 762 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 762 | if (!left_is_const && !right_is_const) { | 435 | 109 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 109 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 109 | vec_res.resize(col_left->get_data().size()); | 439 | 109 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 109 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 109 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 109 | vec_res); | 443 | | | 444 | 109 | block.replace_by_position(result, std::move(col_res)); | 445 | 653 | } else if (!left_is_const && right_is_const) { | 446 | 653 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 653 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 653 | vec_res.resize(col_left->size()); | 450 | 653 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 653 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 653 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 653 | col_right->get_element(0), vec_res); | 454 | | | 455 | 653 | block.replace_by_position(result, std::move(col_res)); | 456 | 653 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 762 | return Status::OK(); | 469 | 762 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 81 | const ColumnPtr& col_right_ptr) const { | 426 | 81 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 81 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 81 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 81 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 81 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 81 | if (!left_is_const && !right_is_const) { | 435 | 46 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 46 | vec_res.resize(col_left->get_data().size()); | 439 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 46 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 46 | vec_res); | 443 | | | 444 | 46 | block.replace_by_position(result, std::move(col_res)); | 445 | 46 | } else if (!left_is_const && right_is_const) { | 446 | 35 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 35 | vec_res.resize(col_left->size()); | 450 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 35 | col_right->get_element(0), vec_res); | 454 | | | 455 | 35 | block.replace_by_position(result, std::move(col_res)); | 456 | 35 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 81 | return Status::OK(); | 469 | 81 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 26 | const ColumnPtr& col_right_ptr) const { | 426 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 26 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 26 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 26 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 26 | return Status::OK(); | 469 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.64k | const ColumnPtr& col_right_ptr) const { | 426 | 2.64k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.64k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.64k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.64k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.64k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.64k | if (!left_is_const && !right_is_const) { | 435 | 963 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 963 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 963 | vec_res.resize(col_left->get_data().size()); | 439 | 963 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 963 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 963 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 963 | vec_res); | 443 | | | 444 | 963 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.68k | } else if (!left_is_const && right_is_const) { | 446 | 1.68k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.68k | vec_res.resize(col_left->size()); | 450 | 1.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.68k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.68k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.68k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.68k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.68k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.64k | return Status::OK(); | 469 | 2.64k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.89k | const ColumnPtr& col_right_ptr) const { | 426 | 2.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.89k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.89k | if (!left_is_const && !right_is_const) { | 435 | 326 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 326 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 326 | vec_res.resize(col_left->get_data().size()); | 439 | 326 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 326 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 326 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 326 | vec_res); | 443 | | | 444 | 326 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.56k | } else if (!left_is_const && right_is_const) { | 446 | 1.93k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.93k | vec_res.resize(col_left->size()); | 450 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.93k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.93k | } else if (left_is_const && !right_is_const) { | 457 | 634 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 634 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 634 | vec_res.resize(col_right->size()); | 461 | 634 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 634 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 634 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 634 | col_right->get_data(), vec_res); | 465 | | | 466 | 634 | block.replace_by_position(result, std::move(col_res)); | 467 | 634 | } | 468 | 2.89k | return Status::OK(); | 469 | 2.89k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.22k | const ColumnPtr& col_right_ptr) const { | 426 | 1.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.22k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.22k | if (!left_is_const && !right_is_const) { | 435 | 1.06k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.06k | vec_res.resize(col_left->get_data().size()); | 439 | 1.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.06k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.06k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.06k | vec_res); | 443 | | | 444 | 1.06k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.06k | } else if (!left_is_const && right_is_const) { | 446 | 161 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 161 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 161 | vec_res.resize(col_left->size()); | 450 | 161 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 161 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 161 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 161 | col_right->get_element(0), vec_res); | 454 | | | 455 | 161 | block.replace_by_position(result, std::move(col_res)); | 456 | 161 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.22k | return Status::OK(); | 469 | 1.22k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 94 | const ColumnPtr& col_right_ptr) const { | 426 | 94 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 94 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 94 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 94 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 94 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 94 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 94 | } else if (!left_is_const && right_is_const) { | 446 | 94 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 94 | vec_res.resize(col_left->size()); | 450 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 94 | col_right->get_element(0), vec_res); | 454 | | | 455 | 94 | block.replace_by_position(result, std::move(col_res)); | 456 | 94 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 94 | return Status::OK(); | 469 | 94 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.31k | const ColumnPtr& col_right_ptr) const { | 426 | 1.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.31k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.31k | if (!left_is_const && !right_is_const) { | 435 | 38 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 38 | vec_res.resize(col_left->get_data().size()); | 439 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 38 | vec_res); | 443 | | | 444 | 38 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.27k | } else if (!left_is_const && right_is_const) { | 446 | 1.05k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.05k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.05k | vec_res.resize(col_left->size()); | 450 | 1.05k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.05k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.05k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.05k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.05k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.05k | } else if (left_is_const && !right_is_const) { | 457 | 222 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 222 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 222 | vec_res.resize(col_right->size()); | 461 | 222 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 222 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 222 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 222 | col_right->get_data(), vec_res); | 465 | | | 466 | 222 | block.replace_by_position(result, std::move(col_res)); | 467 | 222 | } | 468 | 1.31k | return Status::OK(); | 469 | 1.31k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.77k | const ColumnPtr& col_right_ptr) const { | 426 | 1.77k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.77k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.77k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.77k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.77k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.77k | if (!left_is_const && !right_is_const) { | 435 | 112 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 112 | vec_res.resize(col_left->get_data().size()); | 439 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 112 | vec_res); | 443 | | | 444 | 112 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.65k | } else if (!left_is_const && right_is_const) { | 446 | 1.43k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.43k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.43k | vec_res.resize(col_left->size()); | 450 | 1.43k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.43k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.43k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.43k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.43k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.43k | } else if (left_is_const && !right_is_const) { | 457 | 228 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 228 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 228 | vec_res.resize(col_right->size()); | 461 | 228 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 228 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 228 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 228 | col_right->get_data(), vec_res); | 465 | | | 466 | 228 | block.replace_by_position(result, std::move(col_res)); | 467 | 228 | } | 468 | 1.77k | return Status::OK(); | 469 | 1.77k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 23.5k | const ColumnPtr& col_right_ptr) const { | 426 | 23.5k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 23.5k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 23.5k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 23.5k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 23.5k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 23.5k | if (!left_is_const && !right_is_const) { | 435 | 79 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 79 | vec_res.resize(col_left->get_data().size()); | 439 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 79 | vec_res); | 443 | | | 444 | 79 | block.replace_by_position(result, std::move(col_res)); | 445 | 23.4k | } else if (!left_is_const && right_is_const) { | 446 | 19.8k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 19.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 19.8k | vec_res.resize(col_left->size()); | 450 | 19.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 19.8k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 19.8k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 19.8k | col_right->get_element(0), vec_res); | 454 | | | 455 | 19.8k | block.replace_by_position(result, std::move(col_res)); | 456 | 19.8k | } else if (left_is_const && !right_is_const) { | 457 | 3.69k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 3.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 3.69k | vec_res.resize(col_right->size()); | 461 | 3.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 3.69k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 3.69k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 3.69k | col_right->get_data(), vec_res); | 465 | | | 466 | 3.69k | block.replace_by_position(result, std::move(col_res)); | 467 | 3.69k | } | 468 | 23.5k | return Status::OK(); | 469 | 23.5k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.9k | const ColumnPtr& col_right_ptr) const { | 426 | 13.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.9k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.9k | if (!left_is_const && !right_is_const) { | 435 | 65 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 65 | vec_res.resize(col_left->get_data().size()); | 439 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 65 | vec_res); | 443 | | | 444 | 65 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.8k | } else if (!left_is_const && right_is_const) { | 446 | 13.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13.3k | vec_res.resize(col_left->size()); | 450 | 13.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 13.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 13.3k | } else if (left_is_const && !right_is_const) { | 457 | 515 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 515 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 515 | vec_res.resize(col_right->size()); | 461 | 515 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 515 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 515 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 515 | col_right->get_data(), vec_res); | 465 | | | 466 | 515 | block.replace_by_position(result, std::move(col_res)); | 467 | 515 | } | 468 | 13.9k | return Status::OK(); | 469 | 13.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 249 | const ColumnPtr& col_right_ptr) const { | 426 | 249 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 249 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 249 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 249 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 249 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 249 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 246 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 45 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 45 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 45 | vec_res.resize(col_right->size()); | 461 | 45 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 45 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 45 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 45 | col_right->get_data(), vec_res); | 465 | | | 466 | 45 | block.replace_by_position(result, std::move(col_res)); | 467 | 45 | } | 468 | 249 | return Status::OK(); | 469 | 249 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 236 | const ColumnPtr& col_right_ptr) const { | 426 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 236 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 236 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 216 | } else if (!left_is_const && right_is_const) { | 446 | 216 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 216 | vec_res.resize(col_left->size()); | 450 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 216 | col_right->get_element(0), vec_res); | 454 | | | 455 | 216 | block.replace_by_position(result, std::move(col_res)); | 456 | 216 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 236 | return Status::OK(); | 469 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.39k | const ColumnPtr& col_right_ptr) const { | 426 | 2.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.39k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.39k | if (!left_is_const && !right_is_const) { | 435 | 27 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 27 | vec_res.resize(col_left->get_data().size()); | 439 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 27 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 27 | vec_res); | 443 | | | 444 | 27 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.36k | } else if (!left_is_const && right_is_const) { | 446 | 2.36k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.36k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.36k | vec_res.resize(col_left->size()); | 450 | 2.36k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.36k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.36k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.36k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.36k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.36k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.39k | return Status::OK(); | 469 | 2.39k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 181 | const ColumnPtr& col_right_ptr) const { | 426 | 181 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 181 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 181 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 181 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 181 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 181 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 169 | } else if (!left_is_const && right_is_const) { | 446 | 169 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 169 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 169 | vec_res.resize(col_left->size()); | 450 | 169 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 169 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 169 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 169 | col_right->get_element(0), vec_res); | 454 | | | 455 | 169 | block.replace_by_position(result, std::move(col_res)); | 456 | 169 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 181 | return Status::OK(); | 469 | 181 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.32k | const ColumnPtr& col_right_ptr) const { | 426 | 2.32k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.32k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.32k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.32k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.32k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.32k | if (!left_is_const && !right_is_const) { | 435 | 31 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 31 | vec_res.resize(col_left->get_data().size()); | 439 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 31 | vec_res); | 443 | | | 444 | 31 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.29k | } else if (!left_is_const && right_is_const) { | 446 | 2.29k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.29k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.29k | vec_res.resize(col_left->size()); | 450 | 2.29k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.29k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.29k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.29k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.29k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.29k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 2.32k | return Status::OK(); | 469 | 2.32k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 788 | const ColumnPtr& col_right_ptr) const { | 426 | 788 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 788 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 788 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 788 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 788 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 788 | if (!left_is_const && !right_is_const) { | 435 | 66 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 66 | vec_res.resize(col_left->get_data().size()); | 439 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 66 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 66 | vec_res); | 443 | | | 444 | 66 | block.replace_by_position(result, std::move(col_res)); | 445 | 722 | } else if (!left_is_const && right_is_const) { | 446 | 722 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 722 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 722 | vec_res.resize(col_left->size()); | 450 | 722 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 722 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 722 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 722 | col_right->get_element(0), vec_res); | 454 | | | 455 | 722 | block.replace_by_position(result, std::move(col_res)); | 456 | 722 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 788 | return Status::OK(); | 469 | 788 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 72 | const ColumnPtr& col_right_ptr) const { | 426 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 72 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 72 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 72 | } else if (!left_is_const && right_is_const) { | 446 | 72 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 72 | vec_res.resize(col_left->size()); | 450 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 72 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 72 | col_right->get_element(0), vec_res); | 454 | | | 455 | 72 | block.replace_by_position(result, std::move(col_res)); | 456 | 72 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 72 | return Status::OK(); | 469 | 72 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 67 | const ColumnPtr& col_right_ptr) const { | 426 | 67 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 67 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 67 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 67 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 67 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 67 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 67 | } else if (!left_is_const && right_is_const) { | 446 | 67 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 67 | vec_res.resize(col_left->size()); | 450 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 67 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 67 | col_right->get_element(0), vec_res); | 454 | | | 455 | 67 | block.replace_by_position(result, std::move(col_res)); | 456 | 67 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 67 | return Status::OK(); | 469 | 67 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 49.4k | const ColumnPtr& col_right_ptr) const { | 426 | 49.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 49.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 49.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 49.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 49.4k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 49.4k | if (!left_is_const && !right_is_const) { | 435 | 51 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 51 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 51 | vec_res.resize(col_left->get_data().size()); | 439 | 51 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 51 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 51 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 51 | vec_res); | 443 | | | 444 | 51 | block.replace_by_position(result, std::move(col_res)); | 445 | 49.4k | } else if (!left_is_const && right_is_const) { | 446 | 49.4k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 49.4k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 49.4k | vec_res.resize(col_left->size()); | 450 | 49.4k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 49.4k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 49.4k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 49.4k | col_right->get_element(0), vec_res); | 454 | | | 455 | 49.4k | block.replace_by_position(result, std::move(col_res)); | 456 | 49.4k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 49.4k | return Status::OK(); | 469 | 49.4k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 534 | const ColumnPtr& col_right_ptr) const { | 426 | 534 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 534 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 534 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 534 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 534 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 534 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 514 | } else if (!left_is_const && right_is_const) { | 446 | 514 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 514 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 514 | vec_res.resize(col_left->size()); | 450 | 514 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 514 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 514 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 514 | col_right->get_element(0), vec_res); | 454 | | | 455 | 514 | block.replace_by_position(result, std::move(col_res)); | 456 | 514 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 534 | return Status::OK(); | 469 | 534 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 54 | const ColumnPtr& col_right_ptr) const { | 426 | 54 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 54 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 54 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 54 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 54 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 54 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 54 | } else if (!left_is_const && right_is_const) { | 446 | 54 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 54 | vec_res.resize(col_left->size()); | 450 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 54 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 54 | col_right->get_element(0), vec_res); | 454 | | | 455 | 54 | block.replace_by_position(result, std::move(col_res)); | 456 | 54 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 54 | return Status::OK(); | 469 | 54 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 230 | const ColumnPtr& col_right_ptr) const { | 426 | 230 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 230 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 230 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 230 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 230 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 230 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 170 | } else if (!left_is_const && right_is_const) { | 446 | 170 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 170 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 170 | vec_res.resize(col_left->size()); | 450 | 170 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 170 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 170 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 170 | col_right->get_element(0), vec_res); | 454 | | | 455 | 170 | block.replace_by_position(result, std::move(col_res)); | 456 | 170 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 230 | return Status::OK(); | 469 | 230 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 153 | const ColumnPtr& col_right_ptr) const { | 426 | 153 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 153 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 153 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 153 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 153 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 153 | if (!left_is_const && !right_is_const) { | 435 | 24 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 24 | vec_res.resize(col_left->get_data().size()); | 439 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 24 | vec_res); | 443 | | | 444 | 24 | block.replace_by_position(result, std::move(col_res)); | 445 | 129 | } else if (!left_is_const && right_is_const) { | 446 | 129 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 129 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 129 | vec_res.resize(col_left->size()); | 450 | 129 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 129 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 129 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 129 | col_right->get_element(0), vec_res); | 454 | | | 455 | 129 | block.replace_by_position(result, std::move(col_res)); | 456 | 129 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 153 | return Status::OK(); | 469 | 153 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 101 | const ColumnPtr& col_right_ptr) const { | 426 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 101 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 101 | if (!left_is_const && !right_is_const) { | 435 | 101 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 101 | vec_res.resize(col_left->get_data().size()); | 439 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 101 | vec_res); | 443 | | | 444 | 101 | block.replace_by_position(result, std::move(col_res)); | 445 | 101 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 101 | return Status::OK(); | 469 | 101 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.46k | const ColumnPtr& col_right_ptr) const { | 426 | 2.46k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.46k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.46k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.46k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.46k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.46k | if (!left_is_const && !right_is_const) { | 435 | 1.94k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.94k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.94k | vec_res.resize(col_left->get_data().size()); | 439 | 1.94k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.94k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.94k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.94k | vec_res); | 443 | | | 444 | 1.94k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.94k | } else if (!left_is_const && right_is_const) { | 446 | 514 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 514 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 514 | vec_res.resize(col_left->size()); | 450 | 514 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 514 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 514 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 514 | col_right->get_element(0), vec_res); | 454 | | | 455 | 514 | block.replace_by_position(result, std::move(col_res)); | 456 | 514 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.46k | return Status::OK(); | 469 | 2.46k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 631 | const ColumnPtr& col_right_ptr) const { | 426 | 631 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 631 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 631 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 631 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 631 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 631 | if (!left_is_const && !right_is_const) { | 435 | 258 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 258 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 258 | vec_res.resize(col_left->get_data().size()); | 439 | 258 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 258 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 258 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 258 | vec_res); | 443 | | | 444 | 258 | block.replace_by_position(result, std::move(col_res)); | 445 | 373 | } else if (!left_is_const && right_is_const) { | 446 | 373 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 373 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 373 | vec_res.resize(col_left->size()); | 450 | 373 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 373 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 373 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 373 | col_right->get_element(0), vec_res); | 454 | | | 455 | 373 | block.replace_by_position(result, std::move(col_res)); | 456 | 373 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 631 | return Status::OK(); | 469 | 631 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.18k | const ColumnPtr& col_right_ptr) const { | 426 | 2.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.18k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.18k | if (!left_is_const && !right_is_const) { | 435 | 158 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 158 | vec_res.resize(col_left->get_data().size()); | 439 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 158 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 158 | vec_res); | 443 | | | 444 | 158 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.02k | } else if (!left_is_const && right_is_const) { | 446 | 1.78k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.78k | vec_res.resize(col_left->size()); | 450 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.78k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.78k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.78k | } else if (left_is_const && !right_is_const) { | 457 | 240 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 240 | vec_res.resize(col_right->size()); | 461 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 240 | col_right->get_data(), vec_res); | 465 | | | 466 | 240 | block.replace_by_position(result, std::move(col_res)); | 467 | 240 | } | 468 | 2.18k | return Status::OK(); | 469 | 2.18k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 400 | const ColumnPtr& col_right_ptr) const { | 426 | 400 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 400 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 400 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 400 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 400 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 400 | if (!left_is_const && !right_is_const) { | 435 | 138 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 138 | vec_res.resize(col_left->get_data().size()); | 439 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 138 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 138 | vec_res); | 443 | | | 444 | 138 | block.replace_by_position(result, std::move(col_res)); | 445 | 262 | } else if (!left_is_const && right_is_const) { | 446 | 262 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 262 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 262 | vec_res.resize(col_left->size()); | 450 | 262 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 262 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 262 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 262 | col_right->get_element(0), vec_res); | 454 | | | 455 | 262 | block.replace_by_position(result, std::move(col_res)); | 456 | 262 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 400 | return Status::OK(); | 469 | 400 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3.33k | const ColumnPtr& col_right_ptr) const { | 426 | 3.33k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3.33k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3.33k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3.33k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3.33k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3.33k | if (!left_is_const && !right_is_const) { | 435 | 165 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 165 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 165 | vec_res.resize(col_left->get_data().size()); | 439 | 165 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 165 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 165 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 165 | vec_res); | 443 | | | 444 | 165 | block.replace_by_position(result, std::move(col_res)); | 445 | 3.17k | } else if (!left_is_const && right_is_const) { | 446 | 2.97k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.97k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.97k | vec_res.resize(col_left->size()); | 450 | 2.97k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.97k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.97k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.97k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.97k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.97k | } else if (left_is_const && !right_is_const) { | 457 | 193 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 193 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 193 | vec_res.resize(col_right->size()); | 461 | 193 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 193 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 193 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 193 | col_right->get_data(), vec_res); | 465 | | | 466 | 193 | block.replace_by_position(result, std::move(col_res)); | 467 | 193 | } | 468 | 3.33k | return Status::OK(); | 469 | 3.33k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.72k | const ColumnPtr& col_right_ptr) const { | 426 | 1.72k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.72k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.72k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.72k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.72k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.72k | if (!left_is_const && !right_is_const) { | 435 | 225 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 225 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 225 | vec_res.resize(col_left->get_data().size()); | 439 | 225 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 225 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 225 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 225 | vec_res); | 443 | | | 444 | 225 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.49k | } else if (!left_is_const && right_is_const) { | 446 | 1.41k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.41k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.41k | vec_res.resize(col_left->size()); | 450 | 1.41k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.41k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.41k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.41k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.41k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.41k | } else if (left_is_const && !right_is_const) { | 457 | 79 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 79 | vec_res.resize(col_right->size()); | 461 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 79 | col_right->get_data(), vec_res); | 465 | | | 466 | 79 | block.replace_by_position(result, std::move(col_res)); | 467 | 79 | } | 468 | 1.72k | return Status::OK(); | 469 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 274 | const ColumnPtr& col_right_ptr) const { | 426 | 274 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 274 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 274 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 274 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 274 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 274 | if (!left_is_const && !right_is_const) { | 435 | 146 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 146 | vec_res.resize(col_left->get_data().size()); | 439 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 146 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 146 | vec_res); | 443 | | | 444 | 146 | block.replace_by_position(result, std::move(col_res)); | 445 | 146 | } else if (!left_is_const && right_is_const) { | 446 | 56 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 56 | vec_res.resize(col_left->size()); | 450 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 56 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 56 | col_right->get_element(0), vec_res); | 454 | | | 455 | 56 | block.replace_by_position(result, std::move(col_res)); | 456 | 72 | } else if (left_is_const && !right_is_const) { | 457 | 72 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 72 | vec_res.resize(col_right->size()); | 461 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 72 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 72 | col_right->get_data(), vec_res); | 465 | | | 466 | 72 | block.replace_by_position(result, std::move(col_res)); | 467 | 72 | } | 468 | 274 | return Status::OK(); | 469 | 274 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 180 | const ColumnPtr& col_right_ptr) const { | 426 | 180 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 180 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 180 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 180 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 180 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 180 | if (!left_is_const && !right_is_const) { | 435 | 154 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 154 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 154 | vec_res.resize(col_left->get_data().size()); | 439 | 154 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 154 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 154 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 154 | vec_res); | 443 | | | 444 | 154 | block.replace_by_position(result, std::move(col_res)); | 445 | 154 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 180 | return Status::OK(); | 469 | 180 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 386 | const ColumnPtr& col_right_ptr) const { | 426 | 386 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 386 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 386 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 386 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 386 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 386 | if (!left_is_const && !right_is_const) { | 435 | 142 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 142 | vec_res.resize(col_left->get_data().size()); | 439 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 142 | vec_res); | 443 | | | 444 | 142 | block.replace_by_position(result, std::move(col_res)); | 445 | 244 | } else if (!left_is_const && right_is_const) { | 446 | 243 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 243 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 243 | vec_res.resize(col_left->size()); | 450 | 243 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 243 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 243 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 243 | col_right->get_element(0), vec_res); | 454 | | | 455 | 243 | block.replace_by_position(result, std::move(col_res)); | 456 | 243 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 386 | return Status::OK(); | 469 | 386 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 192 | const ColumnPtr& col_right_ptr) const { | 426 | 192 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 192 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 192 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 192 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 192 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 192 | if (!left_is_const && !right_is_const) { | 435 | 12 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 12 | vec_res.resize(col_left->get_data().size()); | 439 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 12 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 12 | vec_res); | 443 | | | 444 | 12 | block.replace_by_position(result, std::move(col_res)); | 445 | 180 | } else if (!left_is_const && right_is_const) { | 446 | 180 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 180 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 180 | vec_res.resize(col_left->size()); | 450 | 180 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 180 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 180 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 180 | col_right->get_element(0), vec_res); | 454 | | | 455 | 180 | block.replace_by_position(result, std::move(col_res)); | 456 | 180 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 192 | return Status::OK(); | 469 | 192 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 28.8k | const ColumnPtr& col_right_ptr) const { | 426 | 28.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 28.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 28.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 28.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 28.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 28.8k | if (!left_is_const && !right_is_const) { | 435 | 429 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 429 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 429 | vec_res.resize(col_left->get_data().size()); | 439 | 429 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 429 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 429 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 429 | vec_res); | 443 | | | 444 | 429 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.3k | } else if (!left_is_const && right_is_const) { | 446 | 28.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28.3k | vec_res.resize(col_left->size()); | 450 | 28.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 28.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 28.3k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 28.8k | return Status::OK(); | 469 | 28.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 424 | const ColumnPtr& col_right_ptr) const { | 426 | 424 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 424 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 424 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 424 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 424 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 424 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 364 | } else if (!left_is_const && right_is_const) { | 446 | 364 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 364 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 364 | vec_res.resize(col_left->size()); | 450 | 364 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 364 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 364 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 364 | col_right->get_element(0), vec_res); | 454 | | | 455 | 364 | block.replace_by_position(result, std::move(col_res)); | 456 | 364 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 424 | return Status::OK(); | 469 | 424 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 105 | const ColumnPtr& col_right_ptr) const { | 426 | 105 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 105 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 105 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 105 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 105 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 105 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 104 | } else if (!left_is_const && right_is_const) { | 446 | 104 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 104 | vec_res.resize(col_left->size()); | 450 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 104 | col_right->get_element(0), vec_res); | 454 | | | 455 | 104 | block.replace_by_position(result, std::move(col_res)); | 456 | 104 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 105 | return Status::OK(); | 469 | 105 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 109 | const ColumnPtr& col_right_ptr) const { | 426 | 109 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 109 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 109 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 109 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 109 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 109 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 109 | } else if (!left_is_const && right_is_const) { | 446 | 109 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 109 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 109 | vec_res.resize(col_left->size()); | 450 | 109 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 109 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 109 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 109 | col_right->get_element(0), vec_res); | 454 | | | 455 | 109 | block.replace_by_position(result, std::move(col_res)); | 456 | 109 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 109 | return Status::OK(); | 469 | 109 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 57.7k | const ColumnPtr& col_right_ptr) const { | 426 | 57.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 57.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 57.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 57.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 57.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 57.7k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 57.7k | } else if (!left_is_const && right_is_const) { | 446 | 57.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 57.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 57.6k | vec_res.resize(col_left->size()); | 450 | 57.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 57.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 57.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 57.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 57.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 57.6k | } else if (left_is_const && !right_is_const) { | 457 | 63 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 63 | vec_res.resize(col_right->size()); | 461 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 63 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 63 | col_right->get_data(), vec_res); | 465 | | | 466 | 63 | block.replace_by_position(result, std::move(col_res)); | 467 | 63 | } | 468 | 57.7k | return Status::OK(); | 469 | 57.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.29k | const ColumnPtr& col_right_ptr) const { | 426 | 1.29k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.29k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.29k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.29k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.29k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.29k | if (!left_is_const && !right_is_const) { | 435 | 81 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 81 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 81 | vec_res.resize(col_left->get_data().size()); | 439 | 81 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 81 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 81 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 81 | vec_res); | 443 | | | 444 | 81 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.21k | } else if (!left_is_const && right_is_const) { | 446 | 1.16k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.16k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.16k | vec_res.resize(col_left->size()); | 450 | 1.16k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.16k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.16k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.16k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.16k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.16k | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 1.29k | return Status::OK(); | 469 | 1.29k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 60 | } else if (!left_is_const && right_is_const) { | 446 | 60 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 60 | vec_res.resize(col_left->size()); | 450 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 60 | col_right->get_element(0), vec_res); | 454 | | | 455 | 60 | block.replace_by_position(result, std::move(col_res)); | 456 | 60 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 226 | const ColumnPtr& col_right_ptr) const { | 426 | 226 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 226 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 226 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 226 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 226 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 226 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 166 | } else if (!left_is_const && right_is_const) { | 446 | 166 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 166 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 166 | vec_res.resize(col_left->size()); | 450 | 166 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 166 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 166 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 166 | col_right->get_element(0), vec_res); | 454 | | | 455 | 166 | block.replace_by_position(result, std::move(col_res)); | 456 | 166 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 226 | return Status::OK(); | 469 | 226 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 139 | const ColumnPtr& col_right_ptr) const { | 426 | 139 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 139 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 139 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 139 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 139 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 139 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 119 | } else if (!left_is_const && right_is_const) { | 446 | 118 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 118 | vec_res.resize(col_left->size()); | 450 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 118 | col_right->get_element(0), vec_res); | 454 | | | 455 | 118 | block.replace_by_position(result, std::move(col_res)); | 456 | 118 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 139 | return Status::OK(); | 469 | 139 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 25.1k | const ColumnWithTypeAndName& col_right) const { |
473 | 25.1k | auto call = [&](const auto& type) -> bool { |
474 | 25.1k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 25.1k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 25.1k | block, result, col_left, col_right); |
477 | 25.1k | return true; |
478 | 25.1k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 285 | auto call = [&](const auto& type) -> bool { | 474 | 285 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 285 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 285 | block, result, col_left, col_right); | 477 | 285 | return true; | 478 | 285 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 295 | auto call = [&](const auto& type) -> bool { | 474 | 295 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 295 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 295 | block, result, col_left, col_right); | 477 | 295 | return true; | 478 | 295 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.16k | auto call = [&](const auto& type) -> bool { | 474 | 1.16k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.16k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.16k | block, result, col_left, col_right); | 477 | 1.16k | return true; | 478 | 1.16k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 65 | auto call = [&](const auto& type) -> bool { | 474 | 65 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 65 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 65 | block, result, col_left, col_right); | 477 | 65 | return true; | 478 | 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 | 473 | 324 | auto call = [&](const auto& type) -> bool { | 474 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 324 | block, result, col_left, col_right); | 477 | 324 | return true; | 478 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 46 | auto call = [&](const auto& type) -> bool { | 474 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 46 | block, result, col_left, col_right); | 477 | 46 | return true; | 478 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 16.8k | auto call = [&](const auto& type) -> bool { | 474 | 16.8k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16.8k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16.8k | block, result, col_left, col_right); | 477 | 16.8k | return true; | 478 | 16.8k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.37k | auto call = [&](const auto& type) -> bool { | 474 | 1.37k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.37k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.37k | block, result, col_left, col_right); | 477 | 1.37k | return true; | 478 | 1.37k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 9 | auto call = [&](const auto& type) -> bool { | 474 | 9 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9 | block, result, col_left, col_right); | 477 | 9 | return true; | 478 | 9 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 338 | auto call = [&](const auto& type) -> bool { | 474 | 338 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 338 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 338 | block, result, col_left, col_right); | 477 | 338 | return true; | 478 | 338 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 77 | auto call = [&](const auto& type) -> bool { | 474 | 77 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 77 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 77 | block, result, col_left, col_right); | 477 | 77 | return true; | 478 | 77 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 27 | auto call = [&](const auto& type) -> bool { | 474 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 27 | block, result, col_left, col_right); | 477 | 27 | return true; | 478 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 206 | auto call = [&](const auto& type) -> bool { | 474 | 206 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 206 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 206 | block, result, col_left, col_right); | 477 | 206 | return true; | 478 | 206 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 250 | auto call = [&](const auto& type) -> bool { | 474 | 250 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 250 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 250 | block, result, col_left, col_right); | 477 | 250 | return true; | 478 | 250 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 493 | auto call = [&](const auto& type) -> bool { | 474 | 493 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 493 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 493 | block, result, col_left, col_right); | 477 | 493 | return true; | 478 | 493 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 4 | auto call = [&](const auto& type) -> bool { | 474 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 4 | block, result, col_left, col_right); | 477 | 4 | return true; | 478 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 2.24k | auto call = [&](const auto& type) -> bool { | 474 | 2.24k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.24k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.24k | block, result, col_left, col_right); | 477 | 2.24k | return true; | 478 | 2.24k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 934 | auto call = [&](const auto& type) -> bool { | 474 | 934 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 934 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 934 | block, result, col_left, col_right); | 477 | 934 | return true; | 478 | 934 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 22 | auto call = [&](const auto& type) -> bool { | 474 | 22 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 22 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 22 | block, result, col_left, col_right); | 477 | 22 | return true; | 478 | 22 | }; |
|
479 | | |
480 | 25.1k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 25.1k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 25.1k | return Status::OK(); |
491 | 25.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.77k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.77k | auto call = [&](const auto& type) -> bool { | 474 | 1.77k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.77k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.77k | block, result, col_left, col_right); | 477 | 1.77k | return true; | 478 | 1.77k | }; | 479 | | | 480 | 1.77k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.77k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.77k | return Status::OK(); | 491 | 1.77k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 419 | const ColumnWithTypeAndName& col_right) const { | 473 | 419 | auto call = [&](const auto& type) -> bool { | 474 | 419 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 419 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 419 | block, result, col_left, col_right); | 477 | 419 | return true; | 478 | 419 | }; | 479 | | | 480 | 419 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 419 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 419 | return Status::OK(); | 491 | 419 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 18.3k | const ColumnWithTypeAndName& col_right) const { | 473 | 18.3k | auto call = [&](const auto& type) -> bool { | 474 | 18.3k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 18.3k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 18.3k | block, result, col_left, col_right); | 477 | 18.3k | return true; | 478 | 18.3k | }; | 479 | | | 480 | 18.3k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 18.3k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 18.3k | return Status::OK(); | 491 | 18.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 451 | const ColumnWithTypeAndName& col_right) const { | 473 | 451 | auto call = [&](const auto& type) -> bool { | 474 | 451 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 451 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 451 | block, result, col_left, col_right); | 477 | 451 | return true; | 478 | 451 | }; | 479 | | | 480 | 451 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 451 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 451 | return Status::OK(); | 491 | 451 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 950 | const ColumnWithTypeAndName& col_right) const { | 473 | 950 | auto call = [&](const auto& type) -> bool { | 474 | 950 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 950 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 950 | block, result, col_left, col_right); | 477 | 950 | return true; | 478 | 950 | }; | 479 | | | 480 | 950 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 950 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 950 | return Status::OK(); | 491 | 950 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 3.20k | const ColumnWithTypeAndName& col_right) const { | 473 | 3.20k | auto call = [&](const auto& type) -> bool { | 474 | 3.20k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 3.20k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 3.20k | block, result, col_left, col_right); | 477 | 3.20k | return true; | 478 | 3.20k | }; | 479 | | | 480 | 3.20k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 3.20k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 3.20k | return Status::OK(); | 491 | 3.20k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 28.4k | const IColumn* c1) const { |
495 | 28.4k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 28.4k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 28.4k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 28.4k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 28.4k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 28.4k | DCHECK(!(c0_const && c1_const)); |
504 | 28.4k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 28.4k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 28.4k | ColumnString::Offset c0_const_size = 0; |
507 | 28.4k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 28.4k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 28.4k | if (c1_const) { |
523 | 26.2k | const ColumnString* c1_const_string = |
524 | 26.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 26.2k | if (c1_const_string) { |
527 | 26.2k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 26.2k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 18.4E | } else { |
530 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 18.4E | c1->get_name(), name); |
532 | 18.4E | } |
533 | 26.2k | } |
534 | | |
535 | 28.4k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 28.4k | auto c_res = ColumnUInt8::create(); |
538 | 28.4k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 28.4k | vec_res.resize(c0->size()); |
540 | | |
541 | 28.4k | if (c0_string && c1_string) { |
542 | 2.21k | StringImpl::string_vector_string_vector( |
543 | 2.21k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 2.21k | c1_string->get_offsets(), vec_res); |
545 | 26.2k | } else if (c0_string && c1_const) { |
546 | 26.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 26.2k | *c1_const_chars, c1_const_size, vec_res); |
548 | 26.2k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 6 | } else { |
553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 0 | c0->get_name(), c1->get_name(), name); |
555 | 0 | } |
556 | 28.4k | block.replace_by_position(result, std::move(c_res)); |
557 | 28.4k | return Status::OK(); |
558 | 28.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 23.5k | const IColumn* c1) const { | 495 | 23.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 23.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 23.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 23.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 23.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 23.5k | DCHECK(!(c0_const && c1_const)); | 504 | 23.5k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 23.5k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 23.5k | ColumnString::Offset c0_const_size = 0; | 507 | 23.5k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 23.5k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 23.5k | if (c1_const) { | 523 | 22.0k | const ColumnString* c1_const_string = | 524 | 22.0k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 22.0k | if (c1_const_string) { | 527 | 22.0k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 22.0k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 22.0k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 22.0k | } | 534 | | | 535 | 23.5k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 23.5k | auto c_res = ColumnUInt8::create(); | 538 | 23.5k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 23.5k | vec_res.resize(c0->size()); | 540 | | | 541 | 23.5k | if (c0_string && c1_string) { | 542 | 1.47k | StringImpl::string_vector_string_vector( | 543 | 1.47k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.47k | c1_string->get_offsets(), vec_res); | 545 | 22.0k | } else if (c0_string && c1_const) { | 546 | 22.0k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 22.0k | *c1_const_chars, c1_const_size, vec_res); | 548 | 22.0k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 23.5k | block.replace_by_position(result, std::move(c_res)); | 557 | 23.5k | return Status::OK(); | 558 | 23.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 2.47k | const IColumn* c1) const { | 495 | 2.47k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 2.47k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 2.47k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 2.47k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 2.47k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 2.47k | DCHECK(!(c0_const && c1_const)); | 504 | 2.47k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 2.47k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 2.47k | ColumnString::Offset c0_const_size = 0; | 507 | 2.47k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 2.47k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 2.47k | if (c1_const) { | 523 | 2.42k | const ColumnString* c1_const_string = | 524 | 2.42k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 2.42k | if (c1_const_string) { | 527 | 2.42k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 2.42k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 2.42k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 2.42k | } | 534 | | | 535 | 2.47k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 2.47k | auto c_res = ColumnUInt8::create(); | 538 | 2.47k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 2.47k | vec_res.resize(c0->size()); | 540 | | | 541 | 2.47k | if (c0_string && c1_string) { | 542 | 52 | StringImpl::string_vector_string_vector( | 543 | 52 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 52 | c1_string->get_offsets(), vec_res); | 545 | 2.42k | } else if (c0_string && c1_const) { | 546 | 2.42k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 2.42k | *c1_const_chars, c1_const_size, vec_res); | 548 | 2.42k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 2.47k | block.replace_by_position(result, std::move(c_res)); | 557 | 2.47k | return Status::OK(); | 558 | 2.47k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 173 | const IColumn* c1) const { | 495 | 173 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 173 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 173 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 173 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 173 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 173 | DCHECK(!(c0_const && c1_const)); | 504 | 173 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 173 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 173 | ColumnString::Offset c0_const_size = 0; | 507 | 173 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 173 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 173 | if (c1_const) { | 523 | 171 | const ColumnString* c1_const_string = | 524 | 171 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 171 | if (c1_const_string) { | 527 | 171 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 171 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 171 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 171 | } | 534 | | | 535 | 173 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 173 | auto c_res = ColumnUInt8::create(); | 538 | 173 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 173 | vec_res.resize(c0->size()); | 540 | | | 541 | 173 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 171 | } else if (c0_string && c1_const) { | 546 | 171 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 171 | *c1_const_chars, c1_const_size, vec_res); | 548 | 171 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 173 | block.replace_by_position(result, std::move(c_res)); | 557 | 173 | return Status::OK(); | 558 | 173 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 682 | const IColumn* c1) const { | 495 | 682 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 682 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 682 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 682 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 682 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 682 | DCHECK(!(c0_const && c1_const)); | 504 | 682 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 682 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 682 | ColumnString::Offset c0_const_size = 0; | 507 | 682 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 682 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 682 | if (c1_const) { | 523 | 588 | const ColumnString* c1_const_string = | 524 | 588 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 589 | if (c1_const_string) { | 527 | 589 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 589 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 18.4E | } else { | 530 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 18.4E | c1->get_name(), name); | 532 | 18.4E | } | 533 | 588 | } | 534 | | | 535 | 683 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 683 | auto c_res = ColumnUInt8::create(); | 538 | 683 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 683 | vec_res.resize(c0->size()); | 540 | | | 541 | 683 | if (c0_string && c1_string) { | 542 | 94 | StringImpl::string_vector_string_vector( | 543 | 94 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 94 | c1_string->get_offsets(), vec_res); | 545 | 589 | } else if (c0_string && c1_const) { | 546 | 589 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 589 | *c1_const_chars, c1_const_size, vec_res); | 548 | 589 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 683 | block.replace_by_position(result, std::move(c_res)); | 557 | 683 | return Status::OK(); | 558 | 683 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 720 | const IColumn* c1) const { | 495 | 720 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 720 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 720 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 720 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 720 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 720 | DCHECK(!(c0_const && c1_const)); | 504 | 720 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 720 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 720 | ColumnString::Offset c0_const_size = 0; | 507 | 720 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 720 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 720 | if (c1_const) { | 523 | 243 | const ColumnString* c1_const_string = | 524 | 243 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 243 | if (c1_const_string) { | 527 | 243 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 243 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 243 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 243 | } | 534 | | | 535 | 720 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 720 | auto c_res = ColumnUInt8::create(); | 538 | 720 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 720 | vec_res.resize(c0->size()); | 540 | | | 541 | 720 | if (c0_string && c1_string) { | 542 | 471 | StringImpl::string_vector_string_vector( | 543 | 471 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 471 | c1_string->get_offsets(), vec_res); | 545 | 471 | } else if (c0_string && c1_const) { | 546 | 243 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 243 | *c1_const_chars, c1_const_size, vec_res); | 548 | 243 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 6 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 720 | block.replace_by_position(result, std::move(c_res)); | 557 | 720 | return Status::OK(); | 558 | 720 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 862 | const IColumn* c1) const { | 495 | 862 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 862 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 862 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 862 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 862 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 862 | DCHECK(!(c0_const && c1_const)); | 504 | 862 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 862 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 862 | ColumnString::Offset c0_const_size = 0; | 507 | 862 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 862 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 862 | if (c1_const) { | 523 | 738 | const ColumnString* c1_const_string = | 524 | 738 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 738 | if (c1_const_string) { | 527 | 738 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 738 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 738 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 738 | } | 534 | | | 535 | 862 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 862 | auto c_res = ColumnUInt8::create(); | 538 | 862 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 862 | vec_res.resize(c0->size()); | 540 | | | 541 | 862 | if (c0_string && c1_string) { | 542 | 124 | StringImpl::string_vector_string_vector( | 543 | 124 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 124 | c1_string->get_offsets(), vec_res); | 545 | 738 | } else if (c0_string && c1_const) { | 546 | 738 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 738 | *c1_const_chars, c1_const_size, vec_res); | 548 | 738 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 862 | block.replace_by_position(result, std::move(c_res)); | 557 | 862 | return Status::OK(); | 558 | 862 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 140 | const IColumn* c1) const { |
562 | 140 | bool c0_const = is_column_const(*c0); |
563 | 140 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 140 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 140 | auto c_res = ColumnUInt8::create(); |
568 | 140 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 140 | vec_res.resize(c0->size()); |
570 | | |
571 | 140 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 140 | } else if (c1_const) { |
574 | 131 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 131 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 140 | block.replace_by_position(result, std::move(c_res)); |
580 | 140 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 53 | const IColumn* c1) const { | 562 | 53 | bool c0_const = is_column_const(*c0); | 563 | 53 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 53 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 53 | auto c_res = ColumnUInt8::create(); | 568 | 53 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 53 | vec_res.resize(c0->size()); | 570 | | | 571 | 53 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 53 | } else if (c1_const) { | 574 | 52 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 52 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 53 | block.replace_by_position(result, std::move(c_res)); | 580 | 53 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 42 | const IColumn* c1) const { | 562 | 42 | bool c0_const = is_column_const(*c0); | 563 | 42 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 42 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 42 | auto c_res = ColumnUInt8::create(); | 568 | 42 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 42 | vec_res.resize(c0->size()); | 570 | | | 571 | 42 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 42 | } else if (c1_const) { | 574 | 42 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 42 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 42 | block.replace_by_position(result, std::move(c_res)); | 580 | 42 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 140 | const ColumnWithTypeAndName& c1) const { |
584 | 140 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 140 | return Status::OK(); |
586 | 140 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 53 | const ColumnWithTypeAndName& c1) const { | 584 | 53 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 53 | return Status::OK(); | 586 | 53 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 42 | const ColumnWithTypeAndName& c1) const { | 584 | 42 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 42 | return Status::OK(); | 586 | 42 | } |
|
587 | | |
588 | | public: |
589 | 217 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 36 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 35 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 499k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 447k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 2.71k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 9.00k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 13.6k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 4.44k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 22.5k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 36.9k | const VExprSPtrs& arguments) const override { |
595 | 36.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 36.9k | DORIS_CHECK(op.has_value()); |
597 | 36.9k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 36.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.11k | const VExprSPtrs& arguments) const override { | 595 | 9.11k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.11k | DORIS_CHECK(op.has_value()); | 597 | 9.11k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.11k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.16k | const VExprSPtrs& arguments) const override { | 595 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.16k | DORIS_CHECK(op.has_value()); | 597 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.08k | const VExprSPtrs& arguments) const override { | 595 | 5.08k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.08k | DORIS_CHECK(op.has_value()); | 597 | 5.08k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.08k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 7.82k | const VExprSPtrs& arguments) const override { | 595 | 7.82k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 7.82k | DORIS_CHECK(op.has_value()); | 597 | 7.82k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 7.82k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.04k | const VExprSPtrs& arguments) const override { | 595 | 3.04k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.04k | DORIS_CHECK(op.has_value()); | 597 | 3.04k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 10.7k | const VExprSPtrs& arguments) const override { | 595 | 10.7k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 10.7k | DORIS_CHECK(op.has_value()); | 597 | 10.7k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 10.7k | } |
|
599 | | |
600 | 109k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 109k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 109k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 109k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 40.5k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 40.5k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 40.5k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 40.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 3.94k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 3.94k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 3.94k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 3.94k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 15.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 15.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 15.8k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 15.8k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 18.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 18.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 18.1k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 18.1k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 9.62k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 9.62k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 9.65k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 9.62k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 21.6k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 21.6k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 21.6k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 21.6k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 40.9k | const VExprSPtrs& arguments) const override { |
607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 40.9k | DORIS_CHECK(op.has_value()); |
609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 40.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 40.9k | const VExprSPtrs& arguments) const override { | 607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 40.9k | DORIS_CHECK(op.has_value()); | 609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 40.9k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 57.5k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 57.5k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 57.5k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 57.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 50.9k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 50.9k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 50.9k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 50.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 1.34k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 1.34k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 1.34k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 3.13k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 3.13k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 3.13k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 3.13k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 854 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 854 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 854 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 854 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 960 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 960 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 964 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 960 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 336 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 336 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 338 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 336 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 14 | const VExprSPtrs& arguments) const override { |
619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 14 | DORIS_CHECK(op.has_value()); |
621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 14 | const VExprSPtrs& arguments) const override { | 619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 14 | DORIS_CHECK(op.has_value()); | 621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 8.23k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 8.23k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 8.26k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 8.23k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 4.77k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 4.77k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 4.78k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 4.77k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 695 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.58k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.58k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.59k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.58k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 422 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 422 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 430 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 422 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 516 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 516 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 516 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 516 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 240 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 240 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 242 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 240 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 499k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 499k | return std::make_shared<DataTypeUInt8>(); |
632 | 499k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 447k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 447k | return std::make_shared<DataTypeUInt8>(); | 632 | 447k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 2.71k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 2.71k | return std::make_shared<DataTypeUInt8>(); | 632 | 2.71k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 8.99k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 8.99k | return std::make_shared<DataTypeUInt8>(); | 632 | 8.99k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 13.6k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 13.6k | return std::make_shared<DataTypeUInt8>(); | 632 | 13.6k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 4.44k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 4.44k | return std::make_shared<DataTypeUInt8>(); | 632 | 4.44k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 22.5k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 22.5k | return std::make_shared<DataTypeUInt8>(); | 632 | 22.5k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.34k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.34k | DCHECK(arguments.size() == 1); |
641 | 1.34k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.34k | DCHECK(iterators.size() == 1); |
643 | 1.34k | auto* iter = iterators[0]; |
644 | 1.34k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.34k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.34k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 304 | return Status::OK(); |
650 | 304 | } |
651 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.03k | std::string_view name_view(name); |
653 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 716 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 716 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 245 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 164 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 18.4E | } else { |
664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 18.4E | } |
666 | | |
667 | 1.03k | if (segment_v2::is_range_query(query_type) && |
668 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 906 | Field param_value; |
673 | 906 | arguments[0].column->get(0, param_value); |
674 | 906 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 904 | segment_v2::InvertedIndexParam param; |
678 | 904 | param.column_name = data_type_with_name.first; |
679 | 904 | param.column_type = data_type_with_name.second; |
680 | 904 | param.query_value = param_value; |
681 | 904 | param.query_type = query_type; |
682 | 904 | param.num_rows = num_rows; |
683 | 904 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 904 | param.analyzer_ctx = analyzer_ctx; |
685 | 904 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 750 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 750 | if (iter->has_null()) { |
688 | 749 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 749 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 749 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 749 | } |
692 | 750 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 750 | bitmap_result = result; |
694 | 750 | bitmap_result.mask_out_null(); |
695 | | |
696 | 750 | if (name_view == NameNotEquals::name) { |
697 | 57 | roaring::Roaring full_result; |
698 | 57 | full_result.addRange(0, num_rows); |
699 | 57 | bitmap_result.op_not(&full_result); |
700 | 57 | } |
701 | | |
702 | 750 | return Status::OK(); |
703 | 750 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 684 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 684 | DCHECK(arguments.size() == 1); | 641 | 684 | DCHECK(data_type_with_names.size() == 1); | 642 | 684 | DCHECK(iterators.size() == 1); | 643 | 684 | auto* iter = iterators[0]; | 644 | 684 | auto data_type_with_name = data_type_with_names[0]; | 645 | 684 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 684 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 36 | return Status::OK(); | 650 | 36 | } | 651 | 648 | segment_v2::InvertedIndexQueryType query_type; | 652 | 648 | std::string_view name_view(name); | 653 | 650 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 650 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 18.4E | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 650 | if (segment_v2::is_range_query(query_type) && | 668 | 650 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 650 | Field param_value; | 673 | 650 | arguments[0].column->get(0, param_value); | 674 | 650 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 648 | segment_v2::InvertedIndexParam param; | 678 | 648 | param.column_name = data_type_with_name.first; | 679 | 648 | param.column_type = data_type_with_name.second; | 680 | 648 | param.query_value = param_value; | 681 | 648 | param.query_type = query_type; | 682 | 648 | param.num_rows = num_rows; | 683 | 648 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 648 | param.analyzer_ctx = analyzer_ctx; | 685 | 648 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 601 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 602 | if (iter->has_null()) { | 688 | 602 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 602 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 602 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 602 | } | 692 | 601 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 601 | bitmap_result = result; | 694 | 601 | bitmap_result.mask_out_null(); | 695 | | | 696 | 601 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 601 | return Status::OK(); | 703 | 601 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 66 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 57 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 57 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 57 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 57 | } | 692 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 59 | bitmap_result = result; | 694 | 59 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 57 | roaring::Roaring full_result; | 698 | 57 | full_result.addRange(0, num_rows); | 699 | 57 | bitmap_result.op_not(&full_result); | 700 | 57 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 112 | DCHECK(arguments.size() == 1); | 641 | 112 | DCHECK(data_type_with_names.size() == 1); | 642 | 112 | DCHECK(iterators.size() == 1); | 643 | 112 | auto* iter = iterators[0]; | 644 | 112 | auto data_type_with_name = data_type_with_names[0]; | 645 | 112 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 73 | segment_v2::InvertedIndexQueryType query_type; | 652 | 73 | std::string_view name_view(name); | 653 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 73 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 73 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 73 | } else if (name_view == NameGreater::name) { | 660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 119 | DCHECK(arguments.size() == 1); | 641 | 119 | DCHECK(data_type_with_names.size() == 1); | 642 | 119 | DCHECK(iterators.size() == 1); | 643 | 119 | auto* iter = iterators[0]; | 644 | 119 | auto data_type_with_name = data_type_with_names[0]; | 645 | 119 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 76 | segment_v2::InvertedIndexQueryType query_type; | 652 | 76 | std::string_view name_view(name); | 653 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 76 | } else if (name_view == NameLess::name) { | 656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 76 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 76 | if (segment_v2::is_range_query(query_type) && | 668 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 58 | Field param_value; | 673 | 58 | arguments[0].column->get(0, param_value); | 674 | 58 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 58 | segment_v2::InvertedIndexParam param; | 678 | 58 | param.column_name = data_type_with_name.first; | 679 | 58 | param.column_type = data_type_with_name.second; | 680 | 58 | param.query_value = param_value; | 681 | 58 | param.query_type = query_type; | 682 | 58 | param.num_rows = num_rows; | 683 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 58 | param.analyzer_ctx = analyzer_ctx; | 685 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 39 | if (iter->has_null()) { | 688 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 39 | } | 692 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 39 | bitmap_result = result; | 694 | 39 | bitmap_result.mask_out_null(); | 695 | | | 696 | 39 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 39 | return Status::OK(); | 703 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 368k | uint32_t result, size_t input_rows_count) const override { |
707 | 368k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 368k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 368k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 368k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 368k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 368k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 368k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 368k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 368k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 368k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 683k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 683k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 683k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 243k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 243k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 243k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 14.6k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 14.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 14.6k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 108k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 108k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 108k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 108k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 108k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 108k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 25.0k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 25.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 25.0k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 182k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 182k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 182k | }; |
|
747 | | |
748 | 368k | if (can_compare(left_type->get_primitive_type()) && |
749 | 368k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 314k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 314k | } |
757 | | |
758 | 368k | auto compare_type = left_type->get_primitive_type(); |
759 | 368k | switch (compare_type) { |
760 | 2.09k | case TYPE_BOOLEAN: |
761 | 2.09k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 36.1k | case TYPE_DATEV2: |
763 | 36.1k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 2.65k | case TYPE_DATETIMEV2: |
765 | 2.65k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 12 | case TYPE_TIMESTAMPTZ: |
767 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 10.7k | case TYPE_TINYINT: |
769 | 10.7k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 4.00k | case TYPE_SMALLINT: |
771 | 4.00k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 203k | case TYPE_INT: |
773 | 203k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 49.5k | case TYPE_BIGINT: |
775 | 49.5k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 798 | case TYPE_LARGEINT: |
777 | 798 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 75 | case TYPE_IPV4: |
779 | 75 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 48 | case TYPE_IPV6: |
781 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 1.04k | case TYPE_FLOAT: |
783 | 1.04k | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.89k | case TYPE_DOUBLE: |
785 | 3.89k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 550 | case TYPE_DECIMAL32: |
790 | 20.6k | case TYPE_DECIMAL64: |
791 | 25.0k | case TYPE_DECIMAL128I: |
792 | 25.1k | case TYPE_DECIMAL256: |
793 | 25.1k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 25.1k | col_with_type_and_name_right); |
795 | 1.18k | case TYPE_CHAR: |
796 | 10.2k | case TYPE_VARCHAR: |
797 | 28.4k | case TYPE_STRING: |
798 | 28.4k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 140 | default: |
800 | 140 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 140 | col_with_type_and_name_right); |
802 | 368k | } |
803 | 0 | return Status::OK(); |
804 | 368k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 134k | uint32_t result, size_t input_rows_count) const override { | 707 | 134k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 134k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 134k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 134k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 134k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 134k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 134k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 134k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 134k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 134k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 134k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 134k | }; | 747 | | | 748 | 134k | if (can_compare(left_type->get_primitive_type()) && | 749 | 134k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 109k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 109k | } | 757 | | | 758 | 134k | auto compare_type = left_type->get_primitive_type(); | 759 | 134k | switch (compare_type) { | 760 | 1.62k | case TYPE_BOOLEAN: | 761 | 1.62k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.22k | case TYPE_DATEV2: | 763 | 1.22k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 718 | case TYPE_DATETIMEV2: | 765 | 718 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 6.96k | case TYPE_TINYINT: | 769 | 6.96k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.62k | case TYPE_SMALLINT: | 771 | 1.62k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 66.7k | case TYPE_INT: | 773 | 66.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 29.2k | case TYPE_BIGINT: | 775 | 29.2k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 161 | case TYPE_LARGEINT: | 777 | 161 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 32 | case TYPE_IPV4: | 779 | 32 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 30 | case TYPE_IPV6: | 781 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 122 | case TYPE_FLOAT: | 783 | 122 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 762 | case TYPE_DOUBLE: | 785 | 762 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 285 | case TYPE_DECIMAL32: | 790 | 580 | case TYPE_DECIMAL64: | 791 | 1.74k | case TYPE_DECIMAL128I: | 792 | 1.77k | case TYPE_DECIMAL256: | 793 | 1.77k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.77k | col_with_type_and_name_right); | 795 | 830 | case TYPE_CHAR: | 796 | 8.79k | case TYPE_VARCHAR: | 797 | 23.5k | case TYPE_STRING: | 798 | 23.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 134k | } | 803 | 0 | return Status::OK(); | 804 | 134k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 8.75k | uint32_t result, size_t input_rows_count) const override { | 707 | 8.75k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 8.75k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 8.75k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 8.75k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 8.75k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 8.75k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 8.75k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 8.75k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 8.75k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 8.75k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 8.75k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 8.75k | }; | 747 | | | 748 | 8.75k | if (can_compare(left_type->get_primitive_type()) && | 749 | 8.75k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 5.85k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 5.85k | } | 757 | | | 758 | 8.75k | auto compare_type = left_type->get_primitive_type(); | 759 | 8.75k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 82 | case TYPE_DATEV2: | 763 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 2 | case TYPE_DATETIMEV2: | 765 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 100 | case TYPE_TINYINT: | 769 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 26 | case TYPE_SMALLINT: | 771 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.64k | case TYPE_INT: | 773 | 2.64k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.89k | case TYPE_BIGINT: | 775 | 2.89k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 65 | case TYPE_DECIMAL64: | 791 | 389 | case TYPE_DECIMAL128I: | 792 | 419 | case TYPE_DECIMAL256: | 793 | 419 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 419 | col_with_type_and_name_right); | 795 | 9 | case TYPE_CHAR: | 796 | 306 | case TYPE_VARCHAR: | 797 | 2.47k | case TYPE_STRING: | 798 | 2.47k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 8.75k | } | 803 | 0 | return Status::OK(); | 804 | 8.75k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 63.2k | uint32_t result, size_t input_rows_count) const override { | 707 | 63.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 63.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 63.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 63.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 63.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 63.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 63.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 63.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 63.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 63.2k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 63.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 63.2k | }; | 747 | | | 748 | 63.2k | if (can_compare(left_type->get_primitive_type()) && | 749 | 63.2k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 44.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 44.7k | } | 757 | | | 758 | 63.2k | auto compare_type = left_type->get_primitive_type(); | 759 | 63.2k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.22k | case TYPE_DATEV2: | 763 | 1.22k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 94 | case TYPE_DATETIMEV2: | 765 | 94 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.31k | case TYPE_TINYINT: | 769 | 1.31k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.77k | case TYPE_SMALLINT: | 771 | 1.77k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 23.5k | case TYPE_INT: | 773 | 23.5k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 13.9k | case TYPE_BIGINT: | 775 | 13.9k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 249 | case TYPE_LARGEINT: | 777 | 249 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 236 | case TYPE_FLOAT: | 783 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 2.39k | case TYPE_DOUBLE: | 785 | 2.39k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 46 | case TYPE_DECIMAL32: | 790 | 16.9k | case TYPE_DECIMAL64: | 791 | 18.3k | case TYPE_DECIMAL128I: | 792 | 18.3k | case TYPE_DECIMAL256: | 793 | 18.3k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 18.3k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 173 | case TYPE_STRING: | 798 | 173 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 63.2k | } | 803 | 0 | return Status::OK(); | 804 | 63.2k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 55.0k | uint32_t result, size_t input_rows_count) const override { | 707 | 55.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 55.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 55.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 55.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 55.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 55.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 55.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 55.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 55.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 55.0k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 55.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 55.0k | }; | 747 | | | 748 | 55.0k | if (can_compare(left_type->get_primitive_type()) && | 749 | 55.0k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 53.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 53.9k | } | 757 | | | 758 | 55.0k | auto compare_type = left_type->get_primitive_type(); | 759 | 55.0k | switch (compare_type) { | 760 | 181 | case TYPE_BOOLEAN: | 761 | 181 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.32k | case TYPE_DATEV2: | 763 | 2.32k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 788 | case TYPE_DATETIMEV2: | 765 | 788 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 72 | case TYPE_TINYINT: | 769 | 72 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 67 | case TYPE_SMALLINT: | 771 | 67 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 49.4k | case TYPE_INT: | 773 | 49.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 534 | case TYPE_BIGINT: | 775 | 534 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 54 | case TYPE_LARGEINT: | 777 | 54 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 230 | case TYPE_FLOAT: | 783 | 230 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 153 | case TYPE_DOUBLE: | 785 | 153 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 9 | case TYPE_DECIMAL32: | 790 | 347 | case TYPE_DECIMAL64: | 791 | 424 | case TYPE_DECIMAL128I: | 792 | 451 | case TYPE_DECIMAL256: | 793 | 451 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 451 | col_with_type_and_name_right); | 795 | 30 | case TYPE_CHAR: | 796 | 298 | case TYPE_VARCHAR: | 797 | 682 | case TYPE_STRING: | 798 | 682 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 53 | default: | 800 | 53 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 53 | col_with_type_and_name_right); | 802 | 55.0k | } | 803 | 0 | return Status::OK(); | 804 | 55.0k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 13.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 13.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 13.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 13.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 13.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 13.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 13.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 13.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 13.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 13.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 13.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 13.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 13.3k | }; | 747 | | | 748 | 13.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 13.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.7k | } | 757 | | | 758 | 13.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 13.3k | switch (compare_type) { | 760 | 101 | case TYPE_BOOLEAN: | 761 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.46k | case TYPE_DATEV2: | 763 | 2.46k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 631 | case TYPE_DATETIMEV2: | 765 | 631 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.18k | case TYPE_TINYINT: | 769 | 2.18k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 400 | case TYPE_SMALLINT: | 771 | 400 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 3.33k | case TYPE_INT: | 773 | 3.33k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.72k | case TYPE_BIGINT: | 775 | 1.72k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 274 | case TYPE_LARGEINT: | 777 | 274 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 180 | case TYPE_FLOAT: | 783 | 180 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 386 | case TYPE_DOUBLE: | 785 | 386 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 206 | case TYPE_DECIMAL32: | 790 | 456 | case TYPE_DECIMAL64: | 791 | 949 | case TYPE_DECIMAL128I: | 792 | 950 | case TYPE_DECIMAL256: | 793 | 950 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 950 | col_with_type_and_name_right); | 795 | 208 | case TYPE_CHAR: | 796 | 399 | case TYPE_VARCHAR: | 797 | 720 | case TYPE_STRING: | 798 | 720 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 13.3k | } | 803 | 0 | return Status::OK(); | 804 | 13.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 93.2k | uint32_t result, size_t input_rows_count) const override { | 707 | 93.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 93.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 93.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 93.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 93.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 93.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 93.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 93.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 93.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 93.2k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 93.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 93.2k | }; | 747 | | | 748 | 93.2k | if (can_compare(left_type->get_primitive_type()) && | 749 | 93.2k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 89.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 89.2k | } | 757 | | | 758 | 93.2k | auto compare_type = left_type->get_primitive_type(); | 759 | 93.2k | switch (compare_type) { | 760 | 192 | case TYPE_BOOLEAN: | 761 | 192 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 28.8k | case TYPE_DATEV2: | 763 | 28.8k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 424 | case TYPE_DATETIMEV2: | 765 | 424 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 105 | case TYPE_TINYINT: | 769 | 105 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 109 | case TYPE_SMALLINT: | 771 | 109 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 57.7k | case TYPE_INT: | 773 | 57.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.29k | case TYPE_BIGINT: | 775 | 1.29k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 60 | case TYPE_LARGEINT: | 777 | 60 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 226 | case TYPE_FLOAT: | 783 | 226 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 139 | case TYPE_DOUBLE: | 785 | 139 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 4 | case TYPE_DECIMAL32: | 790 | 2.24k | case TYPE_DECIMAL64: | 791 | 3.18k | case TYPE_DECIMAL128I: | 792 | 3.20k | case TYPE_DECIMAL256: | 793 | 3.20k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 3.20k | col_with_type_and_name_right); | 795 | 91 | case TYPE_CHAR: | 796 | 416 | case TYPE_VARCHAR: | 797 | 862 | case TYPE_STRING: | 798 | 862 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 42 | default: | 800 | 42 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 42 | col_with_type_and_name_right); | 802 | 93.2k | } | 803 | 0 | return Status::OK(); | 804 | 93.2k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |