be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | |
52 | | namespace doris { |
53 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
54 | | * The comparison functions always return 0 or 1 (UInt8). |
55 | | * |
56 | | * You can compare the following types: |
57 | | * - numbers and decimals; |
58 | | * - strings and fixed strings; |
59 | | * - dates; |
60 | | * - datetimes; |
61 | | * within each group, but not from different groups; |
62 | | * - tuples (lexicographic comparison). |
63 | | * |
64 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
65 | | */ |
66 | | |
67 | | template <typename A, typename B, typename Op> |
68 | | struct NumComparisonImpl { |
69 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
70 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
71 | 10.9k | PaddedPODArray<UInt8>& c) { |
72 | 10.9k | size_t size = a.size(); |
73 | 10.9k | const A* __restrict a_pos = a.data(); |
74 | 10.9k | const B* __restrict b_pos = b.data(); |
75 | 10.9k | UInt8* __restrict c_pos = c.data(); |
76 | 10.9k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 6.68M | while (a_pos < a_end) { |
79 | 6.67M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 6.67M | ++a_pos; |
81 | 6.67M | ++b_pos; |
82 | 6.67M | ++c_pos; |
83 | 6.67M | } |
84 | 10.9k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ 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 | 128 | while (a_pos < a_end) { | 79 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 64 | ++a_pos; | 81 | 64 | ++b_pos; | 82 | 64 | ++c_pos; | 83 | 64 | } | 84 | 64 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 705 | PaddedPODArray<UInt8>& c) { | 72 | 705 | size_t size = a.size(); | 73 | 705 | const A* __restrict a_pos = a.data(); | 74 | 705 | const B* __restrict b_pos = b.data(); | 75 | 705 | UInt8* __restrict c_pos = c.data(); | 76 | 705 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.26k | while (a_pos < a_end) { | 79 | 1.56k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.56k | ++a_pos; | 81 | 1.56k | ++b_pos; | 82 | 1.56k | ++c_pos; | 83 | 1.56k | } | 84 | 705 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 356 | PaddedPODArray<UInt8>& c) { | 72 | 356 | size_t size = a.size(); | 73 | 356 | const A* __restrict a_pos = a.data(); | 74 | 356 | const B* __restrict b_pos = b.data(); | 75 | 356 | UInt8* __restrict c_pos = c.data(); | 76 | 356 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 730 | while (a_pos < a_end) { | 79 | 374 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 374 | ++a_pos; | 81 | 374 | ++b_pos; | 82 | 374 | ++c_pos; | 83 | 374 | } | 84 | 356 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 13 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 426 | 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 | 142 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 74 | PaddedPODArray<UInt8>& c) { | 72 | 74 | size_t size = a.size(); | 73 | 74 | const A* __restrict a_pos = a.data(); | 74 | 74 | const B* __restrict b_pos = b.data(); | 75 | 74 | UInt8* __restrict c_pos = c.data(); | 76 | 74 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 148 | while (a_pos < a_end) { | 79 | 74 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 74 | ++a_pos; | 81 | 74 | ++b_pos; | 82 | 74 | ++c_pos; | 83 | 74 | } | 84 | 74 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.03k | PaddedPODArray<UInt8>& c) { | 72 | 1.03k | size_t size = a.size(); | 73 | 1.03k | const A* __restrict a_pos = a.data(); | 74 | 1.03k | const B* __restrict b_pos = b.data(); | 75 | 1.03k | UInt8* __restrict c_pos = c.data(); | 76 | 1.03k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.42k | while (a_pos < a_end) { | 79 | 2.39k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.39k | ++a_pos; | 81 | 2.39k | ++b_pos; | 82 | 2.39k | ++c_pos; | 83 | 2.39k | } | 84 | 1.03k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 262 | PaddedPODArray<UInt8>& c) { | 72 | 262 | size_t size = a.size(); | 73 | 262 | const A* __restrict a_pos = a.data(); | 74 | 262 | const B* __restrict b_pos = b.data(); | 75 | 262 | UInt8* __restrict c_pos = c.data(); | 76 | 262 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.79k | while (a_pos < a_end) { | 79 | 1.53k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.53k | ++a_pos; | 81 | 1.53k | ++b_pos; | 82 | 1.53k | ++c_pos; | 83 | 1.53k | } | 84 | 262 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 74 | PaddedPODArray<UInt8>& c) { | 72 | 74 | size_t size = a.size(); | 73 | 74 | const A* __restrict a_pos = a.data(); | 74 | 74 | const B* __restrict b_pos = b.data(); | 75 | 74 | UInt8* __restrict c_pos = c.data(); | 76 | 74 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 148 | while (a_pos < a_end) { | 79 | 74 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 74 | ++a_pos; | 81 | 74 | ++b_pos; | 82 | 74 | ++c_pos; | 83 | 74 | } | 84 | 74 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 5 | PaddedPODArray<UInt8>& c) { | 72 | 5 | size_t size = a.size(); | 73 | 5 | const A* __restrict a_pos = a.data(); | 74 | 5 | const B* __restrict b_pos = b.data(); | 75 | 5 | UInt8* __restrict c_pos = c.data(); | 76 | 5 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 10 | while (a_pos < a_end) { | 79 | 5 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5 | ++a_pos; | 81 | 5 | ++b_pos; | 82 | 5 | ++c_pos; | 83 | 5 | } | 84 | 5 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 13 | PaddedPODArray<UInt8>& c) { | 72 | 13 | size_t size = a.size(); | 73 | 13 | const A* __restrict a_pos = a.data(); | 74 | 13 | const B* __restrict b_pos = b.data(); | 75 | 13 | UInt8* __restrict c_pos = c.data(); | 76 | 13 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 26 | while (a_pos < a_end) { | 79 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 13 | ++a_pos; | 81 | 13 | ++b_pos; | 82 | 13 | ++c_pos; | 83 | 13 | } | 84 | 13 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 96 | PaddedPODArray<UInt8>& c) { | 72 | 96 | size_t size = a.size(); | 73 | 96 | const A* __restrict a_pos = a.data(); | 74 | 96 | const B* __restrict b_pos = b.data(); | 75 | 96 | UInt8* __restrict c_pos = c.data(); | 76 | 96 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 211 | while (a_pos < a_end) { | 79 | 115 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 115 | ++a_pos; | 81 | 115 | ++b_pos; | 82 | 115 | ++c_pos; | 83 | 115 | } | 84 | 96 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 92 | PaddedPODArray<UInt8>& c) { | 72 | 92 | size_t size = a.size(); | 73 | 92 | const A* __restrict a_pos = a.data(); | 74 | 92 | const B* __restrict b_pos = b.data(); | 75 | 92 | UInt8* __restrict c_pos = c.data(); | 76 | 92 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 205 | while (a_pos < a_end) { | 79 | 113 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 113 | ++a_pos; | 81 | 113 | ++b_pos; | 82 | 113 | ++c_pos; | 83 | 113 | } | 84 | 92 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 47 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.24k | PaddedPODArray<UInt8>& c) { | 72 | 1.24k | size_t size = a.size(); | 73 | 1.24k | const A* __restrict a_pos = a.data(); | 74 | 1.24k | const B* __restrict b_pos = b.data(); | 75 | 1.24k | UInt8* __restrict c_pos = c.data(); | 76 | 1.24k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 399k | while (a_pos < a_end) { | 79 | 397k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 397k | ++a_pos; | 81 | 397k | ++b_pos; | 82 | 397k | ++c_pos; | 83 | 397k | } | 84 | 1.24k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 397 | PaddedPODArray<UInt8>& c) { | 72 | 397 | size_t size = a.size(); | 73 | 397 | const A* __restrict a_pos = a.data(); | 74 | 397 | const B* __restrict b_pos = b.data(); | 75 | 397 | UInt8* __restrict c_pos = c.data(); | 76 | 397 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 7.37k | while (a_pos < a_end) { | 79 | 6.97k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.97k | ++a_pos; | 81 | 6.97k | ++b_pos; | 82 | 6.97k | ++c_pos; | 83 | 6.97k | } | 84 | 397 | } |
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.18k | PaddedPODArray<UInt8>& c) { | 72 | 1.18k | size_t size = a.size(); | 73 | 1.18k | const A* __restrict a_pos = a.data(); | 74 | 1.18k | const B* __restrict b_pos = b.data(); | 75 | 1.18k | UInt8* __restrict c_pos = c.data(); | 76 | 1.18k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.02M | while (a_pos < a_end) { | 79 | 5.02M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.02M | ++a_pos; | 81 | 5.02M | ++b_pos; | 82 | 5.02M | ++c_pos; | 83 | 5.02M | } | 84 | 1.18k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 38 | PaddedPODArray<UInt8>& c) { | 72 | 38 | size_t size = a.size(); | 73 | 38 | const A* __restrict a_pos = a.data(); | 74 | 38 | const B* __restrict b_pos = b.data(); | 75 | 38 | UInt8* __restrict c_pos = c.data(); | 76 | 38 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 322 | while (a_pos < a_end) { | 79 | 284 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 284 | ++a_pos; | 81 | 284 | ++b_pos; | 82 | 284 | ++c_pos; | 83 | 284 | } | 84 | 38 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 112 | PaddedPODArray<UInt8>& c) { | 72 | 112 | size_t size = a.size(); | 73 | 112 | const A* __restrict a_pos = a.data(); | 74 | 112 | const B* __restrict b_pos = b.data(); | 75 | 112 | UInt8* __restrict c_pos = c.data(); | 76 | 112 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 376 | while (a_pos < a_end) { | 79 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 264 | ++a_pos; | 81 | 264 | ++b_pos; | 82 | 264 | ++c_pos; | 83 | 264 | } | 84 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 331 | while (a_pos < a_end) { | 79 | 252 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 252 | ++a_pos; | 81 | 252 | ++b_pos; | 82 | 252 | ++c_pos; | 83 | 252 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 63 | PaddedPODArray<UInt8>& c) { | 72 | 63 | size_t size = a.size(); | 73 | 63 | const A* __restrict a_pos = a.data(); | 74 | 63 | const B* __restrict b_pos = b.data(); | 75 | 63 | UInt8* __restrict c_pos = c.data(); | 76 | 63 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 569 | while (a_pos < a_end) { | 79 | 506 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 506 | ++a_pos; | 81 | 506 | ++b_pos; | 82 | 506 | ++c_pos; | 83 | 506 | } | 84 | 63 | } |
_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 | 27 | PaddedPODArray<UInt8>& c) { | 72 | 27 | size_t size = a.size(); | 73 | 27 | const A* __restrict a_pos = a.data(); | 74 | 27 | const B* __restrict b_pos = b.data(); | 75 | 27 | UInt8* __restrict c_pos = c.data(); | 76 | 27 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 97 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 27 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 61 | PaddedPODArray<UInt8>& c) { | 72 | 61 | size_t size = a.size(); | 73 | 61 | const A* __restrict a_pos = a.data(); | 74 | 61 | const B* __restrict b_pos = b.data(); | 75 | 61 | UInt8* __restrict c_pos = c.data(); | 76 | 61 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 122 | while (a_pos < a_end) { | 79 | 61 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 61 | ++a_pos; | 81 | 61 | ++b_pos; | 82 | 61 | ++c_pos; | 83 | 61 | } | 84 | 61 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 98 | PaddedPODArray<UInt8>& c) { | 72 | 98 | size_t size = a.size(); | 73 | 98 | const A* __restrict a_pos = a.data(); | 74 | 98 | const B* __restrict b_pos = b.data(); | 75 | 98 | UInt8* __restrict c_pos = c.data(); | 76 | 98 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 247 | while (a_pos < a_end) { | 79 | 149 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 149 | ++a_pos; | 81 | 149 | ++b_pos; | 82 | 149 | ++c_pos; | 83 | 149 | } | 84 | 98 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 79 | PaddedPODArray<UInt8>& c) { | 72 | 79 | size_t size = a.size(); | 73 | 79 | const A* __restrict a_pos = a.data(); | 74 | 79 | const B* __restrict b_pos = b.data(); | 75 | 79 | UInt8* __restrict c_pos = c.data(); | 76 | 79 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 159 | while (a_pos < a_end) { | 79 | 80 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 80 | ++a_pos; | 81 | 80 | ++b_pos; | 82 | 80 | ++c_pos; | 83 | 80 | } | 84 | 79 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 61 | PaddedPODArray<UInt8>& c) { | 72 | 61 | size_t size = a.size(); | 73 | 61 | const A* __restrict a_pos = a.data(); | 74 | 61 | const B* __restrict b_pos = b.data(); | 75 | 61 | UInt8* __restrict c_pos = c.data(); | 76 | 61 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 168 | while (a_pos < a_end) { | 79 | 107 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 107 | ++a_pos; | 81 | 107 | ++b_pos; | 82 | 107 | ++c_pos; | 83 | 107 | } | 84 | 61 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_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 | 20 | 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 | 10 | } |
_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 | 100 | PaddedPODArray<UInt8>& c) { | 72 | 100 | size_t size = a.size(); | 73 | 100 | const A* __restrict a_pos = a.data(); | 74 | 100 | const B* __restrict b_pos = b.data(); | 75 | 100 | UInt8* __restrict c_pos = c.data(); | 76 | 100 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 219 | while (a_pos < a_end) { | 79 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 119 | ++a_pos; | 81 | 119 | ++b_pos; | 82 | 119 | ++c_pos; | 83 | 119 | } | 84 | 100 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 67 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 24 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 93 | PaddedPODArray<UInt8>& c) { | 72 | 93 | size_t size = a.size(); | 73 | 93 | const A* __restrict a_pos = a.data(); | 74 | 93 | const B* __restrict b_pos = b.data(); | 75 | 93 | UInt8* __restrict c_pos = c.data(); | 76 | 93 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 360 | while (a_pos < a_end) { | 79 | 267 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 267 | ++a_pos; | 81 | 267 | ++b_pos; | 82 | 267 | ++c_pos; | 83 | 267 | } | 84 | 93 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.76k | PaddedPODArray<UInt8>& c) { | 72 | 1.76k | size_t size = a.size(); | 73 | 1.76k | const A* __restrict a_pos = a.data(); | 74 | 1.76k | const B* __restrict b_pos = b.data(); | 75 | 1.76k | UInt8* __restrict c_pos = c.data(); | 76 | 1.76k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.22M | while (a_pos < a_end) { | 79 | 1.22M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.22M | ++a_pos; | 81 | 1.22M | ++b_pos; | 82 | 1.22M | ++c_pos; | 83 | 1.22M | } | 84 | 1.76k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 283 | PaddedPODArray<UInt8>& c) { | 72 | 283 | size_t size = a.size(); | 73 | 283 | const A* __restrict a_pos = a.data(); | 74 | 283 | const B* __restrict b_pos = b.data(); | 75 | 283 | UInt8* __restrict c_pos = c.data(); | 76 | 283 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 914 | while (a_pos < a_end) { | 79 | 631 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 631 | ++a_pos; | 81 | 631 | ++b_pos; | 82 | 631 | ++c_pos; | 83 | 631 | } | 84 | 283 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 157 | PaddedPODArray<UInt8>& c) { | 72 | 157 | size_t size = a.size(); | 73 | 157 | const A* __restrict a_pos = a.data(); | 74 | 157 | const B* __restrict b_pos = b.data(); | 75 | 157 | UInt8* __restrict c_pos = c.data(); | 76 | 157 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 488 | 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 | 157 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 142 | PaddedPODArray<UInt8>& c) { | 72 | 142 | size_t size = a.size(); | 73 | 142 | const A* __restrict a_pos = a.data(); | 74 | 142 | const B* __restrict b_pos = b.data(); | 75 | 142 | UInt8* __restrict c_pos = c.data(); | 76 | 142 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 460 | while (a_pos < a_end) { | 79 | 318 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 318 | ++a_pos; | 81 | 318 | ++b_pos; | 82 | 318 | ++c_pos; | 83 | 318 | } | 84 | 142 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 179 | PaddedPODArray<UInt8>& c) { | 72 | 179 | size_t size = a.size(); | 73 | 179 | const A* __restrict a_pos = a.data(); | 74 | 179 | const B* __restrict b_pos = b.data(); | 75 | 179 | UInt8* __restrict c_pos = c.data(); | 76 | 179 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.03k | while (a_pos < a_end) { | 79 | 856 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 856 | ++a_pos; | 81 | 856 | ++b_pos; | 82 | 856 | ++c_pos; | 83 | 856 | } | 84 | 179 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 220 | PaddedPODArray<UInt8>& c) { | 72 | 220 | size_t size = a.size(); | 73 | 220 | const A* __restrict a_pos = a.data(); | 74 | 220 | const B* __restrict b_pos = b.data(); | 75 | 220 | UInt8* __restrict c_pos = c.data(); | 76 | 220 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.43k | while (a_pos < a_end) { | 79 | 5.21k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.21k | ++a_pos; | 81 | 5.21k | ++b_pos; | 82 | 5.21k | ++c_pos; | 83 | 5.21k | } | 84 | 220 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 162 | PaddedPODArray<UInt8>& c) { | 72 | 162 | size_t size = a.size(); | 73 | 162 | const A* __restrict a_pos = a.data(); | 74 | 162 | const B* __restrict b_pos = b.data(); | 75 | 162 | UInt8* __restrict c_pos = c.data(); | 76 | 162 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 498 | while (a_pos < a_end) { | 79 | 336 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 336 | ++a_pos; | 81 | 336 | ++b_pos; | 82 | 336 | ++c_pos; | 83 | 336 | } | 84 | 162 | } |
_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 | 157 | PaddedPODArray<UInt8>& c) { | 72 | 157 | size_t size = a.size(); | 73 | 157 | const A* __restrict a_pos = a.data(); | 74 | 157 | const B* __restrict b_pos = b.data(); | 75 | 157 | UInt8* __restrict c_pos = c.data(); | 76 | 157 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 507 | while (a_pos < a_end) { | 79 | 350 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 350 | ++a_pos; | 81 | 350 | ++b_pos; | 82 | 350 | ++c_pos; | 83 | 350 | } | 84 | 157 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 154 | PaddedPODArray<UInt8>& c) { | 72 | 154 | size_t size = a.size(); | 73 | 154 | const A* __restrict a_pos = a.data(); | 74 | 154 | const B* __restrict b_pos = b.data(); | 75 | 154 | UInt8* __restrict c_pos = c.data(); | 76 | 154 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 510 | while (a_pos < a_end) { | 79 | 356 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 356 | ++a_pos; | 81 | 356 | ++b_pos; | 82 | 356 | ++c_pos; | 83 | 356 | } | 84 | 154 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 479 | PaddedPODArray<UInt8>& c) { | 72 | 479 | size_t size = a.size(); | 73 | 479 | const A* __restrict a_pos = a.data(); | 74 | 479 | const B* __restrict b_pos = b.data(); | 75 | 479 | UInt8* __restrict c_pos = c.data(); | 76 | 479 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.91k | while (a_pos < a_end) { | 79 | 6.43k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.43k | ++a_pos; | 81 | 6.43k | ++b_pos; | 82 | 6.43k | ++c_pos; | 83 | 6.43k | } | 84 | 479 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 90 | PaddedPODArray<UInt8>& c) { | 72 | 90 | size_t size = a.size(); | 73 | 90 | const A* __restrict a_pos = a.data(); | 74 | 90 | const B* __restrict b_pos = b.data(); | 75 | 90 | UInt8* __restrict c_pos = c.data(); | 76 | 90 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 180 | while (a_pos < a_end) { | 79 | 90 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 90 | ++a_pos; | 81 | 90 | ++b_pos; | 82 | 90 | ++c_pos; | 83 | 90 | } | 84 | 90 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 11 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 83 | PaddedPODArray<UInt8>& c) { | 72 | 83 | size_t size = a.size(); | 73 | 83 | const A* __restrict a_pos = a.data(); | 74 | 83 | const B* __restrict b_pos = b.data(); | 75 | 83 | UInt8* __restrict c_pos = c.data(); | 76 | 83 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 225 | while (a_pos < a_end) { | 79 | 142 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 142 | ++a_pos; | 81 | 142 | ++b_pos; | 82 | 142 | ++c_pos; | 83 | 142 | } | 84 | 83 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 173 | while (a_pos < a_end) { | 79 | 90 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 90 | ++a_pos; | 81 | 90 | ++b_pos; | 82 | 90 | ++c_pos; | 83 | 90 | } | 84 | 83 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_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 | 20 | 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 | 10 | } |
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 | 100 | PaddedPODArray<UInt8>& c) { | 72 | 100 | size_t size = a.size(); | 73 | 100 | const A* __restrict a_pos = a.data(); | 74 | 100 | const B* __restrict b_pos = b.data(); | 75 | 100 | UInt8* __restrict c_pos = c.data(); | 76 | 100 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 219 | while (a_pos < a_end) { | 79 | 119 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 119 | ++a_pos; | 81 | 119 | ++b_pos; | 82 | 119 | ++c_pos; | 83 | 119 | } | 84 | 100 | } |
_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 | 183k | PaddedPODArray<UInt8>& c) { |
88 | 183k | size_t size = a.size(); |
89 | 183k | const A* __restrict a_pos = a.data(); |
90 | 183k | UInt8* __restrict c_pos = c.data(); |
91 | 183k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 154M | while (a_pos < a_end) { |
94 | 154M | *c_pos = Op::apply(*a_pos, b); |
95 | 154M | ++a_pos; |
96 | 154M | ++c_pos; |
97 | 154M | } |
98 | 183k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.56k | PaddedPODArray<UInt8>& c) { | 88 | 1.56k | size_t size = a.size(); | 89 | 1.56k | const A* __restrict a_pos = a.data(); | 90 | 1.56k | UInt8* __restrict c_pos = c.data(); | 91 | 1.56k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.09k | while (a_pos < a_end) { | 94 | 3.53k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.53k | ++a_pos; | 96 | 3.53k | ++c_pos; | 97 | 3.53k | } | 98 | 1.56k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 206k | while (a_pos < a_end) { | 94 | 205k | *c_pos = Op::apply(*a_pos, b); | 95 | 205k | ++a_pos; | 96 | 205k | ++c_pos; | 97 | 205k | } | 98 | 1.01k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 314 | PaddedPODArray<UInt8>& c) { | 88 | 314 | size_t size = a.size(); | 89 | 314 | const A* __restrict a_pos = a.data(); | 90 | 314 | UInt8* __restrict c_pos = c.data(); | 91 | 314 | 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 | 314 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.84k | PaddedPODArray<UInt8>& c) { | 88 | 6.84k | size_t size = a.size(); | 89 | 6.84k | const A* __restrict a_pos = a.data(); | 90 | 6.84k | UInt8* __restrict c_pos = c.data(); | 91 | 6.84k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.29M | while (a_pos < a_end) { | 94 | 9.28M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.28M | ++a_pos; | 96 | 9.28M | ++c_pos; | 97 | 9.28M | } | 98 | 6.84k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.53k | PaddedPODArray<UInt8>& c) { | 88 | 1.53k | size_t size = a.size(); | 89 | 1.53k | const A* __restrict a_pos = a.data(); | 90 | 1.53k | UInt8* __restrict c_pos = c.data(); | 91 | 1.53k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 158k | *c_pos = Op::apply(*a_pos, b); | 95 | 158k | ++a_pos; | 96 | 158k | ++c_pos; | 97 | 158k | } | 98 | 1.53k | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 11.7k | PaddedPODArray<UInt8>& c) { | 88 | 11.7k | size_t size = a.size(); | 89 | 11.7k | const A* __restrict a_pos = a.data(); | 90 | 11.7k | UInt8* __restrict c_pos = c.data(); | 91 | 11.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.71M | while (a_pos < a_end) { | 94 | 1.70M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.70M | ++a_pos; | 96 | 1.70M | ++c_pos; | 97 | 1.70M | } | 98 | 11.7k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 28.8k | PaddedPODArray<UInt8>& c) { | 88 | 28.8k | size_t size = a.size(); | 89 | 28.8k | const A* __restrict a_pos = a.data(); | 90 | 28.8k | UInt8* __restrict c_pos = c.data(); | 91 | 28.8k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.70M | while (a_pos < a_end) { | 94 | 3.67M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.67M | ++a_pos; | 96 | 3.67M | ++c_pos; | 97 | 3.67M | } | 98 | 28.8k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 79 | PaddedPODArray<UInt8>& c) { | 88 | 79 | size_t size = a.size(); | 89 | 79 | const A* __restrict a_pos = a.data(); | 90 | 79 | UInt8* __restrict c_pos = c.data(); | 91 | 79 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 101k | *c_pos = Op::apply(*a_pos, b); | 95 | 101k | ++a_pos; | 96 | 101k | ++c_pos; | 97 | 101k | } | 98 | 79 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13 | PaddedPODArray<UInt8>& c) { | 88 | 13 | size_t size = a.size(); | 89 | 13 | const A* __restrict a_pos = a.data(); | 90 | 13 | UInt8* __restrict c_pos = c.data(); | 91 | 13 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 127 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 26 | while (a_pos < a_end) { | 94 | 22 | *c_pos = Op::apply(*a_pos, b); | 95 | 22 | ++a_pos; | 96 | 22 | ++c_pos; | 97 | 22 | } | 98 | 4 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 726 | PaddedPODArray<UInt8>& c) { | 88 | 726 | size_t size = a.size(); | 89 | 726 | const A* __restrict a_pos = a.data(); | 90 | 726 | UInt8* __restrict c_pos = c.data(); | 91 | 726 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 714k | 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 | 726 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 4 | *c_pos = Op::apply(*a_pos, b); | 95 | 4 | ++a_pos; | 96 | 4 | ++c_pos; | 97 | 4 | } | 98 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.04k | while (a_pos < a_end) { | 94 | 1.00k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.00k | ++a_pos; | 96 | 1.00k | ++c_pos; | 97 | 1.00k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 802 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.69k | PaddedPODArray<UInt8>& c) { | 88 | 1.69k | size_t size = a.size(); | 89 | 1.69k | const A* __restrict a_pos = a.data(); | 90 | 1.69k | UInt8* __restrict c_pos = c.data(); | 91 | 1.69k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 646k | while (a_pos < a_end) { | 94 | 644k | *c_pos = Op::apply(*a_pos, b); | 95 | 644k | ++a_pos; | 96 | 644k | ++c_pos; | 97 | 644k | } | 98 | 1.69k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.58k | PaddedPODArray<UInt8>& c) { | 88 | 2.58k | size_t size = a.size(); | 89 | 2.58k | const A* __restrict a_pos = a.data(); | 90 | 2.58k | UInt8* __restrict c_pos = c.data(); | 91 | 2.58k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 272k | while (a_pos < a_end) { | 94 | 270k | *c_pos = Op::apply(*a_pos, b); | 95 | 270k | ++a_pos; | 96 | 270k | ++c_pos; | 97 | 270k | } | 98 | 2.58k | } |
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 | 163 | PaddedPODArray<UInt8>& c) { | 88 | 163 | size_t size = a.size(); | 89 | 163 | const A* __restrict a_pos = a.data(); | 90 | 163 | UInt8* __restrict c_pos = c.data(); | 91 | 163 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.81k | while (a_pos < a_end) { | 94 | 4.65k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.65k | ++a_pos; | 96 | 4.65k | ++c_pos; | 97 | 4.65k | } | 98 | 163 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 462 | PaddedPODArray<UInt8>& c) { | 88 | 462 | size_t size = a.size(); | 89 | 462 | const A* __restrict a_pos = a.data(); | 90 | 462 | UInt8* __restrict c_pos = c.data(); | 91 | 462 | 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 | 462 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 122 | PaddedPODArray<UInt8>& c) { | 88 | 122 | size_t size = a.size(); | 89 | 122 | const A* __restrict a_pos = a.data(); | 90 | 122 | UInt8* __restrict c_pos = c.data(); | 91 | 122 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 286 | while (a_pos < a_end) { | 94 | 164 | *c_pos = Op::apply(*a_pos, b); | 95 | 164 | ++a_pos; | 96 | 164 | ++c_pos; | 97 | 164 | } | 98 | 122 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 399 | PaddedPODArray<UInt8>& c) { | 88 | 399 | size_t size = a.size(); | 89 | 399 | const A* __restrict a_pos = a.data(); | 90 | 399 | UInt8* __restrict c_pos = c.data(); | 91 | 399 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 399 | } |
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.32k | PaddedPODArray<UInt8>& c) { | 88 | 1.32k | size_t size = a.size(); | 89 | 1.32k | const A* __restrict a_pos = a.data(); | 90 | 1.32k | UInt8* __restrict c_pos = c.data(); | 91 | 1.32k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.16k | while (a_pos < a_end) { | 94 | 5.84k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.84k | ++a_pos; | 96 | 5.84k | ++c_pos; | 97 | 5.84k | } | 98 | 1.32k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.01k | PaddedPODArray<UInt8>& c) { | 88 | 2.01k | size_t size = a.size(); | 89 | 2.01k | const A* __restrict a_pos = a.data(); | 90 | 2.01k | UInt8* __restrict c_pos = c.data(); | 91 | 2.01k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.75k | while (a_pos < a_end) { | 94 | 5.74k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.74k | ++a_pos; | 96 | 5.74k | ++c_pos; | 97 | 5.74k | } | 98 | 2.01k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.46k | while (a_pos < a_end) { | 94 | 5.00k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.00k | ++a_pos; | 96 | 5.00k | ++c_pos; | 97 | 5.00k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 490 | PaddedPODArray<UInt8>& c) { | 88 | 490 | size_t size = a.size(); | 89 | 490 | const A* __restrict a_pos = a.data(); | 90 | 490 | UInt8* __restrict c_pos = c.data(); | 91 | 490 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.8k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 490 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 20.0k | PaddedPODArray<UInt8>& c) { | 88 | 20.0k | size_t size = a.size(); | 89 | 20.0k | const A* __restrict a_pos = a.data(); | 90 | 20.0k | UInt8* __restrict c_pos = c.data(); | 91 | 20.0k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.65M | while (a_pos < a_end) { | 94 | 6.63M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.63M | ++a_pos; | 96 | 6.63M | ++c_pos; | 97 | 6.63M | } | 98 | 20.0k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.33k | PaddedPODArray<UInt8>& c) { | 88 | 6.33k | size_t size = a.size(); | 89 | 6.33k | const A* __restrict a_pos = a.data(); | 90 | 6.33k | UInt8* __restrict c_pos = c.data(); | 91 | 6.33k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.37M | while (a_pos < a_end) { | 94 | 5.36M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.36M | ++a_pos; | 96 | 5.36M | ++c_pos; | 97 | 5.36M | } | 98 | 6.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.3k | PaddedPODArray<UInt8>& c) { | 88 | 13.3k | size_t size = a.size(); | 89 | 13.3k | const A* __restrict a_pos = a.data(); | 90 | 13.3k | UInt8* __restrict c_pos = c.data(); | 91 | 13.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 173k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 13.3k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.93k | PaddedPODArray<UInt8>& c) { | 88 | 1.93k | size_t size = a.size(); | 89 | 1.93k | const A* __restrict a_pos = a.data(); | 90 | 1.93k | UInt8* __restrict c_pos = c.data(); | 91 | 1.93k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.1k | while (a_pos < a_end) { | 94 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 12.2k | ++a_pos; | 96 | 12.2k | ++c_pos; | 97 | 12.2k | } | 98 | 1.93k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 293 | PaddedPODArray<UInt8>& c) { | 88 | 293 | size_t size = a.size(); | 89 | 293 | const A* __restrict a_pos = a.data(); | 90 | 293 | UInt8* __restrict c_pos = c.data(); | 91 | 293 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.93k | while (a_pos < a_end) { | 94 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.63k | ++a_pos; | 96 | 1.63k | ++c_pos; | 97 | 1.63k | } | 98 | 293 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 92 | PaddedPODArray<UInt8>& c) { | 88 | 92 | size_t size = a.size(); | 89 | 92 | const A* __restrict a_pos = a.data(); | 90 | 92 | UInt8* __restrict c_pos = c.data(); | 91 | 92 | 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 | 92 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 216 | PaddedPODArray<UInt8>& c) { | 88 | 216 | size_t size = a.size(); | 89 | 216 | const A* __restrict a_pos = a.data(); | 90 | 216 | UInt8* __restrict c_pos = c.data(); | 91 | 216 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.57k | while (a_pos < a_end) { | 94 | 3.36k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.36k | ++a_pos; | 96 | 3.36k | ++c_pos; | 97 | 3.36k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 32 | PaddedPODArray<UInt8>& c) { | 88 | 32 | size_t size = a.size(); | 89 | 32 | const A* __restrict a_pos = a.data(); | 90 | 32 | UInt8* __restrict c_pos = c.data(); | 91 | 32 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 76 | while (a_pos < a_end) { | 94 | 44 | *c_pos = Op::apply(*a_pos, b); | 95 | 44 | ++a_pos; | 96 | 44 | ++c_pos; | 97 | 44 | } | 98 | 32 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.36k | PaddedPODArray<UInt8>& c) { | 88 | 2.36k | size_t size = a.size(); | 89 | 2.36k | const A* __restrict a_pos = a.data(); | 90 | 2.36k | UInt8* __restrict c_pos = c.data(); | 91 | 2.36k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 346k | while (a_pos < a_end) { | 94 | 343k | *c_pos = Op::apply(*a_pos, b); | 95 | 343k | ++a_pos; | 96 | 343k | ++c_pos; | 97 | 343k | } | 98 | 2.36k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 234 | PaddedPODArray<UInt8>& c) { | 88 | 234 | size_t size = a.size(); | 89 | 234 | const A* __restrict a_pos = a.data(); | 90 | 234 | UInt8* __restrict c_pos = c.data(); | 91 | 234 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 316k | while (a_pos < a_end) { | 94 | 315k | *c_pos = Op::apply(*a_pos, b); | 95 | 315k | ++a_pos; | 96 | 315k | ++c_pos; | 97 | 315k | } | 98 | 234 | } |
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 | 99 | PaddedPODArray<UInt8>& c) { | 88 | 99 | size_t size = a.size(); | 89 | 99 | const A* __restrict a_pos = a.data(); | 90 | 99 | UInt8* __restrict c_pos = c.data(); | 91 | 99 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 114k | while (a_pos < a_end) { | 94 | 114k | *c_pos = Op::apply(*a_pos, b); | 95 | 114k | ++a_pos; | 96 | 114k | ++c_pos; | 97 | 114k | } | 98 | 99 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 105 | PaddedPODArray<UInt8>& c) { | 88 | 105 | size_t size = a.size(); | 89 | 105 | const A* __restrict a_pos = a.data(); | 90 | 105 | UInt8* __restrict c_pos = c.data(); | 91 | 105 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 115k | while (a_pos < a_end) { | 94 | 115k | *c_pos = Op::apply(*a_pos, b); | 95 | 115k | ++a_pos; | 96 | 115k | ++c_pos; | 97 | 115k | } | 98 | 105 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.17k | PaddedPODArray<UInt8>& c) { | 88 | 2.17k | size_t size = a.size(); | 89 | 2.17k | const A* __restrict a_pos = a.data(); | 90 | 2.17k | UInt8* __restrict c_pos = c.data(); | 91 | 2.17k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.67M | while (a_pos < a_end) { | 94 | 4.66M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.66M | ++a_pos; | 96 | 4.66M | ++c_pos; | 97 | 4.66M | } | 98 | 2.17k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 28.3k | PaddedPODArray<UInt8>& c) { | 88 | 28.3k | size_t size = a.size(); | 89 | 28.3k | const A* __restrict a_pos = a.data(); | 90 | 28.3k | UInt8* __restrict c_pos = c.data(); | 91 | 28.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 75.4M | while (a_pos < a_end) { | 94 | 75.4M | *c_pos = Op::apply(*a_pos, b); | 95 | 75.4M | ++a_pos; | 96 | 75.4M | ++c_pos; | 97 | 75.4M | } | 98 | 28.3k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 699 | PaddedPODArray<UInt8>& c) { | 88 | 699 | size_t size = a.size(); | 89 | 699 | const A* __restrict a_pos = a.data(); | 90 | 699 | UInt8* __restrict c_pos = c.data(); | 91 | 699 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8k | while (a_pos < a_end) { | 94 | 30.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.1k | ++a_pos; | 96 | 30.1k | ++c_pos; | 97 | 30.1k | } | 98 | 699 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 348 | PaddedPODArray<UInt8>& c) { | 88 | 348 | size_t size = a.size(); | 89 | 348 | const A* __restrict a_pos = a.data(); | 90 | 348 | UInt8* __restrict c_pos = c.data(); | 91 | 348 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.7k | while (a_pos < a_end) { | 94 | 15.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.3k | ++a_pos; | 96 | 15.3k | ++c_pos; | 97 | 15.3k | } | 98 | 348 | } |
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 | 74 | PaddedPODArray<UInt8>& c) { | 88 | 74 | size_t size = a.size(); | 89 | 74 | const A* __restrict a_pos = a.data(); | 90 | 74 | UInt8* __restrict c_pos = c.data(); | 91 | 74 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 150k | while (a_pos < a_end) { | 94 | 150k | *c_pos = Op::apply(*a_pos, b); | 95 | 150k | ++a_pos; | 96 | 150k | ++c_pos; | 97 | 150k | } | 98 | 74 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 95 | PaddedPODArray<UInt8>& c) { | 88 | 95 | size_t size = a.size(); | 89 | 95 | const A* __restrict a_pos = a.data(); | 90 | 95 | UInt8* __restrict c_pos = c.data(); | 91 | 95 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 110k | while (a_pos < a_end) { | 94 | 110k | *c_pos = Op::apply(*a_pos, b); | 95 | 110k | ++a_pos; | 96 | 110k | ++c_pos; | 97 | 110k | } | 98 | 95 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 50 | PaddedPODArray<UInt8>& c) { | 88 | 50 | size_t size = a.size(); | 89 | 50 | const A* __restrict a_pos = a.data(); | 90 | 50 | UInt8* __restrict c_pos = c.data(); | 91 | 50 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 48.7k | while (a_pos < a_end) { | 94 | 48.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 48.7k | ++a_pos; | 96 | 48.7k | ++c_pos; | 97 | 48.7k | } | 98 | 50 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_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 | 160k | while (a_pos < a_end) { | 94 | 160k | *c_pos = Op::apply(*a_pos, b); | 95 | 160k | ++a_pos; | 96 | 160k | ++c_pos; | 97 | 160k | } | 98 | 106 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 16.4k | PaddedPODArray<UInt8>& c) { | 88 | 16.4k | size_t size = a.size(); | 89 | 16.4k | const A* __restrict a_pos = a.data(); | 90 | 16.4k | UInt8* __restrict c_pos = c.data(); | 91 | 16.4k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 18.5M | while (a_pos < a_end) { | 94 | 18.5M | *c_pos = Op::apply(*a_pos, b); | 95 | 18.5M | ++a_pos; | 96 | 18.5M | ++c_pos; | 97 | 18.5M | } | 98 | 16.4k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 24.7k | PaddedPODArray<UInt8>& c) { | 88 | 24.7k | size_t size = a.size(); | 89 | 24.7k | const A* __restrict a_pos = a.data(); | 90 | 24.7k | UInt8* __restrict c_pos = c.data(); | 91 | 24.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22.9M | while (a_pos < a_end) { | 94 | 22.8M | *c_pos = Op::apply(*a_pos, b); | 95 | 22.8M | ++a_pos; | 96 | 22.8M | ++c_pos; | 97 | 22.8M | } | 98 | 24.7k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 499 | PaddedPODArray<UInt8>& c) { | 88 | 499 | size_t size = a.size(); | 89 | 499 | const A* __restrict a_pos = a.data(); | 90 | 499 | UInt8* __restrict c_pos = c.data(); | 91 | 499 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 37.0k | while (a_pos < a_end) { | 94 | 36.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 36.5k | ++a_pos; | 96 | 36.5k | ++c_pos; | 97 | 36.5k | } | 98 | 499 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 894 | PaddedPODArray<UInt8>& c) { | 88 | 894 | size_t size = a.size(); | 89 | 894 | const A* __restrict a_pos = a.data(); | 90 | 894 | UInt8* __restrict c_pos = c.data(); | 91 | 894 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 41.5k | while (a_pos < a_end) { | 94 | 40.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 40.6k | ++a_pos; | 96 | 40.6k | ++c_pos; | 97 | 40.6k | } | 98 | 894 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 26 | PaddedPODArray<UInt8>& c) { | 88 | 26 | size_t size = a.size(); | 89 | 26 | const A* __restrict a_pos = a.data(); | 90 | 26 | UInt8* __restrict c_pos = c.data(); | 91 | 26 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 70.4k | while (a_pos < a_end) { | 94 | 70.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 70.4k | ++a_pos; | 96 | 70.4k | ++c_pos; | 97 | 70.4k | } | 98 | 26 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 61 | PaddedPODArray<UInt8>& c) { | 88 | 61 | size_t size = a.size(); | 89 | 61 | const A* __restrict a_pos = a.data(); | 90 | 61 | UInt8* __restrict c_pos = c.data(); | 91 | 61 | 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 | 61 | } |
_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 | 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 | 214 | 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 | 106 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 102 | PaddedPODArray<UInt8>& c) { | 88 | 102 | size_t size = a.size(); | 89 | 102 | const A* __restrict a_pos = a.data(); | 90 | 102 | UInt8* __restrict c_pos = c.data(); | 91 | 102 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 204 | while (a_pos < a_end) { | 94 | 102 | *c_pos = Op::apply(*a_pos, b); | 95 | 102 | ++a_pos; | 96 | 102 | ++c_pos; | 97 | 102 | } | 98 | 102 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 115 | PaddedPODArray<UInt8>& c) { | 88 | 115 | size_t size = a.size(); | 89 | 115 | const A* __restrict a_pos = a.data(); | 90 | 115 | UInt8* __restrict c_pos = c.data(); | 91 | 115 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 276k | while (a_pos < a_end) { | 94 | 276k | *c_pos = Op::apply(*a_pos, b); | 95 | 276k | ++a_pos; | 96 | 276k | ++c_pos; | 97 | 276k | } | 98 | 115 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 114 | PaddedPODArray<UInt8>& c) { | 88 | 114 | size_t size = a.size(); | 89 | 114 | const A* __restrict a_pos = a.data(); | 90 | 114 | UInt8* __restrict c_pos = c.data(); | 91 | 114 | 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 | 114 | } |
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.40k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.40k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.40k | } 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 | 276 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 276 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 276 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 114 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 114 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 114 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1.19k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1.19k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1.19k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 12 | } |
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 | 644 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 644 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 644 | } |
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 | 234 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 234 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 234 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 228 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 228 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 228 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.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 | 512 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 512 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 512 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 46 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 46 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 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 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 80 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 92 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 92 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 92 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 182 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 182 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 182 | } |
_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 | 142 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 142 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 411k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 411k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 411k | } |
119 | 142 | } _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 | 45 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 45 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 212k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 212k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 212k | } | 119 | 45 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_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 | 199k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 199k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 199k | } | 119 | 60 | } |
|
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 | 705 | PaddedPODArray<UInt8>& c) { |
133 | 705 | size_t size = a_offsets.size(); |
134 | 705 | ColumnString::Offset prev_a_offset = 0; |
135 | 705 | ColumnString::Offset prev_b_offset = 0; |
136 | 705 | const auto* a_pos = a_data.data(); |
137 | 705 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 2.13k | for (size_t i = 0; i < size; ++i) { |
140 | 1.43k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.43k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.43k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.43k | 0); |
144 | | |
145 | 1.43k | prev_a_offset = a_offsets[i]; |
146 | 1.43k | prev_b_offset = b_offsets[i]; |
147 | 1.43k | } |
148 | 705 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 122 | PaddedPODArray<UInt8>& c) { | 133 | 122 | size_t size = a_offsets.size(); | 134 | 122 | ColumnString::Offset prev_a_offset = 0; | 135 | 122 | ColumnString::Offset prev_b_offset = 0; | 136 | 122 | const auto* a_pos = a_data.data(); | 137 | 122 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 402 | for (size_t i = 0; i < size; ++i) { | 140 | 280 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 280 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 280 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 280 | 0); | 144 | | | 145 | 280 | prev_a_offset = a_offsets[i]; | 146 | 280 | prev_b_offset = b_offsets[i]; | 147 | 280 | } | 148 | 122 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 409 | PaddedPODArray<UInt8>& c) { | 133 | 409 | size_t size = a_offsets.size(); | 134 | 409 | ColumnString::Offset prev_a_offset = 0; | 135 | 409 | ColumnString::Offset prev_b_offset = 0; | 136 | 409 | const auto* a_pos = a_data.data(); | 137 | 409 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.34k | for (size_t i = 0; i < size; ++i) { | 140 | 931 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 931 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 931 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 931 | 0); | 144 | | | 145 | 931 | prev_a_offset = a_offsets[i]; | 146 | 931 | prev_b_offset = b_offsets[i]; | 147 | 931 | } | 148 | 409 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 172 | PaddedPODArray<UInt8>& c) { | 133 | 172 | size_t size = a_offsets.size(); | 134 | 172 | ColumnString::Offset prev_a_offset = 0; | 135 | 172 | ColumnString::Offset prev_b_offset = 0; | 136 | 172 | const auto* a_pos = a_data.data(); | 137 | 172 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 344 | for (size_t i = 0; i < size; ++i) { | 140 | 172 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 172 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 172 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 172 | 0); | 144 | | | 145 | 172 | prev_a_offset = a_offsets[i]; | 146 | 172 | prev_b_offset = b_offsets[i]; | 147 | 172 | } | 148 | 172 | } |
|
149 | | |
150 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
151 | | const ColumnString::Offsets& a_offsets, |
152 | | const ColumnString::Chars& b_data, |
153 | | ColumnString::Offset b_size, |
154 | 1.64k | PaddedPODArray<UInt8>& c) { |
155 | 1.64k | size_t size = a_offsets.size(); |
156 | 1.64k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.64k | const auto* a_pos = a_data.data(); |
158 | 1.64k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.43M | for (size_t i = 0; i < size; ++i) { |
161 | 1.43M | c[i] = Op::apply( |
162 | 1.43M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.43M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.43M | 0); |
165 | | |
166 | 1.43M | prev_a_offset = a_offsets[i]; |
167 | 1.43M | } |
168 | 1.64k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 185 | PaddedPODArray<UInt8>& c) { | 155 | 185 | size_t size = a_offsets.size(); | 156 | 185 | ColumnString::Offset prev_a_offset = 0; | 157 | 185 | const auto* a_pos = a_data.data(); | 158 | 185 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 325k | for (size_t i = 0; i < size; ++i) { | 161 | 325k | c[i] = Op::apply( | 162 | 325k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 325k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 325k | 0); | 165 | | | 166 | 325k | prev_a_offset = a_offsets[i]; | 167 | 325k | } | 168 | 185 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 243 | PaddedPODArray<UInt8>& c) { | 155 | 243 | size_t size = a_offsets.size(); | 156 | 243 | ColumnString::Offset prev_a_offset = 0; | 157 | 243 | const auto* a_pos = a_data.data(); | 158 | 243 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.2k | for (size_t i = 0; i < size; ++i) { | 161 | 73.0k | c[i] = Op::apply( | 162 | 73.0k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 73.0k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 73.0k | 0); | 165 | | | 166 | 73.0k | prev_a_offset = a_offsets[i]; | 167 | 73.0k | } | 168 | 243 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 530 | PaddedPODArray<UInt8>& c) { | 155 | 530 | size_t size = a_offsets.size(); | 156 | 530 | ColumnString::Offset prev_a_offset = 0; | 157 | 530 | const auto* a_pos = a_data.data(); | 158 | 530 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 452k | for (size_t i = 0; i < size; ++i) { | 161 | 452k | c[i] = Op::apply( | 162 | 452k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 452k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 452k | 0); | 165 | | | 166 | 452k | prev_a_offset = a_offsets[i]; | 167 | 452k | } | 168 | 530 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 685 | PaddedPODArray<UInt8>& c) { | 155 | 685 | size_t size = a_offsets.size(); | 156 | 685 | ColumnString::Offset prev_a_offset = 0; | 157 | 685 | const auto* a_pos = a_data.data(); | 158 | 685 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 582k | for (size_t i = 0; i < size; ++i) { | 161 | 582k | c[i] = Op::apply( | 162 | 582k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 582k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 582k | 0); | 165 | | | 166 | 582k | prev_a_offset = a_offsets[i]; | 167 | 582k | } | 168 | 685 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 1.90k | PaddedPODArray<UInt8>& c) { |
187 | 1.90k | size_t size = a_offsets.size(); |
188 | 1.90k | ColumnString::Offset prev_a_offset = 0; |
189 | 1.90k | ColumnString::Offset prev_b_offset = 0; |
190 | 1.90k | const auto* a_pos = a_data.data(); |
191 | 1.90k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 4.28k | for (size_t i = 0; i < size; ++i) { |
194 | 2.38k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 2.38k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 2.38k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 2.38k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 2.38k | prev_a_offset = a_offsets[i]; |
201 | 2.38k | prev_b_offset = b_offsets[i]; |
202 | 2.38k | } |
203 | 1.90k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 1.85k | PaddedPODArray<UInt8>& c) { | 187 | 1.85k | size_t size = a_offsets.size(); | 188 | 1.85k | ColumnString::Offset prev_a_offset = 0; | 189 | 1.85k | ColumnString::Offset prev_b_offset = 0; | 190 | 1.85k | const auto* a_pos = a_data.data(); | 191 | 1.85k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 4.18k | for (size_t i = 0; i < size; ++i) { | 194 | 2.33k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 2.33k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 2.33k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 2.33k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 2.33k | prev_a_offset = a_offsets[i]; | 201 | 2.33k | prev_b_offset = b_offsets[i]; | 202 | 2.33k | } | 203 | 1.85k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 49 | PaddedPODArray<UInt8>& c) { | 187 | 49 | size_t size = a_offsets.size(); | 188 | 49 | ColumnString::Offset prev_a_offset = 0; | 189 | 49 | ColumnString::Offset prev_b_offset = 0; | 190 | 49 | const auto* a_pos = a_data.data(); | 191 | 49 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 101 | for (size_t i = 0; i < size; ++i) { | 194 | 52 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 52 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 52 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 52 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 52 | prev_a_offset = a_offsets[i]; | 201 | 52 | prev_b_offset = b_offsets[i]; | 202 | 52 | } | 203 | 49 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 24.7k | PaddedPODArray<UInt8>& c) { |
210 | 24.7k | size_t size = a_offsets.size(); |
211 | 24.7k | 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 | 24.7k | } else { |
221 | 24.7k | ColumnString::Offset prev_a_offset = 0; |
222 | 24.7k | const auto* a_pos = a_data.data(); |
223 | 24.7k | const auto* b_pos = b_data.data(); |
224 | 12.6M | for (size_t i = 0; i < size; ++i) { |
225 | 12.6M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 12.6M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 12.6M | b_pos, b_size); |
228 | 12.6M | prev_a_offset = a_offsets[i]; |
229 | 12.6M | } |
230 | 24.7k | } |
231 | 24.7k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 22.3k | PaddedPODArray<UInt8>& c) { | 210 | 22.3k | size_t size = a_offsets.size(); | 211 | 22.3k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 22.3k | } else { | 221 | 22.3k | ColumnString::Offset prev_a_offset = 0; | 222 | 22.3k | const auto* a_pos = a_data.data(); | 223 | 22.3k | const auto* b_pos = b_data.data(); | 224 | 8.81M | for (size_t i = 0; i < size; ++i) { | 225 | 8.79M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.79M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.79M | b_pos, b_size); | 228 | 8.79M | prev_a_offset = a_offsets[i]; | 229 | 8.79M | } | 230 | 22.3k | } | 231 | 22.3k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.40k | PaddedPODArray<UInt8>& c) { | 210 | 2.40k | size_t size = a_offsets.size(); | 211 | 2.40k | 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 | 2.40k | } else { | 221 | 2.40k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.40k | const auto* a_pos = a_data.data(); | 223 | 2.40k | const auto* b_pos = b_data.data(); | 224 | 3.87M | for (size_t i = 0; i < size; ++i) { | 225 | 3.87M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.87M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.87M | b_pos, b_size); | 228 | 3.87M | prev_a_offset = a_offsets[i]; | 229 | 3.87M | } | 230 | 2.40k | } | 231 | 2.40k | } |
|
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 | 34.9k | Op op) { |
296 | 34.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 34.9k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 34.9k | slot_literal->slot_type); |
300 | 34.9k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 34.9k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 34.9k | if (zone_map_ptr == nullptr) { |
305 | 58 | return unsupported_zonemap_filter(ctx); |
306 | 58 | } |
307 | 34.8k | const auto& zone_map = *zone_map_ptr; |
308 | 34.8k | if (!zone_map.has_not_null) { |
309 | 213 | return ZoneMapFilterResult::kNoMatch; |
310 | 213 | } |
311 | 34.6k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 103 | return unsupported_zonemap_filter(ctx); |
313 | 103 | } |
314 | | |
315 | 34.5k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 34.5k | const auto& literal = slot_literal->literal; |
317 | 34.5k | switch (effective_op) { |
318 | 9.24k | case Op::EQ: |
319 | 9.24k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.24k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.24k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 2.97k | case Op::LT: |
327 | 2.97k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 2.97k | : ZoneMapFilterResult::kMayMatch; |
329 | 9.46k | case Op::LE: |
330 | 9.46k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 9.46k | : ZoneMapFilterResult::kMayMatch; |
332 | 5.10k | case Op::GT: |
333 | 5.10k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.10k | : ZoneMapFilterResult::kMayMatch; |
335 | 6.67k | case Op::GE: |
336 | 6.67k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 6.67k | : ZoneMapFilterResult::kMayMatch; |
338 | 34.5k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 34.5k | } |
343 | | |
344 | 160k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 160k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 160k | if (!slot_literal.has_value()) { |
347 | 38.8k | return false; |
348 | 38.8k | } |
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 | 121k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 121k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 121k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 121k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 9 | return false; |
364 | 9 | } |
365 | | |
366 | 121k | return true; |
367 | 121k | } |
368 | | |
369 | 66.6k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 66.6k | return op == Op::EQ && can_evaluate(arguments); |
371 | 66.6k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 40.9k | const VExprSPtrs& arguments, Op op) { |
375 | 40.9k | DORIS_CHECK(op == Op::EQ); |
376 | 40.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 40.9k | DORIS_CHECK(slot_literal.has_value()); |
378 | 40.9k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 40.9k | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 14 | const VExprSPtrs& arguments, Op op) { |
383 | 14 | DORIS_CHECK(op == Op::EQ); |
384 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 14 | DORIS_CHECK(slot_literal.has_value()); |
386 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 14 | } |
388 | | |
389 | 246k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 246k | if (name == NameEquals::name) { |
391 | 148k | return Op::EQ; |
392 | 148k | } |
393 | 98.6k | if (name == NameNotEquals::name) { |
394 | 7.18k | return Op::NE; |
395 | 7.18k | } |
396 | 91.4k | if (name == NameLess::name) { |
397 | 13.4k | return Op::LT; |
398 | 13.4k | } |
399 | 78.0k | if (name == NameLessOrEquals::name) { |
400 | 29.2k | return Op::LE; |
401 | 29.2k | } |
402 | 48.8k | if (name == NameGreater::name) { |
403 | 25.5k | return Op::GT; |
404 | 25.5k | } |
405 | 23.3k | if (name == NameGreaterOrEquals::name) { |
406 | 23.3k | return Op::GE; |
407 | 23.3k | } |
408 | 18.4E | return std::nullopt; |
409 | 23.2k | } |
410 | | } // namespace comparison_zonemap_detail |
411 | | |
412 | | template <template <PrimitiveType> class Op, typename Name> |
413 | | class FunctionComparison : public IFunction { |
414 | | public: |
415 | | static constexpr auto name = Name::name; |
416 | 543k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 451k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 2.80k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 43.0k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 14.6k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 4.55k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 26.0k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 543k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 452k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 2.80k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 43.0k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 14.6k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 4.56k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 26.1k | FunctionComparison() = default; |
|
419 | | |
420 | 1.21M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 1.19M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 627 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 3.06k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 12.1k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.71k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 8.37k | double execute_cost() const override { return 0.5; } |
|
421 | | |
422 | | private: |
423 | | template <PrimitiveType PT> |
424 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
425 | 194k | const ColumnPtr& col_right_ptr) const { |
426 | 194k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 194k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 194k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 194k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 194k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 194k | if (!left_is_const && !right_is_const) { |
435 | 10.9k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 10.9k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 10.9k | vec_res.resize(col_left->get_data().size()); |
439 | 10.9k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 10.9k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 10.9k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 10.9k | vec_res); |
443 | | |
444 | 10.9k | block.replace_by_position(result, std::move(col_res)); |
445 | 183k | } else if (!left_is_const && right_is_const) { |
446 | 176k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 176k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 176k | vec_res.resize(col_left->size()); |
450 | 176k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 176k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 176k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 176k | col_right->get_element(0), vec_res); |
454 | | |
455 | 176k | block.replace_by_position(result, std::move(col_res)); |
456 | 176k | } else if (left_is_const && !right_is_const) { |
457 | 7.39k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 7.39k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 7.39k | vec_res.resize(col_right->size()); |
461 | 7.39k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 7.39k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 7.39k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 7.39k | col_right->get_data(), vec_res); |
465 | | |
466 | 7.39k | block.replace_by_position(result, std::move(col_res)); |
467 | 7.39k | } |
468 | 194k | return Status::OK(); |
469 | 194k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.62k | const ColumnPtr& col_right_ptr) const { | 426 | 1.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.62k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.62k | if (!left_is_const && !right_is_const) { | 435 | 64 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 64 | vec_res.resize(col_left->get_data().size()); | 439 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 64 | vec_res); | 443 | | | 444 | 64 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.56k | } else if (!left_is_const && right_is_const) { | 446 | 1.56k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.56k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.56k | vec_res.resize(col_left->size()); | 450 | 1.56k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.56k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.56k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.56k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.56k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.56k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.62k | return Status::OK(); | 469 | 1.62k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.72k | const ColumnPtr& col_right_ptr) const { | 426 | 1.72k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.72k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.72k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.72k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.72k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.72k | if (!left_is_const && !right_is_const) { | 435 | 704 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 704 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 704 | vec_res.resize(col_left->get_data().size()); | 439 | 704 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 704 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 704 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 704 | vec_res); | 443 | | | 444 | 704 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.01k | } else if (!left_is_const && right_is_const) { | 446 | 1.01k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.01k | vec_res.resize(col_left->size()); | 450 | 1.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.01k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.01k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.01k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.01k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.01k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.72k | return Status::OK(); | 469 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 670 | const ColumnPtr& col_right_ptr) const { | 426 | 670 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 670 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 670 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 670 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 670 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 670 | if (!left_is_const && !right_is_const) { | 435 | 356 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 356 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 356 | vec_res.resize(col_left->get_data().size()); | 439 | 356 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 356 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 356 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 356 | vec_res); | 443 | | | 444 | 356 | block.replace_by_position(result, std::move(col_res)); | 445 | 356 | } else if (!left_is_const && right_is_const) { | 446 | 314 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 314 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 314 | vec_res.resize(col_left->size()); | 450 | 314 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 314 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 314 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 314 | col_right->get_element(0), vec_res); | 454 | | | 455 | 314 | block.replace_by_position(result, std::move(col_res)); | 456 | 314 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 670 | return Status::OK(); | 469 | 670 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 3 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 3 | vec_res.resize(col_left->get_data().size()); | 439 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 3 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 3 | vec_res); | 443 | | | 444 | 3 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 6.99k | const ColumnPtr& col_right_ptr) const { | 426 | 6.99k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 6.99k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 6.99k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 6.99k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 6.99k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 6.99k | if (!left_is_const && !right_is_const) { | 435 | 142 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 142 | vec_res.resize(col_left->get_data().size()); | 439 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 142 | vec_res); | 443 | | | 444 | 142 | block.replace_by_position(result, std::move(col_res)); | 445 | 6.84k | } else if (!left_is_const && right_is_const) { | 446 | 6.57k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6.57k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6.57k | vec_res.resize(col_left->size()); | 450 | 6.57k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6.57k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6.57k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6.57k | col_right->get_element(0), vec_res); | 454 | | | 455 | 6.57k | block.replace_by_position(result, std::move(col_res)); | 456 | 6.57k | } else if (left_is_const && !right_is_const) { | 457 | 276 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 276 | vec_res.resize(col_right->size()); | 461 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 276 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 276 | col_right->get_data(), vec_res); | 465 | | | 466 | 276 | block.replace_by_position(result, std::move(col_res)); | 467 | 276 | } | 468 | 6.99k | return Status::OK(); | 469 | 6.99k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.60k | const ColumnPtr& col_right_ptr) const { | 426 | 1.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.60k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.60k | if (!left_is_const && !right_is_const) { | 435 | 74 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 74 | vec_res.resize(col_left->get_data().size()); | 439 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 74 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 74 | vec_res); | 443 | | | 444 | 74 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.53k | } else if (!left_is_const && right_is_const) { | 446 | 1.49k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.49k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.49k | vec_res.resize(col_left->size()); | 450 | 1.49k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.49k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.49k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.49k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.49k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.49k | } else if (left_is_const && !right_is_const) { | 457 | 36 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 36 | vec_res.resize(col_right->size()); | 461 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 36 | col_right->get_data(), vec_res); | 465 | | | 466 | 36 | block.replace_by_position(result, std::move(col_res)); | 467 | 36 | } | 468 | 1.60k | return Status::OK(); | 469 | 1.60k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 12.7k | const ColumnPtr& col_right_ptr) const { | 426 | 12.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 12.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 12.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 12.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 12.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 12.7k | if (!left_is_const && !right_is_const) { | 435 | 1.03k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.03k | vec_res.resize(col_left->get_data().size()); | 439 | 1.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.03k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.03k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.03k | vec_res); | 443 | | | 444 | 1.03k | block.replace_by_position(result, std::move(col_res)); | 445 | 11.7k | } else if (!left_is_const && right_is_const) { | 446 | 11.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 11.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 11.6k | vec_res.resize(col_left->size()); | 450 | 11.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 11.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 11.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 11.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 11.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 11.6k | } else if (left_is_const && !right_is_const) { | 457 | 114 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 114 | vec_res.resize(col_right->size()); | 461 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 114 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 114 | col_right->get_data(), vec_res); | 465 | | | 466 | 114 | block.replace_by_position(result, std::move(col_res)); | 467 | 114 | } | 468 | 12.7k | return Status::OK(); | 469 | 12.7k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 29.1k | const ColumnPtr& col_right_ptr) const { | 426 | 29.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 29.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 29.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 29.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 29.1k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 29.1k | if (!left_is_const && !right_is_const) { | 435 | 262 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 262 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 262 | vec_res.resize(col_left->get_data().size()); | 439 | 262 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 262 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 262 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 262 | vec_res); | 443 | | | 444 | 262 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.8k | } else if (!left_is_const && right_is_const) { | 446 | 27.6k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 27.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 27.6k | vec_res.resize(col_left->size()); | 450 | 27.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 27.6k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 27.6k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 27.6k | col_right->get_element(0), vec_res); | 454 | | | 455 | 27.6k | block.replace_by_position(result, std::move(col_res)); | 456 | 27.6k | } else if (left_is_const && !right_is_const) { | 457 | 1.19k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1.19k | vec_res.resize(col_right->size()); | 461 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1.19k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1.19k | col_right->get_data(), vec_res); | 465 | | | 466 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 467 | 1.19k | } | 468 | 29.1k | return Status::OK(); | 469 | 29.1k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 153 | const ColumnPtr& col_right_ptr) const { | 426 | 153 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 153 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 153 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 153 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 153 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 153 | if (!left_is_const && !right_is_const) { | 435 | 74 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 74 | vec_res.resize(col_left->get_data().size()); | 439 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 74 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 74 | vec_res); | 443 | | | 444 | 74 | block.replace_by_position(result, std::move(col_res)); | 445 | 79 | } else if (!left_is_const && right_is_const) { | 446 | 67 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 67 | vec_res.resize(col_left->size()); | 450 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 67 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 67 | col_right->get_element(0), vec_res); | 454 | | | 455 | 67 | block.replace_by_position(result, std::move(col_res)); | 456 | 67 | } else if (left_is_const && !right_is_const) { | 457 | 12 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 12 | vec_res.resize(col_right->size()); | 461 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 12 | col_right->get_data(), vec_res); | 465 | | | 466 | 12 | block.replace_by_position(result, std::move(col_res)); | 467 | 12 | } | 468 | 153 | return Status::OK(); | 469 | 153 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 5 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 5 | vec_res.resize(col_left->get_data().size()); | 439 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 5 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 5 | vec_res); | 443 | | | 444 | 5 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 13 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13 | vec_res.resize(col_left->size()); | 450 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13 | col_right->get_element(0), vec_res); | 454 | | | 455 | 13 | block.replace_by_position(result, std::move(col_res)); | 456 | 13 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 19 | const ColumnPtr& col_right_ptr) const { | 426 | 19 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 19 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 19 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 19 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 19 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 19 | if (!left_is_const && !right_is_const) { | 435 | 13 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 13 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 13 | vec_res.resize(col_left->get_data().size()); | 439 | 13 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 13 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 13 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 13 | vec_res); | 443 | | | 444 | 13 | block.replace_by_position(result, std::move(col_res)); | 445 | 13 | } else if (!left_is_const && right_is_const) { | 446 | 6 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6 | vec_res.resize(col_left->size()); | 450 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6 | col_right->get_element(0), vec_res); | 454 | | | 455 | 6 | block.replace_by_position(result, std::move(col_res)); | 456 | 6 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 19 | return Status::OK(); | 469 | 19 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 96 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 96 | vec_res.resize(col_left->get_data().size()); | 439 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 96 | vec_res); | 443 | | | 444 | 96 | block.replace_by_position(result, std::move(col_res)); | 445 | 96 | } else if (!left_is_const && right_is_const) { | 446 | 4 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4 | vec_res.resize(col_left->size()); | 450 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4 | col_right->get_element(0), vec_res); | 454 | | | 455 | 4 | block.replace_by_position(result, std::move(col_res)); | 456 | 4 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 818 | const ColumnPtr& col_right_ptr) const { | 426 | 818 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 818 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 818 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 818 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 818 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 818 | if (!left_is_const && !right_is_const) { | 435 | 92 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 92 | vec_res.resize(col_left->get_data().size()); | 439 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 92 | vec_res); | 443 | | | 444 | 92 | block.replace_by_position(result, std::move(col_res)); | 445 | 726 | } else if (!left_is_const && right_is_const) { | 446 | 726 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 726 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 726 | vec_res.resize(col_left->size()); | 450 | 726 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 726 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 726 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 726 | col_right->get_element(0), vec_res); | 454 | | | 455 | 726 | block.replace_by_position(result, std::move(col_res)); | 456 | 726 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 818 | return Status::OK(); | 469 | 818 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 4 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 4 | vec_res.resize(col_left->get_data().size()); | 439 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 4 | vec_res); | 443 | | | 444 | 4 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 82 | const ColumnPtr& col_right_ptr) const { | 426 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 82 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 82 | if (!left_is_const && !right_is_const) { | 435 | 47 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 47 | vec_res.resize(col_left->get_data().size()); | 439 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 47 | vec_res); | 443 | | | 444 | 47 | block.replace_by_position(result, std::move(col_res)); | 445 | 47 | } else if (!left_is_const && right_is_const) { | 446 | 35 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 35 | vec_res.resize(col_left->size()); | 450 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 35 | col_right->get_element(0), vec_res); | 454 | | | 455 | 35 | block.replace_by_position(result, std::move(col_res)); | 456 | 35 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 82 | return Status::OK(); | 469 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 4 | } else if (!left_is_const && right_is_const) { | 446 | 4 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 4 | vec_res.resize(col_left->size()); | 450 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 4 | col_right->get_element(0), vec_res); | 454 | | | 455 | 4 | block.replace_by_position(result, std::move(col_res)); | 456 | 4 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 100 | const ColumnPtr& col_right_ptr) const { | 426 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 100 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 100 | if (!left_is_const && !right_is_const) { | 435 | 56 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 56 | vec_res.resize(col_left->get_data().size()); | 439 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 56 | vec_res); | 443 | | | 444 | 56 | block.replace_by_position(result, std::move(col_res)); | 445 | 56 | } else if (!left_is_const && right_is_const) { | 446 | 44 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 44 | vec_res.resize(col_left->size()); | 450 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 44 | col_right->get_element(0), vec_res); | 454 | | | 455 | 44 | block.replace_by_position(result, std::move(col_res)); | 456 | 44 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 100 | return Status::OK(); | 469 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 26 | const ColumnPtr& col_right_ptr) const { | 426 | 26 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 26 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 26 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 26 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 26 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 26 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 26 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 26 | return Status::OK(); | 469 | 26 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.93k | const ColumnPtr& col_right_ptr) const { | 426 | 2.93k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.93k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.93k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.93k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.93k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.93k | if (!left_is_const && !right_is_const) { | 435 | 1.24k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.24k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.24k | vec_res.resize(col_left->get_data().size()); | 439 | 1.24k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.24k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.24k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.24k | vec_res); | 443 | | | 444 | 1.24k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.69k | } else if (!left_is_const && right_is_const) { | 446 | 1.69k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.69k | vec_res.resize(col_left->size()); | 450 | 1.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.69k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.69k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.69k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.69k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.69k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.93k | return Status::OK(); | 469 | 2.93k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.97k | const ColumnPtr& col_right_ptr) const { | 426 | 2.97k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.97k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.97k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.97k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.97k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.97k | if (!left_is_const && !right_is_const) { | 435 | 397 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 397 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 397 | vec_res.resize(col_left->get_data().size()); | 439 | 397 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 397 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 397 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 397 | vec_res); | 443 | | | 444 | 397 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.58k | } else if (!left_is_const && right_is_const) { | 446 | 1.93k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.93k | vec_res.resize(col_left->size()); | 450 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.93k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.93k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.93k | } else if (left_is_const && !right_is_const) { | 457 | 644 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 644 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 644 | vec_res.resize(col_right->size()); | 461 | 644 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 644 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 644 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 644 | col_right->get_data(), vec_res); | 465 | | | 466 | 644 | block.replace_by_position(result, std::move(col_res)); | 467 | 644 | } | 468 | 2.97k | return Status::OK(); | 469 | 2.97k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 48 | const ColumnPtr& col_right_ptr) const { | 426 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 48 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 48 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 28 | } else if (!left_is_const && right_is_const) { | 446 | 28 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28 | vec_res.resize(col_left->size()); | 450 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28 | col_right->get_element(0), vec_res); | 454 | | | 455 | 28 | block.replace_by_position(result, std::move(col_res)); | 456 | 28 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 48 | return Status::OK(); | 469 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 60 | const ColumnPtr& col_right_ptr) const { | 426 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 60 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 60 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 40 | } else if (!left_is_const && right_is_const) { | 446 | 40 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 40 | vec_res.resize(col_left->size()); | 450 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 40 | col_right->get_element(0), vec_res); | 454 | | | 455 | 40 | block.replace_by_position(result, std::move(col_res)); | 456 | 40 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 60 | return Status::OK(); | 469 | 60 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.34k | const ColumnPtr& col_right_ptr) const { | 426 | 1.34k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.34k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.34k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.34k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.34k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.34k | if (!left_is_const && !right_is_const) { | 435 | 1.18k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.18k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.18k | vec_res.resize(col_left->get_data().size()); | 439 | 1.18k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.18k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.18k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.18k | vec_res); | 443 | | | 444 | 1.18k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.18k | } else if (!left_is_const && right_is_const) { | 446 | 163 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 163 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 163 | vec_res.resize(col_left->size()); | 450 | 163 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 163 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 163 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 163 | col_right->get_element(0), vec_res); | 454 | | | 455 | 163 | block.replace_by_position(result, std::move(col_res)); | 456 | 163 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1.34k | return Status::OK(); | 469 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 122 | const ColumnPtr& col_right_ptr) const { | 426 | 122 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 122 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 122 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 122 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 122 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 122 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 122 | } else if (!left_is_const && right_is_const) { | 446 | 122 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 122 | vec_res.resize(col_left->size()); | 450 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 122 | col_right->get_element(0), vec_res); | 454 | | | 455 | 122 | block.replace_by_position(result, std::move(col_res)); | 456 | 122 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 122 | return Status::OK(); | 469 | 122 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.35k | const ColumnPtr& col_right_ptr) const { | 426 | 1.35k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.35k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.35k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.35k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.35k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.35k | if (!left_is_const && !right_is_const) { | 435 | 38 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 38 | vec_res.resize(col_left->get_data().size()); | 439 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 38 | vec_res); | 443 | | | 444 | 38 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.31k | } else if (!left_is_const && right_is_const) { | 446 | 1.08k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.08k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.08k | vec_res.resize(col_left->size()); | 450 | 1.08k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.08k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.08k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.08k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.08k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.08k | } else if (left_is_const && !right_is_const) { | 457 | 234 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 234 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 234 | vec_res.resize(col_right->size()); | 461 | 234 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 234 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 234 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 234 | col_right->get_data(), vec_res); | 465 | | | 466 | 234 | block.replace_by_position(result, std::move(col_res)); | 467 | 234 | } | 468 | 1.35k | return Status::OK(); | 469 | 1.35k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.79k | const ColumnPtr& col_right_ptr) const { | 426 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.79k | if (!left_is_const && !right_is_const) { | 435 | 112 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 112 | vec_res.resize(col_left->get_data().size()); | 439 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 112 | vec_res); | 443 | | | 444 | 112 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.68k | } else if (!left_is_const && right_is_const) { | 446 | 1.45k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.45k | vec_res.resize(col_left->size()); | 450 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.45k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.45k | } else if (left_is_const && !right_is_const) { | 457 | 227 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 227 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 227 | vec_res.resize(col_right->size()); | 461 | 227 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 227 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 227 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 227 | col_right->get_data(), vec_res); | 465 | | | 466 | 227 | block.replace_by_position(result, std::move(col_res)); | 467 | 227 | } | 468 | 1.79k | return Status::OK(); | 469 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 23.3k | const ColumnPtr& col_right_ptr) const { | 426 | 23.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 23.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 23.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 23.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 23.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 23.3k | if (!left_is_const && !right_is_const) { | 435 | 79 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 79 | vec_res.resize(col_left->get_data().size()); | 439 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 79 | vec_res); | 443 | | | 444 | 79 | block.replace_by_position(result, std::move(col_res)); | 445 | 23.2k | } else if (!left_is_const && right_is_const) { | 446 | 19.8k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 19.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 19.8k | vec_res.resize(col_left->size()); | 450 | 19.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 19.8k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 19.8k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 19.8k | col_right->get_element(0), vec_res); | 454 | | | 455 | 19.8k | block.replace_by_position(result, std::move(col_res)); | 456 | 19.8k | } else if (left_is_const && !right_is_const) { | 457 | 3.33k | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 3.33k | vec_res.resize(col_right->size()); | 461 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 3.33k | col_right->get_data(), vec_res); | 465 | | | 466 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 467 | 3.33k | } | 468 | 23.3k | return Status::OK(); | 469 | 23.3k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13.8k | const ColumnPtr& col_right_ptr) const { | 426 | 13.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13.8k | if (!left_is_const && !right_is_const) { | 435 | 63 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 63 | vec_res.resize(col_left->get_data().size()); | 439 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 63 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 63 | vec_res); | 443 | | | 444 | 63 | block.replace_by_position(result, std::move(col_res)); | 445 | 13.8k | } else if (!left_is_const && right_is_const) { | 446 | 13.2k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 13.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 13.2k | vec_res.resize(col_left->size()); | 450 | 13.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 13.2k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 13.2k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 13.2k | col_right->get_element(0), vec_res); | 454 | | | 455 | 13.2k | block.replace_by_position(result, std::move(col_res)); | 456 | 13.2k | } else if (left_is_const && !right_is_const) { | 457 | 512 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 512 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 512 | vec_res.resize(col_right->size()); | 461 | 512 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 512 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 512 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 512 | col_right->get_data(), vec_res); | 465 | | | 466 | 512 | block.replace_by_position(result, std::move(col_res)); | 467 | 512 | } | 468 | 13.8k | return Status::OK(); | 469 | 13.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 249 | const ColumnPtr& col_right_ptr) const { | 426 | 249 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 249 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 249 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 249 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 249 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 249 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 247 | } else if (!left_is_const && right_is_const) { | 446 | 201 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 201 | vec_res.resize(col_left->size()); | 450 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 201 | col_right->get_element(0), vec_res); | 454 | | | 455 | 201 | block.replace_by_position(result, std::move(col_res)); | 456 | 201 | } else if (left_is_const && !right_is_const) { | 457 | 46 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 46 | vec_res.resize(col_right->size()); | 461 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 46 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 46 | col_right->get_data(), vec_res); | 465 | | | 466 | 46 | block.replace_by_position(result, std::move(col_res)); | 467 | 46 | } | 468 | 249 | return Status::OK(); | 469 | 249 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 4 | const ColumnPtr& col_right_ptr) const { | 426 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 4 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 4 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 3 | } else if (!left_is_const && right_is_const) { | 446 | 3 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3 | vec_res.resize(col_left->size()); | 450 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3 | col_right->get_element(0), vec_res); | 454 | | | 455 | 3 | block.replace_by_position(result, std::move(col_res)); | 456 | 3 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 236 | const ColumnPtr& col_right_ptr) const { | 426 | 236 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 236 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 236 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 236 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 236 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 236 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 216 | } else if (!left_is_const && right_is_const) { | 446 | 216 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 216 | vec_res.resize(col_left->size()); | 450 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 216 | col_right->get_element(0), vec_res); | 454 | | | 455 | 216 | block.replace_by_position(result, std::move(col_res)); | 456 | 216 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 236 | return Status::OK(); | 469 | 236 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.39k | const ColumnPtr& col_right_ptr) const { | 426 | 2.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.39k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.39k | if (!left_is_const && !right_is_const) { | 435 | 27 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 27 | vec_res.resize(col_left->get_data().size()); | 439 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 27 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 27 | vec_res); | 443 | | | 444 | 27 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.36k | } else if (!left_is_const && right_is_const) { | 446 | 2.36k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.36k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.36k | vec_res.resize(col_left->size()); | 450 | 2.36k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.36k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.36k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.36k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.36k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.36k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.39k | return Status::OK(); | 469 | 2.39k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 141 | const ColumnPtr& col_right_ptr) const { | 426 | 141 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 141 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 141 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 141 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 141 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 141 | if (!left_is_const && !right_is_const) { | 435 | 42 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 42 | vec_res.resize(col_left->get_data().size()); | 439 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 42 | vec_res); | 443 | | | 444 | 42 | block.replace_by_position(result, std::move(col_res)); | 445 | 99 | } else if (!left_is_const && right_is_const) { | 446 | 99 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 99 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 99 | vec_res.resize(col_left->size()); | 450 | 99 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 99 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 99 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 99 | col_right->get_element(0), vec_res); | 454 | | | 455 | 99 | block.replace_by_position(result, std::move(col_res)); | 456 | 99 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 141 | return Status::OK(); | 469 | 141 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.23k | const ColumnPtr& col_right_ptr) const { | 426 | 2.23k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.23k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.23k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.23k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.23k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.23k | if (!left_is_const && !right_is_const) { | 435 | 61 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 61 | vec_res.resize(col_left->get_data().size()); | 439 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 61 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 61 | vec_res); | 443 | | | 444 | 61 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.17k | } else if (!left_is_const && right_is_const) { | 446 | 2.16k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2.16k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2.16k | vec_res.resize(col_left->size()); | 450 | 2.16k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2.16k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2.16k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2.16k | col_right->get_element(0), vec_res); | 454 | | | 455 | 2.16k | block.replace_by_position(result, std::move(col_res)); | 456 | 2.16k | } else if (left_is_const && !right_is_const) { | 457 | 6 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 6 | vec_res.resize(col_right->size()); | 461 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 6 | col_right->get_data(), vec_res); | 465 | | | 466 | 6 | block.replace_by_position(result, std::move(col_res)); | 467 | 6 | } | 468 | 2.23k | return Status::OK(); | 469 | 2.23k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 797 | const ColumnPtr& col_right_ptr) const { | 426 | 797 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 797 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 797 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 797 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 797 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 797 | if (!left_is_const && !right_is_const) { | 435 | 98 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 98 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 98 | vec_res.resize(col_left->get_data().size()); | 439 | 98 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 98 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 98 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 98 | vec_res); | 443 | | | 444 | 98 | block.replace_by_position(result, std::move(col_res)); | 445 | 699 | } else if (!left_is_const && right_is_const) { | 446 | 699 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 699 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 699 | vec_res.resize(col_left->size()); | 450 | 699 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 699 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 699 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 699 | col_right->get_element(0), vec_res); | 454 | | | 455 | 699 | block.replace_by_position(result, std::move(col_res)); | 456 | 699 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 797 | return Status::OK(); | 469 | 797 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 74 | const ColumnPtr& col_right_ptr) const { | 426 | 74 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 74 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 74 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 74 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 74 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 74 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 74 | } else if (!left_is_const && right_is_const) { | 446 | 74 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 74 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 74 | vec_res.resize(col_left->size()); | 450 | 74 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 74 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 74 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 74 | col_right->get_element(0), vec_res); | 454 | | | 455 | 74 | block.replace_by_position(result, std::move(col_res)); | 456 | 74 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 74 | return Status::OK(); | 469 | 74 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 50 | const ColumnPtr& col_right_ptr) const { | 426 | 50 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 50 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 50 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 50 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 50 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 50 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 50 | } else if (!left_is_const && right_is_const) { | 446 | 50 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 50 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 50 | vec_res.resize(col_left->size()); | 450 | 50 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 50 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 50 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 50 | col_right->get_element(0), vec_res); | 454 | | | 455 | 50 | block.replace_by_position(result, std::move(col_res)); | 456 | 50 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 50 | return Status::OK(); | 469 | 50 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16.3k | const ColumnPtr& col_right_ptr) const { | 426 | 16.3k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16.3k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16.3k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16.3k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16.3k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16.3k | if (!left_is_const && !right_is_const) { | 435 | 79 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 79 | vec_res.resize(col_left->get_data().size()); | 439 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 79 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 79 | vec_res); | 443 | | | 444 | 79 | block.replace_by_position(result, std::move(col_res)); | 445 | 16.2k | } else if (!left_is_const && right_is_const) { | 446 | 16.2k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 16.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 16.2k | vec_res.resize(col_left->size()); | 450 | 16.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 16.2k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 16.2k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 16.2k | col_right->get_element(0), vec_res); | 454 | | | 455 | 16.2k | block.replace_by_position(result, std::move(col_res)); | 456 | 16.2k | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16.3k | return Status::OK(); | 469 | 16.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 512 | const ColumnPtr& col_right_ptr) const { | 426 | 512 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 512 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 512 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 512 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 512 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 512 | if (!left_is_const && !right_is_const) { | 435 | 61 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 61 | vec_res.resize(col_left->get_data().size()); | 439 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 61 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 61 | vec_res); | 443 | | | 444 | 61 | block.replace_by_position(result, std::move(col_res)); | 445 | 451 | } else if (!left_is_const && right_is_const) { | 446 | 451 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 451 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 451 | vec_res.resize(col_left->size()); | 450 | 451 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 451 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 451 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 451 | col_right->get_element(0), vec_res); | 454 | | | 455 | 451 | block.replace_by_position(result, std::move(col_res)); | 456 | 451 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 512 | return Status::OK(); | 469 | 512 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 36 | const ColumnPtr& col_right_ptr) const { | 426 | 36 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 36 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 36 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 36 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 36 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 36 | if (!left_is_const && !right_is_const) { | 435 | 10 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 10 | vec_res.resize(col_left->get_data().size()); | 439 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 10 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 10 | vec_res); | 443 | | | 444 | 10 | block.replace_by_position(result, std::move(col_res)); | 445 | 26 | } else if (!left_is_const && right_is_const) { | 446 | 26 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26 | vec_res.resize(col_left->size()); | 450 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26 | col_right->get_element(0), vec_res); | 454 | | | 455 | 26 | block.replace_by_position(result, std::move(col_res)); | 456 | 26 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 36 | return Status::OK(); | 469 | 36 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 11 | const ColumnPtr& col_right_ptr) const { | 426 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 11 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 11 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 11 | return Status::OK(); | 469 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1 | const ColumnPtr& col_right_ptr) const { | 426 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 1 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 1 | return Status::OK(); | 469 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 206 | const ColumnPtr& col_right_ptr) const { | 426 | 206 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 206 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 206 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 206 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 206 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 206 | if (!left_is_const && !right_is_const) { | 435 | 100 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 100 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 100 | vec_res.resize(col_left->get_data().size()); | 439 | 100 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 100 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 100 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 100 | vec_res); | 443 | | | 444 | 100 | block.replace_by_position(result, std::move(col_res)); | 445 | 106 | } else if (!left_is_const && right_is_const) { | 446 | 106 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 106 | vec_res.resize(col_left->size()); | 450 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 106 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 106 | col_right->get_element(0), vec_res); | 454 | | | 455 | 106 | block.replace_by_position(result, std::move(col_res)); | 456 | 106 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 206 | return Status::OK(); | 469 | 206 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 138 | const ColumnPtr& col_right_ptr) const { | 426 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 138 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 138 | if (!left_is_const && !right_is_const) { | 435 | 24 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 24 | vec_res.resize(col_left->get_data().size()); | 439 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 24 | vec_res); | 443 | | | 444 | 24 | block.replace_by_position(result, std::move(col_res)); | 445 | 114 | } else if (!left_is_const && right_is_const) { | 446 | 114 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 114 | vec_res.resize(col_left->size()); | 450 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 114 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 114 | col_right->get_element(0), vec_res); | 454 | | | 455 | 114 | block.replace_by_position(result, std::move(col_res)); | 456 | 114 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 138 | return Status::OK(); | 469 | 138 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 93 | const ColumnPtr& col_right_ptr) const { | 426 | 93 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 93 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 93 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 93 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 93 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 93 | if (!left_is_const && !right_is_const) { | 435 | 93 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 93 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 93 | vec_res.resize(col_left->get_data().size()); | 439 | 93 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 93 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 93 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 93 | vec_res); | 443 | | | 444 | 93 | block.replace_by_position(result, std::move(col_res)); | 445 | 93 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 93 | return Status::OK(); | 469 | 93 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.22k | const ColumnPtr& col_right_ptr) const { | 426 | 2.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.22k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.23k | if (!left_is_const && !right_is_const) { | 435 | 1.76k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.76k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.76k | vec_res.resize(col_left->get_data().size()); | 439 | 1.76k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.76k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.76k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.76k | vec_res); | 443 | | | 444 | 1.76k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.76k | } else if (!left_is_const && right_is_const) { | 446 | 462 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 462 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 462 | vec_res.resize(col_left->size()); | 450 | 462 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 462 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 462 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 462 | col_right->get_element(0), vec_res); | 454 | | | 455 | 462 | block.replace_by_position(result, std::move(col_res)); | 456 | 18.4E | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2.22k | return Status::OK(); | 469 | 2.22k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 681 | const ColumnPtr& col_right_ptr) const { | 426 | 681 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 681 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 681 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 681 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 681 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 681 | if (!left_is_const && !right_is_const) { | 435 | 281 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 281 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 281 | vec_res.resize(col_left->get_data().size()); | 439 | 281 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 281 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 281 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 281 | vec_res); | 443 | | | 444 | 281 | block.replace_by_position(result, std::move(col_res)); | 445 | 400 | } else if (!left_is_const && right_is_const) { | 446 | 399 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 399 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 399 | vec_res.resize(col_left->size()); | 450 | 399 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 399 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 399 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 399 | col_right->get_element(0), vec_res); | 454 | | | 455 | 399 | block.replace_by_position(result, std::move(col_res)); | 456 | 399 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 681 | return Status::OK(); | 469 | 681 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3 | const ColumnPtr& col_right_ptr) const { | 426 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 1 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1 | vec_res.resize(col_left->size()); | 450 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1 | col_right->get_element(0), vec_res); | 454 | | | 455 | 1 | block.replace_by_position(result, std::move(col_res)); | 456 | 1 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 3 | return Status::OK(); | 469 | 3 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.17k | const ColumnPtr& col_right_ptr) const { | 426 | 2.17k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.17k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.17k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.17k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.17k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.17k | if (!left_is_const && !right_is_const) { | 435 | 157 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 157 | vec_res.resize(col_left->get_data().size()); | 439 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 157 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 157 | vec_res); | 443 | | | 444 | 157 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.01k | } else if (!left_is_const && right_is_const) { | 446 | 1.77k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.77k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.77k | vec_res.resize(col_left->size()); | 450 | 1.77k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.77k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.77k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.77k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.77k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.77k | } else if (left_is_const && !right_is_const) { | 457 | 240 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 240 | vec_res.resize(col_right->size()); | 461 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 240 | col_right->get_data(), vec_res); | 465 | | | 466 | 240 | block.replace_by_position(result, std::move(col_res)); | 467 | 240 | } | 468 | 2.17k | return Status::OK(); | 469 | 2.17k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 404 | const ColumnPtr& col_right_ptr) const { | 426 | 404 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 404 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 404 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 404 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 404 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 404 | if (!left_is_const && !right_is_const) { | 435 | 142 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 142 | vec_res.resize(col_left->get_data().size()); | 439 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 142 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 142 | vec_res); | 443 | | | 444 | 142 | block.replace_by_position(result, std::move(col_res)); | 445 | 262 | } else if (!left_is_const && right_is_const) { | 446 | 262 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 262 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 262 | vec_res.resize(col_left->size()); | 450 | 262 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 262 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 262 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 262 | col_right->get_element(0), vec_res); | 454 | | | 455 | 262 | block.replace_by_position(result, std::move(col_res)); | 456 | 262 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 404 | return Status::OK(); | 469 | 404 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 3.29k | const ColumnPtr& col_right_ptr) const { | 426 | 3.29k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 3.29k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 3.29k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 3.29k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 3.29k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 3.29k | if (!left_is_const && !right_is_const) { | 435 | 178 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 178 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 178 | vec_res.resize(col_left->get_data().size()); | 439 | 178 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 178 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 178 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 178 | vec_res); | 443 | | | 444 | 178 | block.replace_by_position(result, std::move(col_res)); | 445 | 3.12k | } else if (!left_is_const && right_is_const) { | 446 | 3.00k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 3.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 3.00k | vec_res.resize(col_left->size()); | 450 | 3.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 3.00k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 3.00k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 3.00k | col_right->get_element(0), vec_res); | 454 | | | 455 | 3.00k | block.replace_by_position(result, std::move(col_res)); | 456 | 3.00k | } else if (left_is_const && !right_is_const) { | 457 | 119 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 119 | vec_res.resize(col_right->size()); | 461 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 119 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 119 | col_right->get_data(), vec_res); | 465 | | | 466 | 119 | block.replace_by_position(result, std::move(col_res)); | 467 | 119 | } | 468 | 3.29k | return Status::OK(); | 469 | 3.29k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.72k | const ColumnPtr& col_right_ptr) const { | 426 | 1.72k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.72k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.72k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.72k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.72k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.72k | if (!left_is_const && !right_is_const) { | 435 | 220 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 220 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 220 | vec_res.resize(col_left->get_data().size()); | 439 | 220 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 220 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 220 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 220 | vec_res); | 443 | | | 444 | 220 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.50k | } else if (!left_is_const && right_is_const) { | 446 | 1.42k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.42k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.42k | vec_res.resize(col_left->size()); | 450 | 1.42k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.42k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.42k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.42k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.42k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.42k | } else if (left_is_const && !right_is_const) { | 457 | 80 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 80 | vec_res.resize(col_right->size()); | 461 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 80 | col_right->get_data(), vec_res); | 465 | | | 466 | 80 | block.replace_by_position(result, std::move(col_res)); | 467 | 80 | } | 468 | 1.72k | return Status::OK(); | 469 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 300 | const ColumnPtr& col_right_ptr) const { | 426 | 300 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 300 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 300 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 300 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 300 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 300 | if (!left_is_const && !right_is_const) { | 435 | 162 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 162 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 162 | vec_res.resize(col_left->get_data().size()); | 439 | 162 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 162 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 162 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 162 | vec_res); | 443 | | | 444 | 162 | block.replace_by_position(result, std::move(col_res)); | 445 | 162 | } else if (!left_is_const && right_is_const) { | 446 | 46 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 46 | vec_res.resize(col_left->size()); | 450 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 46 | col_right->get_element(0), vec_res); | 454 | | | 455 | 46 | block.replace_by_position(result, std::move(col_res)); | 456 | 92 | } else if (left_is_const && !right_is_const) { | 457 | 92 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 92 | vec_res.resize(col_right->size()); | 461 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 92 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 92 | col_right->get_data(), vec_res); | 465 | | | 466 | 92 | block.replace_by_position(result, std::move(col_res)); | 467 | 92 | } | 468 | 300 | return Status::OK(); | 469 | 300 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 18 | const ColumnPtr& col_right_ptr) const { | 426 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 2 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 2 | vec_res.resize(col_left->size()); | 450 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 2 | col_right->get_element(0), vec_res); | 454 | | | 455 | 2 | block.replace_by_position(result, std::move(col_res)); | 456 | 2 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 16 | const ColumnPtr& col_right_ptr) const { | 426 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 16 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 16 | if (!left_is_const && !right_is_const) { | 435 | 16 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 16 | vec_res.resize(col_left->get_data().size()); | 439 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 16 | vec_res); | 443 | | | 444 | 16 | block.replace_by_position(result, std::move(col_res)); | 445 | 16 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 16 | return Status::OK(); | 469 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 189 | const ColumnPtr& col_right_ptr) const { | 426 | 189 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 189 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 189 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 189 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 189 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 189 | if (!left_is_const && !right_is_const) { | 435 | 157 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 157 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 157 | vec_res.resize(col_left->get_data().size()); | 439 | 157 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 157 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 157 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 157 | vec_res); | 443 | | | 444 | 157 | block.replace_by_position(result, std::move(col_res)); | 445 | 157 | } else if (!left_is_const && right_is_const) { | 446 | 32 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 32 | vec_res.resize(col_left->size()); | 450 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 32 | col_right->get_element(0), vec_res); | 454 | | | 455 | 32 | block.replace_by_position(result, std::move(col_res)); | 456 | 32 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 189 | return Status::OK(); | 469 | 189 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 388 | const ColumnPtr& col_right_ptr) const { | 426 | 388 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 388 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 388 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 388 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 388 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 388 | if (!left_is_const && !right_is_const) { | 435 | 154 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 154 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 154 | vec_res.resize(col_left->get_data().size()); | 439 | 154 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 154 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 154 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 154 | vec_res); | 443 | | | 444 | 154 | block.replace_by_position(result, std::move(col_res)); | 445 | 234 | } else if (!left_is_const && right_is_const) { | 446 | 234 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 234 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 234 | vec_res.resize(col_left->size()); | 450 | 234 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 234 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 234 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 234 | col_right->get_element(0), vec_res); | 454 | | | 455 | 234 | block.replace_by_position(result, std::move(col_res)); | 456 | 234 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 388 | return Status::OK(); | 469 | 388 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 147 | const ColumnPtr& col_right_ptr) const { | 426 | 147 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 147 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 147 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 147 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 147 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 147 | if (!left_is_const && !right_is_const) { | 435 | 42 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 42 | vec_res.resize(col_left->get_data().size()); | 439 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 42 | vec_res); | 443 | | | 444 | 42 | block.replace_by_position(result, std::move(col_res)); | 445 | 105 | } else if (!left_is_const && right_is_const) { | 446 | 105 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 105 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 105 | vec_res.resize(col_left->size()); | 450 | 105 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 105 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 105 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 105 | col_right->get_element(0), vec_res); | 454 | | | 455 | 105 | block.replace_by_position(result, std::move(col_res)); | 456 | 105 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 147 | return Status::OK(); | 469 | 147 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 28.8k | const ColumnPtr& col_right_ptr) const { | 426 | 28.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 28.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 28.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 28.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 28.8k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 28.8k | if (!left_is_const && !right_is_const) { | 435 | 478 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 478 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 478 | vec_res.resize(col_left->get_data().size()); | 439 | 478 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 478 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 478 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 478 | vec_res); | 443 | | | 444 | 478 | block.replace_by_position(result, std::move(col_res)); | 445 | 28.3k | } else if (!left_is_const && right_is_const) { | 446 | 28.3k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 28.3k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 28.3k | vec_res.resize(col_left->size()); | 450 | 28.3k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 28.3k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 28.3k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 28.3k | col_right->get_element(0), vec_res); | 454 | | | 455 | 28.3k | block.replace_by_position(result, std::move(col_res)); | 456 | 28.3k | } else if (left_is_const && !right_is_const) { | 457 | 5 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 5 | vec_res.resize(col_right->size()); | 461 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 5 | col_right->get_data(), vec_res); | 465 | | | 466 | 5 | block.replace_by_position(result, std::move(col_res)); | 467 | 5 | } | 468 | 28.8k | return Status::OK(); | 469 | 28.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 438 | const ColumnPtr& col_right_ptr) const { | 426 | 438 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 438 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 438 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 438 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 438 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 438 | if (!left_is_const && !right_is_const) { | 435 | 90 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 90 | vec_res.resize(col_left->get_data().size()); | 439 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 90 | vec_res); | 443 | | | 444 | 90 | block.replace_by_position(result, std::move(col_res)); | 445 | 348 | } else if (!left_is_const && right_is_const) { | 446 | 348 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 348 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 348 | vec_res.resize(col_left->size()); | 450 | 348 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 348 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 348 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 348 | col_right->get_element(0), vec_res); | 454 | | | 455 | 348 | block.replace_by_position(result, std::move(col_res)); | 456 | 348 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 438 | return Status::OK(); | 469 | 438 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2 | const ColumnPtr& col_right_ptr) const { | 426 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2 | if (!left_is_const && !right_is_const) { | 435 | 2 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 2 | vec_res.resize(col_left->get_data().size()); | 439 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 2 | vec_res); | 443 | | | 444 | 2 | block.replace_by_position(result, std::move(col_res)); | 445 | 2 | } else if (!left_is_const && right_is_const) { | 446 | 0 | auto col_res = ColumnUInt8::create(); | 447 | |
| 448 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 0 | vec_res.resize(col_left->size()); | 450 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 0 | col_right->get_element(0), vec_res); | 454 | |
| 455 | 0 | block.replace_by_position(result, std::move(col_res)); | 456 | 0 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 2 | return Status::OK(); | 469 | 2 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 96 | const ColumnPtr& col_right_ptr) const { | 426 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 96 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 96 | if (!left_is_const && !right_is_const) { | 435 | 1 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1 | vec_res.resize(col_left->get_data().size()); | 439 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1 | vec_res); | 443 | | | 444 | 1 | block.replace_by_position(result, std::move(col_res)); | 445 | 95 | } else if (!left_is_const && right_is_const) { | 446 | 95 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 95 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 95 | vec_res.resize(col_left->size()); | 450 | 95 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 95 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 95 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 95 | col_right->get_element(0), vec_res); | 454 | | | 455 | 95 | block.replace_by_position(result, std::move(col_res)); | 456 | 95 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 96 | return Status::OK(); | 469 | 96 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 106 | const ColumnPtr& col_right_ptr) const { | 426 | 106 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 106 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 106 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 106 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 106 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 106 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 106 | } else if (!left_is_const && right_is_const) { | 446 | 106 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 106 | vec_res.resize(col_left->size()); | 450 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 106 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 106 | col_right->get_element(0), vec_res); | 454 | | | 455 | 106 | block.replace_by_position(result, std::move(col_res)); | 456 | 106 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 106 | return Status::OK(); | 469 | 106 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 24.9k | const ColumnPtr& col_right_ptr) const { | 426 | 24.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 24.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 24.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 24.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 24.9k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 24.9k | if (!left_is_const && !right_is_const) { | 435 | 83 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 83 | vec_res.resize(col_left->get_data().size()); | 439 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 83 | vec_res); | 443 | | | 444 | 83 | block.replace_by_position(result, std::move(col_res)); | 445 | 24.8k | } else if (!left_is_const && right_is_const) { | 446 | 24.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 24.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 24.7k | vec_res.resize(col_left->size()); | 450 | 24.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 24.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 24.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 24.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 24.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 24.7k | } else if (left_is_const && !right_is_const) { | 457 | 182 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 182 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 182 | vec_res.resize(col_right->size()); | 461 | 182 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 182 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 182 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 182 | col_right->get_data(), vec_res); | 465 | | | 466 | 182 | block.replace_by_position(result, std::move(col_res)); | 467 | 182 | } | 468 | 24.9k | return Status::OK(); | 469 | 24.9k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.02k | const ColumnPtr& col_right_ptr) const { | 426 | 1.02k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.02k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.02k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.02k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.02k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.02k | if (!left_is_const && !right_is_const) { | 435 | 83 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 83 | vec_res.resize(col_left->get_data().size()); | 439 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 83 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 83 | vec_res); | 443 | | | 444 | 83 | block.replace_by_position(result, std::move(col_res)); | 445 | 942 | } else if (!left_is_const && right_is_const) { | 446 | 894 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 894 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 894 | vec_res.resize(col_left->size()); | 450 | 894 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 894 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 894 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 894 | col_right->get_element(0), vec_res); | 454 | | | 455 | 894 | block.replace_by_position(result, std::move(col_res)); | 456 | 894 | } else if (left_is_const && !right_is_const) { | 457 | 48 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 48 | vec_res.resize(col_right->size()); | 461 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 48 | col_right->get_data(), vec_res); | 465 | | | 466 | 48 | block.replace_by_position(result, std::move(col_res)); | 467 | 48 | } | 468 | 1.02k | return Status::OK(); | 469 | 1.02k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 71 | const ColumnPtr& col_right_ptr) const { | 426 | 71 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 71 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 71 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 71 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 71 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 71 | if (!left_is_const && !right_is_const) { | 435 | 10 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 10 | vec_res.resize(col_left->get_data().size()); | 439 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 10 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 10 | vec_res); | 443 | | | 444 | 10 | block.replace_by_position(result, std::move(col_res)); | 445 | 61 | } else if (!left_is_const && right_is_const) { | 446 | 61 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 61 | vec_res.resize(col_left->size()); | 450 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 61 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 61 | col_right->get_element(0), vec_res); | 454 | | | 455 | 61 | block.replace_by_position(result, std::move(col_res)); | 456 | 61 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 71 | return Status::OK(); | 469 | 71 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 10 | const ColumnPtr& col_right_ptr) const { | 426 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 10 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 10 | if (!left_is_const && !right_is_const) { | 435 | 0 | auto col_res = ColumnUInt8::create(); | 436 | |
| 437 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 0 | vec_res.resize(col_left->get_data().size()); | 439 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 0 | vec_res); | 443 | |
| 444 | 0 | block.replace_by_position(result, std::move(col_res)); | 445 | 10 | } else if (!left_is_const && right_is_const) { | 446 | 10 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 10 | vec_res.resize(col_left->size()); | 450 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 10 | col_right->get_element(0), vec_res); | 454 | | | 455 | 10 | block.replace_by_position(result, std::move(col_res)); | 456 | 10 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 10 | return Status::OK(); | 469 | 10 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 202 | const ColumnPtr& col_right_ptr) const { | 426 | 202 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 202 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 202 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 202 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 202 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 202 | if (!left_is_const && !right_is_const) { | 435 | 100 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 100 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 100 | vec_res.resize(col_left->get_data().size()); | 439 | 100 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 100 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 100 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 100 | vec_res); | 443 | | | 444 | 100 | block.replace_by_position(result, std::move(col_res)); | 445 | 102 | } else if (!left_is_const && right_is_const) { | 446 | 102 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 102 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 102 | vec_res.resize(col_left->size()); | 450 | 102 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 102 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 102 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 102 | col_right->get_element(0), vec_res); | 454 | | | 455 | 102 | block.replace_by_position(result, std::move(col_res)); | 456 | 102 | } else if (left_is_const && !right_is_const) { | 457 | 0 | auto col_res = ColumnUInt8::create(); | 458 | |
| 459 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 0 | vec_res.resize(col_right->size()); | 461 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 0 | col_right->get_data(), vec_res); | 465 | |
| 466 | 0 | block.replace_by_position(result, std::move(col_res)); | 467 | 0 | } | 468 | 202 | return Status::OK(); | 469 | 202 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 135 | const ColumnPtr& col_right_ptr) const { | 426 | 135 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 135 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 135 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 135 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 135 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 135 | if (!left_is_const && !right_is_const) { | 435 | 20 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 20 | vec_res.resize(col_left->get_data().size()); | 439 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 20 | vec_res); | 443 | | | 444 | 20 | block.replace_by_position(result, std::move(col_res)); | 445 | 115 | } else if (!left_is_const && right_is_const) { | 446 | 114 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 114 | vec_res.resize(col_left->size()); | 450 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 114 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 114 | col_right->get_element(0), vec_res); | 454 | | | 455 | 114 | block.replace_by_position(result, std::move(col_res)); | 456 | 114 | } else if (left_is_const && !right_is_const) { | 457 | 1 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 1 | vec_res.resize(col_right->size()); | 461 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 1 | col_right->get_data(), vec_res); | 465 | | | 466 | 1 | block.replace_by_position(result, std::move(col_res)); | 467 | 1 | } | 468 | 135 | return Status::OK(); | 469 | 135 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
470 | | |
471 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
472 | 25.1k | const ColumnWithTypeAndName& col_right) const { |
473 | 25.1k | auto call = [&](const auto& type) -> bool { |
474 | 25.1k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 25.1k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 25.1k | block, result, col_left, col_right); |
477 | 25.1k | return true; |
478 | 25.1k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 265 | auto call = [&](const auto& type) -> bool { | 474 | 265 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 265 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 265 | block, result, col_left, col_right); | 477 | 265 | return true; | 478 | 265 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 282 | auto call = [&](const auto& type) -> bool { | 474 | 282 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 282 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 282 | block, result, col_left, col_right); | 477 | 282 | return true; | 478 | 282 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.16k | auto call = [&](const auto& type) -> bool { | 474 | 1.16k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.16k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.16k | block, result, col_left, col_right); | 477 | 1.16k | return true; | 478 | 1.16k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 68 | auto call = [&](const auto& type) -> bool { | 474 | 68 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 68 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 68 | block, result, col_left, col_right); | 477 | 68 | return true; | 478 | 68 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 324 | auto call = [&](const auto& type) -> bool { | 474 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 324 | block, result, col_left, col_right); | 477 | 324 | return true; | 478 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 30 | auto call = [&](const auto& type) -> bool { | 474 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 30 | block, result, col_left, col_right); | 477 | 30 | return true; | 478 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 46 | auto call = [&](const auto& type) -> bool { | 474 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 46 | block, result, col_left, col_right); | 477 | 46 | return true; | 478 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 16.9k | auto call = [&](const auto& type) -> bool { | 474 | 16.9k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 16.9k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 16.9k | block, result, col_left, col_right); | 477 | 16.9k | return true; | 478 | 16.9k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 1.34k | auto call = [&](const auto& type) -> bool { | 474 | 1.34k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.34k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.34k | block, result, col_left, col_right); | 477 | 1.34k | return true; | 478 | 1.34k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 2 | auto call = [&](const auto& type) -> bool { | 474 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2 | block, result, col_left, col_right); | 477 | 2 | return true; | 478 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 12 | auto call = [&](const auto& type) -> bool { | 474 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 12 | block, result, col_left, col_right); | 477 | 12 | return true; | 478 | 12 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 309 | auto call = [&](const auto& type) -> bool { | 474 | 309 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 309 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 309 | block, result, col_left, col_right); | 477 | 309 | return true; | 478 | 309 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 71 | auto call = [&](const auto& type) -> bool { | 474 | 71 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 71 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 71 | block, result, col_left, col_right); | 477 | 71 | return true; | 478 | 71 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 27 | auto call = [&](const auto& type) -> bool { | 474 | 27 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 27 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 27 | block, result, col_left, col_right); | 477 | 27 | return true; | 478 | 27 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 220 | auto call = [&](const auto& type) -> bool { | 474 | 220 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 220 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 220 | block, result, col_left, col_right); | 477 | 220 | return true; | 478 | 220 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 253 | auto call = [&](const auto& type) -> bool { | 474 | 253 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 253 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 253 | block, result, col_left, col_right); | 477 | 253 | return true; | 478 | 253 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 583 | auto call = [&](const auto& type) -> bool { | 474 | 583 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 583 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 583 | block, result, col_left, col_right); | 477 | 583 | return true; | 478 | 583 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 7 | auto call = [&](const auto& type) -> bool { | 474 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 7 | block, result, col_left, col_right); | 477 | 7 | return true; | 478 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 2.17k | auto call = [&](const auto& type) -> bool { | 474 | 2.17k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 2.17k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 2.17k | block, result, col_left, col_right); | 477 | 2.17k | return true; | 478 | 2.17k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 473 | 954 | auto call = [&](const auto& type) -> bool { | 474 | 954 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 954 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 954 | block, result, col_left, col_right); | 477 | 954 | return true; | 478 | 954 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 22 | auto call = [&](const auto& type) -> bool { | 474 | 22 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 22 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 22 | block, result, col_left, col_right); | 477 | 22 | return true; | 478 | 22 | }; |
|
479 | | |
480 | 25.1k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
481 | 0 | return Status::RuntimeError( |
482 | 0 | "type of left column {} is not equal to type of right column {}", |
483 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
484 | 0 | } |
485 | | |
486 | 25.1k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
488 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
489 | 0 | } |
490 | 25.1k | return Status::OK(); |
491 | 25.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.74k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.74k | auto call = [&](const auto& type) -> bool { | 474 | 1.74k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.74k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.74k | block, result, col_left, col_right); | 477 | 1.74k | return true; | 478 | 1.74k | }; | 479 | | | 480 | 1.74k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.74k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.74k | return Status::OK(); | 491 | 1.74k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 421 | const ColumnWithTypeAndName& col_right) const { | 473 | 421 | auto call = [&](const auto& type) -> bool { | 474 | 421 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 421 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 421 | block, result, col_left, col_right); | 477 | 421 | return true; | 478 | 421 | }; | 479 | | | 480 | 421 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 421 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 421 | return Status::OK(); | 491 | 421 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 18.3k | const ColumnWithTypeAndName& col_right) const { | 473 | 18.3k | auto call = [&](const auto& type) -> bool { | 474 | 18.3k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 18.3k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 18.3k | block, result, col_left, col_right); | 477 | 18.3k | return true; | 478 | 18.3k | }; | 479 | | | 480 | 18.3k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 18.3k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 18.3k | return Status::OK(); | 491 | 18.3k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 419 | const ColumnWithTypeAndName& col_right) const { | 473 | 419 | auto call = [&](const auto& type) -> bool { | 474 | 419 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 419 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 419 | block, result, col_left, col_right); | 477 | 419 | return true; | 478 | 419 | }; | 479 | | | 480 | 419 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 419 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 419 | return Status::OK(); | 491 | 419 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.05k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.05k | auto call = [&](const auto& type) -> bool { | 474 | 1.05k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.05k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.05k | block, result, col_left, col_right); | 477 | 1.05k | return true; | 478 | 1.05k | }; | 479 | | | 480 | 1.05k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 1.05k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 1.05k | return Status::OK(); | 491 | 1.05k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 3.16k | const ColumnWithTypeAndName& col_right) const { | 473 | 3.16k | auto call = [&](const auto& type) -> bool { | 474 | 3.16k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 3.16k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 3.16k | block, result, col_left, col_right); | 477 | 3.16k | return true; | 478 | 3.16k | }; | 479 | | | 480 | 3.16k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 481 | 0 | return Status::RuntimeError( | 482 | 0 | "type of left column {} is not equal to type of right column {}", | 483 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 484 | 0 | } | 485 | | | 486 | 3.16k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 487 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 488 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 489 | 0 | } | 490 | 3.16k | return Status::OK(); | 491 | 3.16k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 28.9k | const IColumn* c1) const { |
495 | 28.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 28.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 28.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 28.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 28.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 28.9k | DCHECK(!(c0_const && c1_const)); |
504 | 28.9k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 28.9k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 28.9k | ColumnString::Offset c0_const_size = 0; |
507 | 28.9k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 28.9k | if (c0_const) { |
510 | 6 | const ColumnString* c0_const_string = |
511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 6 | if (c0_const_string) { |
514 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 6 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 6 | } |
521 | | |
522 | 28.9k | if (c1_const) { |
523 | 26.3k | const ColumnString* c1_const_string = |
524 | 26.3k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 26.3k | if (c1_const_string) { |
527 | 26.3k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 26.3k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 26.3k | } else { |
530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 1 | c1->get_name(), name); |
532 | 1 | } |
533 | 26.3k | } |
534 | | |
535 | 28.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 28.9k | auto c_res = ColumnUInt8::create(); |
538 | 28.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 28.9k | vec_res.resize(c0->size()); |
540 | | |
541 | 28.9k | if (c0_string && c1_string) { |
542 | 2.60k | StringImpl::string_vector_string_vector( |
543 | 2.60k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 2.60k | c1_string->get_offsets(), vec_res); |
545 | 26.3k | } else if (c0_string && c1_const) { |
546 | 26.3k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 26.3k | *c1_const_chars, c1_const_size, vec_res); |
548 | 26.3k | } else if (c0_const && c1_string) { |
549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 6 | vec_res); |
552 | 18.4E | } else { |
553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
554 | 18.4E | c0->get_name(), c1->get_name(), name); |
555 | 18.4E | } |
556 | 28.9k | block.replace_by_position(result, std::move(c_res)); |
557 | 28.9k | return Status::OK(); |
558 | 28.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 24.1k | const IColumn* c1) const { | 495 | 24.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 24.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 24.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 24.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 24.1k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 24.1k | DCHECK(!(c0_const && c1_const)); | 504 | 24.1k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 24.1k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 24.1k | ColumnString::Offset c0_const_size = 0; | 507 | 24.1k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 24.1k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 24.1k | if (c1_const) { | 523 | 22.3k | const ColumnString* c1_const_string = | 524 | 22.3k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 22.3k | if (c1_const_string) { | 527 | 22.3k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 22.3k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 22.3k | } else { | 530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 1 | c1->get_name(), name); | 532 | 1 | } | 533 | 22.3k | } | 534 | | | 535 | 24.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 24.1k | auto c_res = ColumnUInt8::create(); | 538 | 24.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 24.1k | vec_res.resize(c0->size()); | 540 | | | 541 | 24.1k | if (c0_string && c1_string) { | 542 | 1.85k | StringImpl::string_vector_string_vector( | 543 | 1.85k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 1.85k | c1_string->get_offsets(), vec_res); | 545 | 22.3k | } else if (c0_string && c1_const) { | 546 | 22.3k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 22.3k | *c1_const_chars, c1_const_size, vec_res); | 548 | 18.4E | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 24.1k | block.replace_by_position(result, std::move(c_res)); | 557 | 24.1k | return Status::OK(); | 558 | 24.1k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 2.45k | const IColumn* c1) const { | 495 | 2.45k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 2.45k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 2.45k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 2.45k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 2.45k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 2.45k | DCHECK(!(c0_const && c1_const)); | 504 | 2.45k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 2.45k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 2.45k | ColumnString::Offset c0_const_size = 0; | 507 | 2.45k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 2.45k | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 2.45k | if (c1_const) { | 523 | 2.40k | const ColumnString* c1_const_string = | 524 | 2.40k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 2.40k | if (c1_const_string) { | 527 | 2.40k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 2.40k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 2.40k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 2.40k | } | 534 | | | 535 | 2.45k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 2.45k | auto c_res = ColumnUInt8::create(); | 538 | 2.45k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 2.45k | vec_res.resize(c0->size()); | 540 | | | 541 | 2.45k | if (c0_string && c1_string) { | 542 | 49 | StringImpl::string_vector_string_vector( | 543 | 49 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 49 | c1_string->get_offsets(), vec_res); | 545 | 2.40k | } else if (c0_string && c1_const) { | 546 | 2.40k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 2.40k | *c1_const_chars, c1_const_size, vec_res); | 548 | 2.40k | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 2.45k | block.replace_by_position(result, std::move(c_res)); | 557 | 2.45k | return Status::OK(); | 558 | 2.45k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 181 | const IColumn* c1) const { | 495 | 181 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 181 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 181 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 181 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 181 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 181 | DCHECK(!(c0_const && c1_const)); | 504 | 181 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 181 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 181 | ColumnString::Offset c0_const_size = 0; | 507 | 181 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 181 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 181 | if (c1_const) { | 523 | 179 | const ColumnString* c1_const_string = | 524 | 179 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 179 | if (c1_const_string) { | 527 | 179 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 179 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 179 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 179 | } | 534 | | | 535 | 181 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 181 | auto c_res = ColumnUInt8::create(); | 538 | 181 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 181 | vec_res.resize(c0->size()); | 540 | | | 541 | 181 | if (c0_string && c1_string) { | 542 | 2 | StringImpl::string_vector_string_vector( | 543 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 2 | c1_string->get_offsets(), vec_res); | 545 | 179 | } else if (c0_string && c1_const) { | 546 | 179 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 179 | *c1_const_chars, c1_const_size, vec_res); | 548 | 179 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 181 | block.replace_by_position(result, std::move(c_res)); | 557 | 181 | return Status::OK(); | 558 | 181 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 652 | const IColumn* c1) const { | 495 | 652 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 652 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 652 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 652 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 652 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 652 | DCHECK(!(c0_const && c1_const)); | 504 | 652 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 652 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 652 | ColumnString::Offset c0_const_size = 0; | 507 | 652 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 652 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 652 | if (c1_const) { | 523 | 530 | const ColumnString* c1_const_string = | 524 | 530 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 530 | if (c1_const_string) { | 527 | 530 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 530 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 530 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 530 | } | 534 | | | 535 | 652 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 652 | auto c_res = ColumnUInt8::create(); | 538 | 652 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 652 | vec_res.resize(c0->size()); | 540 | | | 541 | 652 | if (c0_string && c1_string) { | 542 | 122 | StringImpl::string_vector_string_vector( | 543 | 122 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 122 | c1_string->get_offsets(), vec_res); | 545 | 530 | } else if (c0_string && c1_const) { | 546 | 530 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 530 | *c1_const_chars, c1_const_size, vec_res); | 548 | 530 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 652 | block.replace_by_position(result, std::move(c_res)); | 557 | 652 | return Status::OK(); | 558 | 652 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 657 | const IColumn* c1) const { | 495 | 657 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 657 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 657 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 657 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 657 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 657 | DCHECK(!(c0_const && c1_const)); | 504 | 657 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 657 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 657 | ColumnString::Offset c0_const_size = 0; | 507 | 657 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 657 | if (c0_const) { | 510 | 6 | const ColumnString* c0_const_string = | 511 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 6 | if (c0_const_string) { | 514 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 6 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 6 | } | 521 | | | 522 | 657 | if (c1_const) { | 523 | 243 | const ColumnString* c1_const_string = | 524 | 243 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 243 | if (c1_const_string) { | 527 | 243 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 243 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 243 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 243 | } | 534 | | | 535 | 657 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 657 | auto c_res = ColumnUInt8::create(); | 538 | 657 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 657 | vec_res.resize(c0->size()); | 540 | | | 541 | 657 | if (c0_string && c1_string) { | 542 | 409 | StringImpl::string_vector_string_vector( | 543 | 409 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 409 | c1_string->get_offsets(), vec_res); | 545 | 409 | } else if (c0_string && c1_const) { | 546 | 243 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 243 | *c1_const_chars, c1_const_size, vec_res); | 548 | 243 | } else if (c0_const && c1_string) { | 549 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 6 | vec_res); | 552 | 18.4E | } else { | 553 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 18.4E | c0->get_name(), c1->get_name(), name); | 555 | 18.4E | } | 556 | 658 | block.replace_by_position(result, std::move(c_res)); | 557 | 658 | return Status::OK(); | 558 | 657 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 857 | const IColumn* c1) const { | 495 | 857 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 857 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 857 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 857 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 857 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 501 | 0 | c0->get_name(), c1->get_name(), name); | 502 | 0 | } | 503 | 857 | DCHECK(!(c0_const && c1_const)); | 504 | 857 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 857 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 857 | ColumnString::Offset c0_const_size = 0; | 507 | 857 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 857 | if (c0_const) { | 510 | 0 | const ColumnString* c0_const_string = | 511 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | |
| 513 | 0 | if (c0_const_string) { | 514 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 0 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 0 | } | 521 | | | 522 | 857 | if (c1_const) { | 523 | 685 | const ColumnString* c1_const_string = | 524 | 685 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 685 | if (c1_const_string) { | 527 | 685 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 685 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 685 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 685 | } | 534 | | | 535 | 857 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 857 | auto c_res = ColumnUInt8::create(); | 538 | 857 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 857 | vec_res.resize(c0->size()); | 540 | | | 541 | 857 | if (c0_string && c1_string) { | 542 | 172 | StringImpl::string_vector_string_vector( | 543 | 172 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 172 | c1_string->get_offsets(), vec_res); | 545 | 685 | } else if (c0_string && c1_const) { | 546 | 685 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 685 | *c1_const_chars, c1_const_size, vec_res); | 548 | 685 | } else if (c0_const && c1_string) { | 549 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 0 | vec_res); | 552 | 0 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 857 | block.replace_by_position(result, std::move(c_res)); | 557 | 857 | return Status::OK(); | 558 | 857 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 151 | const IColumn* c1) const { |
562 | 151 | bool c0_const = is_column_const(*c0); |
563 | 151 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 151 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 151 | auto c_res = ColumnUInt8::create(); |
568 | 151 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 151 | vec_res.resize(c0->size()); |
570 | | |
571 | 151 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 151 | } else if (c1_const) { |
574 | 142 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 142 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 151 | block.replace_by_position(result, std::move(c_res)); |
580 | 151 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 17 | const IColumn* c1) const { | 562 | 17 | bool c0_const = is_column_const(*c0); | 563 | 17 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 17 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 17 | auto c_res = ColumnUInt8::create(); | 568 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 17 | vec_res.resize(c0->size()); | 570 | | | 571 | 17 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 17 | } else if (c1_const) { | 574 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 13 | } else { | 576 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 4 | } | 578 | | | 579 | 17 | block.replace_by_position(result, std::move(c_res)); | 580 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 8 | const IColumn* c1) const { | 562 | 8 | bool c0_const = is_column_const(*c0); | 563 | 8 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 8 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 8 | auto c_res = ColumnUInt8::create(); | 568 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 8 | vec_res.resize(c0->size()); | 570 | | | 571 | 8 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 8 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 8 | block.replace_by_position(result, std::move(c_res)); | 580 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 9 | const IColumn* c1) const { | 562 | 9 | bool c0_const = is_column_const(*c0); | 563 | 9 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 9 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 9 | auto c_res = ColumnUInt8::create(); | 568 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 9 | vec_res.resize(c0->size()); | 570 | | | 571 | 9 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 9 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 9 | block.replace_by_position(result, std::move(c_res)); | 580 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 61 | const IColumn* c1) const { | 562 | 61 | bool c0_const = is_column_const(*c0); | 563 | 61 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 61 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 61 | auto c_res = ColumnUInt8::create(); | 568 | 61 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 61 | vec_res.resize(c0->size()); | 570 | | | 571 | 61 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 61 | } else if (c1_const) { | 574 | 60 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 60 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 61 | block.replace_by_position(result, std::move(c_res)); | 580 | 61 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 11 | const IColumn* c1) const { | 562 | 11 | bool c0_const = is_column_const(*c0); | 563 | 11 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 11 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 11 | auto c_res = ColumnUInt8::create(); | 568 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 11 | vec_res.resize(c0->size()); | 570 | | | 571 | 11 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 11 | } else if (c1_const) { | 574 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 8 | } else { | 576 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 3 | } | 578 | | | 579 | 11 | block.replace_by_position(result, std::move(c_res)); | 580 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 561 | 45 | const IColumn* c1) const { | 562 | 45 | bool c0_const = is_column_const(*c0); | 563 | 45 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 45 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 45 | auto c_res = ColumnUInt8::create(); | 568 | 45 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 45 | vec_res.resize(c0->size()); | 570 | | | 571 | 45 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 45 | } else if (c1_const) { | 574 | 45 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 45 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 45 | block.replace_by_position(result, std::move(c_res)); | 580 | 45 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 151 | const ColumnWithTypeAndName& c1) const { |
584 | 151 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 151 | return Status::OK(); |
586 | 151 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 17 | const ColumnWithTypeAndName& c1) const { | 584 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 17 | return Status::OK(); | 586 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 8 | const ColumnWithTypeAndName& c1) const { | 584 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 8 | return Status::OK(); | 586 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 9 | const ColumnWithTypeAndName& c1) const { | 584 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 9 | return Status::OK(); | 586 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 61 | const ColumnWithTypeAndName& c1) const { | 584 | 61 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 61 | return Status::OK(); | 586 | 61 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 11 | const ColumnWithTypeAndName& c1) const { | 584 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 11 | return Status::OK(); | 586 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 583 | 45 | const ColumnWithTypeAndName& c1) const { | 584 | 45 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 45 | return Status::OK(); | 586 | 45 | } |
|
587 | | |
588 | | public: |
589 | 221 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 37 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 39 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 80 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 542k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 451k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 2.79k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 42.9k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 14.6k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 4.54k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 25.9k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 34.9k | const VExprSPtrs& arguments) const override { |
595 | 34.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 34.9k | DORIS_CHECK(op.has_value()); |
597 | 34.9k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 34.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.32k | const VExprSPtrs& arguments) const override { | 595 | 9.32k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.32k | DORIS_CHECK(op.has_value()); | 597 | 9.32k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.32k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.16k | const VExprSPtrs& arguments) const override { | 595 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.16k | DORIS_CHECK(op.has_value()); | 597 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.10k | const VExprSPtrs& arguments) const override { | 595 | 5.10k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.10k | DORIS_CHECK(op.has_value()); | 597 | 5.10k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.10k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 6.69k | const VExprSPtrs& arguments) const override { | 595 | 6.69k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 6.69k | DORIS_CHECK(op.has_value()); | 597 | 6.69k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 6.69k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 3.04k | const VExprSPtrs& arguments) const override { | 595 | 3.04k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 3.04k | DORIS_CHECK(op.has_value()); | 597 | 3.04k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 3.04k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 9.60k | const VExprSPtrs& arguments) const override { | 595 | 9.60k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 9.60k | DORIS_CHECK(op.has_value()); | 597 | 9.60k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 9.60k | } |
|
599 | | |
600 | 104k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 104k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 104k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 104k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 41.5k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 41.5k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 41.5k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 41.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 3.97k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 3.97k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 3.97k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 3.97k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 15.4k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 15.4k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 15.4k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 15.4k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 15.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 15.3k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 15.3k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 15.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 8.87k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 8.87k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 8.87k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 8.87k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 19.0k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 19.0k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 19.0k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 19.0k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 40.9k | const VExprSPtrs& arguments) const override { |
607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 40.9k | DORIS_CHECK(op.has_value()); |
609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 40.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 40.9k | const VExprSPtrs& arguments) const override { | 607 | 40.9k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 40.9k | DORIS_CHECK(op.has_value()); | 609 | 40.9k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 40.9k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
611 | | |
612 | 58.1k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 58.1k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 58.1k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 58.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 51.2k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 51.2k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 51.2k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 51.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 1.34k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 1.34k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 1.34k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 3.29k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 3.29k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 3.29k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 3.29k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 864 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 864 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 864 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 864 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 976 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 976 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 978 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 976 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 342 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 342 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 342 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 342 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 14 | const VExprSPtrs& arguments) const override { |
619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 14 | DORIS_CHECK(op.has_value()); |
621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 14 | const VExprSPtrs& arguments) const override { | 619 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 14 | DORIS_CHECK(op.has_value()); | 621 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
623 | | |
624 | 8.52k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 8.52k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 8.52k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 8.52k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 4.95k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 4.95k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 4.95k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 4.95k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 695 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 1.68k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 1.68k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 1.68k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 1.68k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 432 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 432 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 432 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 432 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 520 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 520 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 520 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 520 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 244 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 244 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 244 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 244 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 543k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 543k | return std::make_shared<DataTypeUInt8>(); |
632 | 543k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 452k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 452k | return std::make_shared<DataTypeUInt8>(); | 632 | 452k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 2.79k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 2.79k | return std::make_shared<DataTypeUInt8>(); | 632 | 2.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 43.0k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 43.0k | return std::make_shared<DataTypeUInt8>(); | 632 | 43.0k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 14.6k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 14.6k | return std::make_shared<DataTypeUInt8>(); | 632 | 14.6k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 4.54k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 4.54k | return std::make_shared<DataTypeUInt8>(); | 632 | 4.54k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 26.0k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 26.0k | return std::make_shared<DataTypeUInt8>(); | 632 | 26.0k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.35k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.35k | DCHECK(arguments.size() == 1); |
641 | 1.35k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.35k | DCHECK(iterators.size() == 1); |
643 | 1.35k | auto* iter = iterators[0]; |
644 | 1.35k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.35k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.35k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 310 | return Status::OK(); |
650 | 310 | } |
651 | 1.04k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.04k | std::string_view name_view(name); |
653 | 1.04k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 727 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 727 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 244 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 163 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 18.4E | } else { |
664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 18.4E | } |
666 | | |
667 | 1.05k | if (segment_v2::is_range_query(query_type) && |
668 | 1.05k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 917 | Field param_value; |
673 | 917 | arguments[0].column->get(0, param_value); |
674 | 917 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 915 | segment_v2::InvertedIndexParam param; |
678 | 915 | param.column_name = data_type_with_name.first; |
679 | 915 | param.column_type = data_type_with_name.second; |
680 | 915 | param.query_value = param_value; |
681 | 915 | param.query_type = query_type; |
682 | 915 | param.num_rows = num_rows; |
683 | 915 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 915 | param.analyzer_ctx = analyzer_ctx; |
685 | 915 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 758 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 758 | if (iter->has_null()) { |
688 | 758 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 758 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 758 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 758 | } |
692 | 758 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 758 | bitmap_result = result; |
694 | 758 | bitmap_result.mask_out_null(); |
695 | | |
696 | 758 | if (name_view == NameNotEquals::name) { |
697 | 59 | roaring::Roaring full_result; |
698 | 59 | full_result.addRange(0, num_rows); |
699 | 59 | bitmap_result.op_not(&full_result); |
700 | 59 | } |
701 | | |
702 | 758 | return Status::OK(); |
703 | 758 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 700 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 700 | DCHECK(arguments.size() == 1); | 641 | 700 | DCHECK(data_type_with_names.size() == 1); | 642 | 700 | DCHECK(iterators.size() == 1); | 643 | 700 | auto* iter = iterators[0]; | 644 | 700 | auto data_type_with_name = data_type_with_names[0]; | 645 | 700 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 700 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 42 | return Status::OK(); | 650 | 42 | } | 651 | 658 | segment_v2::InvertedIndexQueryType query_type; | 652 | 658 | std::string_view name_view(name); | 653 | 661 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 661 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 18.4E | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 18.4E | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 18.4E | } else { | 664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 18.4E | } | 666 | | | 667 | 661 | if (segment_v2::is_range_query(query_type) && | 668 | 661 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 661 | Field param_value; | 673 | 661 | arguments[0].column->get(0, param_value); | 674 | 661 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 659 | segment_v2::InvertedIndexParam param; | 678 | 659 | param.column_name = data_type_with_name.first; | 679 | 659 | param.column_type = data_type_with_name.second; | 680 | 659 | param.query_value = param_value; | 681 | 659 | param.query_type = query_type; | 682 | 659 | param.num_rows = num_rows; | 683 | 659 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 659 | param.analyzer_ctx = analyzer_ctx; | 685 | 659 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 609 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 609 | if (iter->has_null()) { | 688 | 609 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 609 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 609 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 609 | } | 692 | 609 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 609 | bitmap_result = result; | 694 | 609 | bitmap_result.mask_out_null(); | 695 | | | 696 | 609 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 609 | return Status::OK(); | 703 | 609 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 72 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 72 | DCHECK(arguments.size() == 1); | 641 | 72 | DCHECK(data_type_with_names.size() == 1); | 642 | 72 | DCHECK(iterators.size() == 1); | 643 | 72 | auto* iter = iterators[0]; | 644 | 72 | auto data_type_with_name = data_type_with_names[0]; | 645 | 72 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 72 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 6 | return Status::OK(); | 650 | 6 | } | 651 | 66 | segment_v2::InvertedIndexQueryType query_type; | 652 | 66 | std::string_view name_view(name); | 653 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 66 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 0 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 66 | if (segment_v2::is_range_query(query_type) && | 668 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 0 | return Status::OK(); | 671 | 0 | } | 672 | 66 | Field param_value; | 673 | 66 | arguments[0].column->get(0, param_value); | 674 | 66 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 66 | segment_v2::InvertedIndexParam param; | 678 | 66 | param.column_name = data_type_with_name.first; | 679 | 66 | param.column_type = data_type_with_name.second; | 680 | 66 | param.query_value = param_value; | 681 | 66 | param.query_type = query_type; | 682 | 66 | param.num_rows = num_rows; | 683 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 66 | param.analyzer_ctx = analyzer_ctx; | 685 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 59 | if (iter->has_null()) { | 688 | 59 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 59 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 59 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 59 | } | 692 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 59 | bitmap_result = result; | 694 | 59 | bitmap_result.mask_out_null(); | 695 | | | 696 | 59 | if (name_view == NameNotEquals::name) { | 697 | 59 | roaring::Roaring full_result; | 698 | 59 | full_result.addRange(0, num_rows); | 699 | 59 | bitmap_result.op_not(&full_result); | 700 | 59 | } | 701 | | | 702 | 59 | return Status::OK(); | 703 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 112 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 112 | DCHECK(arguments.size() == 1); | 641 | 112 | DCHECK(data_type_with_names.size() == 1); | 642 | 112 | DCHECK(iterators.size() == 1); | 643 | 112 | auto* iter = iterators[0]; | 644 | 112 | auto data_type_with_name = data_type_with_names[0]; | 645 | 112 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 112 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 73 | segment_v2::InvertedIndexQueryType query_type; | 652 | 73 | std::string_view name_view(name); | 653 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 73 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 73 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 73 | } else if (name_view == NameGreater::name) { | 660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 73 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 73 | if (segment_v2::is_range_query(query_type) && | 668 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 17 | return Status::OK(); | 671 | 17 | } | 672 | 56 | Field param_value; | 673 | 56 | arguments[0].column->get(0, param_value); | 674 | 56 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 56 | segment_v2::InvertedIndexParam param; | 678 | 56 | param.column_name = data_type_with_name.first; | 679 | 56 | param.column_type = data_type_with_name.second; | 680 | 56 | param.query_value = param_value; | 681 | 56 | param.query_type = query_type; | 682 | 56 | param.num_rows = num_rows; | 683 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 56 | param.analyzer_ctx = analyzer_ctx; | 685 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 37 | if (iter->has_null()) { | 688 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 37 | } | 692 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 37 | bitmap_result = result; | 694 | 37 | bitmap_result.mask_out_null(); | 695 | | | 696 | 37 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 37 | return Status::OK(); | 703 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 179 | DCHECK(arguments.size() == 1); | 641 | 179 | DCHECK(data_type_with_names.size() == 1); | 642 | 179 | DCHECK(iterators.size() == 1); | 643 | 179 | auto* iter = iterators[0]; | 644 | 179 | auto data_type_with_name = data_type_with_names[0]; | 645 | 179 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 86 | return Status::OK(); | 650 | 86 | } | 651 | 93 | segment_v2::InvertedIndexQueryType query_type; | 652 | 93 | std::string_view name_view(name); | 653 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 93 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 93 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 93 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 93 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 93 | if (segment_v2::is_range_query(query_type) && | 668 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 47 | return Status::OK(); | 671 | 47 | } | 672 | 46 | Field param_value; | 673 | 46 | arguments[0].column->get(0, param_value); | 674 | 46 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 46 | segment_v2::InvertedIndexParam param; | 678 | 46 | param.column_name = data_type_with_name.first; | 679 | 46 | param.column_type = data_type_with_name.second; | 680 | 46 | param.query_value = param_value; | 681 | 46 | param.query_type = query_type; | 682 | 46 | param.num_rows = num_rows; | 683 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 46 | param.analyzer_ctx = analyzer_ctx; | 685 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 5 | if (iter->has_null()) { | 688 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 5 | } | 692 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 5 | bitmap_result = result; | 694 | 5 | bitmap_result.mask_out_null(); | 695 | | | 696 | 5 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 5 | return Status::OK(); | 703 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 119 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 119 | DCHECK(arguments.size() == 1); | 641 | 119 | DCHECK(data_type_with_names.size() == 1); | 642 | 119 | DCHECK(iterators.size() == 1); | 643 | 119 | auto* iter = iterators[0]; | 644 | 119 | auto data_type_with_name = data_type_with_names[0]; | 645 | 119 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 119 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 43 | return Status::OK(); | 650 | 43 | } | 651 | 76 | segment_v2::InvertedIndexQueryType query_type; | 652 | 76 | std::string_view name_view(name); | 653 | 76 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 76 | } else if (name_view == NameLess::name) { | 656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 76 | } else if (name_view == NameLessOrEquals::name) { | 658 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 0 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 76 | if (segment_v2::is_range_query(query_type) && | 668 | 76 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 18 | return Status::OK(); | 671 | 18 | } | 672 | 58 | Field param_value; | 673 | 58 | arguments[0].column->get(0, param_value); | 674 | 58 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 58 | segment_v2::InvertedIndexParam param; | 678 | 58 | param.column_name = data_type_with_name.first; | 679 | 58 | param.column_type = data_type_with_name.second; | 680 | 58 | param.query_value = param_value; | 681 | 58 | param.query_type = query_type; | 682 | 58 | param.num_rows = num_rows; | 683 | 58 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 58 | param.analyzer_ctx = analyzer_ctx; | 685 | 58 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 39 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 39 | if (iter->has_null()) { | 688 | 39 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 39 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 39 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 39 | } | 692 | 39 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 39 | bitmap_result = result; | 694 | 39 | bitmap_result.mask_out_null(); | 695 | | | 696 | 39 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 39 | return Status::OK(); | 703 | 39 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 175 | DCHECK(arguments.size() == 1); | 641 | 175 | DCHECK(data_type_with_names.size() == 1); | 642 | 175 | DCHECK(iterators.size() == 1); | 643 | 175 | auto* iter = iterators[0]; | 644 | 175 | auto data_type_with_name = data_type_with_names[0]; | 645 | 175 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 94 | return Status::OK(); | 650 | 94 | } | 651 | 81 | segment_v2::InvertedIndexQueryType query_type; | 652 | 81 | std::string_view name_view(name); | 653 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 81 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 81 | } else if (name_view == NameLessOrEquals::name) { | 658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 659 | 81 | } else if (name_view == NameGreater::name) { | 660 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 661 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 662 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 663 | 0 | } else { | 664 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 665 | 0 | } | 666 | | | 667 | 81 | if (segment_v2::is_range_query(query_type) && | 668 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 670 | 51 | return Status::OK(); | 671 | 51 | } | 672 | 30 | Field param_value; | 673 | 30 | arguments[0].column->get(0, param_value); | 674 | 30 | if (param_value.is_null()) { | 675 | 0 | return Status::OK(); | 676 | 0 | } | 677 | 30 | segment_v2::InvertedIndexParam param; | 678 | 30 | param.column_name = data_type_with_name.first; | 679 | 30 | param.column_type = data_type_with_name.second; | 680 | 30 | param.query_value = param_value; | 681 | 30 | param.query_type = query_type; | 682 | 30 | param.num_rows = num_rows; | 683 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 30 | param.analyzer_ctx = analyzer_ctx; | 685 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 9 | if (iter->has_null()) { | 688 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 9 | } | 692 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 9 | bitmap_result = result; | 694 | 9 | bitmap_result.mask_out_null(); | 695 | | | 696 | 9 | if (name_view == NameNotEquals::name) { | 697 | 0 | roaring::Roaring full_result; | 698 | 0 | full_result.addRange(0, num_rows); | 699 | 0 | bitmap_result.op_not(&full_result); | 700 | 0 | } | 701 | | | 702 | 9 | return Status::OK(); | 703 | 9 | } |
|
704 | | |
705 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
706 | 248k | uint32_t result, size_t input_rows_count) const override { |
707 | 248k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 248k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 248k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 248k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 248k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 248k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 248k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 248k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
717 | | |
718 | | /// The case when arguments are the same (tautological comparison). Return constant. |
719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
721 | 248k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 248k | col_left_untyped == col_right_untyped) { |
723 | | /// Always true: =, <=, >= |
724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
728 | 0 | block.get_by_position(result).column = |
729 | 0 | DataTypeUInt8() |
730 | 0 | .create_column_const(input_rows_count, |
731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
732 | 0 | ->convert_to_full_column_if_const(); |
733 | 0 | return Status::OK(); |
734 | 0 | } else { |
735 | 0 | block.get_by_position(result).column = |
736 | 0 | DataTypeUInt8() |
737 | 0 | .create_column_const(input_rows_count, |
738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
739 | 0 | ->convert_to_full_column_if_const(); |
740 | 0 | return Status::OK(); |
741 | 0 | } |
742 | 0 | } |
743 | | |
744 | 443k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 443k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 443k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 137k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 137k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 137k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 15.3k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 15.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 15.3k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 107k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 107k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 107k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 42.2k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 42.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 42.2k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 24.7k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 24.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 24.7k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 116k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 116k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 116k | }; |
|
747 | | |
748 | 248k | if (can_compare(left_type->get_primitive_type()) && |
749 | 248k | can_compare(right_type->get_primitive_type())) { |
750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
751 | 194k | if (!left_type->equals_ignore_precision(*right_type)) { |
752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
753 | 0 | get_name(), left_type->get_name(), |
754 | 0 | right_type->get_name()); |
755 | 0 | } |
756 | 194k | } |
757 | | |
758 | 248k | auto compare_type = left_type->get_primitive_type(); |
759 | 248k | switch (compare_type) { |
760 | 2.00k | case TYPE_BOOLEAN: |
761 | 2.00k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 36.4k | case TYPE_DATEV2: |
763 | 36.4k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 2.71k | case TYPE_DATETIMEV2: |
765 | 2.71k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 12 | case TYPE_TIMESTAMPTZ: |
767 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 10.7k | case TYPE_TINYINT: |
769 | 10.7k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 3.99k | case TYPE_SMALLINT: |
771 | 3.99k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 83.6k | case TYPE_INT: |
773 | 83.6k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 49.2k | case TYPE_BIGINT: |
775 | 49.2k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 809 | case TYPE_LARGEINT: |
777 | 809 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 61 | case TYPE_IPV4: |
779 | 61 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
780 | 37 | case TYPE_IPV6: |
781 | 37 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
782 | 981 | case TYPE_FLOAT: |
783 | 981 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.93k | case TYPE_DOUBLE: |
785 | 3.93k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
786 | 4 | case TYPE_TIMEV2: |
787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
788 | 0 | case TYPE_DECIMALV2: |
789 | 550 | case TYPE_DECIMAL32: |
790 | 20.5k | case TYPE_DECIMAL64: |
791 | 25.0k | case TYPE_DECIMAL128I: |
792 | 25.1k | case TYPE_DECIMAL256: |
793 | 25.1k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 25.1k | col_with_type_and_name_right); |
795 | 1.04k | case TYPE_CHAR: |
796 | 10.0k | case TYPE_VARCHAR: |
797 | 28.9k | case TYPE_STRING: |
798 | 28.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 151 | default: |
800 | 151 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 151 | col_with_type_and_name_right); |
802 | 248k | } |
803 | 0 | return Status::OK(); |
804 | 248k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 81.5k | uint32_t result, size_t input_rows_count) const override { | 707 | 81.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 81.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 81.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 81.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 81.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 81.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 81.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 81.5k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 81.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 81.5k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 81.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 81.5k | }; | 747 | | | 748 | 81.5k | if (can_compare(left_type->get_primitive_type()) && | 749 | 81.5k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 55.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 55.6k | } | 757 | | | 758 | 81.5k | auto compare_type = left_type->get_primitive_type(); | 759 | 81.5k | switch (compare_type) { | 760 | 1.62k | case TYPE_BOOLEAN: | 761 | 1.62k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.72k | case TYPE_DATEV2: | 763 | 1.72k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 670 | case TYPE_DATETIMEV2: | 765 | 670 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 6.99k | case TYPE_TINYINT: | 769 | 6.99k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.60k | case TYPE_SMALLINT: | 771 | 1.60k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 12.7k | case TYPE_INT: | 773 | 12.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 29.1k | case TYPE_BIGINT: | 775 | 29.1k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 153 | case TYPE_LARGEINT: | 777 | 153 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 19 | case TYPE_IPV6: | 781 | 19 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 100 | case TYPE_FLOAT: | 783 | 100 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 818 | case TYPE_DOUBLE: | 785 | 818 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 4 | case TYPE_TIMEV2: | 787 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 265 | case TYPE_DECIMAL32: | 790 | 547 | case TYPE_DECIMAL64: | 791 | 1.71k | case TYPE_DECIMAL128I: | 792 | 1.74k | case TYPE_DECIMAL256: | 793 | 1.74k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.74k | col_with_type_and_name_right); | 795 | 728 | case TYPE_CHAR: | 796 | 8.64k | case TYPE_VARCHAR: | 797 | 24.1k | case TYPE_STRING: | 798 | 24.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 17 | default: | 800 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 17 | col_with_type_and_name_right); | 802 | 81.5k | } | 803 | 0 | return Status::OK(); | 804 | 81.5k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 9.12k | uint32_t result, size_t input_rows_count) const override { | 707 | 9.12k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 9.12k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 9.12k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 9.12k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 9.12k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 9.12k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 9.12k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 9.12k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 9.12k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 9.12k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 9.12k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 9.12k | }; | 747 | | | 748 | 9.12k | if (can_compare(left_type->get_primitive_type()) && | 749 | 9.12k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 6.23k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 6.23k | } | 757 | | | 758 | 9.12k | auto compare_type = left_type->get_primitive_type(); | 759 | 9.12k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 82 | case TYPE_DATEV2: | 763 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 4 | case TYPE_DATETIMEV2: | 765 | 4 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 0 | case TYPE_TIMESTAMPTZ: | 767 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 100 | case TYPE_TINYINT: | 769 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 26 | case TYPE_SMALLINT: | 771 | 26 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.93k | case TYPE_INT: | 773 | 2.93k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.97k | case TYPE_BIGINT: | 775 | 2.97k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 0 | case TYPE_LARGEINT: | 777 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 0 | case TYPE_IPV4: | 779 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 48 | case TYPE_FLOAT: | 783 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 60 | case TYPE_DOUBLE: | 785 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 0 | case TYPE_DECIMAL32: | 790 | 68 | case TYPE_DECIMAL64: | 791 | 392 | case TYPE_DECIMAL128I: | 792 | 422 | case TYPE_DECIMAL256: | 793 | 422 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 422 | col_with_type_and_name_right); | 795 | 9 | case TYPE_CHAR: | 796 | 284 | case TYPE_VARCHAR: | 797 | 2.45k | case TYPE_STRING: | 798 | 2.45k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 8 | default: | 800 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 8 | col_with_type_and_name_right); | 802 | 9.12k | } | 803 | 0 | return Status::OK(); | 804 | 9.12k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 63.2k | uint32_t result, size_t input_rows_count) const override { | 707 | 63.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 63.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 63.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 63.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 63.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 63.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 63.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 63.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 63.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 63.2k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 63.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 63.2k | }; | 747 | | | 748 | 63.2k | if (can_compare(left_type->get_primitive_type()) && | 749 | 63.2k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 44.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 44.6k | } | 757 | | | 758 | 63.2k | auto compare_type = left_type->get_primitive_type(); | 759 | 63.2k | switch (compare_type) { | 760 | 0 | case TYPE_BOOLEAN: | 761 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.34k | case TYPE_DATEV2: | 763 | 1.34k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 122 | case TYPE_DATETIMEV2: | 765 | 122 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 1.35k | case TYPE_TINYINT: | 769 | 1.35k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 1.79k | case TYPE_SMALLINT: | 771 | 1.79k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 23.3k | case TYPE_INT: | 773 | 23.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 13.8k | case TYPE_BIGINT: | 775 | 13.8k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 249 | case TYPE_LARGEINT: | 777 | 249 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 4 | case TYPE_IPV4: | 779 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 236 | case TYPE_FLOAT: | 783 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 2.39k | case TYPE_DOUBLE: | 785 | 2.39k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 46 | case TYPE_DECIMAL32: | 790 | 16.9k | case TYPE_DECIMAL64: | 791 | 18.3k | case TYPE_DECIMAL128I: | 792 | 18.3k | case TYPE_DECIMAL256: | 793 | 18.3k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 18.3k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 181 | case TYPE_STRING: | 798 | 181 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 9 | default: | 800 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 9 | col_with_type_and_name_right); | 802 | 63.2k | } | 803 | 0 | return Status::OK(); | 804 | 63.2k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 21.6k | uint32_t result, size_t input_rows_count) const override { | 707 | 21.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 21.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 21.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 21.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 21.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 21.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 21.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 21.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 21.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 21.6k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 21.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 21.6k | }; | 747 | | | 748 | 21.6k | if (can_compare(left_type->get_primitive_type()) && | 749 | 21.6k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 20.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 20.5k | } | 757 | | | 758 | 21.6k | auto compare_type = left_type->get_primitive_type(); | 759 | 21.6k | switch (compare_type) { | 760 | 141 | case TYPE_BOOLEAN: | 761 | 141 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.23k | case TYPE_DATEV2: | 763 | 2.23k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 797 | case TYPE_DATETIMEV2: | 765 | 797 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 74 | case TYPE_TINYINT: | 769 | 74 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 50 | case TYPE_SMALLINT: | 771 | 50 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 16.3k | case TYPE_INT: | 773 | 16.3k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 512 | case TYPE_BIGINT: | 775 | 512 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 36 | case TYPE_LARGEINT: | 777 | 36 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 11 | case TYPE_IPV4: | 779 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 1 | case TYPE_IPV6: | 781 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 206 | case TYPE_FLOAT: | 783 | 206 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 138 | case TYPE_DOUBLE: | 785 | 138 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 12 | case TYPE_DECIMAL32: | 790 | 321 | case TYPE_DECIMAL64: | 791 | 392 | case TYPE_DECIMAL128I: | 792 | 419 | case TYPE_DECIMAL256: | 793 | 419 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 419 | col_with_type_and_name_right); | 795 | 24 | case TYPE_CHAR: | 796 | 298 | case TYPE_VARCHAR: | 797 | 652 | case TYPE_STRING: | 798 | 652 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 61 | default: | 800 | 61 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 61 | col_with_type_and_name_right); | 802 | 21.6k | } | 803 | 0 | return Status::OK(); | 804 | 21.6k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 13.2k | uint32_t result, size_t input_rows_count) const override { | 707 | 13.2k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 13.2k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 13.2k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 13.2k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 13.2k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 13.2k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 13.2k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 13.2k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 13.2k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 13.2k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | | block.get_by_position(result).column = | 729 | | DataTypeUInt8() | 730 | | .create_column_const(input_rows_count, | 731 | | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | | ->convert_to_full_column_if_const(); | 733 | | return Status::OK(); | 734 | 0 | } else { | 735 | 0 | block.get_by_position(result).column = | 736 | 0 | DataTypeUInt8() | 737 | 0 | .create_column_const(input_rows_count, | 738 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | 0 | ->convert_to_full_column_if_const(); | 740 | 0 | return Status::OK(); | 741 | 0 | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 13.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 13.2k | }; | 747 | | | 748 | 13.2k | if (can_compare(left_type->get_primitive_type()) && | 749 | 13.2k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 11.5k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 11.5k | } | 757 | | | 758 | 13.2k | auto compare_type = left_type->get_primitive_type(); | 759 | 13.2k | switch (compare_type) { | 760 | 93 | case TYPE_BOOLEAN: | 761 | 93 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.23k | case TYPE_DATEV2: | 763 | 2.23k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 681 | case TYPE_DATETIMEV2: | 765 | 681 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 3 | case TYPE_TIMESTAMPTZ: | 767 | 3 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.17k | case TYPE_TINYINT: | 769 | 2.17k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 404 | case TYPE_SMALLINT: | 771 | 404 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 3.29k | case TYPE_INT: | 773 | 3.29k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.72k | case TYPE_BIGINT: | 775 | 1.72k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 300 | case TYPE_LARGEINT: | 777 | 300 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 18 | case TYPE_IPV4: | 779 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 16 | case TYPE_IPV6: | 781 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 189 | case TYPE_FLOAT: | 783 | 189 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 388 | case TYPE_DOUBLE: | 785 | 388 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 220 | case TYPE_DECIMAL32: | 790 | 473 | case TYPE_DECIMAL64: | 791 | 1.05k | case TYPE_DECIMAL128I: | 792 | 1.05k | case TYPE_DECIMAL256: | 793 | 1.05k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.05k | col_with_type_and_name_right); | 795 | 183 | case TYPE_CHAR: | 796 | 354 | case TYPE_VARCHAR: | 797 | 656 | case TYPE_STRING: | 798 | 656 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 11 | default: | 800 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 11 | col_with_type_and_name_right); | 802 | 13.2k | } | 803 | 0 | return Status::OK(); | 804 | 13.2k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 60.0k | uint32_t result, size_t input_rows_count) const override { | 707 | 60.0k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 60.0k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 60.0k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 60.0k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 60.0k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 60.0k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 60.0k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 60.0k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 60.0k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 60.0k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 728 | 0 | block.get_by_position(result).column = | 729 | 0 | DataTypeUInt8() | 730 | 0 | .create_column_const(input_rows_count, | 731 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 732 | 0 | ->convert_to_full_column_if_const(); | 733 | 0 | return Status::OK(); | 734 | | } else { | 735 | | block.get_by_position(result).column = | 736 | | DataTypeUInt8() | 737 | | .create_column_const(input_rows_count, | 738 | | Field::create_field<TYPE_BOOLEAN>(0)) | 739 | | ->convert_to_full_column_if_const(); | 740 | | return Status::OK(); | 741 | | } | 742 | 0 | } | 743 | | | 744 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 60.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 60.0k | }; | 747 | | | 748 | 60.0k | if (can_compare(left_type->get_primitive_type()) && | 749 | 60.0k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 56.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 752 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 753 | 0 | get_name(), left_type->get_name(), | 754 | 0 | right_type->get_name()); | 755 | 0 | } | 756 | 56.0k | } | 757 | | | 758 | 60.0k | auto compare_type = left_type->get_primitive_type(); | 759 | 60.0k | switch (compare_type) { | 760 | 147 | case TYPE_BOOLEAN: | 761 | 147 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 28.8k | case TYPE_DATEV2: | 763 | 28.8k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 438 | case TYPE_DATETIMEV2: | 765 | 438 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 2 | case TYPE_TIMESTAMPTZ: | 767 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 96 | case TYPE_TINYINT: | 769 | 96 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 106 | case TYPE_SMALLINT: | 771 | 106 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 24.9k | case TYPE_INT: | 773 | 24.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.02k | case TYPE_BIGINT: | 775 | 1.02k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 71 | case TYPE_LARGEINT: | 777 | 71 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 10 | case TYPE_IPV4: | 779 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 780 | 0 | case TYPE_IPV6: | 781 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 782 | 202 | case TYPE_FLOAT: | 783 | 202 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 135 | case TYPE_DOUBLE: | 785 | 135 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 7 | case TYPE_DECIMAL32: | 790 | 2.18k | case TYPE_DECIMAL64: | 791 | 3.13k | case TYPE_DECIMAL128I: | 792 | 3.16k | case TYPE_DECIMAL256: | 793 | 3.16k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 3.16k | col_with_type_and_name_right); | 795 | 90 | case TYPE_CHAR: | 796 | 438 | case TYPE_VARCHAR: | 797 | 857 | case TYPE_STRING: | 798 | 857 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 45 | default: | 800 | 45 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 45 | col_with_type_and_name_right); | 802 | 60.0k | } | 803 | 0 | return Status::OK(); | 804 | 60.0k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |