be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 8.06k | PaddedPODArray<UInt8>& c) { |
72 | 8.06k | size_t size = a.size(); |
73 | 8.06k | const A* __restrict a_pos = a.data(); |
74 | 8.06k | const B* __restrict b_pos = b.data(); |
75 | 8.06k | UInt8* __restrict c_pos = c.data(); |
76 | 8.06k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 5.97M | while (a_pos < a_end) { |
79 | 5.96M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 5.96M | ++a_pos; |
81 | 5.96M | ++b_pos; |
82 | 5.96M | ++c_pos; |
83 | 5.96M | } |
84 | 8.06k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 73 | PaddedPODArray<UInt8>& c) { | 72 | 73 | size_t size = a.size(); | 73 | 73 | const A* __restrict a_pos = a.data(); | 74 | 73 | const B* __restrict b_pos = b.data(); | 75 | 73 | UInt8* __restrict c_pos = c.data(); | 76 | 73 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 146 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 73 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 185 | PaddedPODArray<UInt8>& c) { | 72 | 185 | size_t size = a.size(); | 73 | 185 | const A* __restrict a_pos = a.data(); | 74 | 185 | const B* __restrict b_pos = b.data(); | 75 | 185 | UInt8* __restrict c_pos = c.data(); | 76 | 185 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 191 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 191 | ++a_pos; | 81 | 191 | ++b_pos; | 82 | 191 | ++c_pos; | 83 | 191 | } | 84 | 185 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 219 | PaddedPODArray<UInt8>& c) { | 72 | 219 | size_t size = a.size(); | 73 | 219 | const A* __restrict a_pos = a.data(); | 74 | 219 | const B* __restrict b_pos = b.data(); | 75 | 219 | UInt8* __restrict c_pos = c.data(); | 76 | 219 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 456 | while (a_pos < a_end) { | 79 | 237 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 237 | ++a_pos; | 81 | 237 | ++b_pos; | 82 | 237 | ++c_pos; | 83 | 237 | } | 84 | 219 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 14 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 4 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 134 | PaddedPODArray<UInt8>& c) { | 72 | 134 | size_t size = a.size(); | 73 | 134 | const A* __restrict a_pos = a.data(); | 74 | 134 | const B* __restrict b_pos = b.data(); | 75 | 134 | UInt8* __restrict c_pos = c.data(); | 76 | 134 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 409 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 134 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 232 | PaddedPODArray<UInt8>& c) { | 72 | 232 | size_t size = a.size(); | 73 | 232 | const A* __restrict a_pos = a.data(); | 74 | 232 | const B* __restrict b_pos = b.data(); | 75 | 232 | UInt8* __restrict c_pos = c.data(); | 76 | 232 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.67k | while (a_pos < a_end) { | 79 | 1.44k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.44k | ++a_pos; | 81 | 1.44k | ++b_pos; | 82 | 1.44k | ++c_pos; | 83 | 1.44k | } | 84 | 232 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 126 | PaddedPODArray<UInt8>& c) { | 72 | 126 | size_t size = a.size(); | 73 | 126 | const A* __restrict a_pos = a.data(); | 74 | 126 | const B* __restrict b_pos = b.data(); | 75 | 126 | UInt8* __restrict c_pos = c.data(); | 76 | 126 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.38k | while (a_pos < a_end) { | 79 | 1.25k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.25k | ++a_pos; | 81 | 1.25k | ++b_pos; | 82 | 1.25k | ++c_pos; | 83 | 1.25k | } | 84 | 126 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 62 | PaddedPODArray<UInt8>& c) { | 72 | 62 | size_t size = a.size(); | 73 | 62 | const A* __restrict a_pos = a.data(); | 74 | 62 | const B* __restrict b_pos = b.data(); | 75 | 62 | UInt8* __restrict c_pos = c.data(); | 76 | 62 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 62 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 62 | ++a_pos; | 81 | 62 | ++b_pos; | 82 | 62 | ++c_pos; | 83 | 62 | } | 84 | 62 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 82 | PaddedPODArray<UInt8>& c) { | 72 | 82 | size_t size = a.size(); | 73 | 82 | const A* __restrict a_pos = a.data(); | 74 | 82 | const B* __restrict b_pos = b.data(); | 75 | 82 | UInt8* __restrict c_pos = c.data(); | 76 | 82 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 183 | while (a_pos < a_end) { | 79 | 101 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 101 | ++a_pos; | 81 | 101 | ++b_pos; | 82 | 101 | ++c_pos; | 83 | 101 | } | 84 | 82 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 83 | PaddedPODArray<UInt8>& c) { | 72 | 83 | size_t size = a.size(); | 73 | 83 | const A* __restrict a_pos = a.data(); | 74 | 83 | const B* __restrict b_pos = b.data(); | 75 | 83 | UInt8* __restrict c_pos = c.data(); | 76 | 83 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 187 | while (a_pos < a_end) { | 79 | 104 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 104 | ++a_pos; | 81 | 104 | ++b_pos; | 82 | 104 | ++c_pos; | 83 | 104 | } | 84 | 83 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 39 | PaddedPODArray<UInt8>& c) { | 72 | 39 | size_t size = a.size(); | 73 | 39 | const A* __restrict a_pos = a.data(); | 74 | 39 | const B* __restrict b_pos = b.data(); | 75 | 39 | UInt8* __restrict c_pos = c.data(); | 76 | 39 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 108 | while (a_pos < a_end) { | 79 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 69 | ++a_pos; | 81 | 69 | ++b_pos; | 82 | 69 | ++c_pos; | 83 | 69 | } | 84 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 979 | PaddedPODArray<UInt8>& c) { | 72 | 979 | size_t size = a.size(); | 73 | 979 | const A* __restrict a_pos = a.data(); | 74 | 979 | const B* __restrict b_pos = b.data(); | 75 | 979 | UInt8* __restrict c_pos = c.data(); | 76 | 979 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 943k | while (a_pos < a_end) { | 79 | 942k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 942k | ++a_pos; | 81 | 942k | ++b_pos; | 82 | 942k | ++c_pos; | 83 | 942k | } | 84 | 979 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 329 | PaddedPODArray<UInt8>& c) { | 72 | 329 | size_t size = a.size(); | 73 | 329 | const A* __restrict a_pos = a.data(); | 74 | 329 | const B* __restrict b_pos = b.data(); | 75 | 329 | UInt8* __restrict c_pos = c.data(); | 76 | 329 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.23k | while (a_pos < a_end) { | 79 | 5.90k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.90k | ++a_pos; | 81 | 5.90k | ++b_pos; | 82 | 5.90k | ++c_pos; | 83 | 5.90k | } | 84 | 329 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.19k | PaddedPODArray<UInt8>& c) { | 72 | 1.19k | size_t size = a.size(); | 73 | 1.19k | const A* __restrict a_pos = a.data(); | 74 | 1.19k | const B* __restrict b_pos = b.data(); | 75 | 1.19k | UInt8* __restrict c_pos = c.data(); | 76 | 1.19k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.19M | while (a_pos < a_end) { | 79 | 3.19M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.19M | ++a_pos; | 81 | 3.19M | ++b_pos; | 82 | 3.19M | ++c_pos; | 83 | 3.19M | } | 84 | 1.19k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 326 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 129 | PaddedPODArray<UInt8>& c) { | 72 | 129 | size_t size = a.size(); | 73 | 129 | const A* __restrict a_pos = a.data(); | 74 | 129 | const B* __restrict b_pos = b.data(); | 75 | 129 | UInt8* __restrict c_pos = c.data(); | 76 | 129 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 384 | while (a_pos < a_end) { | 79 | 255 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 255 | ++a_pos; | 81 | 255 | ++b_pos; | 82 | 255 | ++c_pos; | 83 | 255 | } | 84 | 129 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 49 | PaddedPODArray<UInt8>& c) { | 72 | 49 | size_t size = a.size(); | 73 | 49 | const A* __restrict a_pos = a.data(); | 74 | 49 | const B* __restrict b_pos = b.data(); | 75 | 49 | UInt8* __restrict c_pos = c.data(); | 76 | 49 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 271 | while (a_pos < a_end) { | 79 | 222 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 222 | ++a_pos; | 81 | 222 | ++b_pos; | 82 | 222 | ++c_pos; | 83 | 222 | } | 84 | 49 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 64 | PaddedPODArray<UInt8>& c) { | 72 | 64 | size_t size = a.size(); | 73 | 64 | const A* __restrict a_pos = a.data(); | 74 | 64 | const B* __restrict b_pos = b.data(); | 75 | 64 | UInt8* __restrict c_pos = c.data(); | 76 | 64 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 583 | while (a_pos < a_end) { | 79 | 519 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 519 | ++a_pos; | 81 | 519 | ++b_pos; | 82 | 519 | ++c_pos; | 83 | 519 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 94 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 6 | PaddedPODArray<UInt8>& c) { | 72 | 6 | size_t size = a.size(); | 73 | 6 | const A* __restrict a_pos = a.data(); | 74 | 6 | const B* __restrict b_pos = b.data(); | 75 | 6 | UInt8* __restrict c_pos = c.data(); | 76 | 6 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 65 | while (a_pos < a_end) { | 79 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 59 | ++a_pos; | 81 | 59 | ++b_pos; | 82 | 59 | ++c_pos; | 83 | 59 | } | 84 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 7 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 9 | PaddedPODArray<UInt8>& c) { | 72 | 9 | size_t size = a.size(); | 73 | 9 | const A* __restrict a_pos = a.data(); | 74 | 9 | const B* __restrict b_pos = b.data(); | 75 | 9 | UInt8* __restrict c_pos = c.data(); | 76 | 9 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 64 | while (a_pos < a_end) { | 79 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 55 | ++a_pos; | 81 | 55 | ++b_pos; | 82 | 55 | ++c_pos; | 83 | 55 | } | 84 | 9 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 23 | PaddedPODArray<UInt8>& c) { | 72 | 23 | size_t size = a.size(); | 73 | 23 | const A* __restrict a_pos = a.data(); | 74 | 23 | const B* __restrict b_pos = b.data(); | 75 | 23 | UInt8* __restrict c_pos = c.data(); | 76 | 23 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 66 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 101 | PaddedPODArray<UInt8>& c) { | 72 | 101 | size_t size = a.size(); | 73 | 101 | const A* __restrict a_pos = a.data(); | 74 | 101 | const B* __restrict b_pos = b.data(); | 75 | 101 | UInt8* __restrict c_pos = c.data(); | 76 | 101 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 275 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 275 | ++a_pos; | 81 | 275 | ++b_pos; | 82 | 275 | ++c_pos; | 83 | 275 | } | 84 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.80k | PaddedPODArray<UInt8>& c) { | 72 | 1.80k | size_t size = a.size(); | 73 | 1.80k | const A* __restrict a_pos = a.data(); | 74 | 1.80k | const B* __restrict b_pos = b.data(); | 75 | 1.80k | UInt8* __restrict c_pos = c.data(); | 76 | 1.80k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.80M | while (a_pos < a_end) { | 79 | 1.80M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.80M | ++a_pos; | 81 | 1.80M | ++b_pos; | 82 | 1.80M | ++c_pos; | 83 | 1.80M | } | 84 | 1.80k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 254 | PaddedPODArray<UInt8>& c) { | 72 | 254 | size_t size = a.size(); | 73 | 254 | const A* __restrict a_pos = a.data(); | 74 | 254 | const B* __restrict b_pos = b.data(); | 75 | 254 | UInt8* __restrict c_pos = c.data(); | 76 | 254 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 856 | while (a_pos < a_end) { | 79 | 602 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 602 | ++a_pos; | 81 | 602 | ++b_pos; | 82 | 602 | ++c_pos; | 83 | 602 | } | 84 | 254 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 123 | PaddedPODArray<UInt8>& c) { | 72 | 123 | size_t size = a.size(); | 73 | 123 | const A* __restrict a_pos = a.data(); | 74 | 123 | const B* __restrict b_pos = b.data(); | 75 | 123 | UInt8* __restrict c_pos = c.data(); | 76 | 123 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 421 | while (a_pos < a_end) { | 79 | 298 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 298 | ++a_pos; | 81 | 298 | ++b_pos; | 82 | 298 | ++c_pos; | 83 | 298 | } | 84 | 123 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 156 | PaddedPODArray<UInt8>& c) { | 72 | 156 | size_t size = a.size(); | 73 | 156 | const A* __restrict a_pos = a.data(); | 74 | 156 | const B* __restrict b_pos = b.data(); | 75 | 156 | UInt8* __restrict c_pos = c.data(); | 76 | 156 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 992 | while (a_pos < a_end) { | 79 | 836 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 836 | ++a_pos; | 81 | 836 | ++b_pos; | 82 | 836 | ++c_pos; | 83 | 836 | } | 84 | 156 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 208 | PaddedPODArray<UInt8>& c) { | 72 | 208 | size_t size = a.size(); | 73 | 208 | const A* __restrict a_pos = a.data(); | 74 | 208 | const B* __restrict b_pos = b.data(); | 75 | 208 | UInt8* __restrict c_pos = c.data(); | 76 | 208 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.39k | while (a_pos < a_end) { | 79 | 5.18k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.18k | ++a_pos; | 81 | 5.18k | ++b_pos; | 82 | 5.18k | ++c_pos; | 83 | 5.18k | } | 84 | 208 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 458 | while (a_pos < a_end) { | 79 | 316 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 316 | ++a_pos; | 81 | 316 | ++b_pos; | 82 | 316 | ++c_pos; | 83 | 316 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 138 | PaddedPODArray<UInt8>& c) { | 72 | 138 | size_t size = a.size(); | 73 | 138 | const A* __restrict a_pos = a.data(); | 74 | 138 | const B* __restrict b_pos = b.data(); | 75 | 138 | UInt8* __restrict c_pos = c.data(); | 76 | 138 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 469 | while (a_pos < a_end) { | 79 | 331 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 331 | ++a_pos; | 81 | 331 | ++b_pos; | 82 | 331 | ++c_pos; | 83 | 331 | } | 84 | 138 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 140 | PaddedPODArray<UInt8>& c) { | 72 | 140 | size_t size = a.size(); | 73 | 140 | const A* __restrict a_pos = a.data(); | 74 | 140 | const B* __restrict b_pos = b.data(); | 75 | 140 | UInt8* __restrict c_pos = c.data(); | 76 | 140 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 481 | while (a_pos < a_end) { | 79 | 341 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 341 | ++a_pos; | 81 | 341 | ++b_pos; | 82 | 341 | ++c_pos; | 83 | 341 | } | 84 | 140 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 411 | PaddedPODArray<UInt8>& c) { | 72 | 411 | size_t size = a.size(); | 73 | 411 | const A* __restrict a_pos = a.data(); | 74 | 411 | const B* __restrict b_pos = b.data(); | 75 | 411 | UInt8* __restrict c_pos = c.data(); | 76 | 411 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.57k | while (a_pos < a_end) { | 79 | 6.16k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.16k | ++a_pos; | 81 | 6.16k | ++b_pos; | 82 | 6.16k | ++c_pos; | 83 | 6.16k | } | 84 | 411 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 10 | PaddedPODArray<UInt8>& c) { | 72 | 10 | size_t size = a.size(); | 73 | 10 | const A* __restrict a_pos = a.data(); | 74 | 10 | const B* __restrict b_pos = b.data(); | 75 | 10 | UInt8* __restrict c_pos = c.data(); | 76 | 10 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 33 | while (a_pos < a_end) { | 79 | 23 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 23 | ++a_pos; | 81 | 23 | ++b_pos; | 82 | 23 | ++c_pos; | 83 | 23 | } | 84 | 10 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 31 | PaddedPODArray<UInt8>& c) { | 72 | 31 | size_t size = a.size(); | 73 | 31 | const A* __restrict a_pos = a.data(); | 74 | 31 | const B* __restrict b_pos = b.data(); | 75 | 31 | UInt8* __restrict c_pos = c.data(); | 76 | 31 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 69 | while (a_pos < a_end) { | 79 | 38 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 38 | ++a_pos; | 81 | 38 | ++b_pos; | 82 | 38 | ++c_pos; | 83 | 38 | } | 84 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
85 | | |
86 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
87 | 45.9k | PaddedPODArray<UInt8>& c) { |
88 | 45.9k | size_t size = a.size(); |
89 | 45.9k | const A* __restrict a_pos = a.data(); |
90 | 45.9k | UInt8* __restrict c_pos = c.data(); |
91 | 45.9k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 33.3M | while (a_pos < a_end) { |
94 | 33.3M | *c_pos = Op::apply(*a_pos, b); |
95 | 33.3M | ++a_pos; |
96 | 33.3M | ++c_pos; |
97 | 33.3M | } |
98 | 45.9k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 24 | PaddedPODArray<UInt8>& c) { | 88 | 24 | size_t size = a.size(); | 89 | 24 | const A* __restrict a_pos = a.data(); | 90 | 24 | UInt8* __restrict c_pos = c.data(); | 91 | 24 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 165 | while (a_pos < a_end) { | 94 | 141 | *c_pos = Op::apply(*a_pos, b); | 95 | 141 | ++a_pos; | 96 | 141 | ++c_pos; | 97 | 141 | } | 98 | 24 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 452 | PaddedPODArray<UInt8>& c) { | 88 | 452 | size_t size = a.size(); | 89 | 452 | const A* __restrict a_pos = a.data(); | 90 | 452 | UInt8* __restrict c_pos = c.data(); | 91 | 452 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 203k | while (a_pos < a_end) { | 94 | 202k | *c_pos = Op::apply(*a_pos, b); | 95 | 202k | ++a_pos; | 96 | 202k | ++c_pos; | 97 | 202k | } | 98 | 452 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 190 | PaddedPODArray<UInt8>& c) { | 88 | 190 | size_t size = a.size(); | 89 | 190 | const A* __restrict a_pos = a.data(); | 90 | 190 | UInt8* __restrict c_pos = c.data(); | 91 | 190 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 190 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4.89k | PaddedPODArray<UInt8>& c) { | 88 | 4.89k | size_t size = a.size(); | 89 | 4.89k | const A* __restrict a_pos = a.data(); | 90 | 4.89k | UInt8* __restrict c_pos = c.data(); | 91 | 4.89k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.02M | while (a_pos < a_end) { | 94 | 9.02M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.02M | ++a_pos; | 96 | 9.02M | ++c_pos; | 97 | 9.02M | } | 98 | 4.89k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 317 | PaddedPODArray<UInt8>& c) { | 88 | 317 | size_t size = a.size(); | 89 | 317 | const A* __restrict a_pos = a.data(); | 90 | 317 | UInt8* __restrict c_pos = c.data(); | 91 | 317 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 317 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.83k | PaddedPODArray<UInt8>& c) { | 88 | 1.83k | size_t size = a.size(); | 89 | 1.83k | const A* __restrict a_pos = a.data(); | 90 | 1.83k | UInt8* __restrict c_pos = c.data(); | 91 | 1.83k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 189k | while (a_pos < a_end) { | 94 | 187k | *c_pos = Op::apply(*a_pos, b); | 95 | 187k | ++a_pos; | 96 | 187k | ++c_pos; | 97 | 187k | } | 98 | 1.83k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.77k | PaddedPODArray<UInt8>& c) { | 88 | 2.77k | size_t size = a.size(); | 89 | 2.77k | const A* __restrict a_pos = a.data(); | 90 | 2.77k | UInt8* __restrict c_pos = c.data(); | 91 | 2.77k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 768k | while (a_pos < a_end) { | 94 | 765k | *c_pos = Op::apply(*a_pos, b); | 95 | 765k | ++a_pos; | 96 | 765k | ++c_pos; | 97 | 765k | } | 98 | 2.77k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13 | PaddedPODArray<UInt8>& c) { | 88 | 13 | size_t size = a.size(); | 89 | 13 | const A* __restrict a_pos = a.data(); | 90 | 13 | UInt8* __restrict c_pos = c.data(); | 91 | 13 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 127 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 663 | PaddedPODArray<UInt8>& c) { | 88 | 663 | size_t size = a.size(); | 89 | 663 | const A* __restrict a_pos = a.data(); | 90 | 663 | UInt8* __restrict c_pos = c.data(); | 91 | 663 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 713k | while (a_pos < a_end) { | 94 | 713k | *c_pos = Op::apply(*a_pos, b); | 95 | 713k | ++a_pos; | 96 | 713k | ++c_pos; | 97 | 713k | } | 98 | 663 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 31 | PaddedPODArray<UInt8>& c) { | 88 | 31 | size_t size = a.size(); | 89 | 31 | const A* __restrict a_pos = a.data(); | 90 | 31 | UInt8* __restrict c_pos = c.data(); | 91 | 31 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 82 | while (a_pos < a_end) { | 94 | 51 | *c_pos = Op::apply(*a_pos, b); | 95 | 51 | ++a_pos; | 96 | 51 | ++c_pos; | 97 | 51 | } | 98 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 78 | while (a_pos < a_end) { | 94 | 50 | *c_pos = Op::apply(*a_pos, b); | 95 | 50 | ++a_pos; | 96 | 50 | ++c_pos; | 97 | 50 | } | 98 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 247 | PaddedPODArray<UInt8>& c) { | 88 | 247 | size_t size = a.size(); | 89 | 247 | const A* __restrict a_pos = a.data(); | 90 | 247 | UInt8* __restrict c_pos = c.data(); | 91 | 247 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.87k | while (a_pos < a_end) { | 94 | 1.62k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.62k | ++a_pos; | 96 | 1.62k | ++c_pos; | 97 | 1.62k | } | 98 | 247 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 821 | PaddedPODArray<UInt8>& c) { | 88 | 821 | size_t size = a.size(); | 89 | 821 | const A* __restrict a_pos = a.data(); | 90 | 821 | UInt8* __restrict c_pos = c.data(); | 91 | 821 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.95k | while (a_pos < a_end) { | 94 | 3.13k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.13k | ++a_pos; | 96 | 3.13k | ++c_pos; | 97 | 3.13k | } | 98 | 821 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28 | PaddedPODArray<UInt8>& c) { | 88 | 28 | size_t size = a.size(); | 89 | 28 | const A* __restrict a_pos = a.data(); | 90 | 28 | UInt8* __restrict c_pos = c.data(); | 91 | 28 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70 | while (a_pos < a_end) { | 94 | 42 | *c_pos = Op::apply(*a_pos, b); | 95 | 42 | ++a_pos; | 96 | 42 | ++c_pos; | 97 | 42 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 40 | PaddedPODArray<UInt8>& c) { | 88 | 40 | size_t size = a.size(); | 89 | 40 | const A* __restrict a_pos = a.data(); | 90 | 40 | UInt8* __restrict c_pos = c.data(); | 91 | 40 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282 | while (a_pos < a_end) { | 94 | 242 | *c_pos = Op::apply(*a_pos, b); | 95 | 242 | ++a_pos; | 96 | 242 | ++c_pos; | 97 | 242 | } | 98 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 41 | PaddedPODArray<UInt8>& c) { | 88 | 41 | size_t size = a.size(); | 89 | 41 | const A* __restrict a_pos = a.data(); | 90 | 41 | UInt8* __restrict c_pos = c.data(); | 91 | 41 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 149 | while (a_pos < a_end) { | 94 | 108 | *c_pos = Op::apply(*a_pos, b); | 95 | 108 | ++a_pos; | 96 | 108 | ++c_pos; | 97 | 108 | } | 98 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 379 | PaddedPODArray<UInt8>& c) { | 88 | 379 | size_t size = a.size(); | 89 | 379 | const A* __restrict a_pos = a.data(); | 90 | 379 | UInt8* __restrict c_pos = c.data(); | 91 | 379 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.34M | while (a_pos < a_end) { | 94 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.34M | ++a_pos; | 96 | 1.34M | ++c_pos; | 97 | 1.34M | } | 98 | 379 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6 | while (a_pos < a_end) { | 94 | 4 | *c_pos = Op::apply(*a_pos, b); | 95 | 4 | ++a_pos; | 96 | 4 | ++c_pos; | 97 | 4 | } | 98 | 2 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 59 | PaddedPODArray<UInt8>& c) { | 88 | 59 | size_t size = a.size(); | 89 | 59 | const A* __restrict a_pos = a.data(); | 90 | 59 | UInt8* __restrict c_pos = c.data(); | 91 | 59 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 269 | while (a_pos < a_end) { | 94 | 210 | *c_pos = Op::apply(*a_pos, b); | 95 | 210 | ++a_pos; | 96 | 210 | ++c_pos; | 97 | 210 | } | 98 | 59 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 87 | 1 | PaddedPODArray<UInt8>& c) { | 88 | 1 | size_t size = a.size(); | 89 | 1 | const A* __restrict a_pos = a.data(); | 90 | 1 | UInt8* __restrict c_pos = c.data(); | 91 | 1 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 7 | *c_pos = Op::apply(*a_pos, b); | 95 | 7 | ++a_pos; | 96 | 7 | ++c_pos; | 97 | 7 | } | 98 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.03k | PaddedPODArray<UInt8>& c) { | 88 | 1.03k | size_t size = a.size(); | 89 | 1.03k | const A* __restrict a_pos = a.data(); | 90 | 1.03k | UInt8* __restrict c_pos = c.data(); | 91 | 1.03k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.37k | while (a_pos < a_end) { | 94 | 5.34k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.34k | ++a_pos; | 96 | 5.34k | ++c_pos; | 97 | 5.34k | } | 98 | 1.03k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.00k | PaddedPODArray<UInt8>& c) { | 88 | 2.00k | size_t size = a.size(); | 89 | 2.00k | const A* __restrict a_pos = a.data(); | 90 | 2.00k | UInt8* __restrict c_pos = c.data(); | 91 | 2.00k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.56k | while (a_pos < a_end) { | 94 | 3.56k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.56k | ++a_pos; | 96 | 3.56k | ++c_pos; | 97 | 3.56k | } | 98 | 2.00k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.25k | while (a_pos < a_end) { | 94 | 4.80k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.80k | ++a_pos; | 96 | 4.80k | ++c_pos; | 97 | 4.80k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 254 | PaddedPODArray<UInt8>& c) { | 88 | 254 | size_t size = a.size(); | 89 | 254 | const A* __restrict a_pos = a.data(); | 90 | 254 | UInt8* __restrict c_pos = c.data(); | 91 | 254 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.19k | while (a_pos < a_end) { | 94 | 938 | *c_pos = Op::apply(*a_pos, b); | 95 | 938 | ++a_pos; | 96 | 938 | ++c_pos; | 97 | 938 | } | 98 | 254 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 9.71k | PaddedPODArray<UInt8>& c) { | 88 | 9.71k | size_t size = a.size(); | 89 | 9.71k | const A* __restrict a_pos = a.data(); | 90 | 9.71k | UInt8* __restrict c_pos = c.data(); | 91 | 9.71k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.27M | while (a_pos < a_end) { | 94 | 5.26M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.26M | ++a_pos; | 96 | 5.26M | ++c_pos; | 97 | 5.26M | } | 98 | 9.71k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4.19k | PaddedPODArray<UInt8>& c) { | 88 | 4.19k | size_t size = a.size(); | 89 | 4.19k | const A* __restrict a_pos = a.data(); | 90 | 4.19k | UInt8* __restrict c_pos = c.data(); | 91 | 4.19k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 952k | while (a_pos < a_end) { | 94 | 948k | *c_pos = Op::apply(*a_pos, b); | 95 | 948k | ++a_pos; | 96 | 948k | ++c_pos; | 97 | 948k | } | 98 | 4.19k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.31k | PaddedPODArray<UInt8>& c) { | 88 | 1.31k | size_t size = a.size(); | 89 | 1.31k | const A* __restrict a_pos = a.data(); | 90 | 1.31k | UInt8* __restrict c_pos = c.data(); | 91 | 1.31k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 97.8k | while (a_pos < a_end) { | 94 | 96.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 96.5k | ++a_pos; | 96 | 96.5k | ++c_pos; | 97 | 96.5k | } | 98 | 1.31k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.01k | PaddedPODArray<UInt8>& c) { | 88 | 1.01k | size_t size = a.size(); | 89 | 1.01k | const A* __restrict a_pos = a.data(); | 90 | 1.01k | UInt8* __restrict c_pos = c.data(); | 91 | 1.01k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 11.7k | while (a_pos < a_end) { | 94 | 10.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 10.6k | ++a_pos; | 96 | 10.6k | ++c_pos; | 97 | 10.6k | } | 98 | 1.01k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 297 | PaddedPODArray<UInt8>& c) { | 88 | 297 | size_t size = a.size(); | 89 | 297 | const A* __restrict a_pos = a.data(); | 90 | 297 | UInt8* __restrict c_pos = c.data(); | 91 | 297 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.93k | while (a_pos < a_end) { | 94 | 1.64k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.64k | ++a_pos; | 96 | 1.64k | ++c_pos; | 97 | 1.64k | } | 98 | 297 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 76 | PaddedPODArray<UInt8>& c) { | 88 | 76 | size_t size = a.size(); | 89 | 76 | const A* __restrict a_pos = a.data(); | 90 | 76 | UInt8* __restrict c_pos = c.data(); | 91 | 76 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86.2k | while (a_pos < a_end) { | 94 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 86.1k | ++a_pos; | 96 | 86.1k | ++c_pos; | 97 | 86.1k | } | 98 | 76 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 200 | PaddedPODArray<UInt8>& c) { | 88 | 200 | size_t size = a.size(); | 89 | 200 | const A* __restrict a_pos = a.data(); | 90 | 200 | UInt8* __restrict c_pos = c.data(); | 91 | 200 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.61k | while (a_pos < a_end) { | 94 | 2.41k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.41k | ++a_pos; | 96 | 2.41k | ++c_pos; | 97 | 2.41k | } | 98 | 200 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 502 | PaddedPODArray<UInt8>& c) { | 88 | 502 | size_t size = a.size(); | 89 | 502 | const A* __restrict a_pos = a.data(); | 90 | 502 | UInt8* __restrict c_pos = c.data(); | 91 | 502 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.44k | while (a_pos < a_end) { | 94 | 6.93k | *c_pos = Op::apply(*a_pos, b); | 95 | 6.93k | ++a_pos; | 96 | 6.93k | ++c_pos; | 97 | 6.93k | } | 98 | 502 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 190 | PaddedPODArray<UInt8>& c) { | 88 | 190 | size_t size = a.size(); | 89 | 190 | const A* __restrict a_pos = a.data(); | 90 | 190 | UInt8* __restrict c_pos = c.data(); | 91 | 190 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 282k | while (a_pos < a_end) { | 94 | 282k | *c_pos = Op::apply(*a_pos, b); | 95 | 282k | ++a_pos; | 96 | 282k | ++c_pos; | 97 | 282k | } | 98 | 190 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 36 | PaddedPODArray<UInt8>& c) { | 88 | 36 | size_t size = a.size(); | 89 | 36 | const A* __restrict a_pos = a.data(); | 90 | 36 | UInt8* __restrict c_pos = c.data(); | 91 | 36 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 180k | while (a_pos < a_end) { | 94 | 180k | *c_pos = Op::apply(*a_pos, b); | 95 | 180k | ++a_pos; | 96 | 180k | ++c_pos; | 97 | 180k | } | 98 | 36 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 48 | PaddedPODArray<UInt8>& c) { | 88 | 48 | size_t size = a.size(); | 89 | 48 | const A* __restrict a_pos = a.data(); | 90 | 48 | UInt8* __restrict c_pos = c.data(); | 91 | 48 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 180k | while (a_pos < a_end) { | 94 | 180k | *c_pos = Op::apply(*a_pos, b); | 95 | 180k | ++a_pos; | 96 | 180k | ++c_pos; | 97 | 180k | } | 98 | 48 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 498 | PaddedPODArray<UInt8>& c) { | 88 | 498 | size_t size = a.size(); | 89 | 498 | const A* __restrict a_pos = a.data(); | 90 | 498 | UInt8* __restrict c_pos = c.data(); | 91 | 498 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.48M | while (a_pos < a_end) { | 94 | 1.48M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.48M | ++a_pos; | 96 | 1.48M | ++c_pos; | 97 | 1.48M | } | 98 | 498 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 177 | PaddedPODArray<UInt8>& c) { | 88 | 177 | size_t size = a.size(); | 89 | 177 | const A* __restrict a_pos = a.data(); | 90 | 177 | UInt8* __restrict c_pos = c.data(); | 91 | 177 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 762k | while (a_pos < a_end) { | 94 | 762k | *c_pos = Op::apply(*a_pos, b); | 95 | 762k | ++a_pos; | 96 | 762k | ++c_pos; | 97 | 762k | } | 98 | 177 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 139 | PaddedPODArray<UInt8>& c) { | 88 | 139 | size_t size = a.size(); | 89 | 139 | const A* __restrict a_pos = a.data(); | 90 | 139 | UInt8* __restrict c_pos = c.data(); | 91 | 139 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 521 | while (a_pos < a_end) { | 94 | 382 | *c_pos = Op::apply(*a_pos, b); | 95 | 382 | ++a_pos; | 96 | 382 | ++c_pos; | 97 | 382 | } | 98 | 139 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 69 | PaddedPODArray<UInt8>& c) { | 88 | 69 | size_t size = a.size(); | 89 | 69 | const A* __restrict a_pos = a.data(); | 90 | 69 | UInt8* __restrict c_pos = c.data(); | 91 | 69 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 322 | while (a_pos < a_end) { | 94 | 253 | *c_pos = Op::apply(*a_pos, b); | 95 | 253 | ++a_pos; | 96 | 253 | ++c_pos; | 97 | 253 | } | 98 | 69 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 64 | PaddedPODArray<UInt8>& c) { | 88 | 64 | size_t size = a.size(); | 89 | 64 | const A* __restrict a_pos = a.data(); | 90 | 64 | UInt8* __restrict c_pos = c.data(); | 91 | 64 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 77.8k | while (a_pos < a_end) { | 94 | 77.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 77.7k | ++a_pos; | 96 | 77.7k | ++c_pos; | 97 | 77.7k | } | 98 | 64 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 84 | PaddedPODArray<UInt8>& c) { | 88 | 84 | size_t size = a.size(); | 89 | 84 | const A* __restrict a_pos = a.data(); | 90 | 84 | UInt8* __restrict c_pos = c.data(); | 91 | 84 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 105k | while (a_pos < a_end) { | 94 | 105k | *c_pos = Op::apply(*a_pos, b); | 95 | 105k | ++a_pos; | 96 | 105k | ++c_pos; | 97 | 105k | } | 98 | 84 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 127 | PaddedPODArray<UInt8>& c) { | 88 | 127 | size_t size = a.size(); | 89 | 127 | const A* __restrict a_pos = a.data(); | 90 | 127 | UInt8* __restrict c_pos = c.data(); | 91 | 127 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 180k | while (a_pos < a_end) { | 94 | 180k | *c_pos = Op::apply(*a_pos, b); | 95 | 180k | ++a_pos; | 96 | 180k | ++c_pos; | 97 | 180k | } | 98 | 127 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 149 | PaddedPODArray<UInt8>& c) { | 88 | 149 | size_t size = a.size(); | 89 | 149 | const A* __restrict a_pos = a.data(); | 90 | 149 | UInt8* __restrict c_pos = c.data(); | 91 | 149 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 154k | while (a_pos < a_end) { | 94 | 154k | *c_pos = Op::apply(*a_pos, b); | 95 | 154k | ++a_pos; | 96 | 154k | ++c_pos; | 97 | 154k | } | 98 | 149 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.88k | PaddedPODArray<UInt8>& c) { | 88 | 1.88k | size_t size = a.size(); | 89 | 1.88k | const A* __restrict a_pos = a.data(); | 90 | 1.88k | UInt8* __restrict c_pos = c.data(); | 91 | 1.88k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.98M | while (a_pos < a_end) { | 94 | 2.97M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.97M | ++a_pos; | 96 | 2.97M | ++c_pos; | 97 | 2.97M | } | 98 | 1.88k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.70k | PaddedPODArray<UInt8>& c) { | 88 | 6.70k | size_t size = a.size(); | 89 | 6.70k | const A* __restrict a_pos = a.data(); | 90 | 6.70k | UInt8* __restrict c_pos = c.data(); | 91 | 6.70k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.98M | while (a_pos < a_end) { | 94 | 6.97M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.97M | ++a_pos; | 96 | 6.97M | ++c_pos; | 97 | 6.97M | } | 98 | 6.70k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 207 | PaddedPODArray<UInt8>& c) { | 88 | 207 | size_t size = a.size(); | 89 | 207 | const A* __restrict a_pos = a.data(); | 90 | 207 | UInt8* __restrict c_pos = c.data(); | 91 | 207 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 614 | while (a_pos < a_end) { | 94 | 407 | *c_pos = Op::apply(*a_pos, b); | 95 | 407 | ++a_pos; | 96 | 407 | ++c_pos; | 97 | 407 | } | 98 | 207 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 256 | PaddedPODArray<UInt8>& c) { | 88 | 256 | size_t size = a.size(); | 89 | 256 | const A* __restrict a_pos = a.data(); | 90 | 256 | UInt8* __restrict c_pos = c.data(); | 91 | 256 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.34k | while (a_pos < a_end) { | 94 | 3.08k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.08k | ++a_pos; | 96 | 3.08k | ++c_pos; | 97 | 3.08k | } | 98 | 256 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 36 | PaddedPODArray<UInt8>& c) { | 88 | 36 | size_t size = a.size(); | 89 | 36 | const A* __restrict a_pos = a.data(); | 90 | 36 | UInt8* __restrict c_pos = c.data(); | 91 | 36 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 180k | while (a_pos < a_end) { | 94 | 180k | *c_pos = Op::apply(*a_pos, b); | 95 | 180k | ++a_pos; | 96 | 180k | ++c_pos; | 97 | 180k | } | 98 | 36 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 48 | PaddedPODArray<UInt8>& c) { | 88 | 48 | size_t size = a.size(); | 89 | 48 | const A* __restrict a_pos = a.data(); | 90 | 48 | UInt8* __restrict c_pos = c.data(); | 91 | 48 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 170k | while (a_pos < a_end) { | 94 | 170k | *c_pos = Op::apply(*a_pos, b); | 95 | 170k | ++a_pos; | 96 | 170k | ++c_pos; | 97 | 170k | } | 98 | 48 | } |
_ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 10 | PaddedPODArray<UInt8>& c) { | 88 | 10 | size_t size = a.size(); | 89 | 10 | const A* __restrict a_pos = a.data(); | 90 | 10 | UInt8* __restrict c_pos = c.data(); | 91 | 10 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110 | while (a_pos < a_end) { | 94 | 100 | *c_pos = Op::apply(*a_pos, b); | 95 | 100 | ++a_pos; | 96 | 100 | ++c_pos; | 97 | 100 | } | 98 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 10 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 138 | PaddedPODArray<UInt8>& c) { | 88 | 138 | size_t size = a.size(); | 89 | 138 | const A* __restrict a_pos = a.data(); | 90 | 138 | UInt8* __restrict c_pos = c.data(); | 91 | 138 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 355k | *c_pos = Op::apply(*a_pos, b); | 95 | 355k | ++a_pos; | 96 | 355k | ++c_pos; | 97 | 355k | } | 98 | 138 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 106 | PaddedPODArray<UInt8>& c) { | 88 | 106 | size_t size = a.size(); | 89 | 106 | const A* __restrict a_pos = a.data(); | 90 | 106 | UInt8* __restrict c_pos = c.data(); | 91 | 106 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 275k | while (a_pos < a_end) { | 94 | 275k | *c_pos = Op::apply(*a_pos, b); | 95 | 275k | ++a_pos; | 96 | 275k | ++c_pos; | 97 | 275k | } | 98 | 106 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
99 | | |
100 | 7.77k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.77k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.77k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 312 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 312 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 312 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 142 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 142 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 142 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1.15k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1.15k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1.15k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 802 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 802 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 802 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 510 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 510 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 510 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 30 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 30 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 30 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 264 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 119 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 119 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 119 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 96 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 96 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 96 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 329 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 329 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 329 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
103 | | }; |
104 | | |
105 | | /// Generic version, implemented for columns of same type. |
106 | | template <typename Op> |
107 | | struct GenericComparisonImpl { |
108 | 9 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
109 | 20 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
110 | 11 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
111 | 11 | } |
112 | 9 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 10 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 6 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 6 | } | 112 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 1 | } | 112 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 108 | 3 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 109 | 6 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 110 | 3 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 111 | 3 | } | 112 | 3 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
113 | | |
114 | 132 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 132 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 407k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 407k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 407k | } |
119 | 132 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 13 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 13 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 31 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 18 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 18 | } | 119 | 13 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 8 | } | 119 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 60 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 60 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 300k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 300k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 300k | } | 119 | 60 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 35 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 35 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 107k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 106k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 106k | } | 119 | 35 | } |
|
120 | | |
121 | 0 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
122 | 0 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
123 | 0 | } Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
124 | | }; |
125 | | |
126 | | template <typename Op> |
127 | | struct StringComparisonImpl { |
128 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
129 | | const ColumnString::Offsets& a_offsets, |
130 | | const ColumnString::Chars& b_data, |
131 | | const ColumnString::Offsets& b_offsets, |
132 | 433 | PaddedPODArray<UInt8>& c) { |
133 | 433 | size_t size = a_offsets.size(); |
134 | 433 | ColumnString::Offset prev_a_offset = 0; |
135 | 433 | ColumnString::Offset prev_b_offset = 0; |
136 | 433 | const auto* a_pos = a_data.data(); |
137 | 433 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.59k | for (size_t i = 0; i < size; ++i) { |
140 | 1.15k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.15k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.15k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.15k | 0); |
144 | | |
145 | 1.15k | prev_a_offset = a_offsets[i]; |
146 | 1.15k | prev_b_offset = b_offsets[i]; |
147 | 1.15k | } |
148 | 433 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 36 | PaddedPODArray<UInt8>& c) { | 133 | 36 | size_t size = a_offsets.size(); | 134 | 36 | ColumnString::Offset prev_a_offset = 0; | 135 | 36 | ColumnString::Offset prev_b_offset = 0; | 136 | 36 | const auto* a_pos = a_data.data(); | 137 | 36 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 230 | for (size_t i = 0; i < size; ++i) { | 140 | 194 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 194 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 194 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 194 | 0); | 144 | | | 145 | 194 | prev_a_offset = a_offsets[i]; | 146 | 194 | prev_b_offset = b_offsets[i]; | 147 | 194 | } | 148 | 36 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 395 | PaddedPODArray<UInt8>& c) { | 133 | 395 | size_t size = a_offsets.size(); | 134 | 395 | ColumnString::Offset prev_a_offset = 0; | 135 | 395 | ColumnString::Offset prev_b_offset = 0; | 136 | 395 | const auto* a_pos = a_data.data(); | 137 | 395 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.31k | for (size_t i = 0; i < size; ++i) { | 140 | 917 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 917 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 917 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 917 | 0); | 144 | | | 145 | 917 | prev_a_offset = a_offsets[i]; | 146 | 917 | prev_b_offset = b_offsets[i]; | 147 | 917 | } | 148 | 395 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 982 | PaddedPODArray<UInt8>& c) { |
155 | 982 | size_t size = a_offsets.size(); |
156 | 982 | ColumnString::Offset prev_a_offset = 0; |
157 | 982 | const auto* a_pos = a_data.data(); |
158 | 982 | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.52M | for (size_t i = 0; i < size; ++i) { |
161 | 1.52M | c[i] = Op::apply( |
162 | 1.52M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.52M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.52M | 0); |
165 | | |
166 | 1.52M | prev_a_offset = a_offsets[i]; |
167 | 1.52M | } |
168 | 982 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 176 | PaddedPODArray<UInt8>& c) { | 155 | 176 | size_t size = a_offsets.size(); | 156 | 176 | ColumnString::Offset prev_a_offset = 0; | 157 | 176 | const auto* a_pos = a_data.data(); | 158 | 176 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 316k | for (size_t i = 0; i < size; ++i) { | 161 | 316k | c[i] = Op::apply( | 162 | 316k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 316k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 316k | 0); | 165 | | | 166 | 316k | prev_a_offset = a_offsets[i]; | 167 | 316k | } | 168 | 176 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 96 | PaddedPODArray<UInt8>& c) { | 155 | 96 | size_t size = a_offsets.size(); | 156 | 96 | ColumnString::Offset prev_a_offset = 0; | 157 | 96 | const auto* a_pos = a_data.data(); | 158 | 96 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 72.8k | for (size_t i = 0; i < size; ++i) { | 161 | 72.7k | c[i] = Op::apply( | 162 | 72.7k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.7k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.7k | 0); | 165 | | | 166 | 72.7k | prev_a_offset = a_offsets[i]; | 167 | 72.7k | } | 168 | 96 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 355 | PaddedPODArray<UInt8>& c) { | 155 | 355 | size_t size = a_offsets.size(); | 156 | 355 | ColumnString::Offset prev_a_offset = 0; | 157 | 355 | const auto* a_pos = a_data.data(); | 158 | 355 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 509k | for (size_t i = 0; i < size; ++i) { | 161 | 509k | c[i] = Op::apply( | 162 | 509k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 509k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 509k | 0); | 165 | | | 166 | 509k | prev_a_offset = a_offsets[i]; | 167 | 509k | } | 168 | 355 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 355 | PaddedPODArray<UInt8>& c) { | 155 | 355 | size_t size = a_offsets.size(); | 156 | 355 | ColumnString::Offset prev_a_offset = 0; | 157 | 355 | const auto* a_pos = a_data.data(); | 158 | 355 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 627k | for (size_t i = 0; i < size; ++i) { | 161 | 627k | c[i] = Op::apply( | 162 | 627k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 627k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 627k | 0); | 165 | | | 166 | 627k | prev_a_offset = a_offsets[i]; | 167 | 627k | } | 168 | 355 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 375 | PaddedPODArray<UInt8>& c) { |
187 | 375 | size_t size = a_offsets.size(); |
188 | 375 | ColumnString::Offset prev_a_offset = 0; |
189 | 375 | ColumnString::Offset prev_b_offset = 0; |
190 | 375 | const auto* a_pos = a_data.data(); |
191 | 375 | const auto* b_pos = b_data.data(); |
192 | | |
193 | 1.21k | for (size_t i = 0; i < size; ++i) { |
194 | 838 | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 838 | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 838 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 838 | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 838 | prev_a_offset = a_offsets[i]; |
201 | 838 | prev_b_offset = b_offsets[i]; |
202 | 838 | } |
203 | 375 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 374 | PaddedPODArray<UInt8>& c) { | 187 | 374 | size_t size = a_offsets.size(); | 188 | 374 | ColumnString::Offset prev_a_offset = 0; | 189 | 374 | ColumnString::Offset prev_b_offset = 0; | 190 | 374 | const auto* a_pos = a_data.data(); | 191 | 374 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 1.20k | for (size_t i = 0; i < size; ++i) { | 194 | 834 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 834 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 834 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 834 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 834 | prev_a_offset = a_offsets[i]; | 201 | 834 | prev_b_offset = b_offsets[i]; | 202 | 834 | } | 203 | 374 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1 | PaddedPODArray<UInt8>& c) { | 187 | 1 | size_t size = a_offsets.size(); | 188 | 1 | ColumnString::Offset prev_a_offset = 0; | 189 | 1 | ColumnString::Offset prev_b_offset = 0; | 190 | 1 | const auto* a_pos = a_data.data(); | 191 | 1 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 5 | for (size_t i = 0; i < size; ++i) { | 194 | 4 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 4 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 4 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 4 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 4 | prev_a_offset = a_offsets[i]; | 201 | 4 | prev_b_offset = b_offsets[i]; | 202 | 4 | } | 203 | 1 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 9.92k | PaddedPODArray<UInt8>& c) { |
210 | 9.92k | size_t size = a_offsets.size(); |
211 | 9.92k | if (b_size == 0) { |
212 | 1 | auto* __restrict data = c.data(); |
213 | 1 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 1 | ColumnString::Offset prev_a_offset = 0; |
216 | 4 | for (size_t i = 0; i < size; ++i) { |
217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 3 | prev_a_offset = offsets[i]; |
219 | 3 | } |
220 | 9.91k | } else { |
221 | 9.91k | ColumnString::Offset prev_a_offset = 0; |
222 | 9.91k | const auto* a_pos = a_data.data(); |
223 | 9.91k | const auto* b_pos = b_data.data(); |
224 | 1.34M | for (size_t i = 0; i < size; ++i) { |
225 | 1.33M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 1.33M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 1.33M | b_pos, b_size); |
228 | 1.33M | prev_a_offset = a_offsets[i]; |
229 | 1.33M | } |
230 | 9.91k | } |
231 | 9.92k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 9.81k | PaddedPODArray<UInt8>& c) { | 210 | 9.81k | size_t size = a_offsets.size(); | 211 | 9.81k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 9.81k | } else { | 221 | 9.81k | ColumnString::Offset prev_a_offset = 0; | 222 | 9.81k | const auto* a_pos = a_data.data(); | 223 | 9.81k | const auto* b_pos = b_data.data(); | 224 | 1.30M | for (size_t i = 0; i < size; ++i) { | 225 | 1.29M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 1.29M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 1.29M | b_pos, b_size); | 228 | 1.29M | prev_a_offset = a_offsets[i]; | 229 | 1.29M | } | 230 | 9.81k | } | 231 | 9.81k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 106 | PaddedPODArray<UInt8>& c) { | 210 | 106 | size_t size = a_offsets.size(); | 211 | 106 | if (b_size == 0) { | 212 | 1 | auto* __restrict data = c.data(); | 213 | 1 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 1 | ColumnString::Offset prev_a_offset = 0; | 216 | 4 | for (size_t i = 0; i < size; ++i) { | 217 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 3 | prev_a_offset = offsets[i]; | 219 | 3 | } | 220 | 105 | } else { | 221 | 105 | ColumnString::Offset prev_a_offset = 0; | 222 | 105 | const auto* a_pos = a_data.data(); | 223 | 105 | const auto* b_pos = b_data.data(); | 224 | 42.3k | for (size_t i = 0; i < size; ++i) { | 225 | 42.2k | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 42.2k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 42.2k | b_pos, b_size); | 228 | 42.2k | prev_a_offset = a_offsets[i]; | 229 | 42.2k | } | 230 | 105 | } | 231 | 106 | } |
|
232 | | |
233 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
234 | | ColumnString::Offset a_size, |
235 | | const ColumnString::Chars& b_data, |
236 | | const ColumnString::Offsets& b_offsets, |
237 | 0 | PaddedPODArray<UInt8>& c) { |
238 | 0 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
239 | 0 | } Unexecuted instantiation: _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
240 | | }; |
241 | | |
242 | | template <PrimitiveType PT> |
243 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
244 | | |
245 | | template <PrimitiveType PT> |
246 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
247 | | |
248 | | struct NameEquals { |
249 | | static constexpr auto name = "eq"; |
250 | | }; |
251 | | struct NameNotEquals { |
252 | | static constexpr auto name = "ne"; |
253 | | }; |
254 | | struct NameLess { |
255 | | static constexpr auto name = "lt"; |
256 | | }; |
257 | | struct NameGreater { |
258 | | static constexpr auto name = "gt"; |
259 | | }; |
260 | | struct NameLessOrEquals { |
261 | | static constexpr auto name = "le"; |
262 | | }; |
263 | | struct NameGreaterOrEquals { |
264 | | static constexpr auto name = "ge"; |
265 | | }; |
266 | | |
267 | | namespace comparison_zonemap_detail { |
268 | | enum class Op { |
269 | | EQ, |
270 | | NE, |
271 | | LT, |
272 | | LE, |
273 | | GT, |
274 | | GE, |
275 | | }; |
276 | | |
277 | 4 | inline Op symmetric_op(Op op) { |
278 | 4 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 2 | case Op::LT: |
283 | 2 | return Op::GT; |
284 | 0 | case Op::LE: |
285 | 0 | return Op::GE; |
286 | 0 | case Op::GT: |
287 | 0 | return Op::LT; |
288 | 2 | case Op::GE: |
289 | 2 | return Op::LE; |
290 | 4 | } |
291 | 0 | __builtin_unreachable(); |
292 | 4 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 2.63k | Op op) { |
296 | 2.63k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 2.63k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 2.63k | slot_literal->slot_type); |
300 | 2.63k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 2.63k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 2.63k | if (zone_map_ptr == nullptr) { |
305 | 29 | return unsupported_zonemap_filter(ctx); |
306 | 29 | } |
307 | 2.60k | const auto& zone_map = *zone_map_ptr; |
308 | 2.60k | if (!zone_map.has_not_null) { |
309 | 59 | return ZoneMapFilterResult::kNoMatch; |
310 | 59 | } |
311 | 2.54k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 103 | return unsupported_zonemap_filter(ctx); |
313 | 103 | } |
314 | | |
315 | 2.44k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 2.44k | const auto& literal = slot_literal->literal; |
317 | 2.44k | switch (effective_op) { |
318 | 1.56k | case Op::EQ: |
319 | 1.56k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 1.56k | ? ZoneMapFilterResult::kNoMatch |
321 | 1.56k | : ZoneMapFilterResult::kMayMatch; |
322 | 95 | case Op::NE: |
323 | 95 | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 95 | ? ZoneMapFilterResult::kNoMatch |
325 | 95 | : ZoneMapFilterResult::kMayMatch; |
326 | 197 | case Op::LT: |
327 | 197 | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 197 | : ZoneMapFilterResult::kMayMatch; |
329 | 177 | case Op::LE: |
330 | 177 | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 177 | : ZoneMapFilterResult::kMayMatch; |
332 | 199 | case Op::GT: |
333 | 199 | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 199 | : ZoneMapFilterResult::kMayMatch; |
335 | 205 | case Op::GE: |
336 | 205 | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 205 | : ZoneMapFilterResult::kMayMatch; |
338 | 2.44k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 2.44k | } |
343 | | |
344 | 32.5k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 32.5k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 32.5k | if (!slot_literal.has_value()) { |
347 | 22.2k | return false; |
348 | 22.2k | } |
349 | | |
350 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
351 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
352 | | // shape here before evaluate_zonemap_filter is called. |
353 | 10.3k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 10.3k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 10.3k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 10.3k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 1 | return false; |
364 | 1 | } |
365 | | |
366 | 10.3k | return true; |
367 | 10.3k | } |
368 | | |
369 | 35.2k | inline std::optional<Op> op_from_name(std::string_view name) { |
370 | 35.2k | if (name == NameEquals::name) { |
371 | 15.7k | return Op::EQ; |
372 | 15.7k | } |
373 | 19.5k | if (name == NameNotEquals::name) { |
374 | 1.45k | return Op::NE; |
375 | 1.45k | } |
376 | 18.0k | if (name == NameLess::name) { |
377 | 4.19k | return Op::LT; |
378 | 4.19k | } |
379 | 13.8k | if (name == NameLessOrEquals::name) { |
380 | 3.21k | return Op::LE; |
381 | 3.21k | } |
382 | 10.6k | if (name == NameGreater::name) { |
383 | 5.34k | return Op::GT; |
384 | 5.34k | } |
385 | 5.34k | if (name == NameGreaterOrEquals::name) { |
386 | 5.34k | return Op::GE; |
387 | 5.34k | } |
388 | 18.4E | return std::nullopt; |
389 | 5.28k | } |
390 | | } // namespace comparison_zonemap_detail |
391 | | |
392 | | template <template <PrimitiveType> class Op, typename Name> |
393 | | class FunctionComparison : public IFunction { |
394 | | public: |
395 | | static constexpr auto name = Name::name; |
396 | 267k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 396 | 241k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 396 | 1.15k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 396 | 4.90k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 396 | 7.46k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 396 | 2.97k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 396 | 9.43k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
397 | | |
398 | 267k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 398 | 241k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 398 | 1.15k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 398 | 4.90k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 398 | 7.46k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 398 | 2.97k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 398 | 9.43k | FunctionComparison() = default; |
|
399 | | |
400 | 652k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 400 | 643k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 400 | 603 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 400 | 1.89k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 400 | 3.28k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 400 | 1.14k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 400 | 1.89k | double execute_cost() const override { return 0.5; } |
|
401 | | |
402 | | private: |
403 | | template <PrimitiveType PT> |
404 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
405 | 53.9k | const ColumnPtr& col_right_ptr) const { |
406 | 53.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
407 | 53.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
408 | | |
409 | 53.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
410 | 53.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
411 | | |
412 | 53.9k | DCHECK(!(left_is_const && right_is_const)); |
413 | | |
414 | 53.9k | if (!left_is_const && !right_is_const) { |
415 | 8.06k | auto col_res = ColumnUInt8::create(); |
416 | | |
417 | 8.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
418 | 8.06k | vec_res.resize(col_left->get_data().size()); |
419 | 8.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
420 | 8.06k | typename PrimitiveTypeTraits<PT>::CppType, |
421 | 8.06k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
422 | 8.06k | vec_res); |
423 | | |
424 | 8.06k | block.replace_by_position(result, std::move(col_res)); |
425 | 45.9k | } else if (!left_is_const && right_is_const) { |
426 | 38.1k | auto col_res = ColumnUInt8::create(); |
427 | | |
428 | 38.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
429 | 38.1k | vec_res.resize(col_left->size()); |
430 | 38.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
431 | 38.1k | typename PrimitiveTypeTraits<PT>::CppType, |
432 | 38.1k | Op<PT>>::vector_constant(col_left->get_data(), |
433 | 38.1k | col_right->get_element(0), vec_res); |
434 | | |
435 | 38.1k | block.replace_by_position(result, std::move(col_res)); |
436 | 38.1k | } else if (left_is_const && !right_is_const) { |
437 | 7.76k | auto col_res = ColumnUInt8::create(); |
438 | | |
439 | 7.76k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
440 | 7.76k | vec_res.resize(col_right->size()); |
441 | 7.76k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
442 | 7.76k | typename PrimitiveTypeTraits<PT>::CppType, |
443 | 7.76k | Op<PT>>::constant_vector(col_left->get_element(0), |
444 | 7.76k | col_right->get_data(), vec_res); |
445 | | |
446 | 7.76k | block.replace_by_position(result, std::move(col_res)); |
447 | 7.76k | } |
448 | 53.9k | return Status::OK(); |
449 | 53.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 97 | const ColumnPtr& col_right_ptr) const { | 406 | 97 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 97 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 97 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 97 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 97 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 97 | if (!left_is_const && !right_is_const) { | 415 | 73 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 73 | vec_res.resize(col_left->get_data().size()); | 419 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 73 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 73 | vec_res); | 423 | | | 424 | 73 | block.replace_by_position(result, std::move(col_res)); | 425 | 73 | } else if (!left_is_const && right_is_const) { | 426 | 24 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 24 | vec_res.resize(col_left->size()); | 430 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 24 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 24 | col_right->get_element(0), vec_res); | 434 | | | 435 | 24 | block.replace_by_position(result, std::move(col_res)); | 436 | 24 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 97 | return Status::OK(); | 449 | 97 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 637 | const ColumnPtr& col_right_ptr) const { | 406 | 637 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 637 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 637 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 637 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 637 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 637 | if (!left_is_const && !right_is_const) { | 415 | 185 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 185 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 185 | vec_res.resize(col_left->get_data().size()); | 419 | 185 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 185 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 185 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 185 | vec_res); | 423 | | | 424 | 185 | block.replace_by_position(result, std::move(col_res)); | 425 | 452 | } else if (!left_is_const && right_is_const) { | 426 | 452 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 452 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 452 | vec_res.resize(col_left->size()); | 430 | 452 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 452 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 452 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 452 | col_right->get_element(0), vec_res); | 434 | | | 435 | 452 | block.replace_by_position(result, std::move(col_res)); | 436 | 452 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 637 | return Status::OK(); | 449 | 637 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 409 | const ColumnPtr& col_right_ptr) const { | 406 | 409 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 409 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 409 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 409 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 409 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 409 | if (!left_is_const && !right_is_const) { | 415 | 219 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 219 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 219 | vec_res.resize(col_left->get_data().size()); | 419 | 219 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 219 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 219 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 219 | vec_res); | 423 | | | 424 | 219 | block.replace_by_position(result, std::move(col_res)); | 425 | 219 | } else if (!left_is_const && right_is_const) { | 426 | 190 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 190 | vec_res.resize(col_left->size()); | 430 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 190 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 190 | col_right->get_element(0), vec_res); | 434 | | | 435 | 190 | block.replace_by_position(result, std::move(col_res)); | 436 | 190 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 409 | return Status::OK(); | 449 | 409 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 4 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 4 | vec_res.resize(col_left->get_data().size()); | 419 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 4 | vec_res); | 423 | | | 424 | 4 | block.replace_by_position(result, std::move(col_res)); | 425 | 4 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 4 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 5.02k | const ColumnPtr& col_right_ptr) const { | 406 | 5.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 5.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 5.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 5.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 5.02k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 5.02k | if (!left_is_const && !right_is_const) { | 415 | 134 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 134 | vec_res.resize(col_left->get_data().size()); | 419 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 134 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 134 | vec_res); | 423 | | | 424 | 134 | block.replace_by_position(result, std::move(col_res)); | 425 | 4.89k | } else if (!left_is_const && right_is_const) { | 426 | 4.58k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4.58k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4.58k | vec_res.resize(col_left->size()); | 430 | 4.58k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4.58k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4.58k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4.58k | col_right->get_element(0), vec_res); | 434 | | | 435 | 4.58k | block.replace_by_position(result, std::move(col_res)); | 436 | 4.58k | } else if (left_is_const && !right_is_const) { | 437 | 312 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 312 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 312 | vec_res.resize(col_right->size()); | 441 | 312 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 312 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 312 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 312 | col_right->get_data(), vec_res); | 445 | | | 446 | 312 | block.replace_by_position(result, std::move(col_res)); | 447 | 312 | } | 448 | 5.02k | return Status::OK(); | 449 | 5.02k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 379 | const ColumnPtr& col_right_ptr) const { | 406 | 379 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 379 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 379 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 379 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 379 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 379 | if (!left_is_const && !right_is_const) { | 415 | 62 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 62 | vec_res.resize(col_left->get_data().size()); | 419 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 62 | vec_res); | 423 | | | 424 | 62 | block.replace_by_position(result, std::move(col_res)); | 425 | 317 | } else if (!left_is_const && right_is_const) { | 426 | 269 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 269 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 269 | vec_res.resize(col_left->size()); | 430 | 269 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 269 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 269 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 269 | col_right->get_element(0), vec_res); | 434 | | | 435 | 269 | block.replace_by_position(result, std::move(col_res)); | 436 | 269 | } else if (left_is_const && !right_is_const) { | 437 | 48 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 48 | vec_res.resize(col_right->size()); | 441 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 48 | col_right->get_data(), vec_res); | 445 | | | 446 | 48 | block.replace_by_position(result, std::move(col_res)); | 447 | 48 | } | 448 | 379 | return Status::OK(); | 449 | 379 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.06k | const ColumnPtr& col_right_ptr) const { | 406 | 2.06k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.06k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.06k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.06k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.06k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.06k | if (!left_is_const && !right_is_const) { | 415 | 232 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 232 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 232 | vec_res.resize(col_left->get_data().size()); | 419 | 232 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 232 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 232 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 232 | vec_res); | 423 | | | 424 | 232 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.82k | } else if (!left_is_const && right_is_const) { | 426 | 1.68k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.68k | vec_res.resize(col_left->size()); | 430 | 1.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.68k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.68k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.68k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.68k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.68k | } else if (left_is_const && !right_is_const) { | 437 | 142 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 142 | vec_res.resize(col_right->size()); | 441 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 142 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 142 | col_right->get_data(), vec_res); | 445 | | | 446 | 142 | block.replace_by_position(result, std::move(col_res)); | 447 | 142 | } | 448 | 2.06k | return Status::OK(); | 449 | 2.06k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.89k | const ColumnPtr& col_right_ptr) const { | 406 | 2.89k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.89k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.89k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.89k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.89k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.89k | if (!left_is_const && !right_is_const) { | 415 | 126 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 126 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 126 | vec_res.resize(col_left->get_data().size()); | 419 | 126 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 126 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 126 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 126 | vec_res); | 423 | | | 424 | 126 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.77k | } else if (!left_is_const && right_is_const) { | 426 | 1.61k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.61k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.61k | vec_res.resize(col_left->size()); | 430 | 1.61k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.61k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.61k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.61k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.61k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.61k | } else if (left_is_const && !right_is_const) { | 437 | 1.15k | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 1.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 1.15k | vec_res.resize(col_right->size()); | 441 | 1.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 1.15k | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 1.15k | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 1.15k | col_right->get_data(), vec_res); | 445 | | | 446 | 1.15k | block.replace_by_position(result, std::move(col_res)); | 447 | 1.15k | } | 448 | 2.89k | return Status::OK(); | 449 | 2.89k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 97 | const ColumnPtr& col_right_ptr) const { | 406 | 97 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 97 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 97 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 97 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 97 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 97 | if (!left_is_const && !right_is_const) { | 415 | 62 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 62 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 62 | vec_res.resize(col_left->get_data().size()); | 419 | 62 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 62 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 62 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 62 | vec_res); | 423 | | | 424 | 62 | block.replace_by_position(result, std::move(col_res)); | 425 | 62 | } else if (!left_is_const && right_is_const) { | 426 | 27 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 27 | vec_res.resize(col_left->size()); | 430 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 27 | col_right->get_element(0), vec_res); | 434 | | | 435 | 27 | block.replace_by_position(result, std::move(col_res)); | 436 | 27 | } else if (left_is_const && !right_is_const) { | 437 | 8 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 8 | vec_res.resize(col_right->size()); | 441 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 8 | col_right->get_data(), vec_res); | 445 | | | 446 | 8 | block.replace_by_position(result, std::move(col_res)); | 447 | 8 | } | 448 | 97 | return Status::OK(); | 449 | 97 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 18 | const ColumnPtr& col_right_ptr) const { | 406 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 18 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 18 | if (!left_is_const && !right_is_const) { | 415 | 5 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 5 | vec_res.resize(col_left->get_data().size()); | 419 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 5 | vec_res); | 423 | | | 424 | 5 | block.replace_by_position(result, std::move(col_res)); | 425 | 13 | } else if (!left_is_const && right_is_const) { | 426 | 13 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 13 | vec_res.resize(col_left->size()); | 430 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 13 | col_right->get_element(0), vec_res); | 434 | | | 435 | 13 | block.replace_by_position(result, std::move(col_res)); | 436 | 13 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 18 | return Status::OK(); | 449 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 19 | const ColumnPtr& col_right_ptr) const { | 406 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 19 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 19 | if (!left_is_const && !right_is_const) { | 415 | 13 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 13 | vec_res.resize(col_left->get_data().size()); | 419 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 13 | vec_res); | 423 | | | 424 | 13 | block.replace_by_position(result, std::move(col_res)); | 425 | 13 | } else if (!left_is_const && right_is_const) { | 426 | 6 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6 | vec_res.resize(col_left->size()); | 430 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6 | col_right->get_element(0), vec_res); | 434 | | | 435 | 6 | block.replace_by_position(result, std::move(col_res)); | 436 | 6 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 19 | return Status::OK(); | 449 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 82 | const ColumnPtr& col_right_ptr) const { | 406 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 82 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 82 | if (!left_is_const && !right_is_const) { | 415 | 82 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 82 | vec_res.resize(col_left->get_data().size()); | 419 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 82 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 82 | vec_res); | 423 | | | 424 | 82 | block.replace_by_position(result, std::move(col_res)); | 425 | 82 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 82 | return Status::OK(); | 449 | 82 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 746 | const ColumnPtr& col_right_ptr) const { | 406 | 746 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 746 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 746 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 746 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 746 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 746 | if (!left_is_const && !right_is_const) { | 415 | 83 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 83 | vec_res.resize(col_left->get_data().size()); | 419 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 83 | vec_res); | 423 | | | 424 | 83 | block.replace_by_position(result, std::move(col_res)); | 425 | 663 | } else if (!left_is_const && right_is_const) { | 426 | 663 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 663 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 663 | vec_res.resize(col_left->size()); | 430 | 663 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 663 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 663 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 663 | col_right->get_element(0), vec_res); | 434 | | | 435 | 663 | block.replace_by_position(result, std::move(col_res)); | 436 | 663 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 746 | return Status::OK(); | 449 | 746 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 4 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 4 | vec_res.resize(col_left->get_data().size()); | 419 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 4 | vec_res); | 423 | | | 424 | 4 | block.replace_by_position(result, std::move(col_res)); | 425 | 4 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 70 | const ColumnPtr& col_right_ptr) const { | 406 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 70 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 70 | if (!left_is_const && !right_is_const) { | 415 | 39 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 39 | vec_res.resize(col_left->get_data().size()); | 419 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 39 | vec_res); | 423 | | | 424 | 39 | block.replace_by_position(result, std::move(col_res)); | 425 | 39 | } else if (!left_is_const && right_is_const) { | 426 | 31 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 31 | vec_res.resize(col_left->size()); | 430 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 31 | col_right->get_element(0), vec_res); | 434 | | | 435 | 31 | block.replace_by_position(result, std::move(col_res)); | 436 | 31 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 70 | return Status::OK(); | 449 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 84 | const ColumnPtr& col_right_ptr) const { | 406 | 84 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 84 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 84 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 84 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 84 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 84 | if (!left_is_const && !right_is_const) { | 415 | 56 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 56 | vec_res.resize(col_left->get_data().size()); | 419 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 56 | vec_res); | 423 | | | 424 | 56 | block.replace_by_position(result, std::move(col_res)); | 425 | 56 | } else if (!left_is_const && right_is_const) { | 426 | 28 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 28 | vec_res.resize(col_left->size()); | 430 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 28 | col_right->get_element(0), vec_res); | 434 | | | 435 | 28 | block.replace_by_position(result, std::move(col_res)); | 436 | 28 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 84 | return Status::OK(); | 449 | 84 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.22k | const ColumnPtr& col_right_ptr) const { | 406 | 1.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.22k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.22k | if (!left_is_const && !right_is_const) { | 415 | 979 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 979 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 979 | vec_res.resize(col_left->get_data().size()); | 419 | 979 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 979 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 979 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 979 | vec_res); | 423 | | | 424 | 979 | block.replace_by_position(result, std::move(col_res)); | 425 | 979 | } else if (!left_is_const && right_is_const) { | 426 | 247 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 247 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 247 | vec_res.resize(col_left->size()); | 430 | 247 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 247 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 247 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 247 | col_right->get_element(0), vec_res); | 434 | | | 435 | 247 | block.replace_by_position(result, std::move(col_res)); | 436 | 247 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.22k | return Status::OK(); | 449 | 1.22k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.14k | const ColumnPtr& col_right_ptr) const { | 406 | 1.14k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.14k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.14k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.14k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.14k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.14k | if (!left_is_const && !right_is_const) { | 415 | 329 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 329 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 329 | vec_res.resize(col_left->get_data().size()); | 419 | 329 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 329 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 329 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 329 | vec_res); | 423 | | | 424 | 329 | block.replace_by_position(result, std::move(col_res)); | 425 | 820 | } else if (!left_is_const && right_is_const) { | 426 | 19 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 19 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 19 | vec_res.resize(col_left->size()); | 430 | 19 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 19 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 19 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 19 | col_right->get_element(0), vec_res); | 434 | | | 435 | 19 | block.replace_by_position(result, std::move(col_res)); | 436 | 801 | } else if (left_is_const && !right_is_const) { | 437 | 801 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 801 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 801 | vec_res.resize(col_right->size()); | 441 | 801 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 801 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 801 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 801 | col_right->get_data(), vec_res); | 445 | | | 446 | 801 | block.replace_by_position(result, std::move(col_res)); | 447 | 801 | } | 448 | 1.14k | return Status::OK(); | 449 | 1.14k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 48 | const ColumnPtr& col_right_ptr) const { | 406 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 48 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 48 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 28 | } else if (!left_is_const && right_is_const) { | 426 | 28 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 28 | vec_res.resize(col_left->size()); | 430 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 28 | col_right->get_element(0), vec_res); | 434 | | | 435 | 28 | block.replace_by_position(result, std::move(col_res)); | 436 | 28 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 48 | return Status::OK(); | 449 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 60 | const ColumnPtr& col_right_ptr) const { | 406 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 60 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 60 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 40 | } else if (!left_is_const && right_is_const) { | 426 | 40 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 40 | vec_res.resize(col_left->size()); | 430 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 40 | col_right->get_element(0), vec_res); | 434 | | | 435 | 40 | block.replace_by_position(result, std::move(col_res)); | 436 | 40 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 60 | return Status::OK(); | 449 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.23k | const ColumnPtr& col_right_ptr) const { | 406 | 1.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.23k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.23k | if (!left_is_const && !right_is_const) { | 415 | 1.19k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.19k | vec_res.resize(col_left->get_data().size()); | 419 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.19k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.19k | vec_res); | 423 | | | 424 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.19k | } else if (!left_is_const && right_is_const) { | 426 | 41 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 41 | vec_res.resize(col_left->size()); | 430 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 41 | col_right->get_element(0), vec_res); | 434 | | | 435 | 41 | block.replace_by_position(result, std::move(col_res)); | 436 | 41 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.23k | return Status::OK(); | 449 | 1.23k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2 | const ColumnPtr& col_right_ptr) const { | 406 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 2 | } else if (!left_is_const && right_is_const) { | 426 | 2 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2 | vec_res.resize(col_left->size()); | 430 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2 | col_right->get_element(0), vec_res); | 434 | | | 435 | 2 | block.replace_by_position(result, std::move(col_res)); | 436 | 2 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2 | return Status::OK(); | 449 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 3 | const ColumnPtr& col_right_ptr) const { | 406 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 3 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 3 | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 3 | return Status::OK(); | 449 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.05k | const ColumnPtr& col_right_ptr) const { | 406 | 1.05k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.05k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.05k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.05k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.05k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.05k | if (!left_is_const && !right_is_const) { | 415 | 42 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 42 | vec_res.resize(col_left->get_data().size()); | 419 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 42 | vec_res); | 423 | | | 424 | 42 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.01k | } else if (!left_is_const && right_is_const) { | 426 | 772 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 772 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 772 | vec_res.resize(col_left->size()); | 430 | 772 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 772 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 772 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 772 | col_right->get_element(0), vec_res); | 434 | | | 435 | 772 | block.replace_by_position(result, std::move(col_res)); | 436 | 772 | } else if (left_is_const && !right_is_const) { | 437 | 240 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 240 | vec_res.resize(col_right->size()); | 441 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 240 | col_right->get_data(), vec_res); | 445 | | | 446 | 240 | block.replace_by_position(result, std::move(col_res)); | 447 | 240 | } | 448 | 1.05k | return Status::OK(); | 449 | 1.05k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.82k | const ColumnPtr& col_right_ptr) const { | 406 | 1.82k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.82k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.82k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.82k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.82k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.82k | if (!left_is_const && !right_is_const) { | 415 | 129 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 129 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 129 | vec_res.resize(col_left->get_data().size()); | 419 | 129 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 129 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 129 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 129 | vec_res); | 423 | | | 424 | 129 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.69k | } else if (!left_is_const && right_is_const) { | 426 | 1.45k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.45k | vec_res.resize(col_left->size()); | 430 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.45k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.45k | } else if (left_is_const && !right_is_const) { | 437 | 239 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 239 | vec_res.resize(col_right->size()); | 441 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 239 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 239 | col_right->get_data(), vec_res); | 445 | | | 446 | 239 | block.replace_by_position(result, std::move(col_res)); | 447 | 239 | } | 448 | 1.82k | return Status::OK(); | 449 | 1.82k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 12.9k | const ColumnPtr& col_right_ptr) const { | 406 | 12.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 12.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 12.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 12.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 12.9k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 12.9k | if (!left_is_const && !right_is_const) { | 415 | 49 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 49 | vec_res.resize(col_left->get_data().size()); | 419 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 49 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 49 | vec_res); | 423 | | | 424 | 49 | block.replace_by_position(result, std::move(col_res)); | 425 | 12.9k | } else if (!left_is_const && right_is_const) { | 426 | 9.59k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 9.59k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 9.59k | vec_res.resize(col_left->size()); | 430 | 9.59k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 9.59k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 9.59k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 9.59k | col_right->get_element(0), vec_res); | 434 | | | 435 | 9.59k | block.replace_by_position(result, std::move(col_res)); | 436 | 9.59k | } else if (left_is_const && !right_is_const) { | 437 | 3.33k | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 3.33k | vec_res.resize(col_right->size()); | 441 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 3.33k | col_right->get_data(), vec_res); | 445 | | | 446 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 447 | 3.33k | } | 448 | 12.9k | return Status::OK(); | 449 | 12.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.80k | const ColumnPtr& col_right_ptr) const { | 406 | 1.80k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.80k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.80k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.80k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.80k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.80k | if (!left_is_const && !right_is_const) { | 415 | 64 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 64 | vec_res.resize(col_left->get_data().size()); | 419 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 64 | vec_res); | 423 | | | 424 | 64 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.74k | } else if (!left_is_const && right_is_const) { | 426 | 1.23k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.23k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.23k | vec_res.resize(col_left->size()); | 430 | 1.23k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.23k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.23k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.23k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.23k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.23k | } else if (left_is_const && !right_is_const) { | 437 | 510 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 510 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 510 | vec_res.resize(col_right->size()); | 441 | 510 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 510 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 510 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 510 | col_right->get_data(), vec_res); | 445 | | | 446 | 510 | block.replace_by_position(result, std::move(col_res)); | 447 | 510 | } | 448 | 1.80k | return Status::OK(); | 449 | 1.80k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 233 | const ColumnPtr& col_right_ptr) const { | 406 | 233 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 233 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 233 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 233 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 233 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 233 | if (!left_is_const && !right_is_const) { | 415 | 2 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 2 | vec_res.resize(col_left->get_data().size()); | 419 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 2 | vec_res); | 423 | | | 424 | 2 | block.replace_by_position(result, std::move(col_res)); | 425 | 231 | } else if (!left_is_const && right_is_const) { | 426 | 201 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 201 | vec_res.resize(col_left->size()); | 430 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 201 | col_right->get_element(0), vec_res); | 434 | | | 435 | 201 | block.replace_by_position(result, std::move(col_res)); | 436 | 201 | } else if (left_is_const && !right_is_const) { | 437 | 30 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 30 | vec_res.resize(col_right->size()); | 441 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 30 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 30 | col_right->get_data(), vec_res); | 445 | | | 446 | 30 | block.replace_by_position(result, std::move(col_res)); | 447 | 30 | } | 448 | 233 | return Status::OK(); | 449 | 233 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 3 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 3 | vec_res.resize(col_left->size()); | 430 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 3 | col_right->get_element(0), vec_res); | 434 | | | 435 | 3 | block.replace_by_position(result, std::move(col_res)); | 436 | 3 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 220 | const ColumnPtr& col_right_ptr) const { | 406 | 220 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 220 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 220 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 220 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 220 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 220 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 200 | } else if (!left_is_const && right_is_const) { | 426 | 200 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 200 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 200 | vec_res.resize(col_left->size()); | 430 | 200 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 200 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 200 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 200 | col_right->get_element(0), vec_res); | 434 | | | 435 | 200 | block.replace_by_position(result, std::move(col_res)); | 436 | 200 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 220 | return Status::OK(); | 449 | 220 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 526 | const ColumnPtr& col_right_ptr) const { | 406 | 526 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 526 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 526 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 526 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 526 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 526 | if (!left_is_const && !right_is_const) { | 415 | 24 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 24 | vec_res.resize(col_left->get_data().size()); | 419 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 24 | vec_res); | 423 | | | 424 | 24 | block.replace_by_position(result, std::move(col_res)); | 425 | 502 | } else if (!left_is_const && right_is_const) { | 426 | 502 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 502 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 502 | vec_res.resize(col_left->size()); | 430 | 502 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 502 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 502 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 502 | col_right->get_element(0), vec_res); | 434 | | | 435 | 502 | block.replace_by_position(result, std::move(col_res)); | 436 | 502 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 526 | return Status::OK(); | 449 | 526 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 36 | const ColumnPtr& col_right_ptr) const { | 406 | 36 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 36 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 36 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 36 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 36 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 36 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 36 | } else if (!left_is_const && right_is_const) { | 426 | 36 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 36 | vec_res.resize(col_left->size()); | 430 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 36 | col_right->get_element(0), vec_res); | 434 | | | 435 | 36 | block.replace_by_position(result, std::move(col_res)); | 436 | 36 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 36 | return Status::OK(); | 449 | 36 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 500 | const ColumnPtr& col_right_ptr) const { | 406 | 500 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 500 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 500 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 500 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 500 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 500 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 499 | } else if (!left_is_const && right_is_const) { | 426 | 493 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 493 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 493 | vec_res.resize(col_left->size()); | 430 | 493 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 493 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 493 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 493 | col_right->get_element(0), vec_res); | 434 | | | 435 | 493 | block.replace_by_position(result, std::move(col_res)); | 436 | 493 | } else if (left_is_const && !right_is_const) { | 437 | 6 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 6 | vec_res.resize(col_right->size()); | 441 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 6 | col_right->get_data(), vec_res); | 445 | | | 446 | 6 | block.replace_by_position(result, std::move(col_res)); | 447 | 6 | } | 448 | 500 | return Status::OK(); | 449 | 500 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 145 | const ColumnPtr& col_right_ptr) const { | 406 | 145 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 145 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 145 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 145 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 145 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 145 | if (!left_is_const && !right_is_const) { | 415 | 6 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 6 | vec_res.resize(col_left->get_data().size()); | 419 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 6 | vec_res); | 423 | | | 424 | 6 | block.replace_by_position(result, std::move(col_res)); | 425 | 139 | } else if (!left_is_const && right_is_const) { | 426 | 139 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 139 | vec_res.resize(col_left->size()); | 430 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 139 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 139 | col_right->get_element(0), vec_res); | 434 | | | 435 | 139 | block.replace_by_position(result, std::move(col_res)); | 436 | 139 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 145 | return Status::OK(); | 449 | 145 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 3 | const ColumnPtr& col_right_ptr) const { | 406 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 3 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 3 | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 3 | return Status::OK(); | 449 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 64 | const ColumnPtr& col_right_ptr) const { | 406 | 64 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 64 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 64 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 64 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 64 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 64 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 64 | } else if (!left_is_const && right_is_const) { | 426 | 64 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 64 | vec_res.resize(col_left->size()); | 430 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 64 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 64 | col_right->get_element(0), vec_res); | 434 | | | 435 | 64 | block.replace_by_position(result, std::move(col_res)); | 436 | 64 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 64 | return Status::OK(); | 449 | 64 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 127 | const ColumnPtr& col_right_ptr) const { | 406 | 127 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 127 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 127 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 127 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 127 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 127 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 127 | } else if (!left_is_const && right_is_const) { | 426 | 127 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 127 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 127 | vec_res.resize(col_left->size()); | 430 | 127 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 127 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 127 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 127 | col_right->get_element(0), vec_res); | 434 | | | 435 | 127 | block.replace_by_position(result, std::move(col_res)); | 436 | 127 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 127 | return Status::OK(); | 449 | 127 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.56k | const ColumnPtr& col_right_ptr) const { | 406 | 1.56k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.56k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.56k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.56k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.56k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.56k | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 1.55k | } else if (!left_is_const && right_is_const) { | 426 | 1.55k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.55k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.55k | vec_res.resize(col_left->size()); | 430 | 1.55k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.55k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.55k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.55k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.55k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.55k | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1.56k | return Status::OK(); | 449 | 1.56k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 168 | const ColumnPtr& col_right_ptr) const { | 406 | 168 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 168 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 168 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 168 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 168 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 168 | if (!left_is_const && !right_is_const) { | 415 | 9 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 9 | vec_res.resize(col_left->get_data().size()); | 419 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 9 | vec_res); | 423 | | | 424 | 9 | block.replace_by_position(result, std::move(col_res)); | 425 | 159 | } else if (!left_is_const && right_is_const) { | 426 | 159 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 159 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 159 | vec_res.resize(col_left->size()); | 430 | 159 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 159 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 159 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 159 | col_right->get_element(0), vec_res); | 434 | | | 435 | 159 | block.replace_by_position(result, std::move(col_res)); | 436 | 159 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 168 | return Status::OK(); | 449 | 168 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 36 | const ColumnPtr& col_right_ptr) const { | 406 | 36 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 36 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 36 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 36 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 36 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 36 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 36 | } else if (!left_is_const && right_is_const) { | 426 | 36 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 36 | vec_res.resize(col_left->size()); | 430 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 36 | col_right->get_element(0), vec_res); | 434 | | | 435 | 36 | block.replace_by_position(result, std::move(col_res)); | 436 | 36 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 36 | return Status::OK(); | 449 | 36 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 11 | const ColumnPtr& col_right_ptr) const { | 406 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 11 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 11 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 11 | return Status::OK(); | 449 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1 | const ColumnPtr& col_right_ptr) const { | 406 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 1 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 1 | return Status::OK(); | 449 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 24 | const ColumnPtr& col_right_ptr) const { | 406 | 24 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 24 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 24 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 24 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 24 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 24 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 20 | } else if (!left_is_const && right_is_const) { | 426 | 4 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 4 | vec_res.resize(col_left->size()); | 430 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 4 | col_right->get_element(0), vec_res); | 434 | | | 435 | 4 | block.replace_by_position(result, std::move(col_res)); | 436 | 4 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 24 | return Status::OK(); | 449 | 24 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 160 | const ColumnPtr& col_right_ptr) const { | 406 | 160 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 160 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 160 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 160 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 160 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 160 | if (!left_is_const && !right_is_const) { | 415 | 23 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 23 | vec_res.resize(col_left->get_data().size()); | 419 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 23 | vec_res); | 423 | | | 424 | 23 | block.replace_by_position(result, std::move(col_res)); | 425 | 137 | } else if (!left_is_const && right_is_const) { | 426 | 137 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 137 | vec_res.resize(col_left->size()); | 430 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 137 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 137 | col_right->get_element(0), vec_res); | 434 | | | 435 | 137 | block.replace_by_position(result, std::move(col_res)); | 436 | 137 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 160 | return Status::OK(); | 449 | 160 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 101 | const ColumnPtr& col_right_ptr) const { | 406 | 101 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 101 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 101 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 101 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 101 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 101 | if (!left_is_const && !right_is_const) { | 415 | 101 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 101 | vec_res.resize(col_left->get_data().size()); | 419 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 101 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 101 | vec_res); | 423 | | | 424 | 101 | block.replace_by_position(result, std::move(col_res)); | 425 | 101 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 101 | return Status::OK(); | 449 | 101 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.18k | const ColumnPtr& col_right_ptr) const { | 406 | 2.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.18k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.18k | if (!left_is_const && !right_is_const) { | 415 | 1.80k | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1.80k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1.80k | vec_res.resize(col_left->get_data().size()); | 419 | 1.80k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1.80k | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1.80k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1.80k | vec_res); | 423 | | | 424 | 1.80k | block.replace_by_position(result, std::move(col_res)); | 425 | 1.80k | } else if (!left_is_const && right_is_const) { | 426 | 379 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 379 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 379 | vec_res.resize(col_left->size()); | 430 | 379 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 379 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 379 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 379 | col_right->get_element(0), vec_res); | 434 | | | 435 | 379 | block.replace_by_position(result, std::move(col_res)); | 436 | 18.4E | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 2.18k | return Status::OK(); | 449 | 2.18k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 313 | const ColumnPtr& col_right_ptr) const { | 406 | 313 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 313 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 313 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 313 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 313 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 313 | if (!left_is_const && !right_is_const) { | 415 | 254 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 254 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 254 | vec_res.resize(col_left->get_data().size()); | 419 | 254 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 254 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 254 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 254 | vec_res); | 423 | | | 424 | 254 | block.replace_by_position(result, std::move(col_res)); | 425 | 254 | } else if (!left_is_const && right_is_const) { | 426 | 59 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 59 | vec_res.resize(col_left->size()); | 430 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 59 | col_right->get_element(0), vec_res); | 434 | | | 435 | 59 | block.replace_by_position(result, std::move(col_res)); | 436 | 59 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 313 | return Status::OK(); | 449 | 313 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 4 | const ColumnPtr& col_right_ptr) const { | 406 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 4 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 4 | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 1 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1 | vec_res.resize(col_left->size()); | 430 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1 | col_right->get_element(0), vec_res); | 434 | | | 435 | 1 | block.replace_by_position(result, std::move(col_res)); | 436 | 1 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 4 | return Status::OK(); | 449 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 2.17k | const ColumnPtr& col_right_ptr) const { | 406 | 2.17k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 2.17k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 2.17k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 2.17k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 2.17k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 2.17k | if (!left_is_const && !right_is_const) { | 415 | 142 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 142 | vec_res.resize(col_left->get_data().size()); | 419 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 142 | vec_res); | 423 | | | 424 | 142 | block.replace_by_position(result, std::move(col_res)); | 425 | 2.03k | } else if (!left_is_const && right_is_const) { | 426 | 1.76k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 1.76k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 1.76k | vec_res.resize(col_left->size()); | 430 | 1.76k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 1.76k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 1.76k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 1.76k | col_right->get_element(0), vec_res); | 434 | | | 435 | 1.76k | block.replace_by_position(result, std::move(col_res)); | 436 | 1.76k | } else if (left_is_const && !right_is_const) { | 437 | 264 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 264 | vec_res.resize(col_right->size()); | 441 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 264 | col_right->get_data(), vec_res); | 445 | | | 446 | 264 | block.replace_by_position(result, std::move(col_res)); | 447 | 264 | } | 448 | 2.17k | return Status::OK(); | 449 | 2.17k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 137 | const ColumnPtr& col_right_ptr) const { | 406 | 137 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 137 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 137 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 137 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 137 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 137 | if (!left_is_const && !right_is_const) { | 415 | 123 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 123 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 123 | vec_res.resize(col_left->get_data().size()); | 419 | 123 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 123 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 123 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 123 | vec_res); | 423 | | | 424 | 123 | block.replace_by_position(result, std::move(col_res)); | 425 | 123 | } else if (!left_is_const && right_is_const) { | 426 | 14 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 14 | vec_res.resize(col_left->size()); | 430 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 14 | col_right->get_element(0), vec_res); | 434 | | | 435 | 14 | block.replace_by_position(result, std::move(col_res)); | 436 | 14 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 137 | return Status::OK(); | 449 | 137 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 1.13k | const ColumnPtr& col_right_ptr) const { | 406 | 1.13k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 1.13k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 1.13k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 1.13k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 1.13k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 1.13k | if (!left_is_const && !right_is_const) { | 415 | 156 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 156 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 156 | vec_res.resize(col_left->get_data().size()); | 419 | 156 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 156 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 156 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 156 | vec_res); | 423 | | | 424 | 156 | block.replace_by_position(result, std::move(col_res)); | 425 | 976 | } else if (!left_is_const && right_is_const) { | 426 | 857 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 857 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 857 | vec_res.resize(col_left->size()); | 430 | 857 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 857 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 857 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 857 | col_right->get_element(0), vec_res); | 434 | | | 435 | 857 | block.replace_by_position(result, std::move(col_res)); | 436 | 857 | } else if (left_is_const && !right_is_const) { | 437 | 119 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 119 | vec_res.resize(col_right->size()); | 441 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 119 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 119 | col_right->get_data(), vec_res); | 445 | | | 446 | 119 | block.replace_by_position(result, std::move(col_res)); | 447 | 119 | } | 448 | 1.13k | return Status::OK(); | 449 | 1.13k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 788 | const ColumnPtr& col_right_ptr) const { | 406 | 788 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 788 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 788 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 788 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 788 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 788 | if (!left_is_const && !right_is_const) { | 415 | 208 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 208 | vec_res.resize(col_left->get_data().size()); | 419 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 208 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 208 | vec_res); | 423 | | | 424 | 208 | block.replace_by_position(result, std::move(col_res)); | 425 | 580 | } else if (!left_is_const && right_is_const) { | 426 | 501 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 501 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 501 | vec_res.resize(col_left->size()); | 430 | 501 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 501 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 501 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 501 | col_right->get_element(0), vec_res); | 434 | | | 435 | 501 | block.replace_by_position(result, std::move(col_res)); | 436 | 501 | } else if (left_is_const && !right_is_const) { | 437 | 79 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 79 | vec_res.resize(col_right->size()); | 441 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 79 | col_right->get_data(), vec_res); | 445 | | | 446 | 79 | block.replace_by_position(result, std::move(col_res)); | 447 | 79 | } | 448 | 788 | return Status::OK(); | 449 | 788 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 284 | const ColumnPtr& col_right_ptr) const { | 406 | 284 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 284 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 284 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 284 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 284 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 284 | if (!left_is_const && !right_is_const) { | 415 | 142 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 142 | vec_res.resize(col_left->get_data().size()); | 419 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 142 | vec_res); | 423 | | | 424 | 142 | block.replace_by_position(result, std::move(col_res)); | 425 | 142 | } else if (!left_is_const && right_is_const) { | 426 | 46 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 46 | vec_res.resize(col_left->size()); | 430 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 46 | col_right->get_element(0), vec_res); | 434 | | | 435 | 46 | block.replace_by_position(result, std::move(col_res)); | 436 | 96 | } else if (left_is_const && !right_is_const) { | 437 | 96 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 96 | vec_res.resize(col_right->size()); | 441 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 96 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 96 | col_right->get_data(), vec_res); | 445 | | | 446 | 96 | block.replace_by_position(result, std::move(col_res)); | 447 | 96 | } | 448 | 284 | return Status::OK(); | 449 | 284 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 18 | const ColumnPtr& col_right_ptr) const { | 406 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 18 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 18 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 2 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 2 | vec_res.resize(col_left->size()); | 430 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 2 | col_right->get_element(0), vec_res); | 434 | | | 435 | 2 | block.replace_by_position(result, std::move(col_res)); | 436 | 2 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 18 | return Status::OK(); | 449 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 16 | const ColumnPtr& col_right_ptr) const { | 406 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 16 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 16 | if (!left_is_const && !right_is_const) { | 415 | 16 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 16 | vec_res.resize(col_left->get_data().size()); | 419 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 16 | vec_res); | 423 | | | 424 | 16 | block.replace_by_position(result, std::move(col_res)); | 425 | 16 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 16 | return Status::OK(); | 449 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 138 | const ColumnPtr& col_right_ptr) const { | 406 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 138 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 138 | if (!left_is_const && !right_is_const) { | 415 | 137 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 137 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 137 | vec_res.resize(col_left->get_data().size()); | 419 | 137 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 137 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 137 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 137 | vec_res); | 423 | | | 424 | 137 | block.replace_by_position(result, std::move(col_res)); | 425 | 137 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 1 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 138 | return Status::OK(); | 449 | 138 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 330 | const ColumnPtr& col_right_ptr) const { | 406 | 330 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 330 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 330 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 330 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 330 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 330 | if (!left_is_const && !right_is_const) { | 415 | 140 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 140 | vec_res.resize(col_left->get_data().size()); | 419 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 140 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 140 | vec_res); | 423 | | | 424 | 140 | block.replace_by_position(result, std::move(col_res)); | 425 | 190 | } else if (!left_is_const && right_is_const) { | 426 | 190 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 190 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 190 | vec_res.resize(col_left->size()); | 430 | 190 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 190 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 190 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 190 | col_right->get_element(0), vec_res); | 434 | | | 435 | 190 | block.replace_by_position(result, std::move(col_res)); | 436 | 190 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 330 | return Status::OK(); | 449 | 330 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 48 | const ColumnPtr& col_right_ptr) const { | 406 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 48 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 48 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 48 | } else if (!left_is_const && right_is_const) { | 426 | 48 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 48 | vec_res.resize(col_left->size()); | 430 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 48 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 48 | col_right->get_element(0), vec_res); | 434 | | | 435 | 48 | block.replace_by_position(result, std::move(col_res)); | 436 | 48 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 48 | return Status::OK(); | 449 | 48 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 585 | const ColumnPtr& col_right_ptr) const { | 406 | 585 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 585 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 585 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 585 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 585 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 585 | if (!left_is_const && !right_is_const) { | 415 | 408 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 408 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 408 | vec_res.resize(col_left->get_data().size()); | 419 | 408 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 408 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 408 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 408 | vec_res); | 423 | | | 424 | 408 | block.replace_by_position(result, std::move(col_res)); | 425 | 408 | } else if (!left_is_const && right_is_const) { | 426 | 171 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 171 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 171 | vec_res.resize(col_left->size()); | 430 | 171 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 171 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 171 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 171 | col_right->get_element(0), vec_res); | 434 | | | 435 | 171 | block.replace_by_position(result, std::move(col_res)); | 436 | 171 | } else if (left_is_const && !right_is_const) { | 437 | 5 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 5 | vec_res.resize(col_right->size()); | 441 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 5 | col_right->get_data(), vec_res); | 445 | | | 446 | 5 | block.replace_by_position(result, std::move(col_res)); | 447 | 5 | } | 448 | 585 | return Status::OK(); | 449 | 585 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 69 | const ColumnPtr& col_right_ptr) const { | 406 | 69 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 69 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 69 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 69 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 69 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 69 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 69 | } else if (!left_is_const && right_is_const) { | 426 | 69 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 69 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 69 | vec_res.resize(col_left->size()); | 430 | 69 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 69 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 69 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 69 | col_right->get_element(0), vec_res); | 434 | | | 435 | 69 | block.replace_by_position(result, std::move(col_res)); | 436 | 69 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 69 | return Status::OK(); | 449 | 69 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 3 | const ColumnPtr& col_right_ptr) const { | 406 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 3 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 3 | if (!left_is_const && !right_is_const) { | 415 | 3 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 3 | vec_res.resize(col_left->get_data().size()); | 419 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 3 | vec_res); | 423 | | | 424 | 3 | block.replace_by_position(result, std::move(col_res)); | 425 | 3 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 3 | return Status::OK(); | 449 | 3 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 85 | const ColumnPtr& col_right_ptr) const { | 406 | 85 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 85 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 85 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 85 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 85 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 85 | if (!left_is_const && !right_is_const) { | 415 | 1 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 1 | vec_res.resize(col_left->get_data().size()); | 419 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 1 | vec_res); | 423 | | | 424 | 1 | block.replace_by_position(result, std::move(col_res)); | 425 | 84 | } else if (!left_is_const && right_is_const) { | 426 | 84 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 84 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 84 | vec_res.resize(col_left->size()); | 430 | 84 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 84 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 84 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 84 | col_right->get_element(0), vec_res); | 434 | | | 435 | 84 | block.replace_by_position(result, std::move(col_res)); | 436 | 84 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 85 | return Status::OK(); | 449 | 85 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 149 | const ColumnPtr& col_right_ptr) const { | 406 | 149 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 149 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 149 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 149 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 149 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 149 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 149 | } else if (!left_is_const && right_is_const) { | 426 | 149 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 149 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 149 | vec_res.resize(col_left->size()); | 430 | 149 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 149 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 149 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 149 | col_right->get_element(0), vec_res); | 434 | | | 435 | 149 | block.replace_by_position(result, std::move(col_res)); | 436 | 149 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 149 | return Status::OK(); | 449 | 149 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 7.04k | const ColumnPtr& col_right_ptr) const { | 406 | 7.04k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 7.04k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 7.04k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 7.04k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 7.04k | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 7.04k | if (!left_is_const && !right_is_const) { | 415 | 10 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 10 | vec_res.resize(col_left->get_data().size()); | 419 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 10 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 10 | vec_res); | 423 | | | 424 | 10 | block.replace_by_position(result, std::move(col_res)); | 425 | 7.03k | } else if (!left_is_const && right_is_const) { | 426 | 6.70k | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 6.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 6.70k | vec_res.resize(col_left->size()); | 430 | 6.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 6.70k | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 6.70k | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 6.70k | col_right->get_element(0), vec_res); | 434 | | | 435 | 6.70k | block.replace_by_position(result, std::move(col_res)); | 436 | 6.70k | } else if (left_is_const && !right_is_const) { | 437 | 329 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 329 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 329 | vec_res.resize(col_right->size()); | 441 | 329 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 329 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 329 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 329 | col_right->get_data(), vec_res); | 445 | | | 446 | 329 | block.replace_by_position(result, std::move(col_res)); | 447 | 329 | } | 448 | 7.04k | return Status::OK(); | 449 | 7.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 335 | const ColumnPtr& col_right_ptr) const { | 406 | 335 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 335 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 335 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 335 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 335 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 335 | if (!left_is_const && !right_is_const) { | 415 | 31 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 31 | vec_res.resize(col_left->get_data().size()); | 419 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 31 | vec_res); | 423 | | | 424 | 31 | block.replace_by_position(result, std::move(col_res)); | 425 | 304 | } else if (!left_is_const && right_is_const) { | 426 | 256 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 256 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 256 | vec_res.resize(col_left->size()); | 430 | 256 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 256 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 256 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 256 | col_right->get_element(0), vec_res); | 434 | | | 435 | 256 | block.replace_by_position(result, std::move(col_res)); | 436 | 256 | } else if (left_is_const && !right_is_const) { | 437 | 48 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 48 | vec_res.resize(col_right->size()); | 441 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 48 | col_right->get_data(), vec_res); | 445 | | | 446 | 48 | block.replace_by_position(result, std::move(col_res)); | 447 | 48 | } | 448 | 335 | return Status::OK(); | 449 | 335 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 48 | const ColumnPtr& col_right_ptr) const { | 406 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 48 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 48 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 48 | } else if (!left_is_const && right_is_const) { | 426 | 48 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 48 | vec_res.resize(col_left->size()); | 430 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 48 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 48 | col_right->get_element(0), vec_res); | 434 | | | 435 | 48 | block.replace_by_position(result, std::move(col_res)); | 436 | 48 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 48 | return Status::OK(); | 449 | 48 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 10 | const ColumnPtr& col_right_ptr) const { | 406 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 10 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 10 | if (!left_is_const && !right_is_const) { | 415 | 0 | auto col_res = ColumnUInt8::create(); | 416 | |
| 417 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 0 | vec_res.resize(col_left->get_data().size()); | 419 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 0 | vec_res); | 423 | |
| 424 | 0 | block.replace_by_position(result, std::move(col_res)); | 425 | 10 | } else if (!left_is_const && right_is_const) { | 426 | 10 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 10 | vec_res.resize(col_left->size()); | 430 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 10 | col_right->get_element(0), vec_res); | 434 | | | 435 | 10 | block.replace_by_position(result, std::move(col_res)); | 436 | 10 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 10 | return Status::OK(); | 449 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 20 | const ColumnPtr& col_right_ptr) const { | 406 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 20 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 20 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 20 | } else if (!left_is_const && right_is_const) { | 426 | 0 | auto col_res = ColumnUInt8::create(); | 427 | |
| 428 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 0 | vec_res.resize(col_left->size()); | 430 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 0 | col_right->get_element(0), vec_res); | 434 | |
| 435 | 0 | block.replace_by_position(result, std::move(col_res)); | 436 | 0 | } else if (left_is_const && !right_is_const) { | 437 | 0 | auto col_res = ColumnUInt8::create(); | 438 | |
| 439 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 0 | vec_res.resize(col_right->size()); | 441 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 0 | col_right->get_data(), vec_res); | 445 | |
| 446 | 0 | block.replace_by_position(result, std::move(col_res)); | 447 | 0 | } | 448 | 20 | return Status::OK(); | 449 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 405 | 127 | const ColumnPtr& col_right_ptr) const { | 406 | 127 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 407 | 127 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 408 | | | 409 | 127 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 410 | 127 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 411 | | | 412 | 127 | DCHECK(!(left_is_const && right_is_const)); | 413 | | | 414 | 127 | if (!left_is_const && !right_is_const) { | 415 | 20 | auto col_res = ColumnUInt8::create(); | 416 | | | 417 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 418 | 20 | vec_res.resize(col_left->get_data().size()); | 419 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 420 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 421 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 422 | 20 | vec_res); | 423 | | | 424 | 20 | block.replace_by_position(result, std::move(col_res)); | 425 | 107 | } else if (!left_is_const && right_is_const) { | 426 | 106 | auto col_res = ColumnUInt8::create(); | 427 | | | 428 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 429 | 106 | vec_res.resize(col_left->size()); | 430 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 431 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 432 | 106 | Op<PT>>::vector_constant(col_left->get_data(), | 433 | 106 | col_right->get_element(0), vec_res); | 434 | | | 435 | 106 | block.replace_by_position(result, std::move(col_res)); | 436 | 106 | } else if (left_is_const && !right_is_const) { | 437 | 1 | auto col_res = ColumnUInt8::create(); | 438 | | | 439 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 440 | 1 | vec_res.resize(col_right->size()); | 441 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 442 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 443 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 444 | 1 | col_right->get_data(), vec_res); | 445 | | | 446 | 1 | block.replace_by_position(result, std::move(col_res)); | 447 | 1 | } | 448 | 127 | return Status::OK(); | 449 | 127 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
450 | | |
451 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
452 | 2.94k | const ColumnWithTypeAndName& col_right) const { |
453 | 2.94k | auto call = [&](const auto& type) -> bool { |
454 | 2.94k | using DispatchType = std::decay_t<decltype(type)>; |
455 | 2.94k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
456 | 2.94k | block, result, col_left, col_right); |
457 | 2.94k | return true; |
458 | 2.94k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 125 | auto call = [&](const auto& type) -> bool { | 454 | 125 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 125 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 125 | block, result, col_left, col_right); | 457 | 125 | return true; | 458 | 125 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 144 | auto call = [&](const auto& type) -> bool { | 454 | 144 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 144 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 144 | block, result, col_left, col_right); | 457 | 144 | return true; | 458 | 144 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 811 | auto call = [&](const auto& type) -> bool { | 454 | 811 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 811 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 811 | block, result, col_left, col_right); | 457 | 811 | return true; | 458 | 811 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 30 | auto call = [&](const auto& type) -> bool { | 454 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 30 | block, result, col_left, col_right); | 457 | 30 | return true; | 458 | 30 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 61 | auto call = [&](const auto& type) -> bool { | 454 | 61 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 61 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 61 | block, result, col_left, col_right); | 457 | 61 | return true; | 458 | 61 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 28 | auto call = [&](const auto& type) -> bool { | 454 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 28 | block, result, col_left, col_right); | 457 | 28 | return true; | 458 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 29 | auto call = [&](const auto& type) -> bool { | 454 | 29 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 29 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 29 | block, result, col_left, col_right); | 457 | 29 | return true; | 458 | 29 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 8 | auto call = [&](const auto& type) -> bool { | 454 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 8 | block, result, col_left, col_right); | 457 | 8 | return true; | 458 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 66 | auto call = [&](const auto& type) -> bool { | 454 | 66 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 66 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 66 | block, result, col_left, col_right); | 457 | 66 | return true; | 458 | 66 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 619 | auto call = [&](const auto& type) -> bool { | 454 | 619 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 619 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 619 | block, result, col_left, col_right); | 457 | 619 | return true; | 458 | 619 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 2 | auto call = [&](const auto& type) -> bool { | 454 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 2 | block, result, col_left, col_right); | 457 | 2 | return true; | 458 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 1 | auto call = [&](const auto& type) -> bool { | 454 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1 | block, result, col_left, col_right); | 457 | 1 | return true; | 458 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 53 | auto call = [&](const auto& type) -> bool { | 454 | 53 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 53 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 53 | block, result, col_left, col_right); | 457 | 53 | return true; | 458 | 53 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 68 | auto call = [&](const auto& type) -> bool { | 454 | 68 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 68 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 68 | block, result, col_left, col_right); | 457 | 68 | return true; | 458 | 68 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 21 | auto call = [&](const auto& type) -> bool { | 454 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 21 | block, result, col_left, col_right); | 457 | 21 | return true; | 458 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 178 | auto call = [&](const auto& type) -> bool { | 454 | 178 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 178 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 178 | block, result, col_left, col_right); | 457 | 178 | return true; | 458 | 178 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 201 | auto call = [&](const auto& type) -> bool { | 454 | 201 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 201 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 201 | block, result, col_left, col_right); | 457 | 201 | return true; | 458 | 201 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 292 | auto call = [&](const auto& type) -> bool { | 454 | 292 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 292 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 292 | block, result, col_left, col_right); | 457 | 292 | return true; | 458 | 292 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 1 | auto call = [&](const auto& type) -> bool { | 454 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1 | block, result, col_left, col_right); | 457 | 1 | return true; | 458 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 453 | 4 | auto call = [&](const auto& type) -> bool { | 454 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 4 | block, result, col_left, col_right); | 457 | 4 | return true; | 458 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 453 | 75 | auto call = [&](const auto& type) -> bool { | 454 | 75 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 75 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 75 | block, result, col_left, col_right); | 457 | 75 | return true; | 458 | 75 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 453 | 108 | auto call = [&](const auto& type) -> bool { | 454 | 108 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 108 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 108 | block, result, col_left, col_right); | 457 | 108 | return true; | 458 | 108 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 453 | 16 | auto call = [&](const auto& type) -> bool { | 454 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 16 | block, result, col_left, col_right); | 457 | 16 | return true; | 458 | 16 | }; |
|
459 | | |
460 | 2.94k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
461 | 0 | return Status::RuntimeError( |
462 | 0 | "type of left column {} is not equal to type of right column {}", |
463 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
464 | 0 | } |
465 | | |
466 | 2.94k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
468 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
469 | 0 | } |
470 | 2.94k | return Status::OK(); |
471 | 2.94k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 1.11k | const ColumnWithTypeAndName& col_right) const { | 453 | 1.11k | auto call = [&](const auto& type) -> bool { | 454 | 1.11k | using DispatchType = std::decay_t<decltype(type)>; | 455 | 1.11k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 1.11k | block, result, col_left, col_right); | 457 | 1.11k | return true; | 458 | 1.11k | }; | 459 | | | 460 | 1.11k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 1.11k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 1.11k | return Status::OK(); | 471 | 1.11k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 118 | const ColumnWithTypeAndName& col_right) const { | 453 | 118 | auto call = [&](const auto& type) -> bool { | 454 | 118 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 118 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 118 | block, result, col_left, col_right); | 457 | 118 | return true; | 458 | 118 | }; | 459 | | | 460 | 118 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 118 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 118 | return Status::OK(); | 471 | 118 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 695 | const ColumnWithTypeAndName& col_right) const { | 453 | 695 | auto call = [&](const auto& type) -> bool { | 454 | 695 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 695 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 695 | block, result, col_left, col_right); | 457 | 695 | return true; | 458 | 695 | }; | 459 | | | 460 | 695 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 695 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 695 | return Status::OK(); | 471 | 695 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 143 | const ColumnWithTypeAndName& col_right) const { | 453 | 143 | auto call = [&](const auto& type) -> bool { | 454 | 143 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 143 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 143 | block, result, col_left, col_right); | 457 | 143 | return true; | 458 | 143 | }; | 459 | | | 460 | 143 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 143 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 143 | return Status::OK(); | 471 | 143 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 672 | const ColumnWithTypeAndName& col_right) const { | 453 | 672 | auto call = [&](const auto& type) -> bool { | 454 | 672 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 672 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 672 | block, result, col_left, col_right); | 457 | 672 | return true; | 458 | 672 | }; | 459 | | | 460 | 672 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 672 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 672 | return Status::OK(); | 471 | 672 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 452 | 203 | const ColumnWithTypeAndName& col_right) const { | 453 | 203 | auto call = [&](const auto& type) -> bool { | 454 | 203 | using DispatchType = std::decay_t<decltype(type)>; | 455 | 203 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 456 | 203 | block, result, col_left, col_right); | 457 | 203 | return true; | 458 | 203 | }; | 459 | | | 460 | 203 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 461 | 0 | return Status::RuntimeError( | 462 | 0 | "type of left column {} is not equal to type of right column {}", | 463 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 464 | 0 | } | 465 | | | 466 | 203 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 467 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 468 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 469 | 0 | } | 470 | 203 | return Status::OK(); | 471 | 203 | } |
|
472 | | |
473 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
474 | 11.7k | const IColumn* c1) const { |
475 | 11.7k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
476 | 11.7k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
477 | 11.7k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
478 | 11.7k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
479 | 11.7k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
481 | 0 | c0->get_name(), c1->get_name(), name); |
482 | 0 | } |
483 | 11.7k | DCHECK(!(c0_const && c1_const)); |
484 | 11.7k | const ColumnString::Chars* c0_const_chars = nullptr; |
485 | 11.7k | const ColumnString::Chars* c1_const_chars = nullptr; |
486 | 11.7k | ColumnString::Offset c0_const_size = 0; |
487 | 11.7k | ColumnString::Offset c1_const_size = 0; |
488 | | |
489 | 11.7k | if (c0_const) { |
490 | 6 | const ColumnString* c0_const_string = |
491 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
492 | | |
493 | 6 | if (c0_const_string) { |
494 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
495 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
496 | 6 | } else { |
497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
498 | 0 | c0->get_name(), name); |
499 | 0 | } |
500 | 6 | } |
501 | | |
502 | 11.7k | if (c1_const) { |
503 | 10.8k | const ColumnString* c1_const_string = |
504 | 10.8k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
505 | | |
506 | 10.8k | if (c1_const_string) { |
507 | 10.8k | c1_const_chars = &c1_const_string->get_chars(); |
508 | 10.8k | c1_const_size = c1_const_string->get_offsets()[0]; |
509 | 10.8k | } else { |
510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
511 | 0 | c1->get_name(), name); |
512 | 0 | } |
513 | 10.8k | } |
514 | | |
515 | 11.7k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
516 | | |
517 | 11.7k | auto c_res = ColumnUInt8::create(); |
518 | 11.7k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
519 | 11.7k | vec_res.resize(c0->size()); |
520 | | |
521 | 11.7k | if (c0_string && c1_string) { |
522 | 808 | StringImpl::string_vector_string_vector( |
523 | 808 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
524 | 808 | c1_string->get_offsets(), vec_res); |
525 | 10.9k | } else if (c0_string && c1_const) { |
526 | 10.8k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
527 | 10.8k | *c1_const_chars, c1_const_size, vec_res); |
528 | 10.8k | } else if (c0_const && c1_string) { |
529 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
530 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
531 | 6 | vec_res); |
532 | 6 | } else { |
533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
534 | 0 | c0->get_name(), c1->get_name(), name); |
535 | 0 | } |
536 | 11.7k | block.replace_by_position(result, std::move(c_res)); |
537 | 11.7k | return Status::OK(); |
538 | 11.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 10.1k | const IColumn* c1) const { | 475 | 10.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 10.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 10.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 10.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 10.1k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 10.1k | DCHECK(!(c0_const && c1_const)); | 484 | 10.1k | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 10.1k | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 10.1k | ColumnString::Offset c0_const_size = 0; | 487 | 10.1k | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 10.1k | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 10.1k | if (c1_const) { | 503 | 9.81k | const ColumnString* c1_const_string = | 504 | 9.81k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 9.81k | if (c1_const_string) { | 507 | 9.81k | c1_const_chars = &c1_const_string->get_chars(); | 508 | 9.81k | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 9.81k | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 9.81k | } | 514 | | | 515 | 10.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 10.1k | auto c_res = ColumnUInt8::create(); | 518 | 10.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 10.1k | vec_res.resize(c0->size()); | 520 | | | 521 | 10.1k | if (c0_string && c1_string) { | 522 | 374 | StringImpl::string_vector_string_vector( | 523 | 374 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 374 | c1_string->get_offsets(), vec_res); | 525 | 9.81k | } else if (c0_string && c1_const) { | 526 | 9.81k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 9.81k | *c1_const_chars, c1_const_size, vec_res); | 528 | 9.81k | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 10.1k | block.replace_by_position(result, std::move(c_res)); | 537 | 10.1k | return Status::OK(); | 538 | 10.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 107 | const IColumn* c1) const { | 475 | 107 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 107 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 107 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 107 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 107 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 107 | DCHECK(!(c0_const && c1_const)); | 484 | 107 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 107 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 107 | ColumnString::Offset c0_const_size = 0; | 487 | 107 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 107 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 107 | if (c1_const) { | 503 | 106 | const ColumnString* c1_const_string = | 504 | 106 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 106 | if (c1_const_string) { | 507 | 106 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 106 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 106 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 106 | } | 514 | | | 515 | 107 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 107 | auto c_res = ColumnUInt8::create(); | 518 | 107 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 107 | vec_res.resize(c0->size()); | 520 | | | 521 | 107 | if (c0_string && c1_string) { | 522 | 1 | StringImpl::string_vector_string_vector( | 523 | 1 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 1 | c1_string->get_offsets(), vec_res); | 525 | 106 | } else if (c0_string && c1_const) { | 526 | 106 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 106 | *c1_const_chars, c1_const_size, vec_res); | 528 | 106 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 107 | block.replace_by_position(result, std::move(c_res)); | 537 | 107 | return Status::OK(); | 538 | 107 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 172 | const IColumn* c1) const { | 475 | 172 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 172 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 172 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 172 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 172 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 172 | DCHECK(!(c0_const && c1_const)); | 484 | 172 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 172 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 172 | ColumnString::Offset c0_const_size = 0; | 487 | 172 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 172 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 172 | if (c1_const) { | 503 | 170 | const ColumnString* c1_const_string = | 504 | 170 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 170 | if (c1_const_string) { | 507 | 170 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 170 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 170 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 170 | } | 514 | | | 515 | 172 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 172 | auto c_res = ColumnUInt8::create(); | 518 | 172 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 172 | vec_res.resize(c0->size()); | 520 | | | 521 | 172 | if (c0_string && c1_string) { | 522 | 2 | StringImpl::string_vector_string_vector( | 523 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 2 | c1_string->get_offsets(), vec_res); | 525 | 170 | } else if (c0_string && c1_const) { | 526 | 170 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 170 | *c1_const_chars, c1_const_size, vec_res); | 528 | 170 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 172 | block.replace_by_position(result, std::move(c_res)); | 537 | 172 | return Status::OK(); | 538 | 172 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 391 | const IColumn* c1) const { | 475 | 391 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 391 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 391 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 391 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 391 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 391 | DCHECK(!(c0_const && c1_const)); | 484 | 391 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 391 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 391 | ColumnString::Offset c0_const_size = 0; | 487 | 391 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 391 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 391 | if (c1_const) { | 503 | 355 | const ColumnString* c1_const_string = | 504 | 355 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 355 | if (c1_const_string) { | 507 | 355 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 355 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 355 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 355 | } | 514 | | | 515 | 391 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 391 | auto c_res = ColumnUInt8::create(); | 518 | 391 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 391 | vec_res.resize(c0->size()); | 520 | | | 521 | 391 | if (c0_string && c1_string) { | 522 | 36 | StringImpl::string_vector_string_vector( | 523 | 36 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 36 | c1_string->get_offsets(), vec_res); | 525 | 355 | } else if (c0_string && c1_const) { | 526 | 355 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 355 | *c1_const_chars, c1_const_size, vec_res); | 528 | 355 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 391 | block.replace_by_position(result, std::move(c_res)); | 537 | 391 | return Status::OK(); | 538 | 391 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 497 | const IColumn* c1) const { | 475 | 497 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 497 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 497 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 497 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 497 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 497 | DCHECK(!(c0_const && c1_const)); | 484 | 497 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 497 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 497 | ColumnString::Offset c0_const_size = 0; | 487 | 497 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 497 | if (c0_const) { | 490 | 6 | const ColumnString* c0_const_string = | 491 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | | | 493 | 6 | if (c0_const_string) { | 494 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 6 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 6 | } | 501 | | | 502 | 497 | if (c1_const) { | 503 | 96 | const ColumnString* c1_const_string = | 504 | 96 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 96 | if (c1_const_string) { | 507 | 96 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 96 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 96 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 96 | } | 514 | | | 515 | 497 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 497 | auto c_res = ColumnUInt8::create(); | 518 | 497 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 497 | vec_res.resize(c0->size()); | 520 | | | 521 | 497 | if (c0_string && c1_string) { | 522 | 395 | StringImpl::string_vector_string_vector( | 523 | 395 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 395 | c1_string->get_offsets(), vec_res); | 525 | 395 | } else if (c0_string && c1_const) { | 526 | 96 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 96 | *c1_const_chars, c1_const_size, vec_res); | 528 | 96 | } else if (c0_const && c1_string) { | 529 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 6 | vec_res); | 532 | 6 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 497 | block.replace_by_position(result, std::move(c_res)); | 537 | 497 | return Status::OK(); | 538 | 497 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 474 | 355 | const IColumn* c1) const { | 475 | 355 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 476 | 355 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 477 | 355 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 478 | 355 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 479 | 355 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 480 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 481 | 0 | c0->get_name(), c1->get_name(), name); | 482 | 0 | } | 483 | 355 | DCHECK(!(c0_const && c1_const)); | 484 | 355 | const ColumnString::Chars* c0_const_chars = nullptr; | 485 | 355 | const ColumnString::Chars* c1_const_chars = nullptr; | 486 | 355 | ColumnString::Offset c0_const_size = 0; | 487 | 355 | ColumnString::Offset c1_const_size = 0; | 488 | | | 489 | 355 | if (c0_const) { | 490 | 0 | const ColumnString* c0_const_string = | 491 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 492 | |
| 493 | 0 | if (c0_const_string) { | 494 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 495 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 496 | 0 | } else { | 497 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 498 | 0 | c0->get_name(), name); | 499 | 0 | } | 500 | 0 | } | 501 | | | 502 | 355 | if (c1_const) { | 503 | 355 | const ColumnString* c1_const_string = | 504 | 355 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 505 | | | 506 | 355 | if (c1_const_string) { | 507 | 355 | c1_const_chars = &c1_const_string->get_chars(); | 508 | 355 | c1_const_size = c1_const_string->get_offsets()[0]; | 509 | 355 | } else { | 510 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 511 | 0 | c1->get_name(), name); | 512 | 0 | } | 513 | 355 | } | 514 | | | 515 | 355 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 516 | | | 517 | 355 | auto c_res = ColumnUInt8::create(); | 518 | 355 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 519 | 355 | vec_res.resize(c0->size()); | 520 | | | 521 | 355 | if (c0_string && c1_string) { | 522 | 0 | StringImpl::string_vector_string_vector( | 523 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 524 | 0 | c1_string->get_offsets(), vec_res); | 525 | 355 | } else if (c0_string && c1_const) { | 526 | 355 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 527 | 355 | *c1_const_chars, c1_const_size, vec_res); | 528 | 355 | } else if (c0_const && c1_string) { | 529 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 530 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 531 | 0 | vec_res); | 532 | 0 | } else { | 533 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 534 | 0 | c0->get_name(), c1->get_name(), name); | 535 | 0 | } | 536 | 355 | block.replace_by_position(result, std::move(c_res)); | 537 | 355 | return Status::OK(); | 538 | 355 | } |
|
539 | | |
540 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
541 | 141 | const IColumn* c1) const { |
542 | 141 | bool c0_const = is_column_const(*c0); |
543 | 141 | bool c1_const = is_column_const(*c1); |
544 | | |
545 | 141 | DCHECK(!(c0_const && c1_const)); |
546 | | |
547 | 141 | auto c_res = ColumnUInt8::create(); |
548 | 141 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
549 | 141 | vec_res.resize(c0->size()); |
550 | | |
551 | 141 | if (c0_const) { |
552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
553 | 141 | } else if (c1_const) { |
554 | 132 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
555 | 132 | } else { |
556 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
557 | 9 | } |
558 | | |
559 | 141 | block.replace_by_position(result, std::move(c_res)); |
560 | 141 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 17 | const IColumn* c1) const { | 542 | 17 | bool c0_const = is_column_const(*c0); | 543 | 17 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 17 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 17 | auto c_res = ColumnUInt8::create(); | 548 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 17 | vec_res.resize(c0->size()); | 550 | | | 551 | 17 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 17 | } else if (c1_const) { | 554 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 13 | } else { | 556 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 4 | } | 558 | | | 559 | 17 | block.replace_by_position(result, std::move(c_res)); | 560 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 8 | const IColumn* c1) const { | 542 | 8 | bool c0_const = is_column_const(*c0); | 543 | 8 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 8 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 8 | auto c_res = ColumnUInt8::create(); | 548 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 8 | vec_res.resize(c0->size()); | 550 | | | 551 | 8 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 8 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 8 | block.replace_by_position(result, std::move(c_res)); | 560 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 9 | const IColumn* c1) const { | 542 | 9 | bool c0_const = is_column_const(*c0); | 543 | 9 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 9 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 9 | auto c_res = ColumnUInt8::create(); | 548 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 9 | vec_res.resize(c0->size()); | 550 | | | 551 | 9 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 9 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 9 | block.replace_by_position(result, std::move(c_res)); | 560 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 36 | const IColumn* c1) const { | 542 | 36 | bool c0_const = is_column_const(*c0); | 543 | 36 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 36 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 36 | auto c_res = ColumnUInt8::create(); | 548 | 36 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 36 | vec_res.resize(c0->size()); | 550 | | | 551 | 36 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 36 | } else if (c1_const) { | 554 | 35 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 35 | } else { | 556 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 1 | } | 558 | | | 559 | 36 | block.replace_by_position(result, std::move(c_res)); | 560 | 36 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 11 | const IColumn* c1) const { | 542 | 11 | bool c0_const = is_column_const(*c0); | 543 | 11 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 11 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 11 | auto c_res = ColumnUInt8::create(); | 548 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 11 | vec_res.resize(c0->size()); | 550 | | | 551 | 11 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 11 | } else if (c1_const) { | 554 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 8 | } else { | 556 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 3 | } | 558 | | | 559 | 11 | block.replace_by_position(result, std::move(c_res)); | 560 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 541 | 60 | const IColumn* c1) const { | 542 | 60 | bool c0_const = is_column_const(*c0); | 543 | 60 | bool c1_const = is_column_const(*c1); | 544 | | | 545 | 60 | DCHECK(!(c0_const && c1_const)); | 546 | | | 547 | 60 | auto c_res = ColumnUInt8::create(); | 548 | 60 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 549 | 60 | vec_res.resize(c0->size()); | 550 | | | 551 | 60 | if (c0_const) { | 552 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 553 | 60 | } else if (c1_const) { | 554 | 60 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 555 | 60 | } else { | 556 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 557 | 0 | } | 558 | | | 559 | 60 | block.replace_by_position(result, std::move(c_res)); | 560 | 60 | } |
|
561 | | |
562 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
563 | 141 | const ColumnWithTypeAndName& c1) const { |
564 | 141 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
565 | 141 | return Status::OK(); |
566 | 141 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 17 | const ColumnWithTypeAndName& c1) const { | 564 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 17 | return Status::OK(); | 566 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 8 | const ColumnWithTypeAndName& c1) const { | 564 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 8 | return Status::OK(); | 566 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 9 | const ColumnWithTypeAndName& c1) const { | 564 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 9 | return Status::OK(); | 566 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 36 | const ColumnWithTypeAndName& c1) const { | 564 | 36 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 36 | return Status::OK(); | 566 | 36 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 11 | const ColumnWithTypeAndName& c1) const { | 564 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 11 | return Status::OK(); | 566 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 563 | 60 | const ColumnWithTypeAndName& c1) const { | 564 | 60 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 565 | 60 | return Status::OK(); | 566 | 60 | } |
|
567 | | |
568 | | public: |
569 | 216 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 62 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 35 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 80 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 569 | 1 | String get_name() const override { return name; } |
|
570 | | |
571 | 267k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 241k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 1.14k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 571 | 4.89k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 7.42k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 571 | 2.96k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 571 | 9.33k | size_t get_number_of_arguments() const override { return 2; } |
|
572 | | |
573 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
574 | 2.62k | const VExprSPtrs& arguments) const override { |
575 | 2.62k | auto op = comparison_zonemap_detail::op_from_name(name); |
576 | 2.62k | DORIS_CHECK(op.has_value()); |
577 | 2.62k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
578 | 2.62k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 1.60k | const VExprSPtrs& arguments) const override { | 575 | 1.60k | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 1.60k | DORIS_CHECK(op.has_value()); | 577 | 1.60k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 142 | const VExprSPtrs& arguments) const override { | 575 | 142 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 142 | DORIS_CHECK(op.has_value()); | 577 | 142 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 142 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 202 | const VExprSPtrs& arguments) const override { | 575 | 202 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 202 | DORIS_CHECK(op.has_value()); | 577 | 202 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 202 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 228 | const VExprSPtrs& arguments) const override { | 575 | 228 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 228 | DORIS_CHECK(op.has_value()); | 577 | 228 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 228 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 266 | const VExprSPtrs& arguments) const override { | 575 | 266 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 266 | DORIS_CHECK(op.has_value()); | 577 | 266 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 266 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 574 | 177 | const VExprSPtrs& arguments) const override { | 575 | 177 | auto op = comparison_zonemap_detail::op_from_name(name); | 576 | 177 | DORIS_CHECK(op.has_value()); | 577 | 177 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 578 | 177 | } |
|
579 | | |
580 | 32.6k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
581 | 32.6k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
582 | 32.6k | comparison_zonemap_detail::can_evaluate(arguments); |
583 | 32.6k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 14.1k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 14.1k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 14.1k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 14.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 1.31k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 1.31k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 1.31k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 1.31k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 5.12k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 5.12k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 5.13k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 5.12k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 5.10k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 5.10k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 5.10k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 5.10k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 3.92k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 3.92k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 3.92k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 3.92k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 580 | 3.02k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 581 | 3.02k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 582 | 3.03k | comparison_zonemap_detail::can_evaluate(arguments); | 583 | 3.02k | } |
|
584 | | |
585 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
586 | 267k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
587 | 267k | return std::make_shared<DataTypeUInt8>(); |
588 | 267k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 241k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 241k | return std::make_shared<DataTypeUInt8>(); | 588 | 241k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 1.14k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 1.14k | return std::make_shared<DataTypeUInt8>(); | 588 | 1.14k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 4.89k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 4.89k | return std::make_shared<DataTypeUInt8>(); | 588 | 4.89k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 7.45k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 7.45k | return std::make_shared<DataTypeUInt8>(); | 588 | 7.45k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 2.96k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 2.96k | return std::make_shared<DataTypeUInt8>(); | 588 | 2.96k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 586 | 9.38k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 587 | 9.38k | return std::make_shared<DataTypeUInt8>(); | 588 | 9.38k | } |
|
589 | | |
590 | | Status evaluate_inverted_index( |
591 | | const ColumnsWithTypeAndName& arguments, |
592 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
593 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
594 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
595 | 1.36k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
596 | 1.36k | DCHECK(arguments.size() == 1); |
597 | 1.36k | DCHECK(data_type_with_names.size() == 1); |
598 | 1.36k | DCHECK(iterators.size() == 1); |
599 | 1.36k | auto* iter = iterators[0]; |
600 | 1.36k | auto data_type_with_name = data_type_with_names[0]; |
601 | 1.36k | if (iter == nullptr) { |
602 | 0 | return Status::OK(); |
603 | 0 | } |
604 | 1.36k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
605 | 310 | return Status::OK(); |
606 | 310 | } |
607 | 1.05k | segment_v2::InvertedIndexQueryType query_type; |
608 | 1.05k | std::string_view name_view(name); |
609 | 1.05k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
610 | 731 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
611 | 731 | } else if (name_view == NameLess::name) { |
612 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
613 | 245 | } else if (name_view == NameLessOrEquals::name) { |
614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
615 | 164 | } else if (name_view == NameGreater::name) { |
616 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
617 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
619 | 18.4E | } else { |
620 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
621 | 18.4E | } |
622 | | |
623 | 1.05k | if (segment_v2::is_range_query(query_type) && |
624 | 1.05k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
626 | 133 | return Status::OK(); |
627 | 133 | } |
628 | 921 | Field param_value; |
629 | 921 | arguments[0].column->get(0, param_value); |
630 | 921 | if (param_value.is_null()) { |
631 | 2 | return Status::OK(); |
632 | 2 | } |
633 | 919 | segment_v2::InvertedIndexParam param; |
634 | 919 | param.column_name = data_type_with_name.first; |
635 | 919 | param.column_type = data_type_with_name.second; |
636 | 919 | param.query_value = param_value; |
637 | 919 | param.query_type = query_type; |
638 | 919 | param.num_rows = num_rows; |
639 | 919 | param.roaring = std::make_shared<roaring::Roaring>(); |
640 | 919 | param.analyzer_ctx = analyzer_ctx; |
641 | 919 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
642 | 759 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
643 | 759 | if (iter->has_null()) { |
644 | 757 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
645 | 757 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
646 | 757 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
647 | 757 | } |
648 | 759 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
649 | 759 | bitmap_result = result; |
650 | 759 | bitmap_result.mask_out_null(); |
651 | | |
652 | 759 | if (name_view == NameNotEquals::name) { |
653 | 58 | roaring::Roaring full_result; |
654 | 58 | full_result.addRange(0, num_rows); |
655 | 58 | bitmap_result.op_not(&full_result); |
656 | 58 | } |
657 | | |
658 | 759 | return Status::OK(); |
659 | 759 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 707 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 707 | DCHECK(arguments.size() == 1); | 597 | 707 | DCHECK(data_type_with_names.size() == 1); | 598 | 707 | DCHECK(iterators.size() == 1); | 599 | 707 | auto* iter = iterators[0]; | 600 | 707 | auto data_type_with_name = data_type_with_names[0]; | 601 | 707 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 707 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 42 | return Status::OK(); | 606 | 42 | } | 607 | 665 | segment_v2::InvertedIndexQueryType query_type; | 608 | 665 | std::string_view name_view(name); | 609 | 665 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 665 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 665 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 0 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 665 | if (segment_v2::is_range_query(query_type) && | 624 | 665 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 665 | Field param_value; | 629 | 665 | arguments[0].column->get(0, param_value); | 630 | 665 | if (param_value.is_null()) { | 631 | 2 | return Status::OK(); | 632 | 2 | } | 633 | 663 | segment_v2::InvertedIndexParam param; | 634 | 663 | param.column_name = data_type_with_name.first; | 635 | 663 | param.column_type = data_type_with_name.second; | 636 | 663 | param.query_value = param_value; | 637 | 663 | param.query_type = query_type; | 638 | 663 | param.num_rows = num_rows; | 639 | 663 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 663 | param.analyzer_ctx = analyzer_ctx; | 641 | 663 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 610 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 610 | if (iter->has_null()) { | 644 | 609 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 609 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 609 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 609 | } | 648 | 610 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 610 | bitmap_result = result; | 650 | 610 | bitmap_result.mask_out_null(); | 651 | | | 652 | 610 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 610 | return Status::OK(); | 659 | 610 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 71 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 71 | DCHECK(arguments.size() == 1); | 597 | 71 | DCHECK(data_type_with_names.size() == 1); | 598 | 71 | DCHECK(iterators.size() == 1); | 599 | 71 | auto* iter = iterators[0]; | 600 | 71 | auto data_type_with_name = data_type_with_names[0]; | 601 | 71 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 71 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 6 | return Status::OK(); | 606 | 6 | } | 607 | 65 | segment_v2::InvertedIndexQueryType query_type; | 608 | 65 | std::string_view name_view(name); | 609 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 18.4E | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 18.4E | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 18.4E | } else { | 620 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 18.4E | } | 622 | | | 623 | 66 | if (segment_v2::is_range_query(query_type) && | 624 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 0 | return Status::OK(); | 627 | 0 | } | 628 | 66 | Field param_value; | 629 | 66 | arguments[0].column->get(0, param_value); | 630 | 66 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 66 | segment_v2::InvertedIndexParam param; | 634 | 66 | param.column_name = data_type_with_name.first; | 635 | 66 | param.column_type = data_type_with_name.second; | 636 | 66 | param.query_value = param_value; | 637 | 66 | param.query_type = query_type; | 638 | 66 | param.num_rows = num_rows; | 639 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 66 | param.analyzer_ctx = analyzer_ctx; | 641 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 59 | if (iter->has_null()) { | 644 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 58 | } | 648 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 59 | bitmap_result = result; | 650 | 59 | bitmap_result.mask_out_null(); | 651 | | | 652 | 59 | if (name_view == NameNotEquals::name) { | 653 | 58 | roaring::Roaring full_result; | 654 | 58 | full_result.addRange(0, num_rows); | 655 | 58 | bitmap_result.op_not(&full_result); | 656 | 58 | } | 657 | | | 658 | 59 | return Status::OK(); | 659 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 111 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 111 | DCHECK(arguments.size() == 1); | 597 | 111 | DCHECK(data_type_with_names.size() == 1); | 598 | 111 | DCHECK(iterators.size() == 1); | 599 | 111 | auto* iter = iterators[0]; | 600 | 111 | auto data_type_with_name = data_type_with_names[0]; | 601 | 111 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 111 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 39 | return Status::OK(); | 606 | 39 | } | 607 | 72 | segment_v2::InvertedIndexQueryType query_type; | 608 | 72 | std::string_view name_view(name); | 609 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 72 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 72 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 73 | } else if (name_view == NameGreater::name) { | 616 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 18.4E | } else { | 620 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 18.4E | } | 622 | | | 623 | 73 | if (segment_v2::is_range_query(query_type) && | 624 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 17 | return Status::OK(); | 627 | 17 | } | 628 | 56 | Field param_value; | 629 | 56 | arguments[0].column->get(0, param_value); | 630 | 56 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 56 | segment_v2::InvertedIndexParam param; | 634 | 56 | param.column_name = data_type_with_name.first; | 635 | 56 | param.column_type = data_type_with_name.second; | 636 | 56 | param.query_value = param_value; | 637 | 56 | param.query_type = query_type; | 638 | 56 | param.num_rows = num_rows; | 639 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 56 | param.analyzer_ctx = analyzer_ctx; | 641 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 37 | if (iter->has_null()) { | 644 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 37 | } | 648 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 37 | bitmap_result = result; | 650 | 37 | bitmap_result.mask_out_null(); | 651 | | | 652 | 37 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 37 | return Status::OK(); | 659 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 179 | DCHECK(arguments.size() == 1); | 597 | 179 | DCHECK(data_type_with_names.size() == 1); | 598 | 179 | DCHECK(iterators.size() == 1); | 599 | 179 | auto* iter = iterators[0]; | 600 | 179 | auto data_type_with_name = data_type_with_names[0]; | 601 | 179 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 86 | return Status::OK(); | 606 | 86 | } | 607 | 93 | segment_v2::InvertedIndexQueryType query_type; | 608 | 93 | std::string_view name_view(name); | 609 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 93 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 93 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 93 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 93 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 93 | if (segment_v2::is_range_query(query_type) && | 624 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 47 | return Status::OK(); | 627 | 47 | } | 628 | 46 | Field param_value; | 629 | 46 | arguments[0].column->get(0, param_value); | 630 | 46 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 46 | segment_v2::InvertedIndexParam param; | 634 | 46 | param.column_name = data_type_with_name.first; | 635 | 46 | param.column_type = data_type_with_name.second; | 636 | 46 | param.query_value = param_value; | 637 | 46 | param.query_type = query_type; | 638 | 46 | param.num_rows = num_rows; | 639 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 46 | param.analyzer_ctx = analyzer_ctx; | 641 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 5 | if (iter->has_null()) { | 644 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 5 | } | 648 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 5 | bitmap_result = result; | 650 | 5 | bitmap_result.mask_out_null(); | 651 | | | 652 | 5 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 5 | return Status::OK(); | 659 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 119 | DCHECK(arguments.size() == 1); | 597 | 119 | DCHECK(data_type_with_names.size() == 1); | 598 | 119 | DCHECK(iterators.size() == 1); | 599 | 119 | auto* iter = iterators[0]; | 600 | 119 | auto data_type_with_name = data_type_with_names[0]; | 601 | 119 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 43 | return Status::OK(); | 606 | 43 | } | 607 | 76 | segment_v2::InvertedIndexQueryType query_type; | 608 | 76 | std::string_view name_view(name); | 609 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 76 | } else if (name_view == NameLess::name) { | 612 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 76 | } else if (name_view == NameLessOrEquals::name) { | 614 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 0 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 76 | if (segment_v2::is_range_query(query_type) && | 624 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 18 | return Status::OK(); | 627 | 18 | } | 628 | 58 | Field param_value; | 629 | 58 | arguments[0].column->get(0, param_value); | 630 | 58 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 58 | segment_v2::InvertedIndexParam param; | 634 | 58 | param.column_name = data_type_with_name.first; | 635 | 58 | param.column_type = data_type_with_name.second; | 636 | 58 | param.query_value = param_value; | 637 | 58 | param.query_type = query_type; | 638 | 58 | param.num_rows = num_rows; | 639 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 58 | param.analyzer_ctx = analyzer_ctx; | 641 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 39 | if (iter->has_null()) { | 644 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 39 | } | 648 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 39 | bitmap_result = result; | 650 | 39 | bitmap_result.mask_out_null(); | 651 | | | 652 | 39 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 39 | return Status::OK(); | 659 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 595 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 596 | 175 | DCHECK(arguments.size() == 1); | 597 | 175 | DCHECK(data_type_with_names.size() == 1); | 598 | 175 | DCHECK(iterators.size() == 1); | 599 | 175 | auto* iter = iterators[0]; | 600 | 175 | auto data_type_with_name = data_type_with_names[0]; | 601 | 175 | if (iter == nullptr) { | 602 | 0 | return Status::OK(); | 603 | 0 | } | 604 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 605 | 94 | return Status::OK(); | 606 | 94 | } | 607 | 81 | segment_v2::InvertedIndexQueryType query_type; | 608 | 81 | std::string_view name_view(name); | 609 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 610 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 611 | 81 | } else if (name_view == NameLess::name) { | 612 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 613 | 81 | } else if (name_view == NameLessOrEquals::name) { | 614 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 615 | 81 | } else if (name_view == NameGreater::name) { | 616 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 617 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 618 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 619 | 0 | } else { | 620 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 621 | 0 | } | 622 | | | 623 | 81 | if (segment_v2::is_range_query(query_type) && | 624 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 625 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 626 | 51 | return Status::OK(); | 627 | 51 | } | 628 | 30 | Field param_value; | 629 | 30 | arguments[0].column->get(0, param_value); | 630 | 30 | if (param_value.is_null()) { | 631 | 0 | return Status::OK(); | 632 | 0 | } | 633 | 30 | segment_v2::InvertedIndexParam param; | 634 | 30 | param.column_name = data_type_with_name.first; | 635 | 30 | param.column_type = data_type_with_name.second; | 636 | 30 | param.query_value = param_value; | 637 | 30 | param.query_type = query_type; | 638 | 30 | param.num_rows = num_rows; | 639 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 640 | 30 | param.analyzer_ctx = analyzer_ctx; | 641 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 642 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 643 | 9 | if (iter->has_null()) { | 644 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 645 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 646 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 647 | 9 | } | 648 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 649 | 9 | bitmap_result = result; | 650 | 9 | bitmap_result.mask_out_null(); | 651 | | | 652 | 9 | if (name_view == NameNotEquals::name) { | 653 | 0 | roaring::Roaring full_result; | 654 | 0 | full_result.addRange(0, num_rows); | 655 | 0 | bitmap_result.op_not(&full_result); | 656 | 0 | } | 657 | | | 658 | 9 | return Status::OK(); | 659 | 9 | } |
|
660 | | |
661 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
662 | 68.7k | uint32_t result, size_t input_rows_count) const override { |
663 | 68.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
664 | 68.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
665 | | |
666 | 68.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
667 | 68.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
668 | 68.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
669 | 68.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
670 | | |
671 | 68.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
672 | 68.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
673 | | |
674 | | /// The case when arguments are the same (tautological comparison). Return constant. |
675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
677 | 68.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
678 | 68.7k | col_left_untyped == col_right_untyped) { |
679 | | /// Always true: =, <=, >= |
680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
684 | 0 | block.get_by_position(result).column = |
685 | 0 | DataTypeUInt8() |
686 | 0 | .create_column_const(input_rows_count, |
687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
688 | 0 | ->convert_to_full_column_if_const(); |
689 | 0 | return Status::OK(); |
690 | 0 | } else { |
691 | 0 | block.get_by_position(result).column = |
692 | 0 | DataTypeUInt8() |
693 | 0 | .create_column_const(input_rows_count, |
694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
695 | 0 | ->convert_to_full_column_if_const(); |
696 | 0 | return Status::OK(); |
697 | 0 | } |
698 | 0 | } |
699 | | |
700 | 122k | auto can_compare = [](PrimitiveType t) -> bool { |
701 | 122k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
702 | 122k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 36.2k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 36.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 36.2k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 5.50k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 5.50k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 5.50k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 40.6k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 40.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 40.6k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 6.27k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 6.27k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 6.27k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 16.4k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 16.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 16.4k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 700 | 17.7k | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 17.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 17.7k | }; |
|
703 | | |
704 | 68.7k | if (can_compare(left_type->get_primitive_type()) && |
705 | 68.7k | can_compare(right_type->get_primitive_type())) { |
706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
707 | 54.0k | if (!left_type->equals_ignore_precision(*right_type)) { |
708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
709 | 0 | get_name(), left_type->get_name(), |
710 | 0 | right_type->get_name()); |
711 | 0 | } |
712 | 54.0k | } |
713 | | |
714 | 68.7k | auto compare_type = left_type->get_primitive_type(); |
715 | 68.7k | switch (compare_type) { |
716 | 282 | case TYPE_BOOLEAN: |
717 | 282 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
718 | 5.21k | case TYPE_DATEV2: |
719 | 5.21k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
720 | 938 | case TYPE_DATETIMEV2: |
721 | 938 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
722 | 17 | case TYPE_TIMESTAMPTZ: |
723 | 17 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
724 | 8.48k | case TYPE_TINYINT: |
725 | 8.48k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
726 | 2.61k | case TYPE_SMALLINT: |
727 | 2.61k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
728 | 25.9k | case TYPE_INT: |
729 | 25.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
730 | 7.14k | case TYPE_BIGINT: |
731 | 7.14k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
732 | 698 | case TYPE_LARGEINT: |
733 | 698 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
734 | 61 | case TYPE_IPV4: |
735 | 61 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
736 | 37 | case TYPE_IPV6: |
737 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
738 | 532 | case TYPE_FLOAT: |
739 | 532 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
740 | 1.94k | case TYPE_DOUBLE: |
741 | 1.94k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
742 | 4 | case TYPE_TIMEV2: |
743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
744 | 0 | case TYPE_DECIMALV2: |
745 | 316 | case TYPE_DECIMAL32: |
746 | 917 | case TYPE_DECIMAL64: |
747 | 2.84k | case TYPE_DECIMAL128I: |
748 | 2.94k | case TYPE_DECIMAL256: |
749 | 2.94k | return execute_decimal(block, result, col_with_type_and_name_left, |
750 | 2.94k | col_with_type_and_name_right); |
751 | 664 | case TYPE_CHAR: |
752 | 6.40k | case TYPE_VARCHAR: |
753 | 11.7k | case TYPE_STRING: |
754 | 11.7k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
755 | 141 | default: |
756 | 141 | return execute_generic(block, result, col_with_type_and_name_left, |
757 | 141 | col_with_type_and_name_right); |
758 | 68.7k | } |
759 | 0 | return Status::OK(); |
760 | 68.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 23.7k | uint32_t result, size_t input_rows_count) const override { | 663 | 23.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 23.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 23.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 23.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 23.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 23.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 23.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 23.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 23.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 23.7k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 23.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 23.7k | }; | 703 | | | 704 | 23.7k | if (can_compare(left_type->get_primitive_type()) && | 705 | 23.7k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 12.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 12.4k | } | 713 | | | 714 | 23.7k | auto compare_type = left_type->get_primitive_type(); | 715 | 23.7k | switch (compare_type) { | 716 | 97 | case TYPE_BOOLEAN: | 717 | 97 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 637 | case TYPE_DATEV2: | 719 | 637 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 409 | case TYPE_DATETIMEV2: | 721 | 409 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 4 | case TYPE_TIMESTAMPTZ: | 723 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 5.02k | case TYPE_TINYINT: | 725 | 5.02k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 379 | case TYPE_SMALLINT: | 727 | 379 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 2.06k | case TYPE_INT: | 729 | 2.06k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 2.89k | case TYPE_BIGINT: | 731 | 2.89k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 97 | case TYPE_LARGEINT: | 733 | 97 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 18 | case TYPE_IPV4: | 735 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 19 | case TYPE_IPV6: | 737 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 82 | case TYPE_FLOAT: | 739 | 82 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 746 | case TYPE_DOUBLE: | 741 | 746 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 4 | case TYPE_TIMEV2: | 743 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 125 | case TYPE_DECIMAL32: | 746 | 269 | case TYPE_DECIMAL64: | 747 | 1.08k | case TYPE_DECIMAL128I: | 748 | 1.11k | case TYPE_DECIMAL256: | 749 | 1.11k | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 1.11k | col_with_type_and_name_right); | 751 | 408 | case TYPE_CHAR: | 752 | 5.55k | case TYPE_VARCHAR: | 753 | 10.1k | case TYPE_STRING: | 754 | 10.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 17 | default: | 756 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 17 | col_with_type_and_name_right); | 758 | 23.7k | } | 759 | 0 | return Status::OK(); | 760 | 23.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 2.87k | uint32_t result, size_t input_rows_count) const override { | 663 | 2.87k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 2.87k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 2.87k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 2.87k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 2.87k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 2.87k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 2.87k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 2.87k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 2.87k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 2.87k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 2.87k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 2.87k | }; | 703 | | | 704 | 2.87k | if (can_compare(left_type->get_primitive_type()) && | 705 | 2.87k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 2.63k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 2.63k | } | 713 | | | 714 | 2.87k | auto compare_type = left_type->get_primitive_type(); | 715 | 2.87k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 70 | case TYPE_DATEV2: | 719 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 0 | case TYPE_DATETIMEV2: | 721 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 0 | case TYPE_TIMESTAMPTZ: | 723 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 84 | case TYPE_TINYINT: | 725 | 84 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 0 | case TYPE_SMALLINT: | 727 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.22k | case TYPE_INT: | 729 | 1.22k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.14k | case TYPE_BIGINT: | 731 | 1.14k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 0 | case TYPE_LARGEINT: | 733 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 0 | case TYPE_IPV4: | 735 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 48 | case TYPE_FLOAT: | 739 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 60 | case TYPE_DOUBLE: | 741 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 0 | case TYPE_DECIMAL32: | 746 | 62 | case TYPE_DECIMAL64: | 747 | 90 | case TYPE_DECIMAL128I: | 748 | 119 | case TYPE_DECIMAL256: | 749 | 119 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 119 | col_with_type_and_name_right); | 751 | 1 | case TYPE_CHAR: | 752 | 27 | case TYPE_VARCHAR: | 753 | 107 | case TYPE_STRING: | 754 | 107 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 8 | default: | 756 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 8 | col_with_type_and_name_right); | 758 | 2.87k | } | 759 | 0 | return Status::OK(); | 760 | 2.87k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 20.7k | uint32_t result, size_t input_rows_count) const override { | 663 | 20.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 20.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 20.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 20.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 20.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 20.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 20.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 20.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 20.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 20.7k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 20.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 20.7k | }; | 703 | | | 704 | 20.7k | if (can_compare(left_type->get_primitive_type()) && | 705 | 20.7k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 19.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 19.8k | } | 713 | | | 714 | 20.7k | auto compare_type = left_type->get_primitive_type(); | 715 | 20.7k | switch (compare_type) { | 716 | 0 | case TYPE_BOOLEAN: | 717 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 1.23k | case TYPE_DATEV2: | 719 | 1.23k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 2 | case TYPE_DATETIMEV2: | 721 | 2 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 3 | case TYPE_TIMESTAMPTZ: | 723 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 1.05k | case TYPE_TINYINT: | 725 | 1.05k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 1.81k | case TYPE_SMALLINT: | 727 | 1.81k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 12.9k | case TYPE_INT: | 729 | 12.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 1.80k | case TYPE_BIGINT: | 731 | 1.80k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 233 | case TYPE_LARGEINT: | 733 | 233 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 4 | case TYPE_IPV4: | 735 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 220 | case TYPE_FLOAT: | 739 | 220 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 526 | case TYPE_DOUBLE: | 741 | 526 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 8 | case TYPE_DECIMAL32: | 746 | 74 | case TYPE_DECIMAL64: | 747 | 693 | case TYPE_DECIMAL128I: | 748 | 695 | case TYPE_DECIMAL256: | 749 | 695 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 695 | col_with_type_and_name_right); | 751 | 14 | case TYPE_CHAR: | 752 | 76 | case TYPE_VARCHAR: | 753 | 172 | case TYPE_STRING: | 754 | 172 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 9 | default: | 756 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 9 | col_with_type_and_name_right); | 758 | 20.7k | } | 759 | 0 | return Status::OK(); | 760 | 20.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 3.40k | uint32_t result, size_t input_rows_count) const override { | 663 | 3.40k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 3.40k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 3.40k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 3.40k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 3.40k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 3.40k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 3.40k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 3.40k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 3.40k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 3.40k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 3.40k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 3.40k | }; | 703 | | | 704 | 3.40k | if (can_compare(left_type->get_primitive_type()) && | 705 | 3.40k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 2.86k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 2.86k | } | 713 | | | 714 | 3.40k | auto compare_type = left_type->get_primitive_type(); | 715 | 3.40k | switch (compare_type) { | 716 | 36 | case TYPE_BOOLEAN: | 717 | 36 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 500 | case TYPE_DATEV2: | 719 | 500 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 145 | case TYPE_DATETIMEV2: | 721 | 145 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 3 | case TYPE_TIMESTAMPTZ: | 723 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 64 | case TYPE_TINYINT: | 725 | 64 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 127 | case TYPE_SMALLINT: | 727 | 127 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.56k | case TYPE_INT: | 729 | 1.56k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 168 | case TYPE_BIGINT: | 731 | 168 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 36 | case TYPE_LARGEINT: | 733 | 36 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 11 | case TYPE_IPV4: | 735 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 1 | case TYPE_IPV6: | 737 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 24 | case TYPE_FLOAT: | 739 | 24 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 160 | case TYPE_DOUBLE: | 741 | 160 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 1 | case TYPE_DECIMAL32: | 746 | 54 | case TYPE_DECIMAL64: | 747 | 122 | case TYPE_DECIMAL128I: | 748 | 143 | case TYPE_DECIMAL256: | 749 | 143 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 143 | col_with_type_and_name_right); | 751 | 26 | case TYPE_CHAR: | 752 | 230 | case TYPE_VARCHAR: | 753 | 391 | case TYPE_STRING: | 754 | 391 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 36 | default: | 756 | 36 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 36 | col_with_type_and_name_right); | 758 | 3.40k | } | 759 | 0 | return Status::OK(); | 760 | 3.40k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 8.79k | uint32_t result, size_t input_rows_count) const override { | 663 | 8.79k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 8.79k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 8.79k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 8.79k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 8.79k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 8.79k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 8.79k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 8.79k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 8.79k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 8.79k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | | block.get_by_position(result).column = | 685 | | DataTypeUInt8() | 686 | | .create_column_const(input_rows_count, | 687 | | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | | ->convert_to_full_column_if_const(); | 689 | | return Status::OK(); | 690 | 0 | } else { | 691 | 0 | block.get_by_position(result).column = | 692 | 0 | DataTypeUInt8() | 693 | 0 | .create_column_const(input_rows_count, | 694 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | 0 | ->convert_to_full_column_if_const(); | 696 | 0 | return Status::OK(); | 697 | 0 | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 8.79k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 8.79k | }; | 703 | | | 704 | 8.79k | if (can_compare(left_type->get_primitive_type()) && | 705 | 8.79k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 7.61k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 7.61k | } | 713 | | | 714 | 8.79k | auto compare_type = left_type->get_primitive_type(); | 715 | 8.79k | switch (compare_type) { | 716 | 101 | case TYPE_BOOLEAN: | 717 | 101 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 2.18k | case TYPE_DATEV2: | 719 | 2.18k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 313 | case TYPE_DATETIMEV2: | 721 | 313 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 4 | case TYPE_TIMESTAMPTZ: | 723 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 2.17k | case TYPE_TINYINT: | 725 | 2.17k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 137 | case TYPE_SMALLINT: | 727 | 137 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 1.13k | case TYPE_INT: | 729 | 1.13k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 788 | case TYPE_BIGINT: | 731 | 788 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 284 | case TYPE_LARGEINT: | 733 | 284 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 18 | case TYPE_IPV4: | 735 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 16 | case TYPE_IPV6: | 737 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 138 | case TYPE_FLOAT: | 739 | 138 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 330 | case TYPE_DOUBLE: | 741 | 330 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 178 | case TYPE_DECIMAL32: | 746 | 379 | case TYPE_DECIMAL64: | 747 | 671 | case TYPE_DECIMAL128I: | 748 | 672 | case TYPE_DECIMAL256: | 749 | 672 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 672 | col_with_type_and_name_right); | 751 | 172 | case TYPE_CHAR: | 752 | 343 | case TYPE_VARCHAR: | 753 | 497 | case TYPE_STRING: | 754 | 497 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 11 | default: | 756 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 11 | col_with_type_and_name_right); | 758 | 8.79k | } | 759 | 0 | return Status::OK(); | 760 | 8.79k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 662 | 9.13k | uint32_t result, size_t input_rows_count) const override { | 663 | 9.13k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 664 | 9.13k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 665 | | | 666 | 9.13k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 667 | 9.13k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 668 | 9.13k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 669 | 9.13k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 670 | | | 671 | 9.13k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 672 | 9.13k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 673 | | | 674 | | /// The case when arguments are the same (tautological comparison). Return constant. | 675 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 676 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 677 | 9.13k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 678 | 9.14k | col_left_untyped == col_right_untyped) { | 679 | | /// Always true: =, <=, >= | 680 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 681 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 682 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 683 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 684 | 0 | block.get_by_position(result).column = | 685 | 0 | DataTypeUInt8() | 686 | 0 | .create_column_const(input_rows_count, | 687 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 688 | 0 | ->convert_to_full_column_if_const(); | 689 | 0 | return Status::OK(); | 690 | | } else { | 691 | | block.get_by_position(result).column = | 692 | | DataTypeUInt8() | 693 | | .create_column_const(input_rows_count, | 694 | | Field::create_field<TYPE_BOOLEAN>(0)) | 695 | | ->convert_to_full_column_if_const(); | 696 | | return Status::OK(); | 697 | | } | 698 | 0 | } | 699 | | | 700 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 701 | 9.13k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 702 | 9.13k | }; | 703 | | | 704 | 9.13k | if (can_compare(left_type->get_primitive_type()) && | 705 | 9.13k | can_compare(right_type->get_primitive_type())) { | 706 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 707 | 8.57k | if (!left_type->equals_ignore_precision(*right_type)) { | 708 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 709 | 0 | get_name(), left_type->get_name(), | 710 | 0 | right_type->get_name()); | 711 | 0 | } | 712 | 8.57k | } | 713 | | | 714 | 9.13k | auto compare_type = left_type->get_primitive_type(); | 715 | 9.13k | switch (compare_type) { | 716 | 48 | case TYPE_BOOLEAN: | 717 | 48 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 718 | 585 | case TYPE_DATEV2: | 719 | 585 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 720 | 69 | case TYPE_DATETIMEV2: | 721 | 69 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 722 | 3 | case TYPE_TIMESTAMPTZ: | 723 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 724 | 85 | case TYPE_TINYINT: | 725 | 85 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 726 | 149 | case TYPE_SMALLINT: | 727 | 149 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 728 | 7.04k | case TYPE_INT: | 729 | 7.04k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 730 | 335 | case TYPE_BIGINT: | 731 | 335 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 732 | 48 | case TYPE_LARGEINT: | 733 | 48 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 734 | 10 | case TYPE_IPV4: | 735 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 736 | 0 | case TYPE_IPV6: | 737 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 738 | 20 | case TYPE_FLOAT: | 739 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 740 | 127 | case TYPE_DOUBLE: | 741 | 127 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 742 | 0 | case TYPE_TIMEV2: | 743 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 744 | 0 | case TYPE_DECIMALV2: | 745 | 4 | case TYPE_DECIMAL32: | 746 | 79 | case TYPE_DECIMAL64: | 747 | 187 | case TYPE_DECIMAL128I: | 748 | 203 | case TYPE_DECIMAL256: | 749 | 203 | return execute_decimal(block, result, col_with_type_and_name_left, | 750 | 203 | col_with_type_and_name_right); | 751 | 43 | case TYPE_CHAR: | 752 | 175 | case TYPE_VARCHAR: | 753 | 355 | case TYPE_STRING: | 754 | 355 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 755 | 60 | default: | 756 | 60 | return execute_generic(block, result, col_with_type_and_name_left, | 757 | 60 | col_with_type_and_name_right); | 758 | 9.13k | } | 759 | 0 | return Status::OK(); | 760 | 9.13k | } |
|
761 | | }; |
762 | | |
763 | | } // namespace doris |