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 | | #include "storage/index/inverted/inverted_index_iterator.h" |
52 | | #include "storage/olap_define.h" |
53 | | |
54 | | namespace doris { |
55 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
56 | | * The comparison functions always return 0 or 1 (UInt8). |
57 | | * |
58 | | * You can compare the following types: |
59 | | * - numbers and decimals; |
60 | | * - strings and fixed strings; |
61 | | * - dates; |
62 | | * - datetimes; |
63 | | * within each group, but not from different groups; |
64 | | * - tuples (lexicographic comparison). |
65 | | * |
66 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
67 | | */ |
68 | | |
69 | | template <typename A, typename B, typename Op> |
70 | | struct NumComparisonImpl { |
71 | | /// 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. |
72 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
73 | 12.1k | PaddedPODArray<UInt8>& c) { |
74 | 12.1k | size_t size = a.size(); |
75 | 12.1k | const A* __restrict a_pos = a.data(); |
76 | 12.1k | const B* __restrict b_pos = b.data(); |
77 | 12.1k | UInt8* __restrict c_pos = c.data(); |
78 | 12.1k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 6.07M | while (a_pos < a_end) { |
81 | 6.06M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 6.06M | ++a_pos; |
83 | 6.06M | ++b_pos; |
84 | 6.06M | ++c_pos; |
85 | 6.06M | } |
86 | 12.1k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 67 | PaddedPODArray<UInt8>& c) { | 74 | 67 | size_t size = a.size(); | 75 | 67 | const A* __restrict a_pos = a.data(); | 76 | 67 | const B* __restrict b_pos = b.data(); | 77 | 67 | UInt8* __restrict c_pos = c.data(); | 78 | 67 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 138 | while (a_pos < a_end) { | 81 | 71 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 71 | ++a_pos; | 83 | 71 | ++b_pos; | 84 | 71 | ++c_pos; | 85 | 71 | } | 86 | 67 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 213 | PaddedPODArray<UInt8>& c) { | 74 | 213 | size_t size = a.size(); | 75 | 213 | const A* __restrict a_pos = a.data(); | 76 | 213 | const B* __restrict b_pos = b.data(); | 77 | 213 | UInt8* __restrict c_pos = c.data(); | 78 | 213 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 432 | while (a_pos < a_end) { | 81 | 219 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 219 | ++a_pos; | 83 | 219 | ++b_pos; | 84 | 219 | ++c_pos; | 85 | 219 | } | 86 | 213 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 258 | PaddedPODArray<UInt8>& c) { | 74 | 258 | size_t size = a.size(); | 75 | 258 | const A* __restrict a_pos = a.data(); | 76 | 258 | const B* __restrict b_pos = b.data(); | 77 | 258 | UInt8* __restrict c_pos = c.data(); | 78 | 258 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 528 | while (a_pos < a_end) { | 81 | 270 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 270 | ++a_pos; | 83 | 270 | ++b_pos; | 84 | 270 | ++c_pos; | 85 | 270 | } | 86 | 258 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 144 | PaddedPODArray<UInt8>& c) { | 74 | 144 | size_t size = a.size(); | 75 | 144 | const A* __restrict a_pos = a.data(); | 76 | 144 | const B* __restrict b_pos = b.data(); | 77 | 144 | UInt8* __restrict c_pos = c.data(); | 78 | 144 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 361 | while (a_pos < a_end) { | 81 | 217 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 217 | ++a_pos; | 83 | 217 | ++b_pos; | 84 | 217 | ++c_pos; | 85 | 217 | } | 86 | 144 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 3 | PaddedPODArray<UInt8>& c) { | 74 | 3 | size_t size = a.size(); | 75 | 3 | const A* __restrict a_pos = a.data(); | 76 | 3 | const B* __restrict b_pos = b.data(); | 77 | 3 | UInt8* __restrict c_pos = c.data(); | 78 | 3 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 13 | while (a_pos < a_end) { | 81 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 10 | ++a_pos; | 83 | 10 | ++b_pos; | 84 | 10 | ++c_pos; | 85 | 10 | } | 86 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 159 | PaddedPODArray<UInt8>& c) { | 74 | 159 | size_t size = a.size(); | 75 | 159 | const A* __restrict a_pos = a.data(); | 76 | 159 | const B* __restrict b_pos = b.data(); | 77 | 159 | UInt8* __restrict c_pos = c.data(); | 78 | 159 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 460 | while (a_pos < a_end) { | 81 | 301 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 301 | ++a_pos; | 83 | 301 | ++b_pos; | 84 | 301 | ++c_pos; | 85 | 301 | } | 86 | 159 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 116 | PaddedPODArray<UInt8>& c) { | 74 | 116 | size_t size = a.size(); | 75 | 116 | const A* __restrict a_pos = a.data(); | 76 | 116 | const B* __restrict b_pos = b.data(); | 77 | 116 | UInt8* __restrict c_pos = c.data(); | 78 | 116 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 232 | while (a_pos < a_end) { | 81 | 116 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 116 | ++a_pos; | 83 | 116 | ++b_pos; | 84 | 116 | ++c_pos; | 85 | 116 | } | 86 | 116 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.09k | PaddedPODArray<UInt8>& c) { | 74 | 1.09k | size_t size = a.size(); | 75 | 1.09k | const A* __restrict a_pos = a.data(); | 76 | 1.09k | const B* __restrict b_pos = b.data(); | 77 | 1.09k | UInt8* __restrict c_pos = c.data(); | 78 | 1.09k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 20.0k | while (a_pos < a_end) { | 81 | 18.9k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.9k | ++a_pos; | 83 | 18.9k | ++b_pos; | 84 | 18.9k | ++c_pos; | 85 | 18.9k | } | 86 | 1.09k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 214 | PaddedPODArray<UInt8>& c) { | 74 | 214 | size_t size = a.size(); | 75 | 214 | const A* __restrict a_pos = a.data(); | 76 | 214 | const B* __restrict b_pos = b.data(); | 77 | 214 | UInt8* __restrict c_pos = c.data(); | 78 | 214 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.67k | while (a_pos < a_end) { | 81 | 1.45k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.45k | ++a_pos; | 83 | 1.45k | ++b_pos; | 84 | 1.45k | ++c_pos; | 85 | 1.45k | } | 86 | 214 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 72 | PaddedPODArray<UInt8>& c) { | 74 | 72 | size_t size = a.size(); | 75 | 72 | const A* __restrict a_pos = a.data(); | 76 | 72 | const B* __restrict b_pos = b.data(); | 77 | 72 | UInt8* __restrict c_pos = c.data(); | 78 | 72 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 144 | while (a_pos < a_end) { | 81 | 72 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 72 | ++a_pos; | 83 | 72 | ++b_pos; | 84 | 72 | ++c_pos; | 85 | 72 | } | 86 | 72 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 46 | while (a_pos < a_end) { | 81 | 23 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 23 | ++a_pos; | 83 | 23 | ++b_pos; | 84 | 23 | ++c_pos; | 85 | 23 | } | 86 | 23 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 794 | PaddedPODArray<UInt8>& c) { | 74 | 794 | size_t size = a.size(); | 75 | 794 | const A* __restrict a_pos = a.data(); | 76 | 794 | const B* __restrict b_pos = b.data(); | 77 | 794 | UInt8* __restrict c_pos = c.data(); | 78 | 794 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 38.4k | while (a_pos < a_end) { | 81 | 37.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 37.6k | ++a_pos; | 83 | 37.6k | ++b_pos; | 84 | 37.6k | ++c_pos; | 85 | 37.6k | } | 86 | 794 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 91 | PaddedPODArray<UInt8>& c) { | 74 | 91 | size_t size = a.size(); | 75 | 91 | const A* __restrict a_pos = a.data(); | 76 | 91 | const B* __restrict b_pos = b.data(); | 77 | 91 | UInt8* __restrict c_pos = c.data(); | 78 | 91 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 201 | while (a_pos < a_end) { | 81 | 110 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 110 | ++a_pos; | 83 | 110 | ++b_pos; | 84 | 110 | ++c_pos; | 85 | 110 | } | 86 | 91 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 113 | PaddedPODArray<UInt8>& c) { | 74 | 113 | size_t size = a.size(); | 75 | 113 | const A* __restrict a_pos = a.data(); | 76 | 113 | const B* __restrict b_pos = b.data(); | 77 | 113 | UInt8* __restrict c_pos = c.data(); | 78 | 113 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 297 | while (a_pos < a_end) { | 81 | 184 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 184 | ++a_pos; | 83 | 184 | ++b_pos; | 84 | 184 | ++c_pos; | 85 | 184 | } | 86 | 113 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 52 | PaddedPODArray<UInt8>& c) { | 74 | 52 | size_t size = a.size(); | 75 | 52 | const A* __restrict a_pos = a.data(); | 76 | 52 | const B* __restrict b_pos = b.data(); | 77 | 52 | UInt8* __restrict c_pos = c.data(); | 78 | 52 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 104 | while (a_pos < a_end) { | 81 | 52 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 52 | ++a_pos; | 83 | 52 | ++b_pos; | 84 | 52 | ++c_pos; | 85 | 52 | } | 86 | 52 | } |
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 | 73 | 39 | PaddedPODArray<UInt8>& c) { | 74 | 39 | size_t size = a.size(); | 75 | 39 | const A* __restrict a_pos = a.data(); | 76 | 39 | const B* __restrict b_pos = b.data(); | 77 | 39 | UInt8* __restrict c_pos = c.data(); | 78 | 39 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 108 | while (a_pos < a_end) { | 81 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 69 | ++a_pos; | 83 | 69 | ++b_pos; | 84 | 69 | ++c_pos; | 85 | 69 | } | 86 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 9 | PaddedPODArray<UInt8>& c) { | 74 | 9 | size_t size = a.size(); | 75 | 9 | const A* __restrict a_pos = a.data(); | 76 | 9 | const B* __restrict b_pos = b.data(); | 77 | 9 | UInt8* __restrict c_pos = c.data(); | 78 | 9 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 22 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 9 | } |
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 | 73 | 56 | PaddedPODArray<UInt8>& c) { | 74 | 56 | size_t size = a.size(); | 75 | 56 | const A* __restrict a_pos = a.data(); | 76 | 56 | const B* __restrict b_pos = b.data(); | 77 | 56 | UInt8* __restrict c_pos = c.data(); | 78 | 56 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 252 | while (a_pos < a_end) { | 81 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 196 | ++a_pos; | 83 | 196 | ++b_pos; | 84 | 196 | ++c_pos; | 85 | 196 | } | 86 | 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 | 73 | 1.03k | PaddedPODArray<UInt8>& c) { | 74 | 1.03k | size_t size = a.size(); | 75 | 1.03k | const A* __restrict a_pos = a.data(); | 76 | 1.03k | const B* __restrict b_pos = b.data(); | 77 | 1.03k | UInt8* __restrict c_pos = c.data(); | 78 | 1.03k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 313k | while (a_pos < a_end) { | 81 | 312k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 312k | ++a_pos; | 83 | 312k | ++b_pos; | 84 | 312k | ++c_pos; | 85 | 312k | } | 86 | 1.03k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 340 | PaddedPODArray<UInt8>& c) { | 74 | 340 | size_t size = a.size(); | 75 | 340 | const A* __restrict a_pos = a.data(); | 76 | 340 | const B* __restrict b_pos = b.data(); | 77 | 340 | UInt8* __restrict c_pos = c.data(); | 78 | 340 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.66k | while (a_pos < a_end) { | 81 | 6.32k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.32k | ++a_pos; | 83 | 6.32k | ++b_pos; | 84 | 6.32k | ++c_pos; | 85 | 6.32k | } | 86 | 340 | } |
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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 80 | while (a_pos < a_end) { | 81 | 57 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 57 | ++a_pos; | 83 | 57 | ++b_pos; | 84 | 57 | ++c_pos; | 85 | 57 | } | 86 | 23 | } |
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 | 73 | 988 | PaddedPODArray<UInt8>& c) { | 74 | 988 | size_t size = a.size(); | 75 | 988 | const A* __restrict a_pos = a.data(); | 76 | 988 | const B* __restrict b_pos = b.data(); | 77 | 988 | UInt8* __restrict c_pos = c.data(); | 78 | 988 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.66M | while (a_pos < a_end) { | 81 | 2.66M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.66M | ++a_pos; | 83 | 2.66M | ++b_pos; | 84 | 2.66M | ++c_pos; | 85 | 2.66M | } | 86 | 988 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 90 | while (a_pos < a_end) { | 81 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 55 | ++a_pos; | 83 | 55 | ++b_pos; | 84 | 55 | ++c_pos; | 85 | 55 | } | 86 | 35 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 68 | PaddedPODArray<UInt8>& c) { | 74 | 68 | size_t size = a.size(); | 75 | 68 | const A* __restrict a_pos = a.data(); | 76 | 68 | const B* __restrict b_pos = b.data(); | 77 | 68 | UInt8* __restrict c_pos = c.data(); | 78 | 68 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 380 | while (a_pos < a_end) { | 81 | 312 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 312 | ++a_pos; | 83 | 312 | ++b_pos; | 84 | 312 | ++c_pos; | 85 | 312 | } | 86 | 68 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 376 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 76 | PaddedPODArray<UInt8>& c) { | 74 | 76 | size_t size = a.size(); | 75 | 76 | const A* __restrict a_pos = a.data(); | 76 | 76 | const B* __restrict b_pos = b.data(); | 77 | 76 | UInt8* __restrict c_pos = c.data(); | 78 | 76 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 8.58k | while (a_pos < a_end) { | 81 | 8.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 8.50k | ++a_pos; | 83 | 8.50k | ++b_pos; | 84 | 8.50k | ++c_pos; | 85 | 8.50k | } | 86 | 76 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 268 | PaddedPODArray<UInt8>& c) { | 74 | 268 | size_t size = a.size(); | 75 | 268 | const A* __restrict a_pos = a.data(); | 76 | 268 | const B* __restrict b_pos = b.data(); | 77 | 268 | UInt8* __restrict c_pos = c.data(); | 78 | 268 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 799k | while (a_pos < a_end) { | 81 | 799k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 799k | ++a_pos; | 83 | 799k | ++b_pos; | 84 | 799k | ++c_pos; | 85 | 799k | } | 86 | 268 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 21 | PaddedPODArray<UInt8>& c) { | 74 | 21 | size_t size = a.size(); | 75 | 21 | const A* __restrict a_pos = a.data(); | 76 | 21 | const B* __restrict b_pos = b.data(); | 77 | 21 | UInt8* __restrict c_pos = c.data(); | 78 | 21 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 61 | while (a_pos < a_end) { | 81 | 40 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 40 | ++a_pos; | 83 | 40 | ++b_pos; | 84 | 40 | ++c_pos; | 85 | 40 | } | 86 | 21 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 124 | while (a_pos < a_end) { | 81 | 89 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 89 | ++a_pos; | 83 | 89 | ++b_pos; | 84 | 89 | ++c_pos; | 85 | 89 | } | 86 | 35 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 8 | PaddedPODArray<UInt8>& c) { | 74 | 8 | size_t size = a.size(); | 75 | 8 | const A* __restrict a_pos = a.data(); | 76 | 8 | const B* __restrict b_pos = b.data(); | 77 | 8 | UInt8* __restrict c_pos = c.data(); | 78 | 8 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 67 | while (a_pos < a_end) { | 81 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 59 | ++a_pos; | 83 | 59 | ++b_pos; | 84 | 59 | ++c_pos; | 85 | 59 | } | 86 | 8 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 361 | PaddedPODArray<UInt8>& c) { | 74 | 361 | size_t size = a.size(); | 75 | 361 | const A* __restrict a_pos = a.data(); | 76 | 361 | const B* __restrict b_pos = b.data(); | 77 | 361 | UInt8* __restrict c_pos = c.data(); | 78 | 361 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.46k | while (a_pos < a_end) { | 81 | 1.10k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.10k | ++a_pos; | 83 | 1.10k | ++b_pos; | 84 | 1.10k | ++c_pos; | 85 | 1.10k | } | 86 | 361 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 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 | 73 | 19 | PaddedPODArray<UInt8>& c) { | 74 | 19 | size_t size = a.size(); | 75 | 19 | const A* __restrict a_pos = a.data(); | 76 | 19 | const B* __restrict b_pos = b.data(); | 77 | 19 | UInt8* __restrict c_pos = c.data(); | 78 | 19 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 4.15k | while (a_pos < a_end) { | 81 | 4.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4.13k | ++a_pos; | 83 | 4.13k | ++b_pos; | 84 | 4.13k | ++c_pos; | 85 | 4.13k | } | 86 | 19 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 32 | PaddedPODArray<UInt8>& c) { | 74 | 32 | size_t size = a.size(); | 75 | 32 | const A* __restrict a_pos = a.data(); | 76 | 32 | const B* __restrict b_pos = b.data(); | 77 | 32 | UInt8* __restrict c_pos = c.data(); | 78 | 32 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12.3k | while (a_pos < a_end) { | 81 | 12.3k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 12.3k | ++a_pos; | 83 | 12.3k | ++b_pos; | 84 | 12.3k | ++c_pos; | 85 | 12.3k | } | 86 | 32 | } |
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 | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 108 | PaddedPODArray<UInt8>& c) { | 74 | 108 | size_t size = a.size(); | 75 | 108 | const A* __restrict a_pos = a.data(); | 76 | 108 | const B* __restrict b_pos = b.data(); | 77 | 108 | UInt8* __restrict c_pos = c.data(); | 78 | 108 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 864 | while (a_pos < a_end) { | 81 | 756 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 756 | ++a_pos; | 83 | 756 | ++b_pos; | 84 | 756 | ++c_pos; | 85 | 756 | } | 86 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 24 | PaddedPODArray<UInt8>& c) { | 74 | 24 | size_t size = a.size(); | 75 | 24 | const A* __restrict a_pos = a.data(); | 76 | 24 | const B* __restrict b_pos = b.data(); | 77 | 24 | UInt8* __restrict c_pos = c.data(); | 78 | 24 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 68 | while (a_pos < a_end) { | 81 | 44 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 44 | ++a_pos; | 83 | 44 | ++b_pos; | 84 | 44 | ++c_pos; | 85 | 44 | } | 86 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 85 | PaddedPODArray<UInt8>& c) { | 74 | 85 | size_t size = a.size(); | 75 | 85 | const A* __restrict a_pos = a.data(); | 76 | 85 | const B* __restrict b_pos = b.data(); | 77 | 85 | UInt8* __restrict c_pos = c.data(); | 78 | 85 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 344 | while (a_pos < a_end) { | 81 | 259 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 259 | ++a_pos; | 83 | 259 | ++b_pos; | 84 | 259 | ++c_pos; | 85 | 259 | } | 86 | 85 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.68k | PaddedPODArray<UInt8>& c) { | 74 | 1.68k | size_t size = a.size(); | 75 | 1.68k | const A* __restrict a_pos = a.data(); | 76 | 1.68k | const B* __restrict b_pos = b.data(); | 77 | 1.68k | UInt8* __restrict c_pos = c.data(); | 78 | 1.68k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.80M | while (a_pos < a_end) { | 81 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.80M | ++a_pos; | 83 | 1.80M | ++b_pos; | 84 | 1.80M | ++c_pos; | 85 | 1.80M | } | 86 | 1.68k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 238 | PaddedPODArray<UInt8>& c) { | 74 | 238 | size_t size = a.size(); | 75 | 238 | const A* __restrict a_pos = a.data(); | 76 | 238 | const B* __restrict b_pos = b.data(); | 77 | 238 | UInt8* __restrict c_pos = c.data(); | 78 | 238 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 824 | while (a_pos < a_end) { | 81 | 586 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 586 | ++a_pos; | 83 | 586 | ++b_pos; | 84 | 586 | ++c_pos; | 85 | 586 | } | 86 | 238 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 114 | PaddedPODArray<UInt8>& c) { | 74 | 114 | size_t size = a.size(); | 75 | 114 | const A* __restrict a_pos = a.data(); | 76 | 114 | const B* __restrict b_pos = b.data(); | 77 | 114 | UInt8* __restrict c_pos = c.data(); | 78 | 114 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 245 | while (a_pos < a_end) { | 81 | 131 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 131 | ++a_pos; | 83 | 131 | ++b_pos; | 84 | 131 | ++c_pos; | 85 | 131 | } | 86 | 114 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 217 | PaddedPODArray<UInt8>& c) { | 74 | 217 | size_t size = a.size(); | 75 | 217 | const A* __restrict a_pos = a.data(); | 76 | 217 | const B* __restrict b_pos = b.data(); | 77 | 217 | UInt8* __restrict c_pos = c.data(); | 78 | 217 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 608 | while (a_pos < a_end) { | 81 | 391 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 391 | ++a_pos; | 83 | 391 | ++b_pos; | 84 | 391 | ++c_pos; | 85 | 391 | } | 86 | 217 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 156 | PaddedPODArray<UInt8>& c) { | 74 | 156 | size_t size = a.size(); | 75 | 156 | const A* __restrict a_pos = a.data(); | 76 | 156 | const B* __restrict b_pos = b.data(); | 77 | 156 | UInt8* __restrict c_pos = c.data(); | 78 | 156 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 488 | while (a_pos < a_end) { | 81 | 332 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 332 | ++a_pos; | 83 | 332 | ++b_pos; | 84 | 332 | ++c_pos; | 85 | 332 | } | 86 | 156 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 906 | PaddedPODArray<UInt8>& c) { | 74 | 906 | size_t size = a.size(); | 75 | 906 | const A* __restrict a_pos = a.data(); | 76 | 906 | const B* __restrict b_pos = b.data(); | 77 | 906 | UInt8* __restrict c_pos = c.data(); | 78 | 906 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 18.9k | while (a_pos < a_end) { | 81 | 17.9k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 17.9k | ++a_pos; | 83 | 17.9k | ++b_pos; | 84 | 17.9k | ++c_pos; | 85 | 17.9k | } | 86 | 906 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 319 | PaddedPODArray<UInt8>& c) { | 74 | 319 | size_t size = a.size(); | 75 | 319 | const A* __restrict a_pos = a.data(); | 76 | 319 | const B* __restrict b_pos = b.data(); | 77 | 319 | UInt8* __restrict c_pos = c.data(); | 78 | 319 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 349k | while (a_pos < a_end) { | 81 | 349k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 349k | ++a_pos; | 83 | 349k | ++b_pos; | 84 | 349k | ++c_pos; | 85 | 349k | } | 86 | 319 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 132 | PaddedPODArray<UInt8>& c) { | 74 | 132 | size_t size = a.size(); | 75 | 132 | const A* __restrict a_pos = a.data(); | 76 | 132 | const B* __restrict b_pos = b.data(); | 77 | 132 | UInt8* __restrict c_pos = c.data(); | 78 | 132 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 438 | while (a_pos < a_end) { | 81 | 306 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 306 | ++a_pos; | 83 | 306 | ++b_pos; | 84 | 306 | ++c_pos; | 85 | 306 | } | 86 | 132 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 110 | PaddedPODArray<UInt8>& c) { | 74 | 110 | size_t size = a.size(); | 75 | 110 | const A* __restrict a_pos = a.data(); | 76 | 110 | const B* __restrict b_pos = b.data(); | 77 | 110 | UInt8* __restrict c_pos = c.data(); | 78 | 110 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 868 | while (a_pos < a_end) { | 81 | 758 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 758 | ++a_pos; | 83 | 758 | ++b_pos; | 84 | 758 | ++c_pos; | 85 | 758 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 127 | PaddedPODArray<UInt8>& c) { | 74 | 127 | size_t size = a.size(); | 75 | 127 | const A* __restrict a_pos = a.data(); | 76 | 127 | const B* __restrict b_pos = b.data(); | 77 | 127 | UInt8* __restrict c_pos = c.data(); | 78 | 127 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 447 | while (a_pos < a_end) { | 81 | 320 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 320 | ++a_pos; | 83 | 320 | ++b_pos; | 84 | 320 | ++c_pos; | 85 | 320 | } | 86 | 127 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 135 | PaddedPODArray<UInt8>& c) { | 74 | 135 | size_t size = a.size(); | 75 | 135 | const A* __restrict a_pos = a.data(); | 76 | 135 | const B* __restrict b_pos = b.data(); | 77 | 135 | UInt8* __restrict c_pos = c.data(); | 78 | 135 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 487 | while (a_pos < a_end) { | 81 | 352 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 352 | ++a_pos; | 83 | 352 | ++b_pos; | 84 | 352 | ++c_pos; | 85 | 352 | } | 86 | 135 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 371 | PaddedPODArray<UInt8>& c) { | 74 | 371 | size_t size = a.size(); | 75 | 371 | const A* __restrict a_pos = a.data(); | 76 | 371 | const B* __restrict b_pos = b.data(); | 77 | 371 | UInt8* __restrict c_pos = c.data(); | 78 | 371 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5.95k | while (a_pos < a_end) { | 81 | 5.58k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.58k | ++a_pos; | 83 | 5.58k | ++b_pos; | 84 | 5.58k | ++c_pos; | 85 | 5.58k | } | 86 | 371 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 26 | PaddedPODArray<UInt8>& c) { | 74 | 26 | size_t size = a.size(); | 75 | 26 | const A* __restrict a_pos = a.data(); | 76 | 26 | const B* __restrict b_pos = b.data(); | 77 | 26 | UInt8* __restrict c_pos = c.data(); | 78 | 26 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 72 | while (a_pos < a_end) { | 81 | 46 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 46 | ++a_pos; | 83 | 46 | ++b_pos; | 84 | 46 | ++c_pos; | 85 | 46 | } | 86 | 26 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 11 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 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 | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 16.4k | while (a_pos < a_end) { | 81 | 16.4k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 16.4k | ++a_pos; | 83 | 16.4k | ++b_pos; | 84 | 16.4k | ++c_pos; | 85 | 16.4k | } | 86 | 35 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 37 | PaddedPODArray<UInt8>& c) { | 74 | 37 | size_t size = a.size(); | 75 | 37 | const A* __restrict a_pos = a.data(); | 76 | 37 | const B* __restrict b_pos = b.data(); | 77 | 37 | UInt8* __restrict c_pos = c.data(); | 78 | 37 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 82 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 37 | } |
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 _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
87 | | |
88 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
89 | 58.5k | PaddedPODArray<UInt8>& c) { |
90 | 58.5k | size_t size = a.size(); |
91 | 58.5k | const A* __restrict a_pos = a.data(); |
92 | 58.5k | UInt8* __restrict c_pos = c.data(); |
93 | 58.5k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 34.4M | while (a_pos < a_end) { |
96 | 34.4M | *c_pos = Op::apply(*a_pos, b); |
97 | 34.4M | ++a_pos; |
98 | 34.4M | ++c_pos; |
99 | 34.4M | } |
100 | 58.5k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 30 | PaddedPODArray<UInt8>& c) { | 90 | 30 | size_t size = a.size(); | 91 | 30 | const A* __restrict a_pos = a.data(); | 92 | 30 | UInt8* __restrict c_pos = c.data(); | 93 | 30 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 180 | while (a_pos < a_end) { | 96 | 150 | *c_pos = Op::apply(*a_pos, b); | 97 | 150 | ++a_pos; | 98 | 150 | ++c_pos; | 99 | 150 | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 481 | PaddedPODArray<UInt8>& c) { | 90 | 481 | size_t size = a.size(); | 91 | 481 | const A* __restrict a_pos = a.data(); | 92 | 481 | UInt8* __restrict c_pos = c.data(); | 93 | 481 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 202k | while (a_pos < a_end) { | 96 | 202k | *c_pos = Op::apply(*a_pos, b); | 97 | 202k | ++a_pos; | 98 | 202k | ++c_pos; | 99 | 202k | } | 100 | 481 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 190 | PaddedPODArray<UInt8>& c) { | 90 | 190 | size_t size = a.size(); | 91 | 190 | const A* __restrict a_pos = a.data(); | 92 | 190 | UInt8* __restrict c_pos = c.data(); | 93 | 190 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 125k | while (a_pos < a_end) { | 96 | 125k | *c_pos = Op::apply(*a_pos, b); | 97 | 125k | ++a_pos; | 98 | 125k | ++c_pos; | 99 | 125k | } | 100 | 190 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 89 | PaddedPODArray<UInt8>& c) { | 90 | 89 | size_t size = a.size(); | 91 | 89 | const A* __restrict a_pos = a.data(); | 92 | 89 | UInt8* __restrict c_pos = c.data(); | 93 | 89 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 184 | while (a_pos < a_end) { | 96 | 95 | *c_pos = Op::apply(*a_pos, b); | 97 | 95 | ++a_pos; | 98 | 95 | ++c_pos; | 99 | 95 | } | 100 | 89 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 20 | while (a_pos < a_end) { | 96 | 10 | *c_pos = Op::apply(*a_pos, b); | 97 | 10 | ++a_pos; | 98 | 10 | ++c_pos; | 99 | 10 | } | 100 | 10 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.86k | PaddedPODArray<UInt8>& c) { | 90 | 5.86k | size_t size = a.size(); | 91 | 5.86k | const A* __restrict a_pos = a.data(); | 92 | 5.86k | UInt8* __restrict c_pos = c.data(); | 93 | 5.86k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.08M | while (a_pos < a_end) { | 96 | 9.08M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.08M | ++a_pos; | 98 | 9.08M | ++c_pos; | 99 | 9.08M | } | 100 | 5.86k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 299 | PaddedPODArray<UInt8>& c) { | 90 | 299 | size_t size = a.size(); | 91 | 299 | const A* __restrict a_pos = a.data(); | 92 | 299 | UInt8* __restrict c_pos = c.data(); | 93 | 299 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 299 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.21k | PaddedPODArray<UInt8>& c) { | 90 | 2.21k | size_t size = a.size(); | 91 | 2.21k | const A* __restrict a_pos = a.data(); | 92 | 2.21k | UInt8* __restrict c_pos = c.data(); | 93 | 2.21k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 196k | while (a_pos < a_end) { | 96 | 194k | *c_pos = Op::apply(*a_pos, b); | 97 | 194k | ++a_pos; | 98 | 194k | ++c_pos; | 99 | 194k | } | 100 | 2.21k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7.36k | PaddedPODArray<UInt8>& c) { | 90 | 7.36k | size_t size = a.size(); | 91 | 7.36k | const A* __restrict a_pos = a.data(); | 92 | 7.36k | UInt8* __restrict c_pos = c.data(); | 93 | 7.36k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.03M | while (a_pos < a_end) { | 96 | 5.02M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.02M | ++a_pos; | 98 | 5.02M | ++c_pos; | 99 | 5.02M | } | 100 | 7.36k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 45 | PaddedPODArray<UInt8>& c) { | 90 | 45 | size_t size = a.size(); | 91 | 45 | const A* __restrict a_pos = a.data(); | 92 | 45 | UInt8* __restrict c_pos = c.data(); | 93 | 45 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 100k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 45 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7 | PaddedPODArray<UInt8>& c) { | 90 | 7 | size_t size = a.size(); | 91 | 7 | const A* __restrict a_pos = a.data(); | 92 | 7 | UInt8* __restrict c_pos = c.data(); | 93 | 7 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 21 | while (a_pos < a_end) { | 96 | 14 | *c_pos = Op::apply(*a_pos, b); | 97 | 14 | ++a_pos; | 98 | 14 | ++c_pos; | 99 | 14 | } | 100 | 7 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 4 | *c_pos = Op::apply(*a_pos, b); | 97 | 4 | ++a_pos; | 98 | 4 | ++c_pos; | 99 | 4 | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.02k | PaddedPODArray<UInt8>& c) { | 90 | 2.02k | size_t size = a.size(); | 91 | 2.02k | const A* __restrict a_pos = a.data(); | 92 | 2.02k | UInt8* __restrict c_pos = c.data(); | 93 | 2.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 68.5k | while (a_pos < a_end) { | 96 | 66.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 66.5k | ++a_pos; | 98 | 66.5k | ++c_pos; | 99 | 66.5k | } | 100 | 2.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 781 | PaddedPODArray<UInt8>& c) { | 90 | 781 | size_t size = a.size(); | 91 | 781 | const A* __restrict a_pos = a.data(); | 92 | 781 | UInt8* __restrict c_pos = c.data(); | 93 | 781 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 719k | while (a_pos < a_end) { | 96 | 718k | *c_pos = Op::apply(*a_pos, b); | 97 | 718k | ++a_pos; | 98 | 718k | ++c_pos; | 99 | 718k | } | 100 | 781 | } |
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 | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 82 | while (a_pos < a_end) { | 96 | 51 | *c_pos = Op::apply(*a_pos, b); | 97 | 51 | ++a_pos; | 98 | 51 | ++c_pos; | 99 | 51 | } | 100 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 6 | *c_pos = Op::apply(*a_pos, b); | 97 | 6 | ++a_pos; | 98 | 6 | ++c_pos; | 99 | 6 | } | 100 | 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 | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78 | while (a_pos < a_end) { | 96 | 50 | *c_pos = Op::apply(*a_pos, b); | 97 | 50 | ++a_pos; | 98 | 50 | ++c_pos; | 99 | 50 | } | 100 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 251 | PaddedPODArray<UInt8>& c) { | 90 | 251 | size_t size = a.size(); | 91 | 251 | const A* __restrict a_pos = a.data(); | 92 | 251 | UInt8* __restrict c_pos = c.data(); | 93 | 251 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.97k | while (a_pos < a_end) { | 96 | 1.72k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.72k | ++a_pos; | 98 | 1.72k | ++c_pos; | 99 | 1.72k | } | 100 | 251 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 762 | PaddedPODArray<UInt8>& c) { | 90 | 762 | size_t size = a.size(); | 91 | 762 | const A* __restrict a_pos = a.data(); | 92 | 762 | UInt8* __restrict c_pos = c.data(); | 93 | 762 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.93k | while (a_pos < a_end) { | 96 | 5.17k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.17k | ++a_pos; | 98 | 5.17k | ++c_pos; | 99 | 5.17k | } | 100 | 762 | } |
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 Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 70 | while (a_pos < a_end) { | 96 | 42 | *c_pos = Op::apply(*a_pos, b); | 97 | 42 | ++a_pos; | 98 | 42 | ++c_pos; | 99 | 42 | } | 100 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 40 | PaddedPODArray<UInt8>& c) { | 90 | 40 | size_t size = a.size(); | 91 | 40 | const A* __restrict a_pos = a.data(); | 92 | 40 | UInt8* __restrict c_pos = c.data(); | 93 | 40 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 282 | while (a_pos < a_end) { | 96 | 242 | *c_pos = Op::apply(*a_pos, b); | 97 | 242 | ++a_pos; | 98 | 242 | ++c_pos; | 99 | 242 | } | 100 | 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 | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149 | while (a_pos < a_end) { | 96 | 108 | *c_pos = Op::apply(*a_pos, b); | 97 | 108 | ++a_pos; | 98 | 108 | ++c_pos; | 99 | 108 | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 363 | PaddedPODArray<UInt8>& c) { | 90 | 363 | size_t size = a.size(); | 91 | 363 | const A* __restrict a_pos = a.data(); | 92 | 363 | UInt8* __restrict c_pos = c.data(); | 93 | 363 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.34M | while (a_pos < a_end) { | 96 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.34M | ++a_pos; | 98 | 1.34M | ++c_pos; | 99 | 1.34M | } | 100 | 363 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 5 | *c_pos = Op::apply(*a_pos, b); | 97 | 5 | ++a_pos; | 98 | 5 | ++c_pos; | 99 | 5 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 263 | while (a_pos < a_end) { | 96 | 204 | *c_pos = Op::apply(*a_pos, b); | 97 | 204 | ++a_pos; | 98 | 204 | ++c_pos; | 99 | 204 | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 37 | PaddedPODArray<UInt8>& c) { | 90 | 37 | size_t size = a.size(); | 91 | 37 | const A* __restrict a_pos = a.data(); | 92 | 37 | UInt8* __restrict c_pos = c.data(); | 93 | 37 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86 | while (a_pos < a_end) { | 96 | 49 | *c_pos = Op::apply(*a_pos, b); | 97 | 49 | ++a_pos; | 98 | 49 | ++c_pos; | 99 | 49 | } | 100 | 37 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 112 | while (a_pos < a_end) { | 96 | 66 | *c_pos = Op::apply(*a_pos, b); | 97 | 66 | ++a_pos; | 98 | 66 | ++c_pos; | 99 | 66 | } | 100 | 46 | } |
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 | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 7 | *c_pos = Op::apply(*a_pos, b); | 97 | 7 | ++a_pos; | 98 | 7 | ++c_pos; | 99 | 7 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.59k | PaddedPODArray<UInt8>& c) { | 90 | 1.59k | size_t size = a.size(); | 91 | 1.59k | const A* __restrict a_pos = a.data(); | 92 | 1.59k | UInt8* __restrict c_pos = c.data(); | 93 | 1.59k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 14.0k | while (a_pos < a_end) { | 96 | 12.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 12.4k | ++a_pos; | 98 | 12.4k | ++c_pos; | 99 | 12.4k | } | 100 | 1.59k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.14k | PaddedPODArray<UInt8>& c) { | 90 | 2.14k | size_t size = a.size(); | 91 | 2.14k | const A* __restrict a_pos = a.data(); | 92 | 2.14k | UInt8* __restrict c_pos = c.data(); | 93 | 2.14k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.96k | while (a_pos < a_end) { | 96 | 3.81k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.81k | ++a_pos; | 98 | 3.81k | ++c_pos; | 99 | 3.81k | } | 100 | 2.14k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.98k | PaddedPODArray<UInt8>& c) { | 90 | 1.98k | size_t size = a.size(); | 91 | 1.98k | const A* __restrict a_pos = a.data(); | 92 | 1.98k | UInt8* __restrict c_pos = c.data(); | 93 | 1.98k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.30k | while (a_pos < a_end) { | 96 | 5.32k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.32k | ++a_pos; | 98 | 5.32k | ++c_pos; | 99 | 5.32k | } | 100 | 1.98k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 224 | PaddedPODArray<UInt8>& c) { | 90 | 224 | size_t size = a.size(); | 91 | 224 | const A* __restrict a_pos = a.data(); | 92 | 224 | UInt8* __restrict c_pos = c.data(); | 93 | 224 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.20k | while (a_pos < a_end) { | 96 | 977 | *c_pos = Op::apply(*a_pos, b); | 97 | 977 | ++a_pos; | 98 | 977 | ++c_pos; | 99 | 977 | } | 100 | 224 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10.4k | PaddedPODArray<UInt8>& c) { | 90 | 10.4k | size_t size = a.size(); | 91 | 10.4k | const A* __restrict a_pos = a.data(); | 92 | 10.4k | UInt8* __restrict c_pos = c.data(); | 93 | 10.4k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.27M | while (a_pos < a_end) { | 96 | 5.26M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.26M | ++a_pos; | 98 | 5.26M | ++c_pos; | 99 | 5.26M | } | 100 | 10.4k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4.20k | PaddedPODArray<UInt8>& c) { | 90 | 4.20k | size_t size = a.size(); | 91 | 4.20k | const A* __restrict a_pos = a.data(); | 92 | 4.20k | UInt8* __restrict c_pos = c.data(); | 93 | 4.20k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 976k | while (a_pos < a_end) { | 96 | 972k | *c_pos = Op::apply(*a_pos, b); | 97 | 972k | ++a_pos; | 98 | 972k | ++c_pos; | 99 | 972k | } | 100 | 4.20k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.93k | PaddedPODArray<UInt8>& c) { | 90 | 1.93k | size_t size = a.size(); | 91 | 1.93k | const A* __restrict a_pos = a.data(); | 92 | 1.93k | UInt8* __restrict c_pos = c.data(); | 93 | 1.93k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.4k | while (a_pos < a_end) { | 96 | 97.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.4k | ++a_pos; | 98 | 97.4k | ++c_pos; | 99 | 97.4k | } | 100 | 1.93k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.10k | PaddedPODArray<UInt8>& c) { | 90 | 1.10k | size_t size = a.size(); | 91 | 1.10k | const A* __restrict a_pos = a.data(); | 92 | 1.10k | UInt8* __restrict c_pos = c.data(); | 93 | 1.10k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 32.8k | while (a_pos < a_end) { | 96 | 31.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 31.7k | ++a_pos; | 98 | 31.7k | ++c_pos; | 99 | 31.7k | } | 100 | 1.10k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 274 | PaddedPODArray<UInt8>& c) { | 90 | 274 | size_t size = a.size(); | 91 | 274 | const A* __restrict a_pos = a.data(); | 92 | 274 | UInt8* __restrict c_pos = c.data(); | 93 | 274 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.91k | while (a_pos < a_end) { | 96 | 1.64k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.64k | ++a_pos; | 98 | 1.64k | ++c_pos; | 99 | 1.64k | } | 100 | 274 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 144 | PaddedPODArray<UInt8>& c) { | 90 | 144 | size_t size = a.size(); | 91 | 144 | const A* __restrict a_pos = a.data(); | 92 | 144 | UInt8* __restrict c_pos = c.data(); | 93 | 144 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86.2k | while (a_pos < a_end) { | 96 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 86.1k | ++a_pos; | 98 | 86.1k | ++c_pos; | 99 | 86.1k | } | 100 | 144 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 31 | while (a_pos < a_end) { | 96 | 28 | *c_pos = Op::apply(*a_pos, b); | 97 | 28 | ++a_pos; | 98 | 28 | ++c_pos; | 99 | 28 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 22 | while (a_pos < a_end) { | 96 | 20 | *c_pos = Op::apply(*a_pos, b); | 97 | 20 | ++a_pos; | 98 | 20 | ++c_pos; | 99 | 20 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 507 | PaddedPODArray<UInt8>& c) { | 90 | 507 | size_t size = a.size(); | 91 | 507 | const A* __restrict a_pos = a.data(); | 92 | 507 | UInt8* __restrict c_pos = c.data(); | 93 | 507 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.12k | while (a_pos < a_end) { | 96 | 3.61k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.61k | ++a_pos; | 98 | 3.61k | ++c_pos; | 99 | 3.61k | } | 100 | 507 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 347 | PaddedPODArray<UInt8>& c) { | 90 | 347 | size_t size = a.size(); | 91 | 347 | const A* __restrict a_pos = a.data(); | 92 | 347 | UInt8* __restrict c_pos = c.data(); | 93 | 347 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.02k | while (a_pos < a_end) { | 96 | 6.67k | *c_pos = Op::apply(*a_pos, b); | 97 | 6.67k | ++a_pos; | 98 | 6.67k | ++c_pos; | 99 | 6.67k | } | 100 | 347 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 401 | PaddedPODArray<UInt8>& c) { | 90 | 401 | size_t size = a.size(); | 91 | 401 | const A* __restrict a_pos = a.data(); | 92 | 401 | UInt8* __restrict c_pos = c.data(); | 93 | 401 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.18k | while (a_pos < a_end) { | 96 | 2.78k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.78k | ++a_pos; | 98 | 2.78k | ++c_pos; | 99 | 2.78k | } | 100 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 574 | PaddedPODArray<UInt8>& c) { | 90 | 574 | size_t size = a.size(); | 91 | 574 | const A* __restrict a_pos = a.data(); | 92 | 574 | UInt8* __restrict c_pos = c.data(); | 93 | 574 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.03k | while (a_pos < a_end) { | 96 | 8.45k | *c_pos = Op::apply(*a_pos, b); | 97 | 8.45k | ++a_pos; | 98 | 8.45k | ++c_pos; | 99 | 8.45k | } | 100 | 574 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.18k | PaddedPODArray<UInt8>& c) { | 90 | 1.18k | size_t size = a.size(); | 91 | 1.18k | const A* __restrict a_pos = a.data(); | 92 | 1.18k | UInt8* __restrict c_pos = c.data(); | 93 | 1.18k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 284k | while (a_pos < a_end) { | 96 | 283k | *c_pos = Op::apply(*a_pos, b); | 97 | 283k | ++a_pos; | 98 | 283k | ++c_pos; | 99 | 283k | } | 100 | 1.18k | } |
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 | 89 | 33 | PaddedPODArray<UInt8>& c) { | 90 | 33 | size_t size = a.size(); | 91 | 33 | const A* __restrict a_pos = a.data(); | 92 | 33 | UInt8* __restrict c_pos = c.data(); | 93 | 33 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149k | while (a_pos < a_end) { | 96 | 149k | *c_pos = Op::apply(*a_pos, b); | 97 | 149k | ++a_pos; | 98 | 149k | ++c_pos; | 99 | 149k | } | 100 | 33 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 60.9k | while (a_pos < a_end) { | 96 | 60.9k | *c_pos = Op::apply(*a_pos, b); | 97 | 60.9k | ++a_pos; | 98 | 60.9k | ++c_pos; | 99 | 60.9k | } | 100 | 31 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 451 | PaddedPODArray<UInt8>& c) { | 90 | 451 | size_t size = a.size(); | 91 | 451 | const A* __restrict a_pos = a.data(); | 92 | 451 | UInt8* __restrict c_pos = c.data(); | 93 | 451 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.42M | while (a_pos < a_end) { | 96 | 1.42M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.42M | ++a_pos; | 98 | 1.42M | ++c_pos; | 99 | 1.42M | } | 100 | 451 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 133 | PaddedPODArray<UInt8>& c) { | 90 | 133 | size_t size = a.size(); | 91 | 133 | const A* __restrict a_pos = a.data(); | 92 | 133 | UInt8* __restrict c_pos = c.data(); | 93 | 133 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 654k | while (a_pos < a_end) { | 96 | 654k | *c_pos = Op::apply(*a_pos, b); | 97 | 654k | ++a_pos; | 98 | 654k | ++c_pos; | 99 | 654k | } | 100 | 133 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 120 | PaddedPODArray<UInt8>& c) { | 90 | 120 | size_t size = a.size(); | 91 | 120 | const A* __restrict a_pos = a.data(); | 92 | 120 | UInt8* __restrict c_pos = c.data(); | 93 | 120 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 437 | while (a_pos < a_end) { | 96 | 317 | *c_pos = Op::apply(*a_pos, b); | 97 | 317 | ++a_pos; | 98 | 317 | ++c_pos; | 99 | 317 | } | 100 | 120 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 64 | PaddedPODArray<UInt8>& c) { | 90 | 64 | size_t size = a.size(); | 91 | 64 | const A* __restrict a_pos = a.data(); | 92 | 64 | UInt8* __restrict c_pos = c.data(); | 93 | 64 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 225 | while (a_pos < a_end) { | 96 | 161 | *c_pos = Op::apply(*a_pos, b); | 97 | 161 | ++a_pos; | 98 | 161 | ++c_pos; | 99 | 161 | } | 100 | 64 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 50 | PaddedPODArray<UInt8>& c) { | 90 | 50 | size_t size = a.size(); | 91 | 50 | const A* __restrict a_pos = a.data(); | 92 | 50 | UInt8* __restrict c_pos = c.data(); | 93 | 50 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 126 | while (a_pos < a_end) { | 96 | 76 | *c_pos = Op::apply(*a_pos, b); | 97 | 76 | ++a_pos; | 98 | 76 | ++c_pos; | 99 | 76 | } | 100 | 50 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 42 | PaddedPODArray<UInt8>& c) { | 90 | 42 | size_t size = a.size(); | 91 | 42 | const A* __restrict a_pos = a.data(); | 92 | 42 | UInt8* __restrict c_pos = c.data(); | 93 | 42 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 104 | while (a_pos < a_end) { | 96 | 62 | *c_pos = Op::apply(*a_pos, b); | 97 | 62 | ++a_pos; | 98 | 62 | ++c_pos; | 99 | 62 | } | 100 | 42 | } |
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 | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 180k | while (a_pos < a_end) { | 96 | 180k | *c_pos = Op::apply(*a_pos, b); | 97 | 180k | ++a_pos; | 98 | 180k | ++c_pos; | 99 | 180k | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 54 | PaddedPODArray<UInt8>& c) { | 90 | 54 | size_t size = a.size(); | 91 | 54 | const A* __restrict a_pos = a.data(); | 92 | 54 | UInt8* __restrict c_pos = c.data(); | 93 | 54 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 152k | while (a_pos < a_end) { | 96 | 152k | *c_pos = Op::apply(*a_pos, b); | 97 | 152k | ++a_pos; | 98 | 152k | ++c_pos; | 99 | 152k | } | 100 | 54 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 55 | PaddedPODArray<UInt8>& c) { | 90 | 55 | size_t size = a.size(); | 91 | 55 | const A* __restrict a_pos = a.data(); | 92 | 55 | UInt8* __restrict c_pos = c.data(); | 93 | 55 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 130k | while (a_pos < a_end) { | 96 | 130k | *c_pos = Op::apply(*a_pos, b); | 97 | 130k | ++a_pos; | 98 | 130k | ++c_pos; | 99 | 130k | } | 100 | 55 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 62 | PaddedPODArray<UInt8>& c) { | 90 | 62 | size_t size = a.size(); | 91 | 62 | const A* __restrict a_pos = a.data(); | 92 | 62 | UInt8* __restrict c_pos = c.data(); | 93 | 62 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 89.6k | while (a_pos < a_end) { | 96 | 89.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 89.5k | ++a_pos; | 98 | 89.5k | ++c_pos; | 99 | 89.5k | } | 100 | 62 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 662 | PaddedPODArray<UInt8>& c) { | 90 | 662 | size_t size = a.size(); | 91 | 662 | const A* __restrict a_pos = a.data(); | 92 | 662 | UInt8* __restrict c_pos = c.data(); | 93 | 662 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.48M | while (a_pos < a_end) { | 96 | 1.48M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.48M | ++a_pos; | 98 | 1.48M | ++c_pos; | 99 | 1.48M | } | 100 | 662 | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.11k | PaddedPODArray<UInt8>& c) { | 90 | 6.11k | size_t size = a.size(); | 91 | 6.11k | const A* __restrict a_pos = a.data(); | 92 | 6.11k | UInt8* __restrict c_pos = c.data(); | 93 | 6.11k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.43M | while (a_pos < a_end) { | 96 | 5.43M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.43M | ++a_pos; | 98 | 5.43M | ++c_pos; | 99 | 5.43M | } | 100 | 6.11k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 802 | PaddedPODArray<UInt8>& c) { | 90 | 802 | size_t size = a.size(); | 91 | 802 | const A* __restrict a_pos = a.data(); | 92 | 802 | UInt8* __restrict c_pos = c.data(); | 93 | 802 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.01k | while (a_pos < a_end) { | 96 | 3.21k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.21k | ++a_pos; | 98 | 3.21k | ++c_pos; | 99 | 3.21k | } | 100 | 802 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 539 | PaddedPODArray<UInt8>& c) { | 90 | 539 | size_t size = a.size(); | 91 | 539 | const A* __restrict a_pos = a.data(); | 92 | 539 | UInt8* __restrict c_pos = c.data(); | 93 | 539 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 45.4k | while (a_pos < a_end) { | 96 | 44.8k | *c_pos = Op::apply(*a_pos, b); | 97 | 44.8k | ++a_pos; | 98 | 44.8k | ++c_pos; | 99 | 44.8k | } | 100 | 539 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 145k | while (a_pos < a_end) { | 96 | 145k | *c_pos = Op::apply(*a_pos, b); | 97 | 145k | ++a_pos; | 98 | 145k | ++c_pos; | 99 | 145k | } | 100 | 31 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 29 | PaddedPODArray<UInt8>& c) { | 90 | 29 | size_t size = a.size(); | 91 | 29 | const A* __restrict a_pos = a.data(); | 92 | 29 | UInt8* __restrict c_pos = c.data(); | 93 | 29 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 105k | while (a_pos < a_end) { | 96 | 105k | *c_pos = Op::apply(*a_pos, b); | 97 | 105k | ++a_pos; | 98 | 105k | ++c_pos; | 99 | 105k | } | 100 | 29 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 469 | PaddedPODArray<UInt8>& c) { | 90 | 469 | size_t size = a.size(); | 91 | 469 | const A* __restrict a_pos = a.data(); | 92 | 469 | UInt8* __restrict c_pos = c.data(); | 93 | 469 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.1k | ++a_pos; | 98 | 49.1k | ++c_pos; | 99 | 49.1k | } | 100 | 469 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 313 | PaddedPODArray<UInt8>& c) { | 90 | 313 | size_t size = a.size(); | 91 | 313 | const A* __restrict a_pos = a.data(); | 92 | 313 | UInt8* __restrict c_pos = c.data(); | 93 | 313 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.40k | while (a_pos < a_end) { | 96 | 3.09k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.09k | ++a_pos; | 98 | 3.09k | ++c_pos; | 99 | 3.09k | } | 100 | 313 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 28 | while (a_pos < a_end) { | 96 | 18 | *c_pos = Op::apply(*a_pos, b); | 97 | 18 | ++a_pos; | 98 | 18 | ++c_pos; | 99 | 18 | } | 100 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 117 | PaddedPODArray<UInt8>& c) { | 90 | 117 | size_t size = a.size(); | 91 | 117 | const A* __restrict a_pos = a.data(); | 92 | 117 | UInt8* __restrict c_pos = c.data(); | 93 | 117 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 117 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 123 | PaddedPODArray<UInt8>& c) { | 90 | 123 | size_t size = a.size(); | 91 | 123 | const A* __restrict a_pos = a.data(); | 92 | 123 | UInt8* __restrict c_pos = c.data(); | 93 | 123 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 123 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 7.26k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 7.26k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 7.26k | } 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 _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
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 | 102 | 234 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 234 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 234 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 30 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 30 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 30 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 1.19k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 1.19k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 1.19k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
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_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 728 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 728 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 728 | } |
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: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_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_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 204 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 204 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 204 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 210 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 210 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 210 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 533 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 533 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 533 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 56 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 56 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15constant_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 | 102 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_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_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 204 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 204 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 204 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 119 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 119 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 119 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 80 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 72 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 72 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 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: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15constant_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 | 102 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_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 | 102 | 45 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 45 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 45 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 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: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 22 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 73 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
112 | 51 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
113 | 51 | } |
114 | 22 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 14 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 44 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 30 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 30 | } | 114 | 14 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 2 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 12 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 10 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 10 | } | 114 | 2 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 13 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 9 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 9 | } | 114 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
115 | | |
116 | 174 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 174 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 585k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 585k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 585k | } |
121 | 174 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 19 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 19 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 60 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 41 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 41 | } | 121 | 19 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 69 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 69 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 333k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 333k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 333k | } | 121 | 69 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 62 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 62 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 251k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 251k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 251k | } | 121 | 62 | } |
|
122 | | |
123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
125 | 1 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); | 125 | 1 | } |
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 |
126 | | }; |
127 | | |
128 | | template <typename Op> |
129 | | struct StringComparisonImpl { |
130 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
131 | | const ColumnString::Offsets& a_offsets, |
132 | | const ColumnString::Chars& b_data, |
133 | | const ColumnString::Offsets& b_offsets, |
134 | 423 | PaddedPODArray<UInt8>& c) { |
135 | 423 | size_t size = a_offsets.size(); |
136 | 423 | ColumnString::Offset prev_a_offset = 0; |
137 | 423 | ColumnString::Offset prev_b_offset = 0; |
138 | 423 | const auto* a_pos = a_data.data(); |
139 | 423 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.57k | for (size_t i = 0; i < size; ++i) { |
142 | 1.15k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.15k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.15k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.15k | 0); |
146 | | |
147 | 1.15k | prev_a_offset = a_offsets[i]; |
148 | 1.15k | prev_b_offset = b_offsets[i]; |
149 | 1.15k | } |
150 | 423 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 2 | PaddedPODArray<UInt8>& c) { | 135 | 2 | size_t size = a_offsets.size(); | 136 | 2 | ColumnString::Offset prev_a_offset = 0; | 137 | 2 | ColumnString::Offset prev_b_offset = 0; | 138 | 2 | const auto* a_pos = a_data.data(); | 139 | 2 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 49 | for (size_t i = 0; i < size; ++i) { | 142 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 47 | 0); | 146 | | | 147 | 47 | prev_a_offset = a_offsets[i]; | 148 | 47 | prev_b_offset = b_offsets[i]; | 149 | 47 | } | 150 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 31 | PaddedPODArray<UInt8>& c) { | 135 | 31 | size_t size = a_offsets.size(); | 136 | 31 | ColumnString::Offset prev_a_offset = 0; | 137 | 31 | ColumnString::Offset prev_b_offset = 0; | 138 | 31 | const auto* a_pos = a_data.data(); | 139 | 31 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 218 | for (size_t i = 0; i < size; ++i) { | 142 | 187 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 187 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 187 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 187 | 0); | 146 | | | 147 | 187 | prev_a_offset = a_offsets[i]; | 148 | 187 | prev_b_offset = b_offsets[i]; | 149 | 187 | } | 150 | 31 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 390 | PaddedPODArray<UInt8>& c) { | 135 | 390 | size_t size = a_offsets.size(); | 136 | 390 | ColumnString::Offset prev_a_offset = 0; | 137 | 390 | ColumnString::Offset prev_b_offset = 0; | 138 | 390 | const auto* a_pos = a_data.data(); | 139 | 390 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.31k | for (size_t i = 0; i < size; ++i) { | 142 | 920 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 920 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 920 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 920 | 0); | 146 | | | 147 | 920 | prev_a_offset = a_offsets[i]; | 148 | 920 | prev_b_offset = b_offsets[i]; | 149 | 920 | } | 150 | 390 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
151 | | |
152 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
153 | | const ColumnString::Offsets& a_offsets, |
154 | | const ColumnString::Chars& b_data, |
155 | | ColumnString::Offset b_size, |
156 | 1.02k | PaddedPODArray<UInt8>& c) { |
157 | 1.02k | size_t size = a_offsets.size(); |
158 | 1.02k | ColumnString::Offset prev_a_offset = 0; |
159 | 1.02k | const auto* a_pos = a_data.data(); |
160 | 1.02k | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.37M | for (size_t i = 0; i < size; ++i) { |
163 | 1.37M | c[i] = Op::apply( |
164 | 1.37M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.37M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.37M | 0); |
167 | | |
168 | 1.37M | prev_a_offset = a_offsets[i]; |
169 | 1.37M | } |
170 | 1.02k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 229 | PaddedPODArray<UInt8>& c) { | 157 | 229 | size_t size = a_offsets.size(); | 158 | 229 | ColumnString::Offset prev_a_offset = 0; | 159 | 229 | const auto* a_pos = a_data.data(); | 160 | 229 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 356k | for (size_t i = 0; i < size; ++i) { | 163 | 356k | c[i] = Op::apply( | 164 | 356k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 356k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 356k | 0); | 167 | | | 168 | 356k | prev_a_offset = a_offsets[i]; | 169 | 356k | } | 170 | 229 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 153 | PaddedPODArray<UInt8>& c) { | 157 | 153 | size_t size = a_offsets.size(); | 158 | 153 | ColumnString::Offset prev_a_offset = 0; | 159 | 153 | const auto* a_pos = a_data.data(); | 160 | 153 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 105k | for (size_t i = 0; i < size; ++i) { | 163 | 105k | c[i] = Op::apply( | 164 | 105k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 105k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 105k | 0); | 167 | | | 168 | 105k | prev_a_offset = a_offsets[i]; | 169 | 105k | } | 170 | 153 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 264 | PaddedPODArray<UInt8>& c) { | 157 | 264 | size_t size = a_offsets.size(); | 158 | 264 | ColumnString::Offset prev_a_offset = 0; | 159 | 264 | const auto* a_pos = a_data.data(); | 160 | 264 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 441k | for (size_t i = 0; i < size; ++i) { | 163 | 440k | c[i] = Op::apply( | 164 | 440k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 440k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 440k | 0); | 167 | | | 168 | 440k | prev_a_offset = a_offsets[i]; | 169 | 440k | } | 170 | 264 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 374 | PaddedPODArray<UInt8>& c) { | 157 | 374 | size_t size = a_offsets.size(); | 158 | 374 | ColumnString::Offset prev_a_offset = 0; | 159 | 374 | const auto* a_pos = a_data.data(); | 160 | 374 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 468k | for (size_t i = 0; i < size; ++i) { | 163 | 468k | c[i] = Op::apply( | 164 | 468k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 468k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 468k | 0); | 167 | | | 168 | 468k | prev_a_offset = a_offsets[i]; | 169 | 468k | } | 170 | 374 | } |
|
171 | | |
172 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
173 | | ColumnString::Offset a_size, |
174 | | const ColumnString::Chars& b_data, |
175 | | const ColumnString::Offsets& b_offsets, |
176 | 62 | PaddedPODArray<UInt8>& c) { |
177 | 62 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 62 | a_data, a_size, c); |
179 | 62 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 56 | PaddedPODArray<UInt8>& c) { | 177 | 56 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 56 | a_data, a_size, c); | 179 | 56 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 6 | PaddedPODArray<UInt8>& c) { | 177 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 6 | a_data, a_size, c); | 179 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
180 | | }; |
181 | | |
182 | | template <bool positive> |
183 | | struct StringEqualsImpl { |
184 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
185 | | const ColumnString::Offsets& a_offsets, |
186 | | const ColumnString::Chars& b_data, |
187 | | const ColumnString::Offsets& b_offsets, |
188 | 489 | PaddedPODArray<UInt8>& c) { |
189 | 489 | size_t size = a_offsets.size(); |
190 | 489 | ColumnString::Offset prev_a_offset = 0; |
191 | 489 | ColumnString::Offset prev_b_offset = 0; |
192 | 489 | const auto* a_pos = a_data.data(); |
193 | 489 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 13.7k | for (size_t i = 0; i < size; ++i) { |
196 | 13.2k | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 13.2k | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 13.2k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 13.2k | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 13.2k | prev_a_offset = a_offsets[i]; |
203 | 13.2k | prev_b_offset = b_offsets[i]; |
204 | 13.2k | } |
205 | 489 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 472 | PaddedPODArray<UInt8>& c) { | 189 | 472 | size_t size = a_offsets.size(); | 190 | 472 | ColumnString::Offset prev_a_offset = 0; | 191 | 472 | ColumnString::Offset prev_b_offset = 0; | 192 | 472 | const auto* a_pos = a_data.data(); | 193 | 472 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 8.62k | for (size_t i = 0; i < size; ++i) { | 196 | 8.15k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 8.15k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 8.15k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 8.15k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 8.15k | prev_a_offset = a_offsets[i]; | 203 | 8.15k | prev_b_offset = b_offsets[i]; | 204 | 8.15k | } | 205 | 472 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 17 | PaddedPODArray<UInt8>& c) { | 189 | 17 | size_t size = a_offsets.size(); | 190 | 17 | ColumnString::Offset prev_a_offset = 0; | 191 | 17 | ColumnString::Offset prev_b_offset = 0; | 192 | 17 | const auto* a_pos = a_data.data(); | 193 | 17 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 5.15k | for (size_t i = 0; i < size; ++i) { | 196 | 5.14k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 5.14k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 5.14k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 5.14k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 5.14k | prev_a_offset = a_offsets[i]; | 203 | 5.14k | prev_b_offset = b_offsets[i]; | 204 | 5.14k | } | 205 | 17 | } |
|
206 | | |
207 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
208 | | const ColumnString::Offsets& a_offsets, |
209 | | const ColumnString::Chars& b_data, |
210 | | ColumnString::Offset b_size, |
211 | 21.4k | PaddedPODArray<UInt8>& c) { |
212 | 21.4k | size_t size = a_offsets.size(); |
213 | 21.4k | if (b_size == 0) { |
214 | 1 | auto* __restrict data = c.data(); |
215 | 1 | auto* __restrict offsets = a_offsets.data(); |
216 | | |
217 | 1 | ColumnString::Offset prev_a_offset = 0; |
218 | 4 | for (size_t i = 0; i < size; ++i) { |
219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
220 | 3 | prev_a_offset = offsets[i]; |
221 | 3 | } |
222 | 21.4k | } else { |
223 | 21.4k | ColumnString::Offset prev_a_offset = 0; |
224 | 21.4k | const auto* a_pos = a_data.data(); |
225 | 21.4k | const auto* b_pos = b_data.data(); |
226 | 9.66M | for (size_t i = 0; i < size; ++i) { |
227 | 9.64M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.64M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.64M | b_pos, b_size); |
230 | 9.64M | prev_a_offset = a_offsets[i]; |
231 | 9.64M | } |
232 | 21.4k | } |
233 | 21.4k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 21.3k | PaddedPODArray<UInt8>& c) { | 212 | 21.3k | size_t size = a_offsets.size(); | 213 | 21.3k | if (b_size == 0) { | 214 | 0 | auto* __restrict data = c.data(); | 215 | 0 | auto* __restrict offsets = a_offsets.data(); | 216 | |
| 217 | 0 | ColumnString::Offset prev_a_offset = 0; | 218 | 0 | for (size_t i = 0; i < size; ++i) { | 219 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 0 | prev_a_offset = offsets[i]; | 221 | 0 | } | 222 | 21.3k | } else { | 223 | 21.3k | ColumnString::Offset prev_a_offset = 0; | 224 | 21.3k | const auto* a_pos = a_data.data(); | 225 | 21.3k | const auto* b_pos = b_data.data(); | 226 | 9.60M | for (size_t i = 0; i < size; ++i) { | 227 | 9.58M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.58M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.58M | b_pos, b_size); | 230 | 9.58M | prev_a_offset = a_offsets[i]; | 231 | 9.58M | } | 232 | 21.3k | } | 233 | 21.3k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 139 | PaddedPODArray<UInt8>& c) { | 212 | 139 | size_t size = a_offsets.size(); | 213 | 139 | if (b_size == 0) { | 214 | 1 | auto* __restrict data = c.data(); | 215 | 1 | auto* __restrict offsets = a_offsets.data(); | 216 | | | 217 | 1 | ColumnString::Offset prev_a_offset = 0; | 218 | 4 | for (size_t i = 0; i < size; ++i) { | 219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 3 | prev_a_offset = offsets[i]; | 221 | 3 | } | 222 | 138 | } else { | 223 | 138 | ColumnString::Offset prev_a_offset = 0; | 224 | 138 | const auto* a_pos = a_data.data(); | 225 | 138 | const auto* b_pos = b_data.data(); | 226 | 60.6k | for (size_t i = 0; i < size; ++i) { | 227 | 60.5k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 60.5k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 60.5k | b_pos, b_size); | 230 | 60.5k | prev_a_offset = a_offsets[i]; | 231 | 60.5k | } | 232 | 138 | } | 233 | 139 | } |
|
234 | | |
235 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
236 | | ColumnString::Offset a_size, |
237 | | const ColumnString::Chars& b_data, |
238 | | const ColumnString::Offsets& b_offsets, |
239 | 19 | PaddedPODArray<UInt8>& c) { |
240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 19 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 19 | PaddedPODArray<UInt8>& c) { | 240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 19 | } |
Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
242 | | }; |
243 | | |
244 | | template <PrimitiveType PT> |
245 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
246 | | |
247 | | template <PrimitiveType PT> |
248 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
249 | | |
250 | | struct NameEquals { |
251 | | static constexpr auto name = "eq"; |
252 | | }; |
253 | | struct NameNotEquals { |
254 | | static constexpr auto name = "ne"; |
255 | | }; |
256 | | struct NameLess { |
257 | | static constexpr auto name = "lt"; |
258 | | }; |
259 | | struct NameGreater { |
260 | | static constexpr auto name = "gt"; |
261 | | }; |
262 | | struct NameLessOrEquals { |
263 | | static constexpr auto name = "le"; |
264 | | }; |
265 | | struct NameGreaterOrEquals { |
266 | | static constexpr auto name = "ge"; |
267 | | }; |
268 | | |
269 | | namespace comparison_zonemap_detail { |
270 | | enum class Op { |
271 | | EQ, |
272 | | NE, |
273 | | LT, |
274 | | LE, |
275 | | GT, |
276 | | GE, |
277 | | }; |
278 | | |
279 | 19 | inline Op symmetric_op(Op op) { |
280 | 19 | switch (op) { |
281 | 0 | case Op::EQ: |
282 | 0 | case Op::NE: |
283 | 0 | return op; |
284 | 11 | case Op::LT: |
285 | 11 | return Op::GT; |
286 | 6 | case Op::LE: |
287 | 6 | return Op::GE; |
288 | 0 | case Op::GT: |
289 | 0 | return Op::LT; |
290 | 2 | case Op::GE: |
291 | 2 | return Op::LE; |
292 | 19 | } |
293 | 0 | __builtin_unreachable(); |
294 | 19 | } |
295 | | |
296 | | // Return true when `L <op> R` cannot be TRUE for any row, given that every non-null value of the |
297 | | // left operand lies in [lmin, lmax] and every non-null value of the right operand lies in |
298 | | // [rmin, rmax]. This only compares the four bounds: callers must already have rejected zone maps |
299 | | // whose bounds are unusable and columns that hold no non-null value at all. |
300 | | // |
301 | | // The slot-vs-literal path passes the literal as the degenerate range [literal, literal], which |
302 | | // reduces every branch below to the plain slot-vs-literal test it replaced. |
303 | | inline bool range_vs_range_no_match(const Field& lmin, const Field& lmax, const Field& rmin, |
304 | 3.70k | const Field& rmax, Op op) { |
305 | 3.70k | switch (op) { |
306 | 1.95k | case Op::EQ: |
307 | | // Disjoint ranges cannot share a value. |
308 | 1.95k | return lmin > rmax || rmin > lmax; |
309 | 183 | case Op::NE: |
310 | | // Only provable when both sides collapse to the same single value. |
311 | 183 | return lmin == lmax && rmin == rmax && lmin == rmin; |
312 | 519 | case Op::LT: |
313 | 519 | return lmin >= rmax; |
314 | 306 | case Op::LE: |
315 | 306 | return lmin > rmax; |
316 | 406 | case Op::GT: |
317 | 406 | return rmin >= lmax; |
318 | 327 | case Op::GE: |
319 | 327 | return rmin > lmax; |
320 | 3.70k | } |
321 | 0 | __builtin_unreachable(); |
322 | 3.70k | } |
323 | | |
324 | | inline ZoneMapFilterResult evaluate_slot_literal(const ZoneMapEvalContext& ctx, |
325 | | const expr_zonemap::SlotLiteral& slot_literal, |
326 | 3.41k | Op op) { |
327 | 3.41k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal.slot_index, |
328 | 3.41k | slot_literal.slot_type); |
329 | 3.41k | if (slot_type == nullptr) { |
330 | 293 | return unsupported_zonemap_filter(ctx); |
331 | 293 | } |
332 | 3.11k | auto zone_map_ptr = ctx.zone_map(slot_literal.slot_index); |
333 | 3.11k | if (zone_map_ptr == nullptr) { |
334 | 46 | return unsupported_zonemap_filter(ctx); |
335 | 46 | } |
336 | 3.07k | const auto& zone_map = *zone_map_ptr; |
337 | 3.07k | if (!zone_map.has_not_null) { |
338 | 54 | return ZoneMapFilterResult::kNoMatch; |
339 | 54 | } |
340 | 3.01k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
341 | 111 | return unsupported_zonemap_filter(ctx); |
342 | 111 | } |
343 | | |
344 | 2.90k | const auto effective_op = slot_literal.literal_on_left ? symmetric_op(op) : op; |
345 | 2.90k | const auto& literal = slot_literal.literal; |
346 | 2.90k | const bool literal_is_nan = literal.is_nan(); |
347 | 2.90k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
348 | 2.90k | (effective_op == Op::NE && !literal_is_nan) || |
349 | 2.90k | (effective_op == Op::GT && !literal_is_nan) || |
350 | 2.90k | effective_op == Op::GE; |
351 | 2.90k | if (ctx.floating_nan_count_unknown(slot_literal.slot_index) && hidden_nan_can_match) { |
352 | | // Parquet bounds omit NaNs, so only operators that cannot match a hidden NaN may prune. |
353 | 52 | return unsupported_zonemap_filter(ctx); |
354 | 52 | } |
355 | 2.85k | return range_vs_range_no_match(zone_map.min_value, zone_map.max_value, literal, literal, |
356 | 2.85k | effective_op) |
357 | 2.85k | ? ZoneMapFilterResult::kNoMatch |
358 | 2.85k | : ZoneMapFilterResult::kMayMatch; |
359 | 2.90k | } |
360 | | |
361 | | inline ZoneMapFilterResult evaluate_slot_slot(const ZoneMapEvalContext& ctx, |
362 | 912 | const expr_zonemap::SlotSlot& slot_slot, Op op) { |
363 | 912 | const auto left_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_slot.left_slot_index, |
364 | 912 | slot_slot.left_type); |
365 | 912 | const auto right_type = expr_zonemap::fetch_compatible_slot_type( |
366 | 912 | ctx, slot_slot.right_slot_index, slot_slot.right_type); |
367 | 912 | if (left_type == nullptr || right_type == nullptr) { |
368 | | // The context skips a slot entirely when the segment cannot apply predicates on it. |
369 | 1 | return unsupported_zonemap_filter(ctx); |
370 | 1 | } |
371 | 911 | const auto left_zone_map = ctx.zone_map(slot_slot.left_slot_index); |
372 | 911 | const auto right_zone_map = ctx.zone_map(slot_slot.right_slot_index); |
373 | 912 | if (left_zone_map == nullptr || right_zone_map == nullptr) { |
374 | | // A slot can be present with a data type but no zone map, so this is a separate check. |
375 | 9 | return unsupported_zonemap_filter(ctx); |
376 | 9 | } |
377 | | // A column holding no non-null value makes the comparison NULL on every row, which never |
378 | | // satisfies a WHERE conjunct. This must run before the range checks below: an all-null zone map |
379 | | // leaves min/max default-constructed as TYPE_NULL, which the range checks would fatal on. |
380 | 902 | if (!left_zone_map->has_not_null || !right_zone_map->has_not_null) { |
381 | 35 | return ZoneMapFilterResult::kNoMatch; |
382 | 35 | } |
383 | 867 | if (!expr_zonemap::range_stats_usable_for_zonemap(*left_zone_map, left_type) || |
384 | 867 | !expr_zonemap::range_stats_usable_for_zonemap(*right_zone_map, right_type)) { |
385 | 9 | return unsupported_zonemap_filter(ctx); |
386 | 9 | } |
387 | | // A native string zone-map max of exactly MAX_ZONE_MAP_INDEX_SIZE bytes was bumped upward, |
388 | | // and may also have been truncated (segments written before the carry fix may hold a bump |
389 | | // that wrapped on 0xff), so a bound of that length is not a reliable fence for a two-sided |
390 | | // proof. A shorter bound is the exact value; the bump never changes the length, so this also |
391 | | // rejects those wrapped bounds. |
392 | | // The test only decides whether to trust the bound as a fence. A Parquet-sourced string bound |
393 | | // shorter than the cap is not necessarily exact, but it is a spec-conservative min/max, which |
394 | | // is all a range proof needs; do not tighten this to assume exactness below the cap. |
395 | | // data_types_compatible pairs strings only with strings, so checking one side's type is enough |
396 | | // to know all four bounds are strings. |
397 | 858 | if (is_string_type(remove_nullable(left_type)->get_primitive_type())) { |
398 | 393 | auto is_untruncated = [](const Field& f) { |
399 | 393 | return f.get<TYPE_STRING>().size() < MAX_ZONE_MAP_INDEX_SIZE; |
400 | 393 | }; |
401 | 99 | if (!is_untruncated(left_zone_map->min_value) || |
402 | 99 | !is_untruncated(left_zone_map->max_value) || |
403 | 99 | !is_untruncated(right_zone_map->min_value) || |
404 | 99 | !is_untruncated(right_zone_map->max_value)) { |
405 | 3 | return unsupported_zonemap_filter(ctx); |
406 | 3 | } |
407 | 99 | } |
408 | | // Parquet bounds omit NaN without recording how many were skipped, so a zone map that looks |
409 | | // like a single point may still hide one, which would flip the NE rule from false to true. The |
410 | | // slot-vs-literal path can reason per operator because it knows whether the literal is NaN; |
411 | | // with two slots there is no literal, so bail out for every operator instead. |
412 | 855 | if (ctx.floating_nan_count_unknown(slot_slot.left_slot_index) || |
413 | 856 | ctx.floating_nan_count_unknown(slot_slot.right_slot_index)) { |
414 | 12 | return unsupported_zonemap_filter(ctx); |
415 | 12 | } |
416 | 843 | return range_vs_range_no_match(left_zone_map->min_value, left_zone_map->max_value, |
417 | 843 | right_zone_map->min_value, right_zone_map->max_value, op) |
418 | 843 | ? ZoneMapFilterResult::kNoMatch |
419 | 843 | : ZoneMapFilterResult::kMayMatch; |
420 | 855 | } |
421 | | |
422 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
423 | 4.31k | Op op) { |
424 | 4.31k | if (auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
425 | 4.31k | slot_literal.has_value()) { |
426 | 3.42k | return evaluate_slot_literal(ctx, *slot_literal, op); |
427 | 3.42k | } |
428 | 894 | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
429 | | // can_evaluate_zonemap_filter accepts exactly the two shapes handled above, so reaching this |
430 | | // point means the capability gate and this evaluator went out of sync. |
431 | 894 | DORIS_CHECK(slot_slot.has_value()); |
432 | 894 | return evaluate_slot_slot(ctx, *slot_slot, op); |
433 | 4.31k | } |
434 | | |
435 | 34.4k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
436 | 34.4k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
437 | 34.4k | if (!slot_literal.has_value()) { |
438 | 19.5k | return false; |
439 | 19.5k | } |
440 | | |
441 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
442 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
443 | | // shape here before evaluate_zonemap_filter is called. |
444 | 14.8k | if (slot_literal->literal.is_null()) { |
445 | 4 | return false; |
446 | 4 | } |
447 | | |
448 | 14.8k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
449 | 14.8k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
450 | 14.8k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
451 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
452 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
453 | | // values without running expression casts, so conservatively skip this optimization. |
454 | 1 | return false; |
455 | 1 | } |
456 | | |
457 | 14.8k | return true; |
458 | 14.8k | } |
459 | | |
460 | | // Accept a comparison whose both operands are slot references. Kept separate from can_evaluate on |
461 | | // purpose: can_evaluate also gates dictionary filtering and can_evaluate_equality, and both of |
462 | | // those dereference extract_slot_and_literal behind a DORIS_CHECK, so widening it would abort on a |
463 | | // slot-vs-slot expression. Only can_evaluate_zonemap_filter ORs this in. |
464 | 19.3k | inline bool can_evaluate_slot_slot(const VExprSPtrs& arguments) { |
465 | 19.3k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
466 | 19.3k | if (!slot_slot.has_value()) { |
467 | 17.0k | return false; |
468 | 17.0k | } |
469 | 2.27k | DORIS_CHECK(slot_slot->left_type != nullptr); |
470 | 2.27k | DORIS_CHECK(slot_slot->right_type != nullptr); |
471 | | // Reject types whose slot-slot bounds cannot be compared safely: |
472 | | // - VARBINARY: v1 Parquet produces a TYPE_STRING bound for it, which |
473 | | // range_stats_usable_for_zonemap aborts on instead of falling back. |
474 | | // - VARIANT: a segment types a path slot by its inferred leaf type (a typed `v.a` is INT), so |
475 | | // fetch_compatible_slot_type's check against the VARIANT expression type would fail. |
476 | | // - ARRAY/MAP/STRUCT, JSONB, aggregate states: Field orders every pair of them as equal. |
477 | | // A truncated string bound is rejected later, in evaluate_slot_slot, by its length. |
478 | 4.77k | const auto excluded = [](const DataTypePtr& type) { |
479 | 4.77k | const auto primitive_type = remove_nullable(type)->get_primitive_type(); |
480 | 4.82k | return is_varbinary(primitive_type) || primitive_type == TYPE_VARIANT || |
481 | 4.82k | primitive_type == TYPE_JSONB || is_complex_type(primitive_type) || |
482 | 4.80k | is_var_len_object(primitive_type); |
483 | 4.77k | }; |
484 | 2.39k | if (excluded(slot_slot->left_type) || excluded(slot_slot->right_type)) { |
485 | 15 | return false; |
486 | 15 | } |
487 | | // The two zone maps' Fields are compared directly and Field comparison throws on mismatched |
488 | | // non-string types, so reject incompatible column pairs here. A pair differing only by width or |
489 | | // decimal scale never reaches this point anyway, because the optimizer inserts a cast and a |
490 | | // cast is not a VSlotRef. |
491 | 2.26k | return expr_zonemap::data_types_compatible(slot_slot->left_type, slot_slot->right_type); |
492 | 2.27k | } |
493 | | |
494 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
495 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
496 | 0 | return false; |
497 | 0 | } |
498 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
499 | 0 | DORIS_CHECK(slot_literal.has_value()); |
500 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
501 | 0 | return !slot_literal->literal.is_nan(); |
502 | 0 | } |
503 | | |
504 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
505 | 27 | switch (op) { |
506 | 8 | case Op::EQ: |
507 | 8 | return value == literal; |
508 | 0 | case Op::NE: |
509 | 0 | return value != literal; |
510 | 5 | case Op::LT: |
511 | 5 | return value < literal; |
512 | 0 | case Op::LE: |
513 | 0 | return value <= literal; |
514 | 14 | case Op::GT: |
515 | 14 | return value > literal; |
516 | 0 | case Op::GE: |
517 | 0 | return value >= literal; |
518 | 27 | } |
519 | 0 | __builtin_unreachable(); |
520 | 27 | } |
521 | | |
522 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
523 | 14 | const VExprSPtrs& arguments, Op op) { |
524 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
525 | 14 | DORIS_CHECK(slot_literal.has_value()); |
526 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
527 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
528 | 0 | return ZoneMapFilterResult::kUnsupported; |
529 | 0 | } |
530 | 14 | DORIS_CHECK( |
531 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
532 | 14 | if (slot_literal->literal.is_null()) { |
533 | 0 | return ZoneMapFilterResult::kUnsupported; |
534 | 0 | } |
535 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
536 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
537 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
538 | 14 | return std::ranges::any_of(dictionary->values, |
539 | 27 | [&](const Field& value) { |
540 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
541 | 27 | effective_op); |
542 | 27 | }) |
543 | 14 | ? ZoneMapFilterResult::kMayMatch |
544 | 14 | : ZoneMapFilterResult::kNoMatch; |
545 | 14 | } |
546 | | |
547 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
548 | 19 | const VExprSPtrs& arguments, Op op) { |
549 | 19 | DORIS_CHECK(op == Op::EQ); |
550 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
551 | 19 | DORIS_CHECK(slot_literal.has_value()); |
552 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
553 | 19 | } |
554 | | |
555 | 39.2k | inline std::optional<Op> op_from_name(std::string_view name) { |
556 | 39.2k | if (name == NameEquals::name) { |
557 | 18.4k | return Op::EQ; |
558 | 18.4k | } |
559 | 20.7k | if (name == NameNotEquals::name) { |
560 | 1.77k | return Op::NE; |
561 | 1.77k | } |
562 | 18.9k | if (name == NameLess::name) { |
563 | 5.18k | return Op::LT; |
564 | 5.18k | } |
565 | 13.7k | if (name == NameLessOrEquals::name) { |
566 | 2.26k | return Op::LE; |
567 | 2.26k | } |
568 | 11.4k | if (name == NameGreater::name) { |
569 | 6.56k | return Op::GT; |
570 | 6.56k | } |
571 | 5.06k | if (name == NameGreaterOrEquals::name) { |
572 | 5.06k | return Op::GE; |
573 | 5.06k | } |
574 | 18.4E | return std::nullopt; |
575 | 4.92k | } |
576 | | } // namespace comparison_zonemap_detail |
577 | | |
578 | | template <template <PrimitiveType> class Op, typename Name> |
579 | | class FunctionComparison : public IFunction { |
580 | | public: |
581 | | static constexpr auto name = Name::name; |
582 | 305k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 582 | 273k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 582 | 1.28k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 582 | 7.25k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 582 | 8.76k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 582 | 4.05k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 582 | 10.6k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
583 | | |
584 | 305k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 584 | 273k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 584 | 1.29k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 584 | 7.26k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 584 | 8.76k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 584 | 4.06k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 584 | 10.6k | FunctionComparison() = default; |
|
585 | | |
586 | 690k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 586 | 683k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 586 | 612 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 586 | 2.36k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 586 | 2.16k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 586 | 1.27k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 586 | 1.01k | double execute_cost() const override { return 0.5; } |
|
587 | | |
588 | | private: |
589 | | template <PrimitiveType PT> |
590 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
591 | 70.6k | const ColumnPtr& col_right_ptr) const { |
592 | 70.6k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
593 | 70.6k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
594 | | |
595 | 70.6k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
596 | 70.6k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
597 | | |
598 | 70.6k | DCHECK(!(left_is_const && right_is_const)); |
599 | | |
600 | 70.6k | if (!left_is_const && !right_is_const) { |
601 | 12.1k | auto col_res = ColumnUInt8::create(); |
602 | | |
603 | 12.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
604 | 12.1k | vec_res.resize(col_left->get_data().size()); |
605 | 12.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
606 | 12.1k | typename PrimitiveTypeTraits<PT>::CppType, |
607 | 12.1k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
608 | 12.1k | vec_res); |
609 | | |
610 | 12.1k | block.replace_by_position(result, std::move(col_res)); |
611 | 58.5k | } else if (!left_is_const && right_is_const) { |
612 | 51.2k | auto col_res = ColumnUInt8::create(); |
613 | | |
614 | 51.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
615 | 51.2k | vec_res.resize(col_left->size()); |
616 | 51.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
617 | 51.2k | typename PrimitiveTypeTraits<PT>::CppType, |
618 | 51.2k | Op<PT>>::vector_constant(col_left->get_data(), |
619 | 51.2k | col_right->get_element(0), vec_res); |
620 | | |
621 | 51.2k | block.replace_by_position(result, std::move(col_res)); |
622 | 51.2k | } else if (left_is_const && !right_is_const) { |
623 | 7.26k | auto col_res = ColumnUInt8::create(); |
624 | | |
625 | 7.26k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
626 | 7.26k | vec_res.resize(col_right->size()); |
627 | 7.26k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
628 | 7.26k | typename PrimitiveTypeTraits<PT>::CppType, |
629 | 7.26k | Op<PT>>::constant_vector(col_left->get_element(0), |
630 | 7.26k | col_right->get_data(), vec_res); |
631 | | |
632 | 7.26k | block.replace_by_position(result, std::move(col_res)); |
633 | 7.26k | } |
634 | 70.6k | return Status::OK(); |
635 | 70.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 97 | const ColumnPtr& col_right_ptr) const { | 592 | 97 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 97 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 97 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 97 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 97 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 97 | if (!left_is_const && !right_is_const) { | 601 | 67 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 67 | vec_res.resize(col_left->get_data().size()); | 605 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 67 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 67 | vec_res); | 609 | | | 610 | 67 | block.replace_by_position(result, std::move(col_res)); | 611 | 67 | } else if (!left_is_const && right_is_const) { | 612 | 30 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 30 | vec_res.resize(col_left->size()); | 616 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 30 | col_right->get_element(0), vec_res); | 620 | | | 621 | 30 | block.replace_by_position(result, std::move(col_res)); | 622 | 30 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 97 | return Status::OK(); | 635 | 97 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 693 | const ColumnPtr& col_right_ptr) const { | 592 | 693 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 693 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 693 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 693 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 693 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 693 | if (!left_is_const && !right_is_const) { | 601 | 213 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 213 | vec_res.resize(col_left->get_data().size()); | 605 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 213 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 213 | vec_res); | 609 | | | 610 | 213 | block.replace_by_position(result, std::move(col_res)); | 611 | 480 | } else if (!left_is_const && right_is_const) { | 612 | 480 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 480 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 480 | vec_res.resize(col_left->size()); | 616 | 480 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 480 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 480 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 480 | col_right->get_element(0), vec_res); | 620 | | | 621 | 480 | block.replace_by_position(result, std::move(col_res)); | 622 | 480 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 693 | return Status::OK(); | 635 | 693 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 448 | const ColumnPtr& col_right_ptr) const { | 592 | 448 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 448 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 448 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 448 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 448 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 448 | if (!left_is_const && !right_is_const) { | 601 | 258 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 258 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 258 | vec_res.resize(col_left->get_data().size()); | 605 | 258 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 258 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 258 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 258 | vec_res); | 609 | | | 610 | 258 | block.replace_by_position(result, std::move(col_res)); | 611 | 258 | } else if (!left_is_const && right_is_const) { | 612 | 190 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 190 | vec_res.resize(col_left->size()); | 616 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 190 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 190 | col_right->get_element(0), vec_res); | 620 | | | 621 | 190 | block.replace_by_position(result, std::move(col_res)); | 622 | 190 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 448 | return Status::OK(); | 635 | 448 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 233 | const ColumnPtr& col_right_ptr) const { | 592 | 233 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 233 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 233 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 233 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 233 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 233 | if (!left_is_const && !right_is_const) { | 601 | 144 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 144 | vec_res.resize(col_left->get_data().size()); | 605 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 144 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 144 | vec_res); | 609 | | | 610 | 144 | block.replace_by_position(result, std::move(col_res)); | 611 | 144 | } else if (!left_is_const && right_is_const) { | 612 | 77 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 77 | vec_res.resize(col_left->size()); | 616 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 77 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 77 | col_right->get_element(0), vec_res); | 620 | | | 621 | 77 | block.replace_by_position(result, std::move(col_res)); | 622 | 77 | } else if (left_is_const && !right_is_const) { | 623 | 12 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 12 | vec_res.resize(col_right->size()); | 627 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 12 | col_right->get_data(), vec_res); | 631 | | | 632 | 12 | block.replace_by_position(result, std::move(col_res)); | 633 | 12 | } | 634 | 233 | return Status::OK(); | 635 | 233 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 13 | const ColumnPtr& col_right_ptr) const { | 592 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 13 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 13 | if (!left_is_const && !right_is_const) { | 601 | 3 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 3 | vec_res.resize(col_left->get_data().size()); | 605 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 3 | vec_res); | 609 | | | 610 | 3 | block.replace_by_position(result, std::move(col_res)); | 611 | 10 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 13 | return Status::OK(); | 635 | 13 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.02k | const ColumnPtr& col_right_ptr) const { | 592 | 6.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.02k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.02k | if (!left_is_const && !right_is_const) { | 601 | 159 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 159 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 159 | vec_res.resize(col_left->get_data().size()); | 605 | 159 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 159 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 159 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 159 | vec_res); | 609 | | | 610 | 159 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.86k | } else if (!left_is_const && right_is_const) { | 612 | 5.63k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.63k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.63k | vec_res.resize(col_left->size()); | 616 | 5.63k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.63k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.63k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.63k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.63k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.63k | } else if (left_is_const && !right_is_const) { | 623 | 234 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 234 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 234 | vec_res.resize(col_right->size()); | 627 | 234 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 234 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 234 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 234 | col_right->get_data(), vec_res); | 631 | | | 632 | 234 | block.replace_by_position(result, std::move(col_res)); | 633 | 234 | } | 634 | 6.02k | return Status::OK(); | 635 | 6.02k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 415 | const ColumnPtr& col_right_ptr) const { | 592 | 415 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 415 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 415 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 415 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 415 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 415 | if (!left_is_const && !right_is_const) { | 601 | 116 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 116 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 116 | vec_res.resize(col_left->get_data().size()); | 605 | 116 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 116 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 116 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 116 | vec_res); | 609 | | | 610 | 116 | block.replace_by_position(result, std::move(col_res)); | 611 | 299 | } else if (!left_is_const && right_is_const) { | 612 | 269 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 269 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 269 | vec_res.resize(col_left->size()); | 616 | 269 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 269 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 269 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 269 | col_right->get_element(0), vec_res); | 620 | | | 621 | 269 | block.replace_by_position(result, std::move(col_res)); | 622 | 269 | } else if (left_is_const && !right_is_const) { | 623 | 30 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 30 | vec_res.resize(col_right->size()); | 627 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 30 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 30 | col_right->get_data(), vec_res); | 631 | | | 632 | 30 | block.replace_by_position(result, std::move(col_res)); | 633 | 30 | } | 634 | 415 | return Status::OK(); | 635 | 415 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3.31k | const ColumnPtr& col_right_ptr) const { | 592 | 3.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3.31k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3.31k | if (!left_is_const && !right_is_const) { | 601 | 1.09k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.09k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.09k | vec_res.resize(col_left->get_data().size()); | 605 | 1.09k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.09k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.09k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.09k | vec_res); | 609 | | | 610 | 1.09k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.21k | } else if (!left_is_const && right_is_const) { | 612 | 2.13k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.13k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.13k | vec_res.resize(col_left->size()); | 616 | 2.13k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.13k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.13k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.13k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.13k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.13k | } else if (left_is_const && !right_is_const) { | 623 | 79 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 79 | vec_res.resize(col_right->size()); | 627 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 79 | col_right->get_data(), vec_res); | 631 | | | 632 | 79 | block.replace_by_position(result, std::move(col_res)); | 633 | 79 | } | 634 | 3.31k | return Status::OK(); | 635 | 3.31k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 7.58k | const ColumnPtr& col_right_ptr) const { | 592 | 7.58k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 7.58k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 7.58k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 7.58k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 7.58k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 7.58k | if (!left_is_const && !right_is_const) { | 601 | 213 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 213 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 213 | vec_res.resize(col_left->get_data().size()); | 605 | 213 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 213 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 213 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 213 | vec_res); | 609 | | | 610 | 213 | block.replace_by_position(result, std::move(col_res)); | 611 | 7.36k | } else if (!left_is_const && right_is_const) { | 612 | 6.17k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.17k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.17k | vec_res.resize(col_left->size()); | 616 | 6.17k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.17k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.17k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.17k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.17k | block.replace_by_position(result, std::move(col_res)); | 622 | 6.17k | } else if (left_is_const && !right_is_const) { | 623 | 1.19k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 1.19k | vec_res.resize(col_right->size()); | 627 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 1.19k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 1.19k | col_right->get_data(), vec_res); | 631 | | | 632 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 633 | 1.19k | } | 634 | 7.58k | return Status::OK(); | 635 | 7.58k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 117 | const ColumnPtr& col_right_ptr) const { | 592 | 117 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 117 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 117 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 117 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 117 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 117 | if (!left_is_const && !right_is_const) { | 601 | 72 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 72 | vec_res.resize(col_left->get_data().size()); | 605 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 72 | vec_res); | 609 | | | 610 | 72 | block.replace_by_position(result, std::move(col_res)); | 611 | 72 | } else if (!left_is_const && right_is_const) { | 612 | 29 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 29 | vec_res.resize(col_left->size()); | 616 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 29 | col_right->get_element(0), vec_res); | 620 | | | 621 | 29 | block.replace_by_position(result, std::move(col_res)); | 622 | 29 | } else if (left_is_const && !right_is_const) { | 623 | 16 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 16 | vec_res.resize(col_right->size()); | 627 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 16 | col_right->get_data(), vec_res); | 631 | | | 632 | 16 | block.replace_by_position(result, std::move(col_res)); | 633 | 16 | } | 634 | 117 | return Status::OK(); | 635 | 117 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 22 | const ColumnPtr& col_right_ptr) const { | 592 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 22 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 22 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 7 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 7 | vec_res.resize(col_left->size()); | 616 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 7 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 7 | col_right->get_element(0), vec_res); | 620 | | | 621 | 7 | block.replace_by_position(result, std::move(col_res)); | 622 | 7 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 22 | return Status::OK(); | 635 | 22 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 27 | const ColumnPtr& col_right_ptr) const { | 592 | 27 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 27 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 27 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 27 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 27 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 27 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 23 | } else if (!left_is_const && right_is_const) { | 612 | 4 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4 | vec_res.resize(col_left->size()); | 616 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4 | col_right->get_element(0), vec_res); | 620 | | | 621 | 4 | block.replace_by_position(result, std::move(col_res)); | 622 | 4 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 27 | return Status::OK(); | 635 | 27 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.81k | const ColumnPtr& col_right_ptr) const { | 592 | 2.81k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.81k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.81k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.81k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.81k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.81k | if (!left_is_const && !right_is_const) { | 601 | 794 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 794 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 794 | vec_res.resize(col_left->get_data().size()); | 605 | 794 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 794 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 794 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 794 | vec_res); | 609 | | | 610 | 794 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.02k | } else if (!left_is_const && right_is_const) { | 612 | 1.96k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.96k | vec_res.resize(col_left->size()); | 616 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.96k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.96k | } else if (left_is_const && !right_is_const) { | 623 | 54 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 54 | vec_res.resize(col_right->size()); | 627 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 54 | col_right->get_data(), vec_res); | 631 | | | 632 | 54 | block.replace_by_position(result, std::move(col_res)); | 633 | 54 | } | 634 | 2.81k | return Status::OK(); | 635 | 2.81k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 91 | const ColumnPtr& col_right_ptr) const { | 592 | 91 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 91 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 91 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 91 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 91 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 91 | if (!left_is_const && !right_is_const) { | 601 | 91 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 91 | vec_res.resize(col_left->get_data().size()); | 605 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 91 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 91 | vec_res); | 609 | | | 610 | 91 | block.replace_by_position(result, std::move(col_res)); | 611 | 91 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 91 | return Status::OK(); | 635 | 91 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 894 | const ColumnPtr& col_right_ptr) const { | 592 | 894 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 894 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 894 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 894 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 894 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 894 | if (!left_is_const && !right_is_const) { | 601 | 113 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 113 | vec_res.resize(col_left->get_data().size()); | 605 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 113 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 113 | vec_res); | 609 | | | 610 | 113 | block.replace_by_position(result, std::move(col_res)); | 611 | 781 | } else if (!left_is_const && right_is_const) { | 612 | 781 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 781 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 781 | vec_res.resize(col_left->size()); | 616 | 781 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 781 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 781 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 781 | col_right->get_element(0), vec_res); | 620 | | | 621 | 781 | block.replace_by_position(result, std::move(col_res)); | 622 | 781 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 894 | return Status::OK(); | 635 | 894 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 52 | const ColumnPtr& col_right_ptr) const { | 592 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 52 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 52 | if (!left_is_const && !right_is_const) { | 601 | 52 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 52 | vec_res.resize(col_left->get_data().size()); | 605 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 52 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 52 | vec_res); | 609 | | | 610 | 52 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 52 | return Status::OK(); | 635 | 52 | } |
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 | 591 | 70 | const ColumnPtr& col_right_ptr) const { | 592 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 70 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 70 | if (!left_is_const && !right_is_const) { | 601 | 39 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 39 | vec_res.resize(col_left->get_data().size()); | 605 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 39 | vec_res); | 609 | | | 610 | 39 | block.replace_by_position(result, std::move(col_res)); | 611 | 39 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 70 | return Status::OK(); | 635 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 11 | const ColumnPtr& col_right_ptr) const { | 592 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 11 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 11 | if (!left_is_const && !right_is_const) { | 601 | 9 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 9 | vec_res.resize(col_left->get_data().size()); | 605 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 9 | vec_res); | 609 | | | 610 | 9 | block.replace_by_position(result, std::move(col_res)); | 611 | 9 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 11 | return Status::OK(); | 635 | 11 | } |
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 | 591 | 84 | const ColumnPtr& col_right_ptr) const { | 592 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 84 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 84 | if (!left_is_const && !right_is_const) { | 601 | 56 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 56 | vec_res.resize(col_left->get_data().size()); | 605 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 56 | vec_res); | 609 | | | 610 | 56 | block.replace_by_position(result, std::move(col_res)); | 611 | 56 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 84 | return Status::OK(); | 635 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.28k | const ColumnPtr& col_right_ptr) const { | 592 | 1.28k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.28k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.28k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.28k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.28k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.28k | if (!left_is_const && !right_is_const) { | 601 | 1.03k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.03k | vec_res.resize(col_left->get_data().size()); | 605 | 1.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.03k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.03k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.03k | vec_res); | 609 | | | 610 | 1.03k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.03k | } else if (!left_is_const && right_is_const) { | 612 | 251 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 251 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 251 | vec_res.resize(col_left->size()); | 616 | 251 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 251 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 251 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 251 | col_right->get_element(0), vec_res); | 620 | | | 621 | 251 | block.replace_by_position(result, std::move(col_res)); | 622 | 251 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.28k | return Status::OK(); | 635 | 1.28k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.10k | const ColumnPtr& col_right_ptr) const { | 592 | 1.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.10k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.10k | if (!left_is_const && !right_is_const) { | 601 | 340 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 340 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 340 | vec_res.resize(col_left->get_data().size()); | 605 | 340 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 340 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 340 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 340 | vec_res); | 609 | | | 610 | 340 | block.replace_by_position(result, std::move(col_res)); | 611 | 762 | } else if (!left_is_const && right_is_const) { | 612 | 34 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 34 | vec_res.resize(col_left->size()); | 616 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 34 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 34 | col_right->get_element(0), vec_res); | 620 | | | 621 | 34 | block.replace_by_position(result, std::move(col_res)); | 622 | 728 | } else if (left_is_const && !right_is_const) { | 623 | 728 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 728 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 728 | vec_res.resize(col_right->size()); | 627 | 728 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 728 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 728 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 728 | col_right->get_data(), vec_res); | 631 | | | 632 | 728 | block.replace_by_position(result, std::move(col_res)); | 633 | 728 | } | 634 | 1.10k | return Status::OK(); | 635 | 1.10k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 47 | const ColumnPtr& col_right_ptr) const { | 592 | 47 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 47 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 47 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 47 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 47 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 47 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 28 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 47 | return Status::OK(); | 635 | 47 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 63 | const ColumnPtr& col_right_ptr) const { | 592 | 63 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 63 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 63 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 63 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 63 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 63 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 40 | } else if (!left_is_const && right_is_const) { | 612 | 40 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 40 | vec_res.resize(col_left->size()); | 616 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 40 | col_right->get_element(0), vec_res); | 620 | | | 621 | 40 | block.replace_by_position(result, std::move(col_res)); | 622 | 40 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 63 | return Status::OK(); | 635 | 63 | } |
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 | 591 | 1.02k | const ColumnPtr& col_right_ptr) const { | 592 | 1.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.02k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.02k | if (!left_is_const && !right_is_const) { | 601 | 988 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 988 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 988 | vec_res.resize(col_left->get_data().size()); | 605 | 988 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 988 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 988 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 988 | vec_res); | 609 | | | 610 | 988 | block.replace_by_position(result, std::move(col_res)); | 611 | 988 | } else if (!left_is_const && right_is_const) { | 612 | 41 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 41 | vec_res.resize(col_left->size()); | 616 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 41 | col_right->get_element(0), vec_res); | 620 | | | 621 | 41 | block.replace_by_position(result, std::move(col_res)); | 622 | 41 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.02k | return Status::OK(); | 635 | 1.02k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3 | const ColumnPtr& col_right_ptr) const { | 592 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 72 | const ColumnPtr& col_right_ptr) const { | 592 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 72 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 72 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 37 | } else if (!left_is_const && right_is_const) { | 612 | 37 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 37 | vec_res.resize(col_left->size()); | 616 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 37 | col_right->get_element(0), vec_res); | 620 | | | 621 | 37 | block.replace_by_position(result, std::move(col_res)); | 622 | 37 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 72 | return Status::OK(); | 635 | 72 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.66k | const ColumnPtr& col_right_ptr) const { | 592 | 1.66k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.66k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.66k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.66k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.66k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.66k | if (!left_is_const && !right_is_const) { | 601 | 68 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 68 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 68 | vec_res.resize(col_left->get_data().size()); | 605 | 68 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 68 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 68 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 68 | vec_res); | 609 | | | 610 | 68 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.59k | } else if (!left_is_const && right_is_const) { | 612 | 1.39k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.39k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.39k | vec_res.resize(col_left->size()); | 616 | 1.39k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.39k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.39k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.39k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.39k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.39k | } else if (left_is_const && !right_is_const) { | 623 | 204 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 204 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 204 | vec_res.resize(col_right->size()); | 627 | 204 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 204 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 204 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 204 | col_right->get_data(), vec_res); | 631 | | | 632 | 204 | block.replace_by_position(result, std::move(col_res)); | 633 | 204 | } | 634 | 1.66k | return Status::OK(); | 635 | 1.66k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.30k | const ColumnPtr& col_right_ptr) const { | 592 | 2.30k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.30k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.30k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.30k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.30k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.30k | if (!left_is_const && !right_is_const) { | 601 | 112 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 112 | vec_res.resize(col_left->get_data().size()); | 605 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 112 | vec_res); | 609 | | | 610 | 112 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.18k | } else if (!left_is_const && right_is_const) { | 612 | 1.97k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.97k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.97k | vec_res.resize(col_left->size()); | 616 | 1.97k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.97k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.97k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.97k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.97k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.97k | } else if (left_is_const && !right_is_const) { | 623 | 210 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 210 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 210 | vec_res.resize(col_right->size()); | 627 | 210 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 210 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 210 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 210 | col_right->get_data(), vec_res); | 631 | | | 632 | 210 | block.replace_by_position(result, std::move(col_res)); | 633 | 210 | } | 634 | 2.30k | return Status::OK(); | 635 | 2.30k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 13.7k | const ColumnPtr& col_right_ptr) const { | 592 | 13.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 13.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 13.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 13.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 13.7k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 13.7k | if (!left_is_const && !right_is_const) { | 601 | 76 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 76 | vec_res.resize(col_left->get_data().size()); | 605 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 76 | vec_res); | 609 | | | 610 | 76 | block.replace_by_position(result, std::move(col_res)); | 611 | 13.6k | } else if (!left_is_const && right_is_const) { | 612 | 10.3k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10.3k | vec_res.resize(col_left->size()); | 616 | 10.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10.3k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10.3k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10.3k | col_right->get_element(0), vec_res); | 620 | | | 621 | 10.3k | block.replace_by_position(result, std::move(col_res)); | 622 | 10.3k | } else if (left_is_const && !right_is_const) { | 623 | 3.33k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 3.33k | vec_res.resize(col_right->size()); | 627 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 3.33k | col_right->get_data(), vec_res); | 631 | | | 632 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 633 | 3.33k | } | 634 | 13.7k | return Status::OK(); | 635 | 13.7k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.65k | const ColumnPtr& col_right_ptr) const { | 592 | 2.65k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.65k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.65k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.65k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.65k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.65k | if (!left_is_const && !right_is_const) { | 601 | 266 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 266 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 266 | vec_res.resize(col_left->get_data().size()); | 605 | 266 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 266 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 266 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 266 | vec_res); | 609 | | | 610 | 266 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.38k | } else if (!left_is_const && right_is_const) { | 612 | 1.85k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.85k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.85k | vec_res.resize(col_left->size()); | 616 | 1.85k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.85k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.85k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.85k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.85k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.85k | } else if (left_is_const && !right_is_const) { | 623 | 533 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 533 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 533 | vec_res.resize(col_right->size()); | 627 | 533 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 533 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 533 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 533 | col_right->get_data(), vec_res); | 631 | | | 632 | 533 | block.replace_by_position(result, std::move(col_res)); | 633 | 533 | } | 634 | 2.65k | return Status::OK(); | 635 | 2.65k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 260 | const ColumnPtr& col_right_ptr) const { | 592 | 260 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 260 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 260 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 260 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 260 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 260 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 258 | } else if (!left_is_const && right_is_const) { | 612 | 202 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 202 | vec_res.resize(col_left->size()); | 616 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 202 | col_right->get_element(0), vec_res); | 620 | | | 621 | 202 | block.replace_by_position(result, std::move(col_res)); | 622 | 202 | } else if (left_is_const && !right_is_const) { | 623 | 56 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 56 | vec_res.resize(col_right->size()); | 627 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 56 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 56 | col_right->get_data(), vec_res); | 631 | | | 632 | 56 | block.replace_by_position(result, std::move(col_res)); | 633 | 56 | } | 634 | 260 | return Status::OK(); | 635 | 260 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 4 | const ColumnPtr& col_right_ptr) const { | 592 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 4 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 4 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 4 | return Status::OK(); | 635 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 611 | const ColumnPtr& col_right_ptr) const { | 592 | 611 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 611 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 611 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 611 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 611 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 611 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 507 | } else if (!left_is_const && right_is_const) { | 612 | 507 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 507 | vec_res.resize(col_left->size()); | 616 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 507 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 507 | col_right->get_element(0), vec_res); | 620 | | | 621 | 507 | block.replace_by_position(result, std::move(col_res)); | 622 | 507 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 611 | return Status::OK(); | 635 | 611 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 421 | const ColumnPtr& col_right_ptr) const { | 592 | 421 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 421 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 421 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 421 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 421 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 421 | if (!left_is_const && !right_is_const) { | 601 | 21 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 21 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 21 | vec_res.resize(col_left->get_data().size()); | 605 | 21 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 21 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 21 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 21 | vec_res); | 609 | | | 610 | 21 | block.replace_by_position(result, std::move(col_res)); | 611 | 401 | } else if (!left_is_const && right_is_const) { | 612 | 400 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 400 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 400 | vec_res.resize(col_left->size()); | 616 | 400 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 400 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 400 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 400 | col_right->get_element(0), vec_res); | 620 | | | 621 | 400 | block.replace_by_position(result, std::move(col_res)); | 622 | 400 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 421 | return Status::OK(); | 635 | 421 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 607 | const ColumnPtr& col_right_ptr) const { | 592 | 607 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 607 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 607 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 607 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 607 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 608 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 572 | } else if (!left_is_const && right_is_const) { | 612 | 572 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 572 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 572 | vec_res.resize(col_left->size()); | 616 | 572 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 572 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 572 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 572 | col_right->get_element(0), vec_res); | 620 | | | 621 | 572 | block.replace_by_position(result, std::move(col_res)); | 622 | 572 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 607 | return Status::OK(); | 635 | 607 | } |
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 | 591 | 33 | const ColumnPtr& col_right_ptr) const { | 592 | 33 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 33 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 33 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 33 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 33 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 33 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 33 | } else if (!left_is_const && right_is_const) { | 612 | 33 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 33 | vec_res.resize(col_left->size()); | 616 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 33 | col_right->get_element(0), vec_res); | 620 | | | 621 | 33 | block.replace_by_position(result, std::move(col_res)); | 622 | 33 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 33 | return Status::OK(); | 635 | 33 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 453 | const ColumnPtr& col_right_ptr) const { | 592 | 453 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 453 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 453 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 453 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 453 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 453 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 452 | } else if (!left_is_const && right_is_const) { | 612 | 446 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 446 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 446 | vec_res.resize(col_left->size()); | 616 | 446 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 446 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 446 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 446 | col_right->get_element(0), vec_res); | 620 | | | 621 | 446 | block.replace_by_position(result, std::move(col_res)); | 622 | 446 | } else if (left_is_const && !right_is_const) { | 623 | 6 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 6 | vec_res.resize(col_right->size()); | 627 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 6 | col_right->get_data(), vec_res); | 631 | | | 632 | 6 | block.replace_by_position(result, std::move(col_res)); | 633 | 6 | } | 634 | 453 | return Status::OK(); | 635 | 453 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 128 | const ColumnPtr& col_right_ptr) const { | 592 | 128 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 128 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 128 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 128 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 128 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 128 | if (!left_is_const && !right_is_const) { | 601 | 8 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 8 | vec_res.resize(col_left->get_data().size()); | 605 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 8 | vec_res); | 609 | | | 610 | 8 | block.replace_by_position(result, std::move(col_res)); | 611 | 120 | } else if (!left_is_const && right_is_const) { | 612 | 120 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 120 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 120 | vec_res.resize(col_left->size()); | 616 | 120 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 120 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 120 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 120 | col_right->get_element(0), vec_res); | 620 | | | 621 | 120 | block.replace_by_position(result, std::move(col_res)); | 622 | 120 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 128 | return Status::OK(); | 635 | 128 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 411 | const ColumnPtr& col_right_ptr) const { | 592 | 411 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 411 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 411 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 411 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 411 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 411 | if (!left_is_const && !right_is_const) { | 601 | 361 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 361 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 361 | vec_res.resize(col_left->get_data().size()); | 605 | 361 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 361 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 361 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 361 | vec_res); | 609 | | | 610 | 361 | block.replace_by_position(result, std::move(col_res)); | 611 | 361 | } else if (!left_is_const && right_is_const) { | 612 | 50 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 50 | vec_res.resize(col_left->size()); | 616 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 50 | col_right->get_element(0), vec_res); | 620 | | | 621 | 50 | block.replace_by_position(result, std::move(col_res)); | 622 | 50 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 411 | return Status::OK(); | 635 | 411 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 59 | const ColumnPtr& col_right_ptr) const { | 592 | 59 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 59 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 59 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 59 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 59 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 59 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 59 | } else if (!left_is_const && right_is_const) { | 612 | 59 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 59 | vec_res.resize(col_left->size()); | 616 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 59 | col_right->get_element(0), vec_res); | 620 | | | 621 | 59 | block.replace_by_position(result, std::move(col_res)); | 622 | 59 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 59 | return Status::OK(); | 635 | 59 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 55 | const ColumnPtr& col_right_ptr) const { | 592 | 55 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 55 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 55 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 55 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 55 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 55 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 55 | } else if (!left_is_const && right_is_const) { | 612 | 55 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 55 | vec_res.resize(col_left->size()); | 616 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 55 | col_right->get_element(0), vec_res); | 620 | | | 621 | 55 | block.replace_by_position(result, std::move(col_res)); | 622 | 55 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 55 | return Status::OK(); | 635 | 55 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 636 | const ColumnPtr& col_right_ptr) const { | 592 | 636 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 636 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 636 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 636 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 636 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 636 | if (!left_is_const && !right_is_const) { | 601 | 19 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 19 | vec_res.resize(col_left->get_data().size()); | 605 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 19 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 19 | vec_res); | 609 | | | 610 | 19 | block.replace_by_position(result, std::move(col_res)); | 611 | 617 | } else if (!left_is_const && right_is_const) { | 612 | 617 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 617 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 617 | vec_res.resize(col_left->size()); | 616 | 617 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 617 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 617 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 617 | col_right->get_element(0), vec_res); | 620 | | | 621 | 617 | block.replace_by_position(result, std::move(col_res)); | 622 | 617 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 636 | return Status::OK(); | 635 | 636 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 786 | const ColumnPtr& col_right_ptr) const { | 592 | 786 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 786 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 786 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 786 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 786 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 786 | if (!left_is_const && !right_is_const) { | 601 | 32 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 32 | vec_res.resize(col_left->get_data().size()); | 605 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 32 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 32 | vec_res); | 609 | | | 610 | 32 | block.replace_by_position(result, std::move(col_res)); | 611 | 754 | } else if (!left_is_const && right_is_const) { | 612 | 754 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 754 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 754 | vec_res.resize(col_left->size()); | 616 | 754 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 754 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 754 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 754 | col_right->get_element(0), vec_res); | 620 | | | 621 | 754 | block.replace_by_position(result, std::move(col_res)); | 622 | 754 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 786 | return Status::OK(); | 635 | 786 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 31 | const ColumnPtr& col_right_ptr) const { | 592 | 31 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 31 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 31 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 31 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 31 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 31 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 31 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 31 | return Status::OK(); | 635 | 31 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 577 | const ColumnPtr& col_right_ptr) const { | 592 | 577 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 577 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 577 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 577 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 577 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 577 | if (!left_is_const && !right_is_const) { | 601 | 108 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 108 | vec_res.resize(col_left->get_data().size()); | 605 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 108 | vec_res); | 609 | | | 610 | 108 | block.replace_by_position(result, std::move(col_res)); | 611 | 469 | } else if (!left_is_const && right_is_const) { | 612 | 469 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 469 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 469 | vec_res.resize(col_left->size()); | 616 | 469 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 469 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 469 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 469 | col_right->get_element(0), vec_res); | 620 | | | 621 | 469 | block.replace_by_position(result, std::move(col_res)); | 622 | 469 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 577 | return Status::OK(); | 635 | 577 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 30 | const ColumnPtr& col_right_ptr) const { | 592 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 30 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 30 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 30 | return Status::OK(); | 635 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 141 | const ColumnPtr& col_right_ptr) const { | 592 | 141 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 141 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 141 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 141 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 141 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 141 | if (!left_is_const && !right_is_const) { | 601 | 24 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 24 | vec_res.resize(col_left->get_data().size()); | 605 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 24 | vec_res); | 609 | | | 610 | 24 | block.replace_by_position(result, std::move(col_res)); | 611 | 117 | } else if (!left_is_const && right_is_const) { | 612 | 117 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 117 | vec_res.resize(col_left->size()); | 616 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 117 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 117 | col_right->get_element(0), vec_res); | 620 | | | 621 | 117 | block.replace_by_position(result, std::move(col_res)); | 622 | 117 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 141 | return Status::OK(); | 635 | 141 | } |
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 | 591 | 85 | const ColumnPtr& col_right_ptr) const { | 592 | 85 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 85 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 85 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 85 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 85 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 85 | if (!left_is_const && !right_is_const) { | 601 | 85 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 85 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 85 | vec_res.resize(col_left->get_data().size()); | 605 | 85 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 85 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 85 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 85 | vec_res); | 609 | | | 610 | 85 | block.replace_by_position(result, std::move(col_res)); | 611 | 85 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 85 | return Status::OK(); | 635 | 85 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.04k | const ColumnPtr& col_right_ptr) const { | 592 | 2.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.04k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.04k | if (!left_is_const && !right_is_const) { | 601 | 1.68k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.68k | vec_res.resize(col_left->get_data().size()); | 605 | 1.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.68k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.68k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.68k | vec_res); | 609 | | | 610 | 1.68k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.68k | } else if (!left_is_const && right_is_const) { | 612 | 363 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 363 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 363 | vec_res.resize(col_left->size()); | 616 | 363 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 363 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 363 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 363 | col_right->get_element(0), vec_res); | 620 | | | 621 | 363 | block.replace_by_position(result, std::move(col_res)); | 622 | 363 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2.04k | return Status::OK(); | 635 | 2.04k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 296 | const ColumnPtr& col_right_ptr) const { | 592 | 296 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 296 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 296 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 296 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 296 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 297 | if (!left_is_const && !right_is_const) { | 601 | 238 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 238 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 238 | vec_res.resize(col_left->get_data().size()); | 605 | 238 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 238 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 238 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 238 | vec_res); | 609 | | | 610 | 238 | block.replace_by_position(result, std::move(col_res)); | 611 | 238 | } else if (!left_is_const && right_is_const) { | 612 | 59 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 59 | vec_res.resize(col_left->size()); | 616 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 59 | col_right->get_element(0), vec_res); | 620 | | | 621 | 59 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 296 | return Status::OK(); | 635 | 296 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 160 | const ColumnPtr& col_right_ptr) const { | 592 | 160 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 160 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 160 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 160 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 160 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 160 | if (!left_is_const && !right_is_const) { | 601 | 114 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 114 | vec_res.resize(col_left->get_data().size()); | 605 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 114 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 114 | vec_res); | 609 | | | 610 | 114 | block.replace_by_position(result, std::move(col_res)); | 611 | 114 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 160 | return Status::OK(); | 635 | 160 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3 | const ColumnPtr& col_right_ptr) const { | 592 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 1 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1 | vec_res.resize(col_left->size()); | 616 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1 | col_right->get_element(0), vec_res); | 620 | | | 621 | 1 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.36k | const ColumnPtr& col_right_ptr) const { | 592 | 2.36k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.36k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.36k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.36k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.36k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.36k | if (!left_is_const && !right_is_const) { | 601 | 217 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 217 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 217 | vec_res.resize(col_left->get_data().size()); | 605 | 217 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 217 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 217 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 217 | vec_res); | 609 | | | 610 | 217 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.14k | } else if (!left_is_const && right_is_const) { | 612 | 1.94k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.94k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.94k | vec_res.resize(col_left->size()); | 616 | 1.94k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.94k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.94k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.94k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.94k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.94k | } else if (left_is_const && !right_is_const) { | 623 | 204 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 204 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 204 | vec_res.resize(col_right->size()); | 627 | 204 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 204 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 204 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 204 | col_right->get_data(), vec_res); | 631 | | | 632 | 204 | block.replace_by_position(result, std::move(col_res)); | 633 | 204 | } | 634 | 2.36k | return Status::OK(); | 635 | 2.36k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 170 | const ColumnPtr& col_right_ptr) const { | 592 | 170 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 170 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 170 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 170 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 170 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 170 | if (!left_is_const && !right_is_const) { | 601 | 156 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 156 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 156 | vec_res.resize(col_left->get_data().size()); | 605 | 156 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 156 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 156 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 156 | vec_res); | 609 | | | 610 | 156 | block.replace_by_position(result, std::move(col_res)); | 611 | 156 | } else if (!left_is_const && right_is_const) { | 612 | 14 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 14 | vec_res.resize(col_left->size()); | 616 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 14 | col_right->get_element(0), vec_res); | 620 | | | 621 | 14 | block.replace_by_position(result, std::move(col_res)); | 622 | 14 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 170 | return Status::OK(); | 635 | 170 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.89k | const ColumnPtr& col_right_ptr) const { | 592 | 1.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.89k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.89k | if (!left_is_const && !right_is_const) { | 601 | 906 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 906 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 906 | vec_res.resize(col_left->get_data().size()); | 605 | 906 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 906 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 906 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 906 | vec_res); | 609 | | | 610 | 906 | block.replace_by_position(result, std::move(col_res)); | 611 | 992 | } else if (!left_is_const && right_is_const) { | 612 | 873 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 873 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 873 | vec_res.resize(col_left->size()); | 616 | 873 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 873 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 873 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 873 | col_right->get_element(0), vec_res); | 620 | | | 621 | 873 | block.replace_by_position(result, std::move(col_res)); | 622 | 873 | } else if (left_is_const && !right_is_const) { | 623 | 119 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 119 | vec_res.resize(col_right->size()); | 627 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 119 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 119 | col_right->get_data(), vec_res); | 631 | | | 632 | 119 | block.replace_by_position(result, std::move(col_res)); | 633 | 119 | } | 634 | 1.89k | return Status::OK(); | 635 | 1.89k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 968 | const ColumnPtr& col_right_ptr) const { | 592 | 968 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 968 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 968 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 968 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 968 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 968 | if (!left_is_const && !right_is_const) { | 601 | 319 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 319 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 319 | vec_res.resize(col_left->get_data().size()); | 605 | 319 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 319 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 319 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 319 | vec_res); | 609 | | | 610 | 319 | block.replace_by_position(result, std::move(col_res)); | 611 | 649 | } else if (!left_is_const && right_is_const) { | 612 | 569 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 569 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 569 | vec_res.resize(col_left->size()); | 616 | 569 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 569 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 569 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 569 | col_right->get_element(0), vec_res); | 620 | | | 621 | 569 | block.replace_by_position(result, std::move(col_res)); | 622 | 569 | } else if (left_is_const && !right_is_const) { | 623 | 80 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 80 | vec_res.resize(col_right->size()); | 627 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 80 | col_right->get_data(), vec_res); | 631 | | | 632 | 80 | block.replace_by_position(result, std::move(col_res)); | 633 | 80 | } | 634 | 968 | return Status::OK(); | 635 | 968 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 292 | const ColumnPtr& col_right_ptr) const { | 592 | 292 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 292 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 292 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 292 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 292 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 292 | if (!left_is_const && !right_is_const) { | 601 | 132 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 132 | vec_res.resize(col_left->get_data().size()); | 605 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 132 | vec_res); | 609 | | | 610 | 132 | block.replace_by_position(result, std::move(col_res)); | 611 | 160 | } else if (!left_is_const && right_is_const) { | 612 | 88 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 88 | vec_res.resize(col_left->size()); | 616 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 88 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 88 | col_right->get_element(0), vec_res); | 620 | | | 621 | 88 | block.replace_by_position(result, std::move(col_res)); | 622 | 88 | } else if (left_is_const && !right_is_const) { | 623 | 72 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 72 | vec_res.resize(col_right->size()); | 627 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 72 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 72 | col_right->get_data(), vec_res); | 631 | | | 632 | 72 | block.replace_by_position(result, std::move(col_res)); | 633 | 72 | } | 634 | 292 | return Status::OK(); | 635 | 292 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 17 | const ColumnPtr& col_right_ptr) const { | 592 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 17 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 17 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 17 | return Status::OK(); | 635 | 17 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 15 | const ColumnPtr& col_right_ptr) const { | 592 | 15 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 15 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 15 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 15 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 15 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 15 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 15 | return Status::OK(); | 635 | 15 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 457 | const ColumnPtr& col_right_ptr) const { | 592 | 457 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 457 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 457 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 457 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 457 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 457 | if (!left_is_const && !right_is_const) { | 601 | 110 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 110 | vec_res.resize(col_left->get_data().size()); | 605 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 110 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 110 | vec_res); | 609 | | | 610 | 110 | block.replace_by_position(result, std::move(col_res)); | 611 | 347 | } else if (!left_is_const && right_is_const) { | 612 | 347 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 347 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 347 | vec_res.resize(col_left->size()); | 616 | 347 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 347 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 347 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 347 | col_right->get_element(0), vec_res); | 620 | | | 621 | 347 | block.replace_by_position(result, std::move(col_res)); | 622 | 347 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 457 | return Status::OK(); | 635 | 457 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 127 | const ColumnPtr& col_right_ptr) const { | 592 | 127 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 127 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 127 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 127 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 127 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 127 | if (!left_is_const && !right_is_const) { | 601 | 127 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 127 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 127 | vec_res.resize(col_left->get_data().size()); | 605 | 127 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 127 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 127 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 127 | vec_res); | 609 | | | 610 | 127 | block.replace_by_position(result, std::move(col_res)); | 611 | 127 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 127 | return Status::OK(); | 635 | 127 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.32k | const ColumnPtr& col_right_ptr) const { | 592 | 1.32k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.32k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.32k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.32k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.32k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.32k | if (!left_is_const && !right_is_const) { | 601 | 135 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 135 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 135 | vec_res.resize(col_left->get_data().size()); | 605 | 135 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 135 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 135 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 135 | vec_res); | 609 | | | 610 | 135 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.18k | } else if (!left_is_const && right_is_const) { | 612 | 1.18k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.18k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.18k | vec_res.resize(col_left->size()); | 616 | 1.18k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.18k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.18k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.18k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.18k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.18k | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.32k | return Status::OK(); | 635 | 1.32k | } |
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 | 591 | 31 | const ColumnPtr& col_right_ptr) const { | 592 | 31 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 31 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 31 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 31 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 31 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 31 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 31 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 31 | return Status::OK(); | 635 | 31 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 501 | const ColumnPtr& col_right_ptr) const { | 592 | 501 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 501 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 501 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 501 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 501 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 501 | if (!left_is_const && !right_is_const) { | 601 | 371 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 371 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 371 | vec_res.resize(col_left->get_data().size()); | 605 | 371 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 371 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 371 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 371 | vec_res); | 609 | | | 610 | 371 | block.replace_by_position(result, std::move(col_res)); | 611 | 371 | } else if (!left_is_const && right_is_const) { | 612 | 127 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 127 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 127 | vec_res.resize(col_left->size()); | 616 | 127 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 127 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 127 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 127 | col_right->get_element(0), vec_res); | 620 | | | 621 | 127 | block.replace_by_position(result, std::move(col_res)); | 622 | 127 | } else if (left_is_const && !right_is_const) { | 623 | 5 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 5 | vec_res.resize(col_right->size()); | 627 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 5 | col_right->get_data(), vec_res); | 631 | | | 632 | 5 | block.replace_by_position(result, std::move(col_res)); | 633 | 5 | } | 634 | 501 | return Status::OK(); | 635 | 501 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 64 | const ColumnPtr& col_right_ptr) const { | 592 | 64 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 64 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 64 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 64 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 64 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 64 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 64 | } else if (!left_is_const && right_is_const) { | 612 | 64 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 64 | vec_res.resize(col_left->size()); | 616 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 64 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 64 | col_right->get_element(0), vec_res); | 620 | | | 621 | 64 | block.replace_by_position(result, std::move(col_res)); | 622 | 64 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 64 | return Status::OK(); | 635 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 68 | const ColumnPtr& col_right_ptr) const { | 592 | 68 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 68 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 68 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 68 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 68 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 68 | if (!left_is_const && !right_is_const) { | 601 | 26 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 26 | vec_res.resize(col_left->get_data().size()); | 605 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 26 | vec_res); | 609 | | | 610 | 26 | block.replace_by_position(result, std::move(col_res)); | 611 | 42 | } else if (!left_is_const && right_is_const) { | 612 | 42 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 42 | vec_res.resize(col_left->size()); | 616 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 42 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 42 | col_right->get_element(0), vec_res); | 620 | | | 621 | 42 | block.replace_by_position(result, std::move(col_res)); | 622 | 42 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 68 | return Status::OK(); | 635 | 68 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 2 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 55 | const ColumnPtr& col_right_ptr) const { | 592 | 55 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 55 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 55 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 55 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 55 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 55 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 54 | } else if (!left_is_const && right_is_const) { | 612 | 54 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 54 | vec_res.resize(col_left->size()); | 616 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 54 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 54 | col_right->get_element(0), vec_res); | 620 | | | 621 | 54 | block.replace_by_position(result, std::move(col_res)); | 622 | 54 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 55 | return Status::OK(); | 635 | 55 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 62 | const ColumnPtr& col_right_ptr) const { | 592 | 62 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 62 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 62 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 62 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 62 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 62 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 62 | } else if (!left_is_const && right_is_const) { | 612 | 62 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 62 | vec_res.resize(col_left->size()); | 616 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 62 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 62 | col_right->get_element(0), vec_res); | 620 | | | 621 | 62 | block.replace_by_position(result, std::move(col_res)); | 622 | 62 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 62 | return Status::OK(); | 635 | 62 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.18k | const ColumnPtr& col_right_ptr) const { | 592 | 6.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.18k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.18k | if (!left_is_const && !right_is_const) { | 601 | 34 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 34 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 34 | vec_res.resize(col_left->get_data().size()); | 605 | 34 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 34 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 34 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 34 | vec_res); | 609 | | | 610 | 34 | block.replace_by_position(result, std::move(col_res)); | 611 | 6.15k | } else if (!left_is_const && right_is_const) { | 612 | 6.11k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.11k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.11k | vec_res.resize(col_left->size()); | 616 | 6.11k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.11k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.11k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.11k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.11k | block.replace_by_position(result, std::move(col_res)); | 622 | 6.11k | } else if (left_is_const && !right_is_const) { | 623 | 45 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 45 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 45 | vec_res.resize(col_right->size()); | 627 | 45 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 45 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 45 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 45 | col_right->get_data(), vec_res); | 631 | | | 632 | 45 | block.replace_by_position(result, std::move(col_res)); | 633 | 45 | } | 634 | 6.18k | return Status::OK(); | 635 | 6.18k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 623 | const ColumnPtr& col_right_ptr) const { | 592 | 623 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 623 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 623 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 623 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 623 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 623 | if (!left_is_const && !right_is_const) { | 601 | 37 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 37 | vec_res.resize(col_left->get_data().size()); | 605 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 37 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 37 | vec_res); | 609 | | | 610 | 37 | block.replace_by_position(result, std::move(col_res)); | 611 | 586 | } else if (!left_is_const && right_is_const) { | 612 | 539 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 539 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 539 | vec_res.resize(col_left->size()); | 616 | 539 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 539 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 539 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 539 | col_right->get_element(0), vec_res); | 620 | | | 621 | 539 | block.replace_by_position(result, std::move(col_res)); | 622 | 539 | } else if (left_is_const && !right_is_const) { | 623 | 48 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 48 | vec_res.resize(col_right->size()); | 627 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 48 | col_right->get_data(), vec_res); | 631 | | | 632 | 48 | block.replace_by_position(result, std::move(col_res)); | 633 | 48 | } | 634 | 623 | return Status::OK(); | 635 | 623 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 29 | const ColumnPtr& col_right_ptr) const { | 592 | 29 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 29 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 29 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 29 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 29 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 29 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 29 | } else if (!left_is_const && right_is_const) { | 612 | 29 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 29 | vec_res.resize(col_left->size()); | 616 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 29 | col_right->get_element(0), vec_res); | 620 | | | 621 | 29 | block.replace_by_position(result, std::move(col_res)); | 622 | 29 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 29 | return Status::OK(); | 635 | 29 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 417 | const ColumnPtr& col_right_ptr) const { | 592 | 417 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 417 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 417 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 417 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 417 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 417 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 313 | } else if (!left_is_const && right_is_const) { | 612 | 313 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 313 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 313 | vec_res.resize(col_left->size()); | 616 | 313 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 313 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 313 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 313 | col_right->get_element(0), vec_res); | 620 | | | 621 | 313 | block.replace_by_position(result, std::move(col_res)); | 622 | 313 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 417 | return Status::OK(); | 635 | 417 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 20 | const ColumnPtr& col_right_ptr) const { | 592 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 20 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 20 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 20 | return Status::OK(); | 635 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 143 | const ColumnPtr& col_right_ptr) const { | 592 | 143 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 143 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 143 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 143 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 143 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 143 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 123 | } else if (!left_is_const && right_is_const) { | 612 | 123 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 123 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 123 | vec_res.resize(col_left->size()); | 616 | 123 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 123 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 123 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 123 | col_right->get_element(0), vec_res); | 620 | | | 621 | 123 | block.replace_by_position(result, std::move(col_res)); | 622 | 123 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 143 | return Status::OK(); | 635 | 143 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
636 | | |
637 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
638 | 3.10k | const ColumnWithTypeAndName& col_right) const { |
639 | 3.10k | auto call = [&](const auto& type) -> bool { |
640 | 3.10k | using DispatchType = std::decay_t<decltype(type)>; |
641 | 3.10k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
642 | 3.10k | block, result, col_left, col_right); |
643 | 3.10k | return true; |
644 | 3.10k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 130 | auto call = [&](const auto& type) -> bool { | 640 | 130 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 130 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 130 | block, result, col_left, col_right); | 643 | 130 | return true; | 644 | 130 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 128 | auto call = [&](const auto& type) -> bool { | 640 | 128 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 128 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 128 | block, result, col_left, col_right); | 643 | 128 | return true; | 644 | 128 | }; |
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 | 639 | 858 | auto call = [&](const auto& type) -> bool { | 640 | 858 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 858 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 858 | block, result, col_left, col_right); | 643 | 858 | return true; | 644 | 858 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 18 | auto call = [&](const auto& type) -> bool { | 640 | 18 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 18 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 18 | block, result, col_left, col_right); | 643 | 18 | return true; | 644 | 18 | }; |
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 | 639 | 63 | auto call = [&](const auto& type) -> bool { | 640 | 63 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 63 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 63 | block, result, col_left, col_right); | 643 | 63 | return true; | 644 | 63 | }; |
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 | 639 | 28 | auto call = [&](const auto& type) -> bool { | 640 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 28 | block, result, col_left, col_right); | 643 | 28 | return true; | 644 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 30 | auto call = [&](const auto& type) -> bool { | 640 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 30 | block, result, col_left, col_right); | 643 | 30 | return true; | 644 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 8 | auto call = [&](const auto& type) -> bool { | 640 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 8 | block, result, col_left, col_right); | 643 | 8 | return true; | 644 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 67 | auto call = [&](const auto& type) -> bool { | 640 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 67 | block, result, col_left, col_right); | 643 | 67 | return true; | 644 | 67 | }; |
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 | 639 | 650 | auto call = [&](const auto& type) -> bool { | 640 | 650 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 650 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 650 | block, result, col_left, col_right); | 643 | 650 | return true; | 644 | 650 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 2 | auto call = [&](const auto& type) -> bool { | 640 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 2 | block, result, col_left, col_right); | 643 | 2 | return true; | 644 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 4 | auto call = [&](const auto& type) -> bool { | 640 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 4 | block, result, col_left, col_right); | 643 | 4 | return true; | 644 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 70 | auto call = [&](const auto& type) -> bool { | 640 | 70 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 70 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 70 | block, result, col_left, col_right); | 643 | 70 | return true; | 644 | 70 | }; |
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 | 639 | 78 | auto call = [&](const auto& type) -> bool { | 640 | 78 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 78 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 78 | block, result, col_left, col_right); | 643 | 78 | return true; | 644 | 78 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 17 | auto call = [&](const auto& type) -> bool { | 640 | 17 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 17 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 17 | block, result, col_left, col_right); | 643 | 17 | return true; | 644 | 17 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 164 | auto call = [&](const auto& type) -> bool { | 640 | 164 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 164 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 164 | block, result, col_left, col_right); | 643 | 164 | return true; | 644 | 164 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 182 | auto call = [&](const auto& type) -> bool { | 640 | 182 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 182 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 182 | block, result, col_left, col_right); | 643 | 182 | return true; | 644 | 182 | }; |
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 | 639 | 418 | auto call = [&](const auto& type) -> bool { | 640 | 418 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 418 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 418 | block, result, col_left, col_right); | 643 | 418 | return true; | 644 | 418 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 1 | auto call = [&](const auto& type) -> bool { | 640 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1 | block, result, col_left, col_right); | 643 | 1 | return true; | 644 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 7 | auto call = [&](const auto& type) -> bool { | 640 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 7 | block, result, col_left, col_right); | 643 | 7 | return true; | 644 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 86 | auto call = [&](const auto& type) -> bool { | 640 | 86 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 86 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 86 | block, result, col_left, col_right); | 643 | 86 | return true; | 644 | 86 | }; |
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 | 639 | 84 | auto call = [&](const auto& type) -> bool { | 640 | 84 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 84 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 84 | block, result, col_left, col_right); | 643 | 84 | return true; | 644 | 84 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 12 | auto call = [&](const auto& type) -> bool { | 640 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 12 | block, result, col_left, col_right); | 643 | 12 | return true; | 644 | 12 | }; |
|
645 | | |
646 | 3.10k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
647 | 0 | return Status::RuntimeError( |
648 | 0 | "type of left column {} is not equal to type of right column {}", |
649 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
650 | 0 | } |
651 | | |
652 | 3.10k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
654 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
655 | 0 | } |
656 | 3.10k | return Status::OK(); |
657 | 3.10k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.13k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.13k | auto call = [&](const auto& type) -> bool { | 640 | 1.13k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.13k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.13k | block, result, col_left, col_right); | 643 | 1.13k | return true; | 644 | 1.13k | }; | 645 | | | 646 | 1.13k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 1.13k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 1.13k | return Status::OK(); | 657 | 1.13k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 121 | const ColumnWithTypeAndName& col_right) const { | 639 | 121 | auto call = [&](const auto& type) -> bool { | 640 | 121 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 121 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 121 | block, result, col_left, col_right); | 643 | 121 | return true; | 644 | 121 | }; | 645 | | | 646 | 121 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 121 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 121 | return Status::OK(); | 657 | 121 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 727 | const ColumnWithTypeAndName& col_right) const { | 639 | 727 | auto call = [&](const auto& type) -> bool { | 640 | 727 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 727 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 727 | block, result, col_left, col_right); | 643 | 727 | return true; | 644 | 727 | }; | 645 | | | 646 | 727 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 727 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 727 | return Status::OK(); | 657 | 727 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 169 | const ColumnWithTypeAndName& col_right) const { | 639 | 169 | auto call = [&](const auto& type) -> bool { | 640 | 169 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 169 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 169 | block, result, col_left, col_right); | 643 | 169 | return true; | 644 | 169 | }; | 645 | | | 646 | 169 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 169 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 169 | return Status::OK(); | 657 | 169 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 765 | const ColumnWithTypeAndName& col_right) const { | 639 | 765 | auto call = [&](const auto& type) -> bool { | 640 | 765 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 765 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 765 | block, result, col_left, col_right); | 643 | 765 | return true; | 644 | 765 | }; | 645 | | | 646 | 765 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 765 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 765 | return Status::OK(); | 657 | 765 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 189 | const ColumnWithTypeAndName& col_right) const { | 639 | 189 | auto call = [&](const auto& type) -> bool { | 640 | 189 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 189 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 189 | block, result, col_left, col_right); | 643 | 189 | return true; | 644 | 189 | }; | 645 | | | 646 | 189 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 189 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 189 | return Status::OK(); | 657 | 189 | } |
|
658 | | |
659 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
660 | 23.3k | const IColumn* c1) const { |
661 | 23.3k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
662 | 23.3k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
663 | 23.3k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
664 | 23.3k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
665 | 23.3k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
667 | 0 | c0->get_name(), c1->get_name(), name); |
668 | 0 | } |
669 | 23.3k | DCHECK(!(c0_const && c1_const)); |
670 | 23.3k | const ColumnString::Chars* c0_const_chars = nullptr; |
671 | 23.3k | const ColumnString::Chars* c1_const_chars = nullptr; |
672 | 23.3k | ColumnString::Offset c0_const_size = 0; |
673 | 23.3k | ColumnString::Offset c1_const_size = 0; |
674 | | |
675 | 23.3k | if (c0_const) { |
676 | 81 | const ColumnString* c0_const_string = |
677 | 81 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
678 | | |
679 | 81 | if (c0_const_string) { |
680 | 81 | c0_const_chars = &c0_const_string->get_chars(); |
681 | 81 | c0_const_size = c0_const_string->get_offsets()[0]; |
682 | 81 | } else { |
683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
684 | 0 | c0->get_name(), name); |
685 | 0 | } |
686 | 81 | } |
687 | | |
688 | 23.3k | if (c1_const) { |
689 | 22.3k | const ColumnString* c1_const_string = |
690 | 22.3k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
691 | | |
692 | 22.3k | if (c1_const_string) { |
693 | 22.3k | c1_const_chars = &c1_const_string->get_chars(); |
694 | 22.3k | c1_const_size = c1_const_string->get_offsets()[0]; |
695 | 22.3k | } else { |
696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
697 | 0 | c1->get_name(), name); |
698 | 0 | } |
699 | 22.3k | } |
700 | | |
701 | 23.3k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
702 | | |
703 | 23.3k | auto c_res = ColumnUInt8::create(); |
704 | 23.3k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
705 | 23.3k | vec_res.resize(c0->size()); |
706 | | |
707 | 23.3k | if (c0_string && c1_string) { |
708 | 912 | StringImpl::string_vector_string_vector( |
709 | 912 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
710 | 912 | c1_string->get_offsets(), vec_res); |
711 | 22.4k | } else if (c0_string && c1_const) { |
712 | 22.3k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
713 | 22.3k | *c1_const_chars, c1_const_size, vec_res); |
714 | 22.3k | } else if (c0_const && c1_string) { |
715 | 81 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
716 | 81 | c1_string->get_chars(), c1_string->get_offsets(), |
717 | 81 | vec_res); |
718 | 18.4E | } else { |
719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
720 | 18.4E | c0->get_name(), c1->get_name(), name); |
721 | 18.4E | } |
722 | 23.3k | block.replace_by_position(result, std::move(c_res)); |
723 | 23.3k | return Status::OK(); |
724 | 23.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 21.7k | const IColumn* c1) const { | 661 | 21.7k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 21.7k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 21.7k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 21.7k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 21.7k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 21.7k | DCHECK(!(c0_const && c1_const)); | 670 | 21.7k | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 21.7k | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 21.7k | ColumnString::Offset c0_const_size = 0; | 673 | 21.7k | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 21.7k | if (c0_const) { | 676 | 19 | const ColumnString* c0_const_string = | 677 | 19 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 19 | if (c0_const_string) { | 680 | 19 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 19 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 19 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 19 | } | 687 | | | 688 | 21.7k | if (c1_const) { | 689 | 21.2k | const ColumnString* c1_const_string = | 690 | 21.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 21.2k | if (c1_const_string) { | 693 | 21.2k | c1_const_chars = &c1_const_string->get_chars(); | 694 | 21.2k | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 21.2k | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 21.2k | } | 700 | | | 701 | 21.7k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 21.7k | auto c_res = ColumnUInt8::create(); | 704 | 21.7k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 21.7k | vec_res.resize(c0->size()); | 706 | | | 707 | 21.7k | if (c0_string && c1_string) { | 708 | 472 | StringImpl::string_vector_string_vector( | 709 | 472 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 472 | c1_string->get_offsets(), vec_res); | 711 | 21.3k | } else if (c0_string && c1_const) { | 712 | 21.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 21.2k | *c1_const_chars, c1_const_size, vec_res); | 714 | 21.2k | } else if (c0_const && c1_string) { | 715 | 19 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 19 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 19 | vec_res); | 718 | 18.4E | } else { | 719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 18.4E | c0->get_name(), c1->get_name(), name); | 721 | 18.4E | } | 722 | 21.7k | block.replace_by_position(result, std::move(c_res)); | 723 | 21.7k | return Status::OK(); | 724 | 21.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 156 | const IColumn* c1) const { | 661 | 156 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 156 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 156 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 156 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 156 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 156 | DCHECK(!(c0_const && c1_const)); | 670 | 156 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 156 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 156 | ColumnString::Offset c0_const_size = 0; | 673 | 156 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 156 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 156 | if (c1_const) { | 689 | 139 | const ColumnString* c1_const_string = | 690 | 139 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 139 | if (c1_const_string) { | 693 | 139 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 139 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 139 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 139 | } | 700 | | | 701 | 156 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 156 | auto c_res = ColumnUInt8::create(); | 704 | 156 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 156 | vec_res.resize(c0->size()); | 706 | | | 707 | 156 | if (c0_string && c1_string) { | 708 | 17 | StringImpl::string_vector_string_vector( | 709 | 17 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 17 | c1_string->get_offsets(), vec_res); | 711 | 139 | } else if (c0_string && c1_const) { | 712 | 139 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 139 | *c1_const_chars, c1_const_size, vec_res); | 714 | 139 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 156 | block.replace_by_position(result, std::move(c_res)); | 723 | 156 | return Status::OK(); | 724 | 156 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 225 | const IColumn* c1) const { | 661 | 225 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 225 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 225 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 225 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 225 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 225 | DCHECK(!(c0_const && c1_const)); | 670 | 225 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 225 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 225 | ColumnString::Offset c0_const_size = 0; | 673 | 225 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 225 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 225 | if (c1_const) { | 689 | 223 | const ColumnString* c1_const_string = | 690 | 223 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 223 | if (c1_const_string) { | 693 | 223 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 223 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 223 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 223 | } | 700 | | | 701 | 225 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 225 | auto c_res = ColumnUInt8::create(); | 704 | 225 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 225 | vec_res.resize(c0->size()); | 706 | | | 707 | 225 | if (c0_string && c1_string) { | 708 | 2 | StringImpl::string_vector_string_vector( | 709 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 2 | c1_string->get_offsets(), vec_res); | 711 | 223 | } else if (c0_string && c1_const) { | 712 | 223 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 223 | *c1_const_chars, c1_const_size, vec_res); | 714 | 223 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 225 | block.replace_by_position(result, std::move(c_res)); | 723 | 225 | return Status::OK(); | 724 | 225 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 351 | const IColumn* c1) const { | 661 | 351 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 351 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 351 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 351 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 351 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 351 | DCHECK(!(c0_const && c1_const)); | 670 | 351 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 351 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 351 | ColumnString::Offset c0_const_size = 0; | 673 | 351 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 351 | if (c0_const) { | 676 | 56 | const ColumnString* c0_const_string = | 677 | 56 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 56 | if (c0_const_string) { | 680 | 56 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 56 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 56 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 56 | } | 687 | | | 688 | 351 | if (c1_const) { | 689 | 264 | const ColumnString* c1_const_string = | 690 | 264 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 264 | if (c1_const_string) { | 693 | 264 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 264 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 264 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 264 | } | 700 | | | 701 | 351 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 351 | auto c_res = ColumnUInt8::create(); | 704 | 351 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 351 | vec_res.resize(c0->size()); | 706 | | | 707 | 351 | if (c0_string && c1_string) { | 708 | 31 | StringImpl::string_vector_string_vector( | 709 | 31 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 31 | c1_string->get_offsets(), vec_res); | 711 | 320 | } else if (c0_string && c1_const) { | 712 | 264 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 264 | *c1_const_chars, c1_const_size, vec_res); | 714 | 264 | } else if (c0_const && c1_string) { | 715 | 56 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 56 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 56 | vec_res); | 718 | 56 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 351 | block.replace_by_position(result, std::move(c_res)); | 723 | 351 | return Status::OK(); | 724 | 351 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 549 | const IColumn* c1) const { | 661 | 549 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 549 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 549 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 549 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 549 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 549 | DCHECK(!(c0_const && c1_const)); | 670 | 549 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 549 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 549 | ColumnString::Offset c0_const_size = 0; | 673 | 549 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 549 | if (c0_const) { | 676 | 6 | const ColumnString* c0_const_string = | 677 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 6 | if (c0_const_string) { | 680 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 6 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 6 | } | 687 | | | 688 | 549 | if (c1_const) { | 689 | 153 | const ColumnString* c1_const_string = | 690 | 153 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 153 | if (c1_const_string) { | 693 | 153 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 153 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 153 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 153 | } | 700 | | | 701 | 549 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 549 | auto c_res = ColumnUInt8::create(); | 704 | 549 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 549 | vec_res.resize(c0->size()); | 706 | | | 707 | 549 | if (c0_string && c1_string) { | 708 | 390 | StringImpl::string_vector_string_vector( | 709 | 390 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 390 | c1_string->get_offsets(), vec_res); | 711 | 390 | } else if (c0_string && c1_const) { | 712 | 153 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 153 | *c1_const_chars, c1_const_size, vec_res); | 714 | 153 | } else if (c0_const && c1_string) { | 715 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 6 | vec_res); | 718 | 6 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 549 | block.replace_by_position(result, std::move(c_res)); | 723 | 549 | return Status::OK(); | 724 | 549 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 318 | const IColumn* c1) const { | 661 | 318 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 318 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 318 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 318 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 318 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 318 | DCHECK(!(c0_const && c1_const)); | 670 | 318 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 318 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 318 | ColumnString::Offset c0_const_size = 0; | 673 | 318 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 318 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 318 | if (c1_const) { | 689 | 318 | const ColumnString* c1_const_string = | 690 | 318 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 318 | if (c1_const_string) { | 693 | 318 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 318 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 318 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 318 | } | 700 | | | 701 | 318 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 318 | auto c_res = ColumnUInt8::create(); | 704 | 318 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 318 | vec_res.resize(c0->size()); | 706 | | | 707 | 318 | if (c0_string && c1_string) { | 708 | 0 | StringImpl::string_vector_string_vector( | 709 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 0 | c1_string->get_offsets(), vec_res); | 711 | 318 | } else if (c0_string && c1_const) { | 712 | 318 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 318 | *c1_const_chars, c1_const_size, vec_res); | 714 | 318 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 318 | block.replace_by_position(result, std::move(c_res)); | 723 | 318 | return Status::OK(); | 724 | 318 | } |
|
725 | | |
726 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
727 | 196 | const IColumn* c1) const { |
728 | 196 | bool c0_const = is_column_const(*c0); |
729 | 196 | bool c1_const = is_column_const(*c1); |
730 | | |
731 | 196 | DCHECK(!(c0_const && c1_const)); |
732 | | |
733 | 196 | auto c_res = ColumnUInt8::create(); |
734 | 196 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
735 | 196 | vec_res.resize(c0->size()); |
736 | | |
737 | 196 | if (c0_const) { |
738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
739 | 195 | } else if (c1_const) { |
740 | 173 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
741 | 173 | } else { |
742 | 22 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
743 | 22 | } |
744 | | |
745 | 196 | block.replace_by_position(result, std::move(c_res)); |
746 | 196 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 33 | const IColumn* c1) const { | 728 | 33 | bool c0_const = is_column_const(*c0); | 729 | 33 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 33 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 33 | auto c_res = ColumnUInt8::create(); | 734 | 33 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 33 | vec_res.resize(c0->size()); | 736 | | | 737 | 33 | if (c0_const) { | 738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 32 | } else if (c1_const) { | 740 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 18 | } else { | 742 | 14 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 14 | } | 744 | | | 745 | 33 | block.replace_by_position(result, std::move(c_res)); | 746 | 33 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 10 | const IColumn* c1) const { | 728 | 10 | bool c0_const = is_column_const(*c0); | 729 | 10 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 10 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 10 | auto c_res = ColumnUInt8::create(); | 734 | 10 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 10 | vec_res.resize(c0->size()); | 736 | | | 737 | 10 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 10 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 2 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 2 | } | 744 | | | 745 | 10 | block.replace_by_position(result, std::move(c_res)); | 746 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 9 | const IColumn* c1) const { | 728 | 9 | bool c0_const = is_column_const(*c0); | 729 | 9 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 9 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 9 | auto c_res = ColumnUInt8::create(); | 734 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 9 | vec_res.resize(c0->size()); | 736 | | | 737 | 9 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 9 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 9 | block.replace_by_position(result, std::move(c_res)); | 746 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 63 | const IColumn* c1) const { | 728 | 63 | bool c0_const = is_column_const(*c0); | 729 | 63 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 63 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 63 | auto c_res = ColumnUInt8::create(); | 734 | 63 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 63 | vec_res.resize(c0->size()); | 736 | | | 737 | 63 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 63 | } else if (c1_const) { | 740 | 62 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 62 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 63 | block.replace_by_position(result, std::move(c_res)); | 746 | 63 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 12 | const IColumn* c1) const { | 728 | 12 | bool c0_const = is_column_const(*c0); | 729 | 12 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 12 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 12 | auto c_res = ColumnUInt8::create(); | 734 | 12 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 12 | vec_res.resize(c0->size()); | 736 | | | 737 | 12 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 12 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 4 | } | 744 | | | 745 | 12 | block.replace_by_position(result, std::move(c_res)); | 746 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 69 | const IColumn* c1) const { | 728 | 69 | bool c0_const = is_column_const(*c0); | 729 | 69 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 69 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 69 | auto c_res = ColumnUInt8::create(); | 734 | 69 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 69 | vec_res.resize(c0->size()); | 736 | | | 737 | 69 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 69 | } else if (c1_const) { | 740 | 69 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 69 | } else { | 742 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 0 | } | 744 | | | 745 | 69 | block.replace_by_position(result, std::move(c_res)); | 746 | 69 | } |
|
747 | | |
748 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
749 | 196 | const ColumnWithTypeAndName& c1) const { |
750 | 196 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
751 | 196 | return Status::OK(); |
752 | 196 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 33 | const ColumnWithTypeAndName& c1) const { | 750 | 33 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 33 | return Status::OK(); | 752 | 33 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 10 | const ColumnWithTypeAndName& c1) const { | 750 | 10 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 10 | return Status::OK(); | 752 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 9 | const ColumnWithTypeAndName& c1) const { | 750 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 9 | return Status::OK(); | 752 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 63 | const ColumnWithTypeAndName& c1) const { | 750 | 63 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 63 | return Status::OK(); | 752 | 63 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 12 | const ColumnWithTypeAndName& c1) const { | 750 | 12 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 12 | return Status::OK(); | 752 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 69 | const ColumnWithTypeAndName& c1) const { | 750 | 69 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 69 | return Status::OK(); | 752 | 69 | } |
|
753 | | |
754 | | public: |
755 | 251 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 83 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 36 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 73 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
|
756 | | |
757 | 304k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 272k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 1.27k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.24k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 8.74k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 757 | 4.04k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 10.5k | size_t get_number_of_arguments() const override { return 2; } |
|
758 | | |
759 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
760 | 4.29k | const VExprSPtrs& arguments) const override { |
761 | 4.29k | auto op = comparison_zonemap_detail::op_from_name(name); |
762 | 4.29k | DORIS_CHECK(op.has_value()); |
763 | 4.29k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
764 | 4.29k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 2.19k | const VExprSPtrs& arguments) const override { | 761 | 2.19k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 2.19k | DORIS_CHECK(op.has_value()); | 763 | 2.19k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 2.19k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 233 | const VExprSPtrs& arguments) const override { | 761 | 233 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 233 | DORIS_CHECK(op.has_value()); | 763 | 233 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 233 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 436 | const VExprSPtrs& arguments) const override { | 761 | 436 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 436 | DORIS_CHECK(op.has_value()); | 763 | 436 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 436 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 454 | const VExprSPtrs& arguments) const override { | 761 | 454 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 454 | DORIS_CHECK(op.has_value()); | 763 | 454 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 454 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 655 | const VExprSPtrs& arguments) const override { | 761 | 655 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 655 | DORIS_CHECK(op.has_value()); | 763 | 655 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 655 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 314 | const VExprSPtrs& arguments) const override { | 761 | 314 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 314 | DORIS_CHECK(op.has_value()); | 763 | 314 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 314 | } |
|
765 | | |
766 | 33.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
767 | 33.7k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 33.7k | return comparison_zonemap_detail::can_evaluate(arguments) || |
771 | 33.7k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); |
772 | 33.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 15.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 15.7k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 15.7k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 15.7k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 15.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.52k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.52k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.52k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.52k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.52k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 5.95k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 5.95k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 5.95k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 5.95k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 5.95k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.28k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.28k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.28k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.28k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.28k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.31k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.31k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.31k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.31k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.31k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.93k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.93k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.93k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.93k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.93k | } |
|
773 | | |
774 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
775 | 14 | const VExprSPtrs& arguments) const override { |
776 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
777 | 14 | DORIS_CHECK(op.has_value()); |
778 | 14 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
779 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 4 | const VExprSPtrs& arguments) const override { | 776 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 4 | DORIS_CHECK(op.has_value()); | 778 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 3 | const VExprSPtrs& arguments) const override { | 776 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 3 | DORIS_CHECK(op.has_value()); | 778 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 7 | const VExprSPtrs& arguments) const override { | 776 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 7 | DORIS_CHECK(op.has_value()); | 778 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 7 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
780 | | |
781 | 838 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
782 | 838 | auto op = comparison_zonemap_detail::op_from_name(name); |
783 | 838 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
784 | 838 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 366 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 366 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 366 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 366 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 3 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 3 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 100 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 100 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 100 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 100 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 223 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 9 | } |
|
785 | | |
786 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
787 | 19 | const VExprSPtrs& arguments) const override { |
788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); |
789 | 19 | DORIS_CHECK(op.has_value()); |
790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
791 | 19 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 787 | 19 | const VExprSPtrs& arguments) const override { | 788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); | 789 | 19 | DORIS_CHECK(op.has_value()); | 790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 791 | 19 | } |
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 |
792 | | |
793 | 342 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
794 | 342 | auto op = comparison_zonemap_detail::op_from_name(name); |
795 | 342 | return op == comparison_zonemap_detail::Op::EQ && |
796 | 342 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
797 | 342 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 173 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 173 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 173 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 173 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 173 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 1 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 1 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 1 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 30 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 30 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 30 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 30 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 4 | } |
|
798 | | |
799 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
800 | 304k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
801 | 304k | return std::make_shared<DataTypeUInt8>(); |
802 | 304k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 272k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 272k | return std::make_shared<DataTypeUInt8>(); | 802 | 272k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 1.26k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 1.26k | return std::make_shared<DataTypeUInt8>(); | 802 | 1.26k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.24k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.24k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.24k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 8.75k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 8.75k | return std::make_shared<DataTypeUInt8>(); | 802 | 8.75k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 4.04k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 4.04k | return std::make_shared<DataTypeUInt8>(); | 802 | 4.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 10.5k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 10.5k | return std::make_shared<DataTypeUInt8>(); | 802 | 10.5k | } |
|
803 | | |
804 | | Status evaluate_inverted_index( |
805 | | const ColumnsWithTypeAndName& arguments, |
806 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
807 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
808 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
809 | 1.30k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
810 | 1.30k | DCHECK(arguments.size() == 1); |
811 | 1.30k | DCHECK(data_type_with_names.size() == 1); |
812 | 1.30k | DCHECK(iterators.size() == 1); |
813 | 1.30k | auto* iter = iterators[0]; |
814 | 1.30k | auto data_type_with_name = data_type_with_names[0]; |
815 | 1.30k | if (iter == nullptr) { |
816 | 0 | return Status::OK(); |
817 | 0 | } |
818 | 1.30k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
819 | 305 | return Status::OK(); |
820 | 305 | } |
821 | 1.00k | segment_v2::InvertedIndexQueryType query_type; |
822 | 1.00k | std::string_view name_view(name); |
823 | 1.00k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
824 | 691 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
825 | 691 | } else if (name_view == NameLess::name) { |
826 | 72 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
827 | 237 | } else if (name_view == NameLessOrEquals::name) { |
828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
829 | 156 | } else if (name_view == NameGreater::name) { |
830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
831 | 92 | } else if (name_view == NameGreaterOrEquals::name) { |
832 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
833 | 18.4E | } else { |
834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
835 | 18.4E | } |
836 | | |
837 | 1.00k | if (segment_v2::is_range_query(query_type) && |
838 | 1.00k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
840 | 133 | return Status::OK(); |
841 | 133 | } |
842 | 870 | Field param_value; |
843 | 870 | arguments[0].column->get(0, param_value); |
844 | 870 | if (param_value.is_null()) { |
845 | 2 | return Status::OK(); |
846 | 2 | } |
847 | 868 | segment_v2::InvertedIndexParam param; |
848 | 868 | param.column_name = data_type_with_name.first; |
849 | 868 | param.column_type = data_type_with_name.second; |
850 | 868 | param.query_value = param_value; |
851 | 868 | param.query_type = query_type; |
852 | 868 | param.num_rows = num_rows; |
853 | 868 | param.roaring = std::make_shared<roaring::Roaring>(); |
854 | 868 | param.analyzer_ctx = analyzer_ctx; |
855 | 868 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
856 | 727 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
857 | 727 | if (iter->has_null()) { |
858 | 724 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
859 | 724 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
860 | 724 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
861 | 724 | } |
862 | 727 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
863 | 727 | bitmap_result = result; |
864 | 727 | bitmap_result.mask_out_null(); |
865 | | |
866 | 727 | if (name_view == NameNotEquals::name) { |
867 | 58 | roaring::Roaring full_result; |
868 | 58 | full_result.addRange(0, num_rows); |
869 | 58 | bitmap_result.op_not(&full_result); |
870 | 58 | } |
871 | | |
872 | 727 | return Status::OK(); |
873 | 727 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 659 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 659 | DCHECK(arguments.size() == 1); | 811 | 659 | DCHECK(data_type_with_names.size() == 1); | 812 | 659 | DCHECK(iterators.size() == 1); | 813 | 659 | auto* iter = iterators[0]; | 814 | 659 | auto data_type_with_name = data_type_with_names[0]; | 815 | 659 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 659 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 33 | return Status::OK(); | 820 | 33 | } | 821 | 626 | segment_v2::InvertedIndexQueryType query_type; | 822 | 626 | std::string_view name_view(name); | 823 | 626 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 626 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 626 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 0 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 626 | if (segment_v2::is_range_query(query_type) && | 838 | 626 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 626 | Field param_value; | 843 | 626 | arguments[0].column->get(0, param_value); | 844 | 626 | if (param_value.is_null()) { | 845 | 2 | return Status::OK(); | 846 | 2 | } | 847 | 624 | segment_v2::InvertedIndexParam param; | 848 | 624 | param.column_name = data_type_with_name.first; | 849 | 624 | param.column_type = data_type_with_name.second; | 850 | 624 | param.query_value = param_value; | 851 | 624 | param.query_type = query_type; | 852 | 624 | param.num_rows = num_rows; | 853 | 624 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 624 | param.analyzer_ctx = analyzer_ctx; | 855 | 624 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 588 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 589 | if (iter->has_null()) { | 858 | 589 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 589 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 589 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 589 | } | 862 | 588 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 588 | bitmap_result = result; | 864 | 588 | bitmap_result.mask_out_null(); | 865 | | | 866 | 588 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 588 | return Status::OK(); | 873 | 588 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 74 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 74 | DCHECK(arguments.size() == 1); | 811 | 74 | DCHECK(data_type_with_names.size() == 1); | 812 | 74 | DCHECK(iterators.size() == 1); | 813 | 74 | auto* iter = iterators[0]; | 814 | 74 | auto data_type_with_name = data_type_with_names[0]; | 815 | 74 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 74 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 10 | return Status::OK(); | 820 | 10 | } | 821 | 64 | segment_v2::InvertedIndexQueryType query_type; | 822 | 64 | std::string_view name_view(name); | 823 | 65 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 65 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 18.4E | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 18.4E | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 65 | if (segment_v2::is_range_query(query_type) && | 838 | 65 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 65 | Field param_value; | 843 | 65 | arguments[0].column->get(0, param_value); | 844 | 65 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 65 | segment_v2::InvertedIndexParam param; | 848 | 65 | param.column_name = data_type_with_name.first; | 849 | 65 | param.column_type = data_type_with_name.second; | 850 | 65 | param.query_value = param_value; | 851 | 65 | param.query_type = query_type; | 852 | 65 | param.num_rows = num_rows; | 853 | 65 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 65 | param.analyzer_ctx = analyzer_ctx; | 855 | 65 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 58 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 58 | if (iter->has_null()) { | 858 | 56 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 56 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 56 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 56 | } | 862 | 58 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 58 | bitmap_result = result; | 864 | 58 | bitmap_result.mask_out_null(); | 865 | | | 866 | 58 | if (name_view == NameNotEquals::name) { | 867 | 58 | roaring::Roaring full_result; | 868 | 58 | full_result.addRange(0, num_rows); | 869 | 58 | bitmap_result.op_not(&full_result); | 870 | 58 | } | 871 | | | 872 | 58 | return Status::OK(); | 873 | 58 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 106 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 106 | DCHECK(arguments.size() == 1); | 811 | 106 | DCHECK(data_type_with_names.size() == 1); | 812 | 106 | DCHECK(iterators.size() == 1); | 813 | 106 | auto* iter = iterators[0]; | 814 | 106 | auto data_type_with_name = data_type_with_names[0]; | 815 | 106 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 106 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 39 | return Status::OK(); | 820 | 39 | } | 821 | 67 | segment_v2::InvertedIndexQueryType query_type; | 822 | 67 | std::string_view name_view(name); | 823 | 67 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 67 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 67 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 67 | } else if (name_view == NameGreater::name) { | 830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 67 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 67 | if (segment_v2::is_range_query(query_type) && | 838 | 67 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 17 | return Status::OK(); | 841 | 17 | } | 842 | 50 | Field param_value; | 843 | 50 | arguments[0].column->get(0, param_value); | 844 | 50 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 50 | segment_v2::InvertedIndexParam param; | 848 | 50 | param.column_name = data_type_with_name.first; | 849 | 50 | param.column_type = data_type_with_name.second; | 850 | 50 | param.query_value = param_value; | 851 | 50 | param.query_type = query_type; | 852 | 50 | param.num_rows = num_rows; | 853 | 50 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 50 | param.analyzer_ctx = analyzer_ctx; | 855 | 50 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 31 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 31 | if (iter->has_null()) { | 858 | 31 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 31 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 31 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 31 | } | 862 | 31 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 31 | bitmap_result = result; | 864 | 31 | bitmap_result.mask_out_null(); | 865 | | | 866 | 31 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 31 | return Status::OK(); | 873 | 31 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 178 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 178 | DCHECK(arguments.size() == 1); | 811 | 178 | DCHECK(data_type_with_names.size() == 1); | 812 | 178 | DCHECK(iterators.size() == 1); | 813 | 178 | auto* iter = iterators[0]; | 814 | 178 | auto data_type_with_name = data_type_with_names[0]; | 815 | 178 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 178 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 86 | return Status::OK(); | 820 | 86 | } | 821 | 92 | segment_v2::InvertedIndexQueryType query_type; | 822 | 92 | std::string_view name_view(name); | 823 | 92 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 92 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 92 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 92 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 92 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 92 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 92 | if (segment_v2::is_range_query(query_type) && | 838 | 92 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 47 | return Status::OK(); | 841 | 47 | } | 842 | 45 | Field param_value; | 843 | 45 | arguments[0].column->get(0, param_value); | 844 | 45 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 45 | segment_v2::InvertedIndexParam param; | 848 | 45 | param.column_name = data_type_with_name.first; | 849 | 45 | param.column_type = data_type_with_name.second; | 850 | 45 | param.query_value = param_value; | 851 | 45 | param.query_type = query_type; | 852 | 45 | param.num_rows = num_rows; | 853 | 45 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 45 | param.analyzer_ctx = analyzer_ctx; | 855 | 45 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 4 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 4 | if (iter->has_null()) { | 858 | 4 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 4 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 4 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 4 | } | 862 | 4 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 4 | bitmap_result = result; | 864 | 4 | bitmap_result.mask_out_null(); | 865 | | | 866 | 4 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 4 | return Status::OK(); | 873 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 115 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 115 | DCHECK(arguments.size() == 1); | 811 | 115 | DCHECK(data_type_with_names.size() == 1); | 812 | 115 | DCHECK(iterators.size() == 1); | 813 | 115 | auto* iter = iterators[0]; | 814 | 115 | auto data_type_with_name = data_type_with_names[0]; | 815 | 115 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 115 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 43 | return Status::OK(); | 820 | 43 | } | 821 | 72 | segment_v2::InvertedIndexQueryType query_type; | 822 | 72 | std::string_view name_view(name); | 823 | 72 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 72 | } else if (name_view == NameLess::name) { | 826 | 72 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 72 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 72 | if (segment_v2::is_range_query(query_type) && | 838 | 72 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 18 | return Status::OK(); | 841 | 18 | } | 842 | 54 | Field param_value; | 843 | 54 | arguments[0].column->get(0, param_value); | 844 | 54 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 54 | segment_v2::InvertedIndexParam param; | 848 | 54 | param.column_name = data_type_with_name.first; | 849 | 54 | param.column_type = data_type_with_name.second; | 850 | 54 | param.query_value = param_value; | 851 | 54 | param.query_type = query_type; | 852 | 54 | param.num_rows = num_rows; | 853 | 54 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 54 | param.analyzer_ctx = analyzer_ctx; | 855 | 54 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 36 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 36 | if (iter->has_null()) { | 858 | 35 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 35 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 35 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 35 | } | 862 | 36 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 36 | bitmap_result = result; | 864 | 36 | bitmap_result.mask_out_null(); | 865 | | | 866 | 36 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 36 | return Status::OK(); | 873 | 36 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 173 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 173 | DCHECK(arguments.size() == 1); | 811 | 173 | DCHECK(data_type_with_names.size() == 1); | 812 | 173 | DCHECK(iterators.size() == 1); | 813 | 173 | auto* iter = iterators[0]; | 814 | 173 | auto data_type_with_name = data_type_with_names[0]; | 815 | 173 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 173 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 94 | return Status::OK(); | 820 | 94 | } | 821 | 79 | segment_v2::InvertedIndexQueryType query_type; | 822 | 79 | std::string_view name_view(name); | 823 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 79 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 81 | } else if (name_view == NameLessOrEquals::name) { | 828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 18.4E | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 81 | if (segment_v2::is_range_query(query_type) && | 838 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 51 | return Status::OK(); | 841 | 51 | } | 842 | 30 | Field param_value; | 843 | 30 | arguments[0].column->get(0, param_value); | 844 | 30 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 30 | segment_v2::InvertedIndexParam param; | 848 | 30 | param.column_name = data_type_with_name.first; | 849 | 30 | param.column_type = data_type_with_name.second; | 850 | 30 | param.query_value = param_value; | 851 | 30 | param.query_type = query_type; | 852 | 30 | param.num_rows = num_rows; | 853 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 30 | param.analyzer_ctx = analyzer_ctx; | 855 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 10 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 10 | if (iter->has_null()) { | 858 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 9 | } | 862 | 10 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 10 | bitmap_result = result; | 864 | 10 | bitmap_result.mask_out_null(); | 865 | | | 866 | 10 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 10 | return Status::OK(); | 873 | 10 | } |
|
874 | | |
875 | | // NOLINTNEXTLINE(readability-function-size) |
876 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
877 | 97.4k | uint32_t result, size_t input_rows_count) const override { |
878 | 97.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
879 | 97.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
880 | | |
881 | 97.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
882 | 97.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
883 | 97.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
884 | 97.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
885 | | |
886 | 97.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
887 | 97.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
888 | | |
889 | | /// The case when arguments are the same (tautological comparison). Return constant. |
890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
892 | 97.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
893 | 97.4k | col_left_untyped == col_right_untyped) { |
894 | | /// Always true: =, <=, >= |
895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
899 | 6 | block.get_by_position(result).column = |
900 | 6 | DataTypeUInt8() |
901 | 6 | .create_column_const(input_rows_count, |
902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) |
903 | 6 | ->convert_to_full_column_if_const(); |
904 | 6 | return Status::OK(); |
905 | 6 | } else { |
906 | 0 | block.get_by_position(result).column = |
907 | 0 | DataTypeUInt8() |
908 | 0 | .create_column_const(input_rows_count, |
909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
910 | 0 | ->convert_to_full_column_if_const(); |
911 | 0 | return Status::OK(); |
912 | 0 | } |
913 | 6 | } |
914 | | |
915 | 163k | auto can_compare = [](PrimitiveType t) -> bool { |
916 | 163k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
917 | 163k | is_timestamp_ns_type(t) || is_timestamptz_type(t); |
918 | 163k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 65.7k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 65.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 65.7k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 65.7k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 5.63k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 5.63k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 5.63k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 5.63k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 47.1k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 47.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 47.1k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 47.1k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 6.77k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 6.77k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 6.77k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 6.77k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 21.3k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 21.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 21.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 21.3k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 16.6k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 16.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 16.6k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 16.6k | }; |
|
919 | | |
920 | 97.4k | if (can_compare(left_type->get_primitive_type()) && |
921 | 97.4k | can_compare(right_type->get_primitive_type())) { |
922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
923 | 65.9k | if (!left_type->equals_ignore_precision(*right_type)) { |
924 | 70 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
925 | 70 | get_name(), left_type->get_name(), |
926 | 70 | right_type->get_name()); |
927 | 70 | } |
928 | 65.9k | } |
929 | | |
930 | 97.3k | auto compare_type = left_type->get_primitive_type(); |
931 | 97.3k | switch (compare_type) { |
932 | 246 | case TYPE_BOOLEAN: |
933 | 246 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
934 | 4.79k | case TYPE_DATEV2: |
935 | 4.79k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
936 | 939 | case TYPE_DATETIMEV2: |
937 | 939 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
938 | 955 | case TYPE_TIMESTAMP_NS: |
939 | 955 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
940 | 22 | case TYPE_TIMESTAMPTZ: |
941 | 22 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
942 | 10.2k | case TYPE_TINYINT: |
943 | 10.2k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
944 | 3.00k | case TYPE_SMALLINT: |
945 | 3.00k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
946 | 27.0k | case TYPE_INT: |
947 | 27.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
948 | 13.7k | case TYPE_BIGINT: |
949 | 13.7k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
950 | 729 | case TYPE_LARGEINT: |
951 | 729 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
952 | 44 | case TYPE_IPV4: |
953 | 44 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
954 | 44 | case TYPE_IPV6: |
955 | 44 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
956 | 4.87k | case TYPE_UUID: |
957 | 4.87k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
958 | 736 | case TYPE_FLOAT: |
959 | 736 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
960 | 3.17k | case TYPE_DOUBLE: |
961 | 3.17k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
962 | 52 | case TYPE_TIMEV2: |
963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
964 | 0 | case TYPE_DECIMALV2: |
965 | 313 | case TYPE_DECIMAL32: |
966 | 908 | case TYPE_DECIMAL64: |
967 | 3.02k | case TYPE_DECIMAL128I: |
968 | 3.10k | case TYPE_DECIMAL256: |
969 | 3.10k | return execute_decimal(block, result, col_with_type_and_name_left, |
970 | 3.10k | col_with_type_and_name_right); |
971 | 921 | case TYPE_CHAR: |
972 | 8.35k | case TYPE_VARCHAR: |
973 | 23.3k | case TYPE_STRING: |
974 | 23.3k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
975 | 196 | default: |
976 | 196 | return execute_generic(block, result, col_with_type_and_name_left, |
977 | 196 | col_with_type_and_name_right); |
978 | 97.3k | } |
979 | 0 | return Status::OK(); |
980 | 97.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 45.8k | uint32_t result, size_t input_rows_count) const override { | 878 | 45.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 45.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 45.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 45.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 45.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 45.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 45.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 45.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 45.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 45.8k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 6 | block.get_by_position(result).column = | 900 | 6 | DataTypeUInt8() | 901 | 6 | .create_column_const(input_rows_count, | 902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 6 | ->convert_to_full_column_if_const(); | 904 | 6 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 6 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 45.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 45.8k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 45.8k | }; | 919 | | | 920 | 45.8k | if (can_compare(left_type->get_primitive_type()) && | 921 | 45.8k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 19.9k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 20 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 20 | get_name(), left_type->get_name(), | 926 | 20 | right_type->get_name()); | 927 | 20 | } | 928 | 19.9k | } | 929 | | | 930 | 45.7k | auto compare_type = left_type->get_primitive_type(); | 931 | 45.7k | switch (compare_type) { | 932 | 97 | case TYPE_BOOLEAN: | 933 | 97 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 693 | case TYPE_DATEV2: | 935 | 693 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 448 | case TYPE_DATETIMEV2: | 937 | 448 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 233 | case TYPE_TIMESTAMP_NS: | 939 | 233 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 13 | case TYPE_TIMESTAMPTZ: | 941 | 13 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 6.02k | case TYPE_TINYINT: | 943 | 6.02k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 415 | case TYPE_SMALLINT: | 945 | 415 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 3.31k | case TYPE_INT: | 947 | 3.31k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 7.58k | case TYPE_BIGINT: | 949 | 7.58k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 117 | case TYPE_LARGEINT: | 951 | 117 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 22 | case TYPE_IPV4: | 953 | 22 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 27 | case TYPE_IPV6: | 955 | 27 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 2.81k | case TYPE_UUID: | 957 | 2.81k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 91 | case TYPE_FLOAT: | 959 | 91 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 894 | case TYPE_DOUBLE: | 961 | 894 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 52 | case TYPE_TIMEV2: | 963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 130 | case TYPE_DECIMAL32: | 966 | 258 | case TYPE_DECIMAL64: | 967 | 1.11k | case TYPE_DECIMAL128I: | 968 | 1.13k | case TYPE_DECIMAL256: | 969 | 1.13k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.13k | col_with_type_and_name_right); | 971 | 690 | case TYPE_CHAR: | 972 | 7.48k | case TYPE_VARCHAR: | 973 | 21.7k | case TYPE_STRING: | 974 | 21.7k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 33 | default: | 976 | 33 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 33 | col_with_type_and_name_right); | 978 | 45.7k | } | 979 | 0 | return Status::OK(); | 980 | 45.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 2.95k | uint32_t result, size_t input_rows_count) const override { | 878 | 2.95k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 2.95k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 2.95k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 2.95k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 2.95k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 2.95k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 2.95k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 2.95k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 2.95k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 2.95k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 2.95k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 2.95k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 2.95k | }; | 919 | | | 920 | 2.95k | if (can_compare(left_type->get_primitive_type()) && | 921 | 2.95k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 2.67k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 2.67k | } | 929 | | | 930 | 2.94k | auto compare_type = left_type->get_primitive_type(); | 931 | 2.94k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 70 | case TYPE_DATEV2: | 935 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 0 | case TYPE_DATETIMEV2: | 937 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 11 | case TYPE_TIMESTAMP_NS: | 939 | 11 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 0 | case TYPE_TIMESTAMPTZ: | 941 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 84 | case TYPE_TINYINT: | 943 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 0 | case TYPE_SMALLINT: | 945 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.28k | case TYPE_INT: | 947 | 1.28k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 1.10k | case TYPE_BIGINT: | 949 | 1.10k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 0 | case TYPE_LARGEINT: | 951 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 0 | case TYPE_UUID: | 957 | 0 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 47 | case TYPE_FLOAT: | 959 | 47 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 63 | case TYPE_DOUBLE: | 961 | 63 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 0 | case TYPE_DECIMAL32: | 966 | 63 | case TYPE_DECIMAL64: | 967 | 91 | case TYPE_DECIMAL128I: | 968 | 121 | case TYPE_DECIMAL256: | 969 | 121 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 121 | col_with_type_and_name_right); | 971 | 1 | case TYPE_CHAR: | 972 | 59 | case TYPE_VARCHAR: | 973 | 156 | case TYPE_STRING: | 974 | 156 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 10 | default: | 976 | 10 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 10 | col_with_type_and_name_right); | 978 | 2.94k | } | 979 | 0 | return Status::OK(); | 980 | 2.94k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 24.3k | uint32_t result, size_t input_rows_count) const override { | 878 | 24.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 24.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 24.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 24.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 24.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 24.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 24.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 24.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 24.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 24.3k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 24.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 24.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 24.3k | }; | 919 | | | 920 | 24.3k | if (can_compare(left_type->get_primitive_type()) && | 921 | 24.3k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 22.7k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 22.7k | } | 929 | | | 930 | 24.3k | auto compare_type = left_type->get_primitive_type(); | 931 | 24.3k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 1.02k | case TYPE_DATEV2: | 935 | 1.02k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 3 | case TYPE_DATETIMEV2: | 937 | 3 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 72 | case TYPE_TIMESTAMP_NS: | 939 | 72 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 1.66k | case TYPE_TINYINT: | 943 | 1.66k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 2.30k | case TYPE_SMALLINT: | 945 | 2.30k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 13.7k | case TYPE_INT: | 947 | 13.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 2.65k | case TYPE_BIGINT: | 949 | 2.65k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 260 | case TYPE_LARGEINT: | 951 | 260 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 4 | case TYPE_IPV4: | 953 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 611 | case TYPE_UUID: | 957 | 611 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 421 | case TYPE_FLOAT: | 959 | 421 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 608 | case TYPE_DOUBLE: | 961 | 608 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 8 | case TYPE_DECIMAL32: | 966 | 74 | case TYPE_DECIMAL64: | 967 | 724 | case TYPE_DECIMAL128I: | 968 | 726 | case TYPE_DECIMAL256: | 969 | 726 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 726 | col_with_type_and_name_right); | 971 | 14 | case TYPE_CHAR: | 972 | 102 | case TYPE_VARCHAR: | 973 | 225 | case TYPE_STRING: | 974 | 225 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 9 | default: | 976 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 9 | col_with_type_and_name_right); | 978 | 24.3k | } | 979 | 0 | return Status::OK(); | 980 | 24.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 3.93k | uint32_t result, size_t input_rows_count) const override { | 878 | 3.93k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 3.93k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 3.93k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 3.93k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 3.93k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 3.93k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 3.93k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 3.93k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 3.93k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 3.93k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 3.93k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 3.93k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 3.93k | }; | 919 | | | 920 | 3.93k | if (can_compare(left_type->get_primitive_type()) && | 921 | 3.93k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 2.83k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 2.83k | } | 929 | | | 930 | 3.92k | auto compare_type = left_type->get_primitive_type(); | 931 | 3.92k | switch (compare_type) { | 932 | 33 | case TYPE_BOOLEAN: | 933 | 33 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 453 | case TYPE_DATEV2: | 935 | 453 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 128 | case TYPE_DATETIMEV2: | 937 | 128 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 411 | case TYPE_TIMESTAMP_NS: | 939 | 411 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 59 | case TYPE_TINYINT: | 943 | 59 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 55 | case TYPE_SMALLINT: | 945 | 55 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 636 | case TYPE_INT: | 947 | 636 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 786 | case TYPE_BIGINT: | 949 | 786 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 31 | case TYPE_LARGEINT: | 951 | 31 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 1 | case TYPE_IPV4: | 953 | 1 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 577 | case TYPE_UUID: | 957 | 577 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 30 | case TYPE_FLOAT: | 959 | 30 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 141 | case TYPE_DOUBLE: | 961 | 141 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 4 | case TYPE_DECIMAL32: | 966 | 74 | case TYPE_DECIMAL64: | 967 | 152 | case TYPE_DECIMAL128I: | 968 | 169 | case TYPE_DECIMAL256: | 969 | 169 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 169 | col_with_type_and_name_right); | 971 | 16 | case TYPE_CHAR: | 972 | 210 | case TYPE_VARCHAR: | 973 | 351 | case TYPE_STRING: | 974 | 351 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 63 | default: | 976 | 63 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 63 | col_with_type_and_name_right); | 978 | 3.92k | } | 979 | 0 | return Status::OK(); | 980 | 3.92k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 11.5k | uint32_t result, size_t input_rows_count) const override { | 878 | 11.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 11.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 11.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 11.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 11.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 11.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 11.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 11.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 11.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 11.5k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 11.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 11.5k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 11.5k | }; | 919 | | | 920 | 11.5k | if (can_compare(left_type->get_primitive_type()) && | 921 | 11.5k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 9.77k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 9.77k | } | 929 | | | 930 | 11.5k | auto compare_type = left_type->get_primitive_type(); | 931 | 11.5k | switch (compare_type) { | 932 | 85 | case TYPE_BOOLEAN: | 933 | 85 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 2.04k | case TYPE_DATEV2: | 935 | 2.04k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 296 | case TYPE_DATETIMEV2: | 937 | 296 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 160 | case TYPE_TIMESTAMP_NS: | 939 | 160 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 3 | case TYPE_TIMESTAMPTZ: | 941 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 2.36k | case TYPE_TINYINT: | 943 | 2.36k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 170 | case TYPE_SMALLINT: | 945 | 170 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.89k | case TYPE_INT: | 947 | 1.89k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 967 | case TYPE_BIGINT: | 949 | 967 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 292 | case TYPE_LARGEINT: | 951 | 292 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 17 | case TYPE_IPV4: | 953 | 17 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 15 | case TYPE_IPV6: | 955 | 15 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 457 | case TYPE_UUID: | 957 | 457 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 127 | case TYPE_FLOAT: | 959 | 127 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 1.32k | case TYPE_DOUBLE: | 961 | 1.32k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 164 | case TYPE_DECIMAL32: | 966 | 346 | case TYPE_DECIMAL64: | 967 | 764 | case TYPE_DECIMAL128I: | 968 | 765 | case TYPE_DECIMAL256: | 969 | 765 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 765 | col_with_type_and_name_right); | 971 | 173 | case TYPE_CHAR: | 972 | 357 | case TYPE_VARCHAR: | 973 | 549 | case TYPE_STRING: | 974 | 549 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 12 | default: | 976 | 12 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 12 | col_with_type_and_name_right); | 978 | 11.5k | } | 979 | 0 | return Status::OK(); | 980 | 11.5k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 8.78k | uint32_t result, size_t input_rows_count) const override { | 878 | 8.78k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 8.78k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 8.78k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 8.78k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 8.78k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 8.78k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 8.78k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 8.78k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 8.78k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 8.78k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 8.78k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 8.78k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 8.78k | }; | 919 | | | 920 | 8.78k | if (can_compare(left_type->get_primitive_type()) && | 921 | 8.78k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 7.87k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 7.87k | } | 929 | | | 930 | 8.77k | auto compare_type = left_type->get_primitive_type(); | 931 | 8.77k | switch (compare_type) { | 932 | 31 | case TYPE_BOOLEAN: | 933 | 31 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 502 | case TYPE_DATEV2: | 935 | 502 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 64 | case TYPE_DATETIMEV2: | 937 | 64 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 68 | case TYPE_TIMESTAMP_NS: | 939 | 68 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 55 | case TYPE_TINYINT: | 943 | 55 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 62 | case TYPE_SMALLINT: | 945 | 62 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 6.18k | case TYPE_INT: | 947 | 6.18k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 624 | case TYPE_BIGINT: | 949 | 624 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 29 | case TYPE_LARGEINT: | 951 | 29 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 417 | case TYPE_UUID: | 957 | 417 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 20 | case TYPE_FLOAT: | 959 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 143 | case TYPE_DOUBLE: | 961 | 143 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 7 | case TYPE_DECIMAL32: | 966 | 93 | case TYPE_DECIMAL64: | 967 | 177 | case TYPE_DECIMAL128I: | 968 | 189 | case TYPE_DECIMAL256: | 969 | 189 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 189 | col_with_type_and_name_right); | 971 | 27 | case TYPE_CHAR: | 972 | 145 | case TYPE_VARCHAR: | 973 | 318 | case TYPE_STRING: | 974 | 318 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 69 | default: | 976 | 69 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 69 | col_with_type_and_name_right); | 978 | 8.77k | } | 979 | 0 | return Status::OK(); | 980 | 8.77k | } |
|
981 | | }; |
982 | | |
983 | | } // namespace doris |