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 | 9.09k | PaddedPODArray<UInt8>& c) { |
72 | 9.09k | size_t size = a.size(); |
73 | 9.09k | const A* __restrict a_pos = a.data(); |
74 | 9.09k | const B* __restrict b_pos = b.data(); |
75 | 9.09k | UInt8* __restrict c_pos = c.data(); |
76 | 9.09k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 4.17M | while (a_pos < a_end) { |
79 | 4.16M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 4.16M | ++a_pos; |
81 | 4.16M | ++b_pos; |
82 | 4.16M | ++c_pos; |
83 | 4.16M | } |
84 | 9.09k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 70 | PaddedPODArray<UInt8>& c) { | 72 | 70 | size_t size = a.size(); | 73 | 70 | const A* __restrict a_pos = a.data(); | 74 | 70 | const B* __restrict b_pos = b.data(); | 75 | 70 | UInt8* __restrict c_pos = c.data(); | 76 | 70 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 140 | 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 | 70 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 506 | PaddedPODArray<UInt8>& c) { | 72 | 506 | size_t size = a.size(); | 73 | 506 | const A* __restrict a_pos = a.data(); | 74 | 506 | const B* __restrict b_pos = b.data(); | 75 | 506 | UInt8* __restrict c_pos = c.data(); | 76 | 506 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.86k | while (a_pos < a_end) { | 79 | 1.36k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.36k | ++a_pos; | 81 | 1.36k | ++b_pos; | 82 | 1.36k | ++c_pos; | 83 | 1.36k | } | 84 | 506 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 277 | PaddedPODArray<UInt8>& c) { | 72 | 277 | size_t size = a.size(); | 73 | 277 | const A* __restrict a_pos = a.data(); | 74 | 277 | const B* __restrict b_pos = b.data(); | 75 | 277 | UInt8* __restrict c_pos = c.data(); | 76 | 277 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 572 | while (a_pos < a_end) { | 79 | 295 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 295 | ++a_pos; | 81 | 295 | ++b_pos; | 82 | 295 | ++c_pos; | 83 | 295 | } | 84 | 277 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 14 | while (a_pos < a_end) { | 79 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 10 | ++a_pos; | 81 | 10 | ++b_pos; | 82 | 10 | ++c_pos; | 83 | 10 | } | 84 | 4 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 135 | PaddedPODArray<UInt8>& c) { | 72 | 135 | size_t size = a.size(); | 73 | 135 | const A* __restrict a_pos = a.data(); | 74 | 135 | const B* __restrict b_pos = b.data(); | 75 | 135 | UInt8* __restrict c_pos = c.data(); | 76 | 135 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 412 | while (a_pos < a_end) { | 79 | 277 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 277 | ++a_pos; | 81 | 277 | ++b_pos; | 82 | 277 | ++c_pos; | 83 | 277 | } | 84 | 135 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 68 | PaddedPODArray<UInt8>& c) { | 72 | 68 | size_t size = a.size(); | 73 | 68 | const A* __restrict a_pos = a.data(); | 74 | 68 | const B* __restrict b_pos = b.data(); | 75 | 68 | UInt8* __restrict c_pos = c.data(); | 76 | 68 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 136 | while (a_pos < a_end) { | 79 | 68 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 68 | ++a_pos; | 81 | 68 | ++b_pos; | 82 | 68 | ++c_pos; | 83 | 68 | } | 84 | 68 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 651 | PaddedPODArray<UInt8>& c) { | 72 | 651 | size_t size = a.size(); | 73 | 651 | const A* __restrict a_pos = a.data(); | 74 | 651 | const B* __restrict b_pos = b.data(); | 75 | 651 | UInt8* __restrict c_pos = c.data(); | 76 | 651 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.61k | while (a_pos < a_end) { | 79 | 1.96k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.96k | ++a_pos; | 81 | 1.96k | ++b_pos; | 82 | 1.96k | ++c_pos; | 83 | 1.96k | } | 84 | 651 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 214 | PaddedPODArray<UInt8>& c) { | 72 | 214 | size_t size = a.size(); | 73 | 214 | const A* __restrict a_pos = a.data(); | 74 | 214 | const B* __restrict b_pos = b.data(); | 75 | 214 | UInt8* __restrict c_pos = c.data(); | 76 | 214 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.58k | while (a_pos < a_end) { | 79 | 1.37k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.37k | ++a_pos; | 81 | 1.37k | ++b_pos; | 82 | 1.37k | ++c_pos; | 83 | 1.37k | } | 84 | 214 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 60 | PaddedPODArray<UInt8>& c) { | 72 | 60 | size_t size = a.size(); | 73 | 60 | const A* __restrict a_pos = a.data(); | 74 | 60 | const B* __restrict b_pos = b.data(); | 75 | 60 | UInt8* __restrict c_pos = c.data(); | 76 | 60 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 120 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 60 | } |
_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 | 88 | PaddedPODArray<UInt8>& c) { | 72 | 88 | size_t size = a.size(); | 73 | 88 | const A* __restrict a_pos = a.data(); | 74 | 88 | const B* __restrict b_pos = b.data(); | 75 | 88 | UInt8* __restrict c_pos = c.data(); | 76 | 88 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 195 | 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 | 88 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 85 | PaddedPODArray<UInt8>& c) { | 72 | 85 | size_t size = a.size(); | 73 | 85 | const A* __restrict a_pos = a.data(); | 74 | 85 | const B* __restrict b_pos = b.data(); | 75 | 85 | UInt8* __restrict c_pos = c.data(); | 76 | 85 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 191 | while (a_pos < a_end) { | 79 | 106 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 106 | ++a_pos; | 81 | 106 | ++b_pos; | 82 | 106 | ++c_pos; | 83 | 106 | } | 84 | 85 | } |
_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 | 43 | PaddedPODArray<UInt8>& c) { | 72 | 43 | size_t size = a.size(); | 73 | 43 | const A* __restrict a_pos = a.data(); | 74 | 43 | const B* __restrict b_pos = b.data(); | 75 | 43 | UInt8* __restrict c_pos = c.data(); | 76 | 43 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 116 | while (a_pos < a_end) { | 79 | 73 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 73 | ++a_pos; | 81 | 73 | ++b_pos; | 82 | 73 | ++c_pos; | 83 | 73 | } | 84 | 43 | } |
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 | 990 | PaddedPODArray<UInt8>& c) { | 72 | 990 | size_t size = a.size(); | 73 | 990 | const A* __restrict a_pos = a.data(); | 74 | 990 | const B* __restrict b_pos = b.data(); | 75 | 990 | UInt8* __restrict c_pos = c.data(); | 76 | 990 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 296k | while (a_pos < a_end) { | 79 | 295k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 295k | ++a_pos; | 81 | 295k | ++b_pos; | 82 | 295k | ++c_pos; | 83 | 295k | } | 84 | 990 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 341 | PaddedPODArray<UInt8>& c) { | 72 | 341 | size_t size = a.size(); | 73 | 341 | const A* __restrict a_pos = a.data(); | 74 | 341 | const B* __restrict b_pos = b.data(); | 75 | 341 | UInt8* __restrict c_pos = c.data(); | 76 | 341 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.32k | while (a_pos < a_end) { | 79 | 5.98k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.98k | ++a_pos; | 81 | 5.98k | ++b_pos; | 82 | 5.98k | ++c_pos; | 83 | 5.98k | } | 84 | 341 | } |
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.14k | PaddedPODArray<UInt8>& c) { | 72 | 1.14k | size_t size = a.size(); | 73 | 1.14k | const A* __restrict a_pos = a.data(); | 74 | 1.14k | const B* __restrict b_pos = b.data(); | 75 | 1.14k | UInt8* __restrict c_pos = c.data(); | 76 | 1.14k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.62M | while (a_pos < a_end) { | 79 | 2.61M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.61M | ++a_pos; | 81 | 2.61M | ++b_pos; | 82 | 2.61M | ++c_pos; | 83 | 2.61M | } | 84 | 1.14k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 324 | 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 | 40 | } |
_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 | 65 | PaddedPODArray<UInt8>& c) { | 72 | 65 | size_t size = a.size(); | 73 | 65 | const A* __restrict a_pos = a.data(); | 74 | 65 | const B* __restrict b_pos = b.data(); | 75 | 65 | UInt8* __restrict c_pos = c.data(); | 76 | 65 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 303 | while (a_pos < a_end) { | 79 | 238 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 238 | ++a_pos; | 81 | 238 | ++b_pos; | 82 | 238 | ++c_pos; | 83 | 238 | } | 84 | 65 | } |
_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 | 563 | while (a_pos < a_end) { | 79 | 500 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 500 | ++a_pos; | 81 | 500 | ++b_pos; | 82 | 500 | ++c_pos; | 83 | 500 | } | 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 | 25 | PaddedPODArray<UInt8>& c) { | 72 | 25 | size_t size = a.size(); | 73 | 25 | const A* __restrict a_pos = a.data(); | 74 | 25 | const B* __restrict b_pos = b.data(); | 75 | 25 | UInt8* __restrict c_pos = c.data(); | 76 | 25 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 95 | 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 | 25 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 6 | PaddedPODArray<UInt8>& c) { | 72 | 6 | size_t size = a.size(); | 73 | 6 | const A* __restrict a_pos = a.data(); | 74 | 6 | const B* __restrict b_pos = b.data(); | 75 | 6 | UInt8* __restrict c_pos = c.data(); | 76 | 6 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 6 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_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 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 36 | PaddedPODArray<UInt8>& c) { | 72 | 36 | size_t size = a.size(); | 73 | 36 | const A* __restrict a_pos = a.data(); | 74 | 36 | const B* __restrict b_pos = b.data(); | 75 | 36 | UInt8* __restrict c_pos = c.data(); | 76 | 36 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 130 | while (a_pos < a_end) { | 79 | 94 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 94 | ++a_pos; | 81 | 94 | ++b_pos; | 82 | 94 | ++c_pos; | 83 | 94 | } | 84 | 36 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 28 | PaddedPODArray<UInt8>& c) { | 72 | 28 | size_t size = a.size(); | 73 | 28 | const A* __restrict a_pos = a.data(); | 74 | 28 | const B* __restrict b_pos = b.data(); | 75 | 28 | UInt8* __restrict c_pos = c.data(); | 76 | 28 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 67 | 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 | 28 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 14 | PaddedPODArray<UInt8>& c) { | 72 | 14 | size_t size = a.size(); | 73 | 14 | const A* __restrict a_pos = a.data(); | 74 | 14 | const B* __restrict b_pos = b.data(); | 75 | 14 | UInt8* __restrict c_pos = c.data(); | 76 | 14 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 74 | while (a_pos < a_end) { | 79 | 60 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 60 | ++a_pos; | 81 | 60 | ++b_pos; | 82 | 60 | ++c_pos; | 83 | 60 | } | 84 | 14 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 99 | while (a_pos < a_end) { | 79 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 59 | ++a_pos; | 81 | 59 | ++b_pos; | 82 | 59 | ++c_pos; | 83 | 59 | } | 84 | 40 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 22 | PaddedPODArray<UInt8>& c) { | 72 | 22 | size_t size = a.size(); | 73 | 22 | const A* __restrict a_pos = a.data(); | 74 | 22 | const B* __restrict b_pos = b.data(); | 75 | 22 | UInt8* __restrict c_pos = c.data(); | 76 | 22 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 65 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 99 | PaddedPODArray<UInt8>& c) { | 72 | 99 | size_t size = a.size(); | 73 | 99 | const A* __restrict a_pos = a.data(); | 74 | 99 | const B* __restrict b_pos = b.data(); | 75 | 99 | UInt8* __restrict c_pos = c.data(); | 76 | 99 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 372 | while (a_pos < a_end) { | 79 | 273 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 273 | ++a_pos; | 81 | 273 | ++b_pos; | 82 | 273 | ++c_pos; | 83 | 273 | } | 84 | 99 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.66k | PaddedPODArray<UInt8>& c) { | 72 | 1.66k | size_t size = a.size(); | 73 | 1.66k | const A* __restrict a_pos = a.data(); | 74 | 1.66k | const B* __restrict b_pos = b.data(); | 75 | 1.66k | UInt8* __restrict c_pos = c.data(); | 76 | 1.66k | 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.66k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 254 | PaddedPODArray<UInt8>& c) { | 72 | 254 | size_t size = a.size(); | 73 | 254 | const A* __restrict a_pos = a.data(); | 74 | 254 | const B* __restrict b_pos = b.data(); | 75 | 254 | UInt8* __restrict c_pos = c.data(); | 76 | 254 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 856 | while (a_pos < a_end) { | 79 | 602 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 602 | ++a_pos; | 81 | 602 | ++b_pos; | 82 | 602 | ++c_pos; | 83 | 602 | } | 84 | 254 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 148 | PaddedPODArray<UInt8>& c) { | 72 | 148 | size_t size = a.size(); | 73 | 148 | const A* __restrict a_pos = a.data(); | 74 | 148 | const B* __restrict b_pos = b.data(); | 75 | 148 | UInt8* __restrict c_pos = c.data(); | 76 | 148 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 470 | while (a_pos < a_end) { | 79 | 322 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 322 | ++a_pos; | 81 | 322 | ++b_pos; | 82 | 322 | ++c_pos; | 83 | 322 | } | 84 | 148 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 132 | PaddedPODArray<UInt8>& c) { | 72 | 132 | size_t size = a.size(); | 73 | 132 | const A* __restrict a_pos = a.data(); | 74 | 132 | const B* __restrict b_pos = b.data(); | 75 | 132 | UInt8* __restrict c_pos = c.data(); | 76 | 132 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 440 | while (a_pos < a_end) { | 79 | 308 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 308 | ++a_pos; | 81 | 308 | ++b_pos; | 82 | 308 | ++c_pos; | 83 | 308 | } | 84 | 132 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 183 | PaddedPODArray<UInt8>& c) { | 72 | 183 | size_t size = a.size(); | 73 | 183 | const A* __restrict a_pos = a.data(); | 74 | 183 | const B* __restrict b_pos = b.data(); | 75 | 183 | UInt8* __restrict c_pos = c.data(); | 76 | 183 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.04k | while (a_pos < a_end) { | 79 | 866 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 866 | ++a_pos; | 81 | 866 | ++b_pos; | 82 | 866 | ++c_pos; | 83 | 866 | } | 84 | 183 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 228 | PaddedPODArray<UInt8>& c) { | 72 | 228 | size_t size = a.size(); | 73 | 228 | const A* __restrict a_pos = a.data(); | 74 | 228 | const B* __restrict b_pos = b.data(); | 75 | 228 | UInt8* __restrict c_pos = c.data(); | 76 | 228 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.45k | while (a_pos < a_end) { | 79 | 5.22k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.22k | ++a_pos; | 81 | 5.22k | ++b_pos; | 82 | 5.22k | ++c_pos; | 83 | 5.22k | } | 84 | 228 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 139 | PaddedPODArray<UInt8>& c) { | 72 | 139 | size_t size = a.size(); | 73 | 139 | const A* __restrict a_pos = a.data(); | 74 | 139 | const B* __restrict b_pos = b.data(); | 75 | 139 | UInt8* __restrict c_pos = c.data(); | 76 | 139 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 452 | while (a_pos < a_end) { | 79 | 313 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 313 | ++a_pos; | 81 | 313 | ++b_pos; | 82 | 313 | ++c_pos; | 83 | 313 | } | 84 | 139 | } |
_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 | 144 | PaddedPODArray<UInt8>& c) { | 72 | 144 | size_t size = a.size(); | 73 | 144 | const A* __restrict a_pos = a.data(); | 74 | 144 | const B* __restrict b_pos = b.data(); | 75 | 144 | UInt8* __restrict c_pos = c.data(); | 76 | 144 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 481 | while (a_pos < a_end) { | 79 | 337 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 337 | ++a_pos; | 81 | 337 | ++b_pos; | 82 | 337 | ++c_pos; | 83 | 337 | } | 84 | 144 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 145 | PaddedPODArray<UInt8>& c) { | 72 | 145 | size_t size = a.size(); | 73 | 145 | const A* __restrict a_pos = a.data(); | 74 | 145 | const B* __restrict b_pos = b.data(); | 75 | 145 | UInt8* __restrict c_pos = c.data(); | 76 | 145 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 490 | while (a_pos < a_end) { | 79 | 345 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 345 | ++a_pos; | 81 | 345 | ++b_pos; | 82 | 345 | ++c_pos; | 83 | 345 | } | 84 | 145 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 6 | PaddedPODArray<UInt8>& c) { | 72 | 6 | size_t size = a.size(); | 73 | 6 | const A* __restrict a_pos = a.data(); | 74 | 6 | const B* __restrict b_pos = b.data(); | 75 | 6 | UInt8* __restrict c_pos = c.data(); | 76 | 6 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 6 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6 | ++a_pos; | 81 | 6 | ++b_pos; | 82 | 6 | ++c_pos; | 83 | 6 | } | 84 | 6 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 417 | PaddedPODArray<UInt8>& c) { | 72 | 417 | size_t size = a.size(); | 73 | 417 | const A* __restrict a_pos = a.data(); | 74 | 417 | const B* __restrict b_pos = b.data(); | 75 | 417 | UInt8* __restrict c_pos = c.data(); | 76 | 417 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.61k | while (a_pos < a_end) { | 79 | 6.19k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.19k | ++a_pos; | 81 | 6.19k | ++b_pos; | 82 | 6.19k | ++c_pos; | 83 | 6.19k | } | 84 | 417 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 30 | PaddedPODArray<UInt8>& c) { | 72 | 30 | size_t size = a.size(); | 73 | 30 | const A* __restrict a_pos = a.data(); | 74 | 30 | const B* __restrict b_pos = b.data(); | 75 | 30 | UInt8* __restrict c_pos = c.data(); | 76 | 30 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 60 | while (a_pos < a_end) { | 79 | 30 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 30 | ++a_pos; | 81 | 30 | ++b_pos; | 82 | 30 | ++c_pos; | 83 | 30 | } | 84 | 30 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 3 | PaddedPODArray<UInt8>& c) { | 72 | 3 | size_t size = a.size(); | 73 | 3 | const A* __restrict a_pos = a.data(); | 74 | 3 | const B* __restrict b_pos = b.data(); | 75 | 3 | UInt8* __restrict c_pos = c.data(); | 76 | 3 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | while (a_pos < a_end) { | 79 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 9 | ++a_pos; | 81 | 9 | ++b_pos; | 82 | 9 | ++c_pos; | 83 | 9 | } | 84 | 3 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 135 | while (a_pos < a_end) { | 79 | 97 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 97 | ++a_pos; | 81 | 97 | ++b_pos; | 82 | 97 | ++c_pos; | 83 | 97 | } | 84 | 38 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 75 | PaddedPODArray<UInt8>& c) { | 72 | 75 | size_t size = a.size(); | 73 | 75 | const A* __restrict a_pos = a.data(); | 74 | 75 | const B* __restrict b_pos = b.data(); | 75 | 75 | UInt8* __restrict c_pos = c.data(); | 76 | 75 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 201 | while (a_pos < a_end) { | 79 | 126 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 126 | ++a_pos; | 81 | 126 | ++b_pos; | 82 | 126 | ++c_pos; | 83 | 126 | } | 84 | 75 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 40 | PaddedPODArray<UInt8>& c) { | 72 | 40 | size_t size = a.size(); | 73 | 40 | const A* __restrict a_pos = a.data(); | 74 | 40 | const B* __restrict b_pos = b.data(); | 75 | 40 | UInt8* __restrict c_pos = c.data(); | 76 | 40 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 99 | while (a_pos < a_end) { | 79 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 59 | ++a_pos; | 81 | 59 | ++b_pos; | 82 | 59 | ++c_pos; | 83 | 59 | } | 84 | 40 | } |
_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 | 150k | PaddedPODArray<UInt8>& c) { |
88 | 150k | size_t size = a.size(); |
89 | 150k | const A* __restrict a_pos = a.data(); |
90 | 150k | UInt8* __restrict c_pos = c.data(); |
91 | 150k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 109M | while (a_pos < a_end) { |
94 | 108M | *c_pos = Op::apply(*a_pos, b); |
95 | 108M | ++a_pos; |
96 | 108M | ++c_pos; |
97 | 108M | } |
98 | 150k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 789 | PaddedPODArray<UInt8>& c) { | 88 | 789 | size_t size = a.size(); | 89 | 789 | const A* __restrict a_pos = a.data(); | 90 | 789 | UInt8* __restrict c_pos = c.data(); | 91 | 789 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.61k | while (a_pos < a_end) { | 94 | 1.82k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.82k | ++a_pos; | 96 | 1.82k | ++c_pos; | 97 | 1.82k | } | 98 | 789 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 750 | PaddedPODArray<UInt8>& c) { | 88 | 750 | size_t size = a.size(); | 89 | 750 | const A* __restrict a_pos = a.data(); | 90 | 750 | UInt8* __restrict c_pos = c.data(); | 91 | 750 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 205k | 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 | 750 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 235 | PaddedPODArray<UInt8>& c) { | 88 | 235 | size_t size = a.size(); | 89 | 235 | const A* __restrict a_pos = a.data(); | 90 | 235 | UInt8* __restrict c_pos = c.data(); | 91 | 235 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 235 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 5.77k | PaddedPODArray<UInt8>& c) { | 88 | 5.77k | size_t size = a.size(); | 89 | 5.77k | const A* __restrict a_pos = a.data(); | 90 | 5.77k | UInt8* __restrict c_pos = c.data(); | 91 | 5.77k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.03M | while (a_pos < a_end) { | 94 | 9.03M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.03M | ++a_pos; | 96 | 9.03M | ++c_pos; | 97 | 9.03M | } | 98 | 5.77k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 923 | PaddedPODArray<UInt8>& c) { | 88 | 923 | size_t size = a.size(); | 89 | 923 | const A* __restrict a_pos = a.data(); | 90 | 923 | UInt8* __restrict c_pos = c.data(); | 91 | 923 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130k | while (a_pos < a_end) { | 94 | 129k | *c_pos = Op::apply(*a_pos, b); | 95 | 129k | ++a_pos; | 96 | 129k | ++c_pos; | 97 | 129k | } | 98 | 923 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.92k | PaddedPODArray<UInt8>& c) { | 88 | 6.92k | size_t size = a.size(); | 89 | 6.92k | const A* __restrict a_pos = a.data(); | 90 | 6.92k | UInt8* __restrict c_pos = c.data(); | 91 | 6.92k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 939k | while (a_pos < a_end) { | 94 | 932k | *c_pos = Op::apply(*a_pos, b); | 95 | 932k | ++a_pos; | 96 | 932k | ++c_pos; | 97 | 932k | } | 98 | 6.92k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 15.5k | PaddedPODArray<UInt8>& c) { | 88 | 15.5k | size_t size = a.size(); | 89 | 15.5k | const A* __restrict a_pos = a.data(); | 90 | 15.5k | UInt8* __restrict c_pos = c.data(); | 91 | 15.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.41M | while (a_pos < a_end) { | 94 | 2.40M | *c_pos = Op::apply(*a_pos, b); | 95 | 2.40M | ++a_pos; | 96 | 2.40M | ++c_pos; | 97 | 2.40M | } | 98 | 15.5k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 50 | PaddedPODArray<UInt8>& c) { | 88 | 50 | size_t size = a.size(); | 89 | 50 | const A* __restrict a_pos = a.data(); | 90 | 50 | UInt8* __restrict c_pos = c.data(); | 91 | 50 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 50 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 15 | PaddedPODArray<UInt8>& c) { | 88 | 15 | size_t size = a.size(); | 89 | 15 | const A* __restrict a_pos = a.data(); | 90 | 15 | UInt8* __restrict c_pos = c.data(); | 91 | 15 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 129 | 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 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13 | while (a_pos < a_end) { | 94 | 11 | *c_pos = Op::apply(*a_pos, b); | 95 | 11 | ++a_pos; | 96 | 11 | ++c_pos; | 97 | 11 | } | 98 | 2 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 844 | PaddedPODArray<UInt8>& c) { | 88 | 844 | size_t size = a.size(); | 89 | 844 | const A* __restrict a_pos = a.data(); | 90 | 844 | UInt8* __restrict c_pos = c.data(); | 91 | 844 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 718k | *c_pos = Op::apply(*a_pos, b); | 95 | 718k | ++a_pos; | 96 | 718k | ++c_pos; | 97 | 718k | } | 98 | 844 | } |
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 | 33 | PaddedPODArray<UInt8>& c) { | 88 | 33 | size_t size = a.size(); | 89 | 33 | const A* __restrict a_pos = a.data(); | 90 | 33 | UInt8* __restrict c_pos = c.data(); | 91 | 33 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 86 | while (a_pos < a_end) { | 94 | 53 | *c_pos = Op::apply(*a_pos, b); | 95 | 53 | ++a_pos; | 96 | 53 | ++c_pos; | 97 | 53 | } | 98 | 33 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 2 | while (a_pos < a_end) { | 94 | 1 | *c_pos = Op::apply(*a_pos, b); | 95 | 1 | ++a_pos; | 96 | 1 | ++c_pos; | 97 | 1 | } | 98 | 1 | } |
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 | 36 | PaddedPODArray<UInt8>& c) { | 88 | 36 | size_t size = a.size(); | 89 | 36 | const A* __restrict a_pos = a.data(); | 90 | 36 | UInt8* __restrict c_pos = c.data(); | 91 | 36 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 562 | while (a_pos < a_end) { | 94 | 526 | *c_pos = Op::apply(*a_pos, b); | 95 | 526 | ++a_pos; | 96 | 526 | ++c_pos; | 97 | 526 | } | 98 | 36 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_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 | 401 | while (a_pos < a_end) { | 94 | 388 | *c_pos = Op::apply(*a_pos, b); | 95 | 388 | ++a_pos; | 96 | 388 | ++c_pos; | 97 | 388 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 974 | PaddedPODArray<UInt8>& c) { | 88 | 974 | size_t size = a.size(); | 89 | 974 | const A* __restrict a_pos = a.data(); | 90 | 974 | UInt8* __restrict c_pos = c.data(); | 91 | 974 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 324k | while (a_pos < a_end) { | 94 | 323k | *c_pos = Op::apply(*a_pos, b); | 95 | 323k | ++a_pos; | 96 | 323k | ++c_pos; | 97 | 323k | } | 98 | 974 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.77k | PaddedPODArray<UInt8>& c) { | 88 | 1.77k | size_t size = a.size(); | 89 | 1.77k | const A* __restrict a_pos = a.data(); | 90 | 1.77k | UInt8* __restrict c_pos = c.data(); | 91 | 1.77k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 138k | while (a_pos < a_end) { | 94 | 136k | *c_pos = Op::apply(*a_pos, b); | 95 | 136k | ++a_pos; | 96 | 136k | ++c_pos; | 97 | 136k | } | 98 | 1.77k | } |
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 | 101 | PaddedPODArray<UInt8>& c) { | 88 | 101 | size_t size = a.size(); | 89 | 101 | const A* __restrict a_pos = a.data(); | 90 | 101 | UInt8* __restrict c_pos = c.data(); | 91 | 101 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 2.41k | while (a_pos < a_end) { | 94 | 2.31k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.31k | ++a_pos; | 96 | 2.31k | ++c_pos; | 97 | 2.31k | } | 98 | 101 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 440 | PaddedPODArray<UInt8>& c) { | 88 | 440 | size_t size = a.size(); | 89 | 440 | const A* __restrict a_pos = a.data(); | 90 | 440 | UInt8* __restrict c_pos = c.data(); | 91 | 440 | 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 | 440 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 48 | PaddedPODArray<UInt8>& c) { | 88 | 48 | size_t size = a.size(); | 89 | 48 | const A* __restrict a_pos = a.data(); | 90 | 48 | UInt8* __restrict c_pos = c.data(); | 91 | 48 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 108 | while (a_pos < a_end) { | 94 | 60 | *c_pos = Op::apply(*a_pos, b); | 95 | 60 | ++a_pos; | 96 | 60 | ++c_pos; | 97 | 60 | } | 98 | 48 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_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 | 22.9k | while (a_pos < a_end) { | 94 | 22.6k | *c_pos = Op::apply(*a_pos, b); | 95 | 22.6k | ++a_pos; | 96 | 22.6k | ++c_pos; | 97 | 22.6k | } | 98 | 216 | } |
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.41k | PaddedPODArray<UInt8>& c) { | 88 | 1.41k | size_t size = a.size(); | 89 | 1.41k | const A* __restrict a_pos = a.data(); | 90 | 1.41k | UInt8* __restrict c_pos = c.data(); | 91 | 1.41k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.33k | while (a_pos < a_end) { | 94 | 5.92k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.92k | ++a_pos; | 96 | 5.92k | ++c_pos; | 97 | 5.92k | } | 98 | 1.41k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.94k | PaddedPODArray<UInt8>& c) { | 88 | 1.94k | size_t size = a.size(); | 89 | 1.94k | const A* __restrict a_pos = a.data(); | 90 | 1.94k | UInt8* __restrict c_pos = c.data(); | 91 | 1.94k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.49k | while (a_pos < a_end) { | 94 | 4.54k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.54k | ++a_pos; | 96 | 4.54k | ++c_pos; | 97 | 4.54k | } | 98 | 1.94k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.44k | PaddedPODArray<UInt8>& c) { | 88 | 1.44k | size_t size = a.size(); | 89 | 1.44k | const A* __restrict a_pos = a.data(); | 90 | 1.44k | UInt8* __restrict c_pos = c.data(); | 91 | 1.44k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.33k | while (a_pos < a_end) { | 94 | 4.89k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.89k | ++a_pos; | 96 | 4.89k | ++c_pos; | 97 | 4.89k | } | 98 | 1.44k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 378 | PaddedPODArray<UInt8>& c) { | 88 | 378 | size_t size = a.size(); | 89 | 378 | const A* __restrict a_pos = a.data(); | 90 | 378 | UInt8* __restrict c_pos = c.data(); | 91 | 378 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.52k | while (a_pos < a_end) { | 94 | 7.14k | *c_pos = Op::apply(*a_pos, b); | 95 | 7.14k | ++a_pos; | 96 | 7.14k | ++c_pos; | 97 | 7.14k | } | 98 | 378 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 14.8k | PaddedPODArray<UInt8>& c) { | 88 | 14.8k | size_t size = a.size(); | 89 | 14.8k | const A* __restrict a_pos = a.data(); | 90 | 14.8k | UInt8* __restrict c_pos = c.data(); | 91 | 14.8k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.96M | while (a_pos < a_end) { | 94 | 5.95M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.95M | ++a_pos; | 96 | 5.95M | ++c_pos; | 97 | 5.95M | } | 98 | 14.8k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 5.27k | PaddedPODArray<UInt8>& c) { | 88 | 5.27k | size_t size = a.size(); | 89 | 5.27k | const A* __restrict a_pos = a.data(); | 90 | 5.27k | UInt8* __restrict c_pos = c.data(); | 91 | 5.27k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.16M | while (a_pos < a_end) { | 94 | 3.15M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.15M | ++a_pos; | 96 | 3.15M | ++c_pos; | 97 | 3.15M | } | 98 | 5.27k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 7.29k | PaddedPODArray<UInt8>& c) { | 88 | 7.29k | size_t size = a.size(); | 89 | 7.29k | const A* __restrict a_pos = a.data(); | 90 | 7.29k | UInt8* __restrict c_pos = c.data(); | 91 | 7.29k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 135k | while (a_pos < a_end) { | 94 | 128k | *c_pos = Op::apply(*a_pos, b); | 95 | 128k | ++a_pos; | 96 | 128k | ++c_pos; | 97 | 128k | } | 98 | 7.29k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.46k | PaddedPODArray<UInt8>& c) { | 88 | 1.46k | size_t size = a.size(); | 89 | 1.46k | const A* __restrict a_pos = a.data(); | 90 | 1.46k | UInt8* __restrict c_pos = c.data(); | 91 | 1.46k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12.9k | while (a_pos < a_end) { | 94 | 11.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 11.4k | ++a_pos; | 96 | 11.4k | ++c_pos; | 97 | 11.4k | } | 98 | 1.46k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 294 | PaddedPODArray<UInt8>& c) { | 88 | 294 | size_t size = a.size(); | 89 | 294 | const A* __restrict a_pos = a.data(); | 90 | 294 | UInt8* __restrict c_pos = c.data(); | 91 | 294 | 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 | 294 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 87 | PaddedPODArray<UInt8>& c) { | 88 | 87 | size_t size = a.size(); | 89 | 87 | const A* __restrict a_pos = a.data(); | 90 | 87 | UInt8* __restrict c_pos = c.data(); | 91 | 87 | 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 | 87 | } |
_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 | 208 | PaddedPODArray<UInt8>& c) { | 88 | 208 | size_t size = a.size(); | 89 | 208 | const A* __restrict a_pos = a.data(); | 90 | 208 | UInt8* __restrict c_pos = c.data(); | 91 | 208 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.09k | while (a_pos < a_end) { | 94 | 2.88k | *c_pos = Op::apply(*a_pos, b); | 95 | 2.88k | ++a_pos; | 96 | 2.88k | ++c_pos; | 97 | 2.88k | } | 98 | 208 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_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 | 32 | while (a_pos < a_end) { | 94 | 19 | *c_pos = Op::apply(*a_pos, b); | 95 | 19 | ++a_pos; | 96 | 19 | ++c_pos; | 97 | 19 | } | 98 | 13 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.44k | PaddedPODArray<UInt8>& c) { | 88 | 1.44k | size_t size = a.size(); | 89 | 1.44k | const A* __restrict a_pos = a.data(); | 90 | 1.44k | UInt8* __restrict c_pos = c.data(); | 91 | 1.44k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 176k | while (a_pos < a_end) { | 94 | 175k | *c_pos = Op::apply(*a_pos, b); | 95 | 175k | ++a_pos; | 96 | 175k | ++c_pos; | 97 | 175k | } | 98 | 1.44k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 214 | PaddedPODArray<UInt8>& c) { | 88 | 214 | size_t size = a.size(); | 89 | 214 | const A* __restrict a_pos = a.data(); | 90 | 214 | UInt8* __restrict c_pos = c.data(); | 91 | 214 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 299k | while (a_pos < a_end) { | 94 | 299k | *c_pos = Op::apply(*a_pos, b); | 95 | 299k | ++a_pos; | 96 | 299k | ++c_pos; | 97 | 299k | } | 98 | 214 | } |
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 | 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 | 147k | while (a_pos < a_end) { | 94 | 147k | *c_pos = Op::apply(*a_pos, b); | 95 | 147k | ++a_pos; | 96 | 147k | ++c_pos; | 97 | 147k | } | 98 | 102 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ 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 | 137k | while (a_pos < a_end) { | 94 | 137k | *c_pos = Op::apply(*a_pos, b); | 95 | 137k | ++a_pos; | 96 | 137k | ++c_pos; | 97 | 137k | } | 98 | 106 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 1.35k | PaddedPODArray<UInt8>& c) { | 88 | 1.35k | size_t size = a.size(); | 89 | 1.35k | const A* __restrict a_pos = a.data(); | 90 | 1.35k | UInt8* __restrict c_pos = c.data(); | 91 | 1.35k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.00M | while (a_pos < a_end) { | 94 | 3.00M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.00M | ++a_pos; | 96 | 3.00M | ++c_pos; | 97 | 3.00M | } | 98 | 1.35k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 14.2k | PaddedPODArray<UInt8>& c) { | 88 | 14.2k | size_t size = a.size(); | 89 | 14.2k | const A* __restrict a_pos = a.data(); | 90 | 14.2k | UInt8* __restrict c_pos = c.data(); | 91 | 14.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 38.0M | while (a_pos < a_end) { | 94 | 38.0M | *c_pos = Op::apply(*a_pos, b); | 95 | 38.0M | ++a_pos; | 96 | 38.0M | ++c_pos; | 97 | 38.0M | } | 98 | 14.2k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 430 | PaddedPODArray<UInt8>& c) { | 88 | 430 | size_t size = a.size(); | 89 | 430 | const A* __restrict a_pos = a.data(); | 90 | 430 | UInt8* __restrict c_pos = c.data(); | 91 | 430 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.6k | while (a_pos < a_end) { | 94 | 15.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 15.2k | ++a_pos; | 96 | 15.2k | ++c_pos; | 97 | 15.2k | } | 98 | 430 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 214 | PaddedPODArray<UInt8>& c) { | 88 | 214 | size_t size = a.size(); | 89 | 214 | const A* __restrict a_pos = a.data(); | 90 | 214 | UInt8* __restrict c_pos = c.data(); | 91 | 214 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.97k | while (a_pos < a_end) { | 94 | 7.76k | *c_pos = Op::apply(*a_pos, b); | 95 | 7.76k | ++a_pos; | 96 | 7.76k | ++c_pos; | 97 | 7.76k | } | 98 | 214 | } |
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 | 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 | 100k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 49 | PaddedPODArray<UInt8>& c) { | 88 | 49 | size_t size = a.size(); | 89 | 49 | const A* __restrict a_pos = a.data(); | 90 | 49 | UInt8* __restrict c_pos = c.data(); | 91 | 49 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 120k | while (a_pos < a_end) { | 94 | 120k | *c_pos = Op::apply(*a_pos, b); | 95 | 120k | ++a_pos; | 96 | 120k | ++c_pos; | 97 | 120k | } | 98 | 49 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 53 | PaddedPODArray<UInt8>& c) { | 88 | 53 | size_t size = a.size(); | 89 | 53 | const A* __restrict a_pos = a.data(); | 90 | 53 | UInt8* __restrict c_pos = c.data(); | 91 | 53 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 104k | while (a_pos < a_end) { | 94 | 104k | *c_pos = Op::apply(*a_pos, b); | 95 | 104k | ++a_pos; | 96 | 104k | ++c_pos; | 97 | 104k | } | 98 | 53 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 55 | PaddedPODArray<UInt8>& c) { | 88 | 55 | size_t size = a.size(); | 89 | 55 | const A* __restrict a_pos = a.data(); | 90 | 55 | UInt8* __restrict c_pos = c.data(); | 91 | 55 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 85.7k | while (a_pos < a_end) { | 94 | 85.7k | *c_pos = Op::apply(*a_pos, b); | 95 | 85.7k | ++a_pos; | 96 | 85.7k | ++c_pos; | 97 | 85.7k | } | 98 | 55 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 27.2k | PaddedPODArray<UInt8>& c) { | 88 | 27.2k | size_t size = a.size(); | 89 | 27.2k | const A* __restrict a_pos = a.data(); | 90 | 27.2k | UInt8* __restrict c_pos = c.data(); | 91 | 27.2k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 18.3M | while (a_pos < a_end) { | 94 | 18.3M | *c_pos = Op::apply(*a_pos, b); | 95 | 18.3M | ++a_pos; | 96 | 18.3M | ++c_pos; | 97 | 18.3M | } | 98 | 27.2k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 33.1k | PaddedPODArray<UInt8>& c) { | 88 | 33.1k | size_t size = a.size(); | 89 | 33.1k | const A* __restrict a_pos = a.data(); | 90 | 33.1k | UInt8* __restrict c_pos = c.data(); | 91 | 33.1k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22.5M | while (a_pos < a_end) { | 94 | 22.4M | *c_pos = Op::apply(*a_pos, b); | 95 | 22.4M | ++a_pos; | 96 | 22.4M | ++c_pos; | 97 | 22.4M | } | 98 | 33.1k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 397 | PaddedPODArray<UInt8>& c) { | 88 | 397 | size_t size = a.size(); | 89 | 397 | const A* __restrict a_pos = a.data(); | 90 | 397 | UInt8* __restrict c_pos = c.data(); | 91 | 397 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 18.8k | while (a_pos < a_end) { | 94 | 18.4k | *c_pos = Op::apply(*a_pos, b); | 95 | 18.4k | ++a_pos; | 96 | 18.4k | ++c_pos; | 97 | 18.4k | } | 98 | 397 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 682 | PaddedPODArray<UInt8>& c) { | 88 | 682 | size_t size = a.size(); | 89 | 682 | const A* __restrict a_pos = a.data(); | 90 | 682 | UInt8* __restrict c_pos = c.data(); | 91 | 682 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 20.9k | while (a_pos < a_end) { | 94 | 20.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 20.3k | ++a_pos; | 96 | 20.3k | ++c_pos; | 97 | 20.3k | } | 98 | 682 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 94.5k | while (a_pos < a_end) { | 94 | 94.5k | *c_pos = Op::apply(*a_pos, b); | 95 | 94.5k | ++a_pos; | 96 | 94.5k | ++c_pos; | 97 | 94.5k | } | 98 | 40 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 52 | PaddedPODArray<UInt8>& c) { | 88 | 52 | size_t size = a.size(); | 89 | 52 | const A* __restrict a_pos = a.data(); | 90 | 52 | UInt8* __restrict c_pos = c.data(); | 91 | 52 | 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 | 52 | } |
_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 | 87 | PaddedPODArray<UInt8>& c) { | 88 | 87 | size_t size = a.size(); | 89 | 87 | const A* __restrict a_pos = a.data(); | 90 | 87 | UInt8* __restrict c_pos = c.data(); | 91 | 87 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 176 | while (a_pos < a_end) { | 94 | 89 | *c_pos = Op::apply(*a_pos, b); | 95 | 89 | ++a_pos; | 96 | 89 | ++c_pos; | 97 | 89 | } | 98 | 87 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 83 | PaddedPODArray<UInt8>& c) { | 88 | 83 | size_t size = a.size(); | 89 | 83 | const A* __restrict a_pos = a.data(); | 90 | 83 | UInt8* __restrict c_pos = c.data(); | 91 | 83 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 166 | while (a_pos < a_end) { | 94 | 83 | *c_pos = Op::apply(*a_pos, b); | 95 | 83 | ++a_pos; | 96 | 83 | ++c_pos; | 97 | 83 | } | 98 | 83 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 141 | PaddedPODArray<UInt8>& c) { | 88 | 141 | size_t size = a.size(); | 89 | 141 | const A* __restrict a_pos = a.data(); | 90 | 141 | UInt8* __restrict c_pos = c.data(); | 91 | 141 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 355k | *c_pos = Op::apply(*a_pos, b); | 95 | 355k | ++a_pos; | 96 | 355k | ++c_pos; | 97 | 355k | } | 98 | 141 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 113 | PaddedPODArray<UInt8>& c) { | 88 | 113 | size_t size = a.size(); | 89 | 113 | const A* __restrict a_pos = a.data(); | 90 | 113 | UInt8* __restrict c_pos = c.data(); | 91 | 113 | 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 | 113 | } |
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.69k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.69k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.69k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 312 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 312 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 312 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 48 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 142 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 142 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 142 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 851 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 851 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 851 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 8 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 8 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 8 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 802 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 802 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 802 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 240 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 240 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 240 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 3.33k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 3.33k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 3.33k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 507 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 507 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 507 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 26 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 26 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 26 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 264 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 121 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 121 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 121 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 79 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 79 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 79 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 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 | 574 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 574 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 574 | } |
_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 | 141 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 141 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 426k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 426k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 426k | } |
119 | 141 | } _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 | 41 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 41 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 157k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 157k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 157k | } | 119 | 41 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 63 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 63 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 268k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 268k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 268k | } | 119 | 63 | } |
|
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 | 590 | PaddedPODArray<UInt8>& c) { |
133 | 590 | size_t size = a_offsets.size(); |
134 | 590 | ColumnString::Offset prev_a_offset = 0; |
135 | 590 | ColumnString::Offset prev_b_offset = 0; |
136 | 590 | const auto* a_pos = a_data.data(); |
137 | 590 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 1.90k | for (size_t i = 0; i < size; ++i) { |
140 | 1.31k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.31k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.31k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.31k | 0); |
144 | | |
145 | 1.31k | prev_a_offset = a_offsets[i]; |
146 | 1.31k | prev_b_offset = b_offsets[i]; |
147 | 1.31k | } |
148 | 590 | } _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 | 65 | PaddedPODArray<UInt8>& c) { | 133 | 65 | size_t size = a_offsets.size(); | 134 | 65 | ColumnString::Offset prev_a_offset = 0; | 135 | 65 | ColumnString::Offset prev_b_offset = 0; | 136 | 65 | const auto* a_pos = a_data.data(); | 137 | 65 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 288 | for (size_t i = 0; i < size; ++i) { | 140 | 223 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 223 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 223 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 223 | 0); | 144 | | | 145 | 223 | prev_a_offset = a_offsets[i]; | 146 | 223 | prev_b_offset = b_offsets[i]; | 147 | 223 | } | 148 | 65 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 453 | PaddedPODArray<UInt8>& c) { | 133 | 453 | size_t size = a_offsets.size(); | 134 | 453 | ColumnString::Offset prev_a_offset = 0; | 135 | 453 | ColumnString::Offset prev_b_offset = 0; | 136 | 453 | const auto* a_pos = a_data.data(); | 137 | 453 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.42k | for (size_t i = 0; i < size; ++i) { | 140 | 975 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 975 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 975 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 975 | 0); | 144 | | | 145 | 975 | prev_a_offset = a_offsets[i]; | 146 | 975 | prev_b_offset = b_offsets[i]; | 147 | 975 | } | 148 | 453 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 70 | PaddedPODArray<UInt8>& c) { | 133 | 70 | size_t size = a_offsets.size(); | 134 | 70 | ColumnString::Offset prev_a_offset = 0; | 135 | 70 | ColumnString::Offset prev_b_offset = 0; | 136 | 70 | const auto* a_pos = a_data.data(); | 137 | 70 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 140 | for (size_t i = 0; i < size; ++i) { | 140 | 70 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 70 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 70 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 70 | 0); | 144 | | | 145 | 70 | prev_a_offset = a_offsets[i]; | 146 | 70 | prev_b_offset = b_offsets[i]; | 147 | 70 | } | 148 | 70 | } |
|
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.38k | PaddedPODArray<UInt8>& c) { |
155 | 1.38k | size_t size = a_offsets.size(); |
156 | 1.38k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.38k | const auto* a_pos = a_data.data(); |
158 | 1.38k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.40M | for (size_t i = 0; i < size; ++i) { |
161 | 1.40M | c[i] = Op::apply( |
162 | 1.40M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.40M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.40M | 0); |
165 | | |
166 | 1.40M | prev_a_offset = a_offsets[i]; |
167 | 1.40M | } |
168 | 1.38k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 204 | PaddedPODArray<UInt8>& c) { | 155 | 204 | size_t size = a_offsets.size(); | 156 | 204 | ColumnString::Offset prev_a_offset = 0; | 157 | 204 | const auto* a_pos = a_data.data(); | 158 | 204 | 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 | 204 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 213 | PaddedPODArray<UInt8>& c) { | 155 | 213 | size_t size = a_offsets.size(); | 156 | 213 | ColumnString::Offset prev_a_offset = 0; | 157 | 213 | const auto* a_pos = a_data.data(); | 158 | 213 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 73.1k | for (size_t i = 0; i < size; ++i) { | 161 | 72.9k | c[i] = Op::apply( | 162 | 72.9k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 72.9k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 72.9k | 0); | 165 | | | 166 | 72.9k | prev_a_offset = a_offsets[i]; | 167 | 72.9k | } | 168 | 213 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 446 | PaddedPODArray<UInt8>& c) { | 155 | 446 | size_t size = a_offsets.size(); | 156 | 446 | ColumnString::Offset prev_a_offset = 0; | 157 | 446 | const auto* a_pos = a_data.data(); | 158 | 446 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 473k | for (size_t i = 0; i < size; ++i) { | 161 | 473k | c[i] = Op::apply( | 162 | 473k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 473k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 473k | 0); | 165 | | | 166 | 473k | prev_a_offset = a_offsets[i]; | 167 | 473k | } | 168 | 446 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 523 | PaddedPODArray<UInt8>& c) { | 155 | 523 | size_t size = a_offsets.size(); | 156 | 523 | ColumnString::Offset prev_a_offset = 0; | 157 | 523 | const auto* a_pos = a_data.data(); | 158 | 523 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 531k | for (size_t i = 0; i < size; ++i) { | 161 | 530k | c[i] = Op::apply( | 162 | 530k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 530k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 530k | 0); | 165 | | | 166 | 530k | prev_a_offset = a_offsets[i]; | 167 | 530k | } | 168 | 523 | } |
|
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 | 4 | PaddedPODArray<UInt8>& c) { |
175 | 4 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 4 | a_data, a_size, c); |
177 | 4 | } 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 | 4 | PaddedPODArray<UInt8>& c) { | 175 | 4 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 4 | a_data, a_size, c); | 177 | 4 | } |
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 | 961 | PaddedPODArray<UInt8>& c) { |
187 | 961 | size_t size = a_offsets.size(); |
188 | 961 | ColumnString::Offset prev_a_offset = 0; |
189 | 961 | ColumnString::Offset prev_b_offset = 0; |
190 | 961 | const auto* a_pos = a_data.data(); |
191 | 961 | const auto* b_pos = b_data.data(); |
192 | | |
193 | 2.37k | for (size_t i = 0; i < size; ++i) { |
194 | 1.41k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 1.41k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 1.41k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 1.41k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 1.41k | prev_a_offset = a_offsets[i]; |
201 | 1.41k | prev_b_offset = b_offsets[i]; |
202 | 1.41k | } |
203 | 961 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 933 | PaddedPODArray<UInt8>& c) { | 187 | 933 | size_t size = a_offsets.size(); | 188 | 933 | ColumnString::Offset prev_a_offset = 0; | 189 | 933 | ColumnString::Offset prev_b_offset = 0; | 190 | 933 | const auto* a_pos = a_data.data(); | 191 | 933 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 2.31k | for (size_t i = 0; i < size; ++i) { | 194 | 1.37k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 1.37k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 1.37k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 1.37k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 1.37k | prev_a_offset = a_offsets[i]; | 201 | 1.37k | prev_b_offset = b_offsets[i]; | 202 | 1.37k | } | 203 | 933 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 28 | PaddedPODArray<UInt8>& c) { | 187 | 28 | size_t size = a_offsets.size(); | 188 | 28 | ColumnString::Offset prev_a_offset = 0; | 189 | 28 | ColumnString::Offset prev_b_offset = 0; | 190 | 28 | const auto* a_pos = a_data.data(); | 191 | 28 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 65 | for (size_t i = 0; i < size; ++i) { | 194 | 37 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 37 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 37 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 37 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 37 | prev_a_offset = a_offsets[i]; | 201 | 37 | prev_b_offset = b_offsets[i]; | 202 | 37 | } | 203 | 28 | } |
|
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 | 18.5k | PaddedPODArray<UInt8>& c) { |
210 | 18.5k | size_t size = a_offsets.size(); |
211 | 18.5k | if (b_size == 0) { |
212 | 2 | auto* __restrict data = c.data(); |
213 | 2 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 2 | ColumnString::Offset prev_a_offset = 0; |
216 | 10 | for (size_t i = 0; i < size; ++i) { |
217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 8 | prev_a_offset = offsets[i]; |
219 | 8 | } |
220 | 18.5k | } else { |
221 | 18.5k | ColumnString::Offset prev_a_offset = 0; |
222 | 18.5k | const auto* a_pos = a_data.data(); |
223 | 18.5k | const auto* b_pos = b_data.data(); |
224 | 7.12M | for (size_t i = 0; i < size; ++i) { |
225 | 7.10M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 7.10M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 7.10M | b_pos, b_size); |
228 | 7.10M | prev_a_offset = a_offsets[i]; |
229 | 7.10M | } |
230 | 18.5k | } |
231 | 18.5k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 17.3k | PaddedPODArray<UInt8>& c) { | 210 | 17.3k | size_t size = a_offsets.size(); | 211 | 17.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 | 17.3k | } else { | 221 | 17.3k | ColumnString::Offset prev_a_offset = 0; | 222 | 17.3k | const auto* a_pos = a_data.data(); | 223 | 17.3k | const auto* b_pos = b_data.data(); | 224 | 5.24M | for (size_t i = 0; i < size; ++i) { | 225 | 5.22M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 5.22M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 5.22M | b_pos, b_size); | 228 | 5.22M | prev_a_offset = a_offsets[i]; | 229 | 5.22M | } | 230 | 17.3k | } | 231 | 17.3k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 1.24k | PaddedPODArray<UInt8>& c) { | 210 | 1.24k | size_t size = a_offsets.size(); | 211 | 1.24k | if (b_size == 0) { | 212 | 2 | auto* __restrict data = c.data(); | 213 | 2 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 2 | ColumnString::Offset prev_a_offset = 0; | 216 | 10 | for (size_t i = 0; i < size; ++i) { | 217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 8 | prev_a_offset = offsets[i]; | 219 | 8 | } | 220 | 1.24k | } else { | 221 | 1.24k | ColumnString::Offset prev_a_offset = 0; | 222 | 1.24k | const auto* a_pos = a_data.data(); | 223 | 1.24k | const auto* b_pos = b_data.data(); | 224 | 1.88M | for (size_t i = 0; i < size; ++i) { | 225 | 1.87M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 1.87M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 1.87M | b_pos, b_size); | 228 | 1.87M | prev_a_offset = a_offsets[i]; | 229 | 1.87M | } | 230 | 1.24k | } | 231 | 1.24k | } |
|
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 | 19.8k | Op op) { |
296 | 19.8k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 19.8k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 19.8k | slot_literal->slot_type); |
300 | 19.8k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 19.8k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 19.8k | if (zone_map_ptr == nullptr) { |
305 | 483 | return unsupported_zonemap_filter(ctx); |
306 | 483 | } |
307 | 19.3k | const auto& zone_map = *zone_map_ptr; |
308 | 19.3k | if (!zone_map.has_not_null) { |
309 | 136 | return ZoneMapFilterResult::kNoMatch; |
310 | 136 | } |
311 | 19.1k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 101 | return unsupported_zonemap_filter(ctx); |
313 | 101 | } |
314 | | |
315 | 19.0k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 19.0k | const auto& literal = slot_literal->literal; |
317 | 19.0k | switch (effective_op) { |
318 | 5.25k | case Op::EQ: |
319 | 5.25k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 5.25k | ? ZoneMapFilterResult::kNoMatch |
321 | 5.25k | : ZoneMapFilterResult::kMayMatch; |
322 | 604 | case Op::NE: |
323 | 604 | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 604 | ? ZoneMapFilterResult::kNoMatch |
325 | 604 | : ZoneMapFilterResult::kMayMatch; |
326 | 1.58k | case Op::LT: |
327 | 1.58k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 1.58k | : ZoneMapFilterResult::kMayMatch; |
329 | 5.19k | case Op::LE: |
330 | 5.19k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 5.19k | : ZoneMapFilterResult::kMayMatch; |
332 | 2.65k | case Op::GT: |
333 | 2.65k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 2.65k | : ZoneMapFilterResult::kMayMatch; |
335 | 3.82k | case Op::GE: |
336 | 3.82k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 3.82k | : ZoneMapFilterResult::kMayMatch; |
338 | 19.0k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 19.0k | } |
343 | | |
344 | 96.9k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 96.9k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 96.9k | if (!slot_literal.has_value()) { |
347 | 29.6k | return false; |
348 | 29.6k | } |
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 | 67.3k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 67.3k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 67.3k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 67.3k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
360 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
361 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
362 | | // values without running expression casts, so conservatively skip this optimization. |
363 | 5 | return false; |
364 | 5 | } |
365 | | |
366 | 67.2k | return true; |
367 | 67.3k | } |
368 | | |
369 | 33.1k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 33.1k | return op == Op::EQ && can_evaluate(arguments); |
371 | 33.1k | } |
372 | | |
373 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
374 | 20.4k | const VExprSPtrs& arguments, Op op) { |
375 | 20.4k | DORIS_CHECK(op == Op::EQ); |
376 | 20.4k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
377 | 20.4k | DORIS_CHECK(slot_literal.has_value()); |
378 | 20.4k | return expr_zonemap::eval_eq_dictionary(ctx, *slot_literal); |
379 | 20.4k | } |
380 | | |
381 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
382 | 9 | const VExprSPtrs& arguments, Op op) { |
383 | 9 | DORIS_CHECK(op == Op::EQ); |
384 | 9 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
385 | 9 | DORIS_CHECK(slot_literal.has_value()); |
386 | 9 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
387 | 9 | } |
388 | | |
389 | 142k | inline std::optional<Op> op_from_name(std::string_view name) { |
390 | 142k | if (name == NameEquals::name) { |
391 | 80.9k | return Op::EQ; |
392 | 80.9k | } |
393 | 61.3k | if (name == NameNotEquals::name) { |
394 | 4.25k | return Op::NE; |
395 | 4.25k | } |
396 | 57.1k | if (name == NameLess::name) { |
397 | 8.37k | return Op::LT; |
398 | 8.37k | } |
399 | 48.7k | if (name == NameLessOrEquals::name) { |
400 | 17.5k | return Op::LE; |
401 | 17.5k | } |
402 | 31.2k | if (name == NameGreater::name) { |
403 | 15.6k | return Op::GT; |
404 | 15.6k | } |
405 | 15.6k | if (name == NameGreaterOrEquals::name) { |
406 | 15.6k | return Op::GE; |
407 | 15.6k | } |
408 | 18.4E | return std::nullopt; |
409 | 15.5k | } |
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 | 392k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 416 | 354k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 416 | 1.93k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 416 | 6.98k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 416 | 10.0k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 416 | 3.72k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 416 | 15.7k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
417 | | |
418 | 393k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 418 | 354k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 418 | 1.93k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 418 | 6.98k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 418 | 10.0k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 418 | 3.72k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 418 | 15.7k | FunctionComparison() = default; |
|
419 | | |
420 | 956k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 420 | 938k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 420 | 624 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 420 | 2.48k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 420 | 7.51k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 420 | 1.44k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 420 | 4.95k | 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 | 159k | const ColumnPtr& col_right_ptr) const { |
426 | 159k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
427 | 159k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
428 | | |
429 | 159k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
430 | 159k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
431 | | |
432 | 159k | DCHECK(!(left_is_const && right_is_const)); |
433 | | |
434 | 159k | if (!left_is_const && !right_is_const) { |
435 | 9.08k | auto col_res = ColumnUInt8::create(); |
436 | | |
437 | 9.08k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
438 | 9.08k | vec_res.resize(col_left->get_data().size()); |
439 | 9.08k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
440 | 9.08k | typename PrimitiveTypeTraits<PT>::CppType, |
441 | 9.08k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
442 | 9.08k | vec_res); |
443 | | |
444 | 9.08k | block.replace_by_position(result, std::move(col_res)); |
445 | 150k | } else if (!left_is_const && right_is_const) { |
446 | 142k | auto col_res = ColumnUInt8::create(); |
447 | | |
448 | 142k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
449 | 142k | vec_res.resize(col_left->size()); |
450 | 142k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
451 | 142k | typename PrimitiveTypeTraits<PT>::CppType, |
452 | 142k | Op<PT>>::vector_constant(col_left->get_data(), |
453 | 142k | col_right->get_element(0), vec_res); |
454 | | |
455 | 142k | block.replace_by_position(result, std::move(col_res)); |
456 | 142k | } else if (left_is_const && !right_is_const) { |
457 | 7.69k | auto col_res = ColumnUInt8::create(); |
458 | | |
459 | 7.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
460 | 7.69k | vec_res.resize(col_right->size()); |
461 | 7.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
462 | 7.69k | typename PrimitiveTypeTraits<PT>::CppType, |
463 | 7.69k | Op<PT>>::constant_vector(col_left->get_element(0), |
464 | 7.69k | col_right->get_data(), vec_res); |
465 | | |
466 | 7.69k | block.replace_by_position(result, std::move(col_res)); |
467 | 7.69k | } |
468 | 159k | return Status::OK(); |
469 | 159k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 859 | const ColumnPtr& col_right_ptr) const { | 426 | 859 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 859 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 859 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 859 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 859 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 859 | if (!left_is_const && !right_is_const) { | 435 | 70 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 70 | vec_res.resize(col_left->get_data().size()); | 439 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 70 | vec_res); | 443 | | | 444 | 70 | block.replace_by_position(result, std::move(col_res)); | 445 | 789 | } else if (!left_is_const && right_is_const) { | 446 | 789 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 789 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 789 | vec_res.resize(col_left->size()); | 450 | 789 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 789 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 789 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 789 | col_right->get_element(0), vec_res); | 454 | | | 455 | 789 | block.replace_by_position(result, std::move(col_res)); | 456 | 789 | } 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 | 859 | return Status::OK(); | 469 | 859 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.25k | const ColumnPtr& col_right_ptr) const { | 426 | 1.25k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.25k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.25k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.25k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.25k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.25k | if (!left_is_const && !right_is_const) { | 435 | 505 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 505 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 505 | vec_res.resize(col_left->get_data().size()); | 439 | 505 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 505 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 505 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 505 | vec_res); | 443 | | | 444 | 505 | block.replace_by_position(result, std::move(col_res)); | 445 | 750 | } else if (!left_is_const && right_is_const) { | 446 | 750 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 750 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 750 | vec_res.resize(col_left->size()); | 450 | 750 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 750 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 750 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 750 | col_right->get_element(0), vec_res); | 454 | | | 455 | 750 | block.replace_by_position(result, std::move(col_res)); | 456 | 750 | } 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.25k | return Status::OK(); | 469 | 1.25k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_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 | 277 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 277 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 277 | vec_res.resize(col_left->get_data().size()); | 439 | 277 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 277 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 277 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 277 | vec_res); | 443 | | | 444 | 277 | block.replace_by_position(result, std::move(col_res)); | 445 | 277 | } else if (!left_is_const && right_is_const) { | 446 | 235 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 235 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 235 | vec_res.resize(col_left->size()); | 450 | 235 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 235 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 235 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 235 | col_right->get_element(0), vec_res); | 454 | | | 455 | 235 | block.replace_by_position(result, std::move(col_res)); | 456 | 235 | } 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_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_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 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 5.91k | const ColumnPtr& col_right_ptr) const { | 426 | 5.91k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 5.91k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 5.91k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 5.91k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 5.91k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 5.91k | if (!left_is_const && !right_is_const) { | 435 | 135 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 135 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 135 | vec_res.resize(col_left->get_data().size()); | 439 | 135 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 135 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 135 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 135 | vec_res); | 443 | | | 444 | 135 | block.replace_by_position(result, std::move(col_res)); | 445 | 5.77k | } else if (!left_is_const && right_is_const) { | 446 | 5.46k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 5.46k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 5.46k | vec_res.resize(col_left->size()); | 450 | 5.46k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 5.46k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 5.46k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 5.46k | col_right->get_element(0), vec_res); | 454 | | | 455 | 5.46k | block.replace_by_position(result, std::move(col_res)); | 456 | 5.46k | } else if (left_is_const && !right_is_const) { | 457 | 312 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 312 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 312 | vec_res.resize(col_right->size()); | 461 | 312 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 312 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 312 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 312 | col_right->get_data(), vec_res); | 465 | | | 466 | 312 | block.replace_by_position(result, std::move(col_res)); | 467 | 312 | } | 468 | 5.91k | return Status::OK(); | 469 | 5.91k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 990 | const ColumnPtr& col_right_ptr) const { | 426 | 990 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 990 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 990 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 990 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 990 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 990 | if (!left_is_const && !right_is_const) { | 435 | 68 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 68 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 68 | vec_res.resize(col_left->get_data().size()); | 439 | 68 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 68 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 68 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 68 | vec_res); | 443 | | | 444 | 68 | block.replace_by_position(result, std::move(col_res)); | 445 | 922 | } else if (!left_is_const && right_is_const) { | 446 | 875 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 875 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 875 | vec_res.resize(col_left->size()); | 450 | 875 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 875 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 875 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 875 | col_right->get_element(0), vec_res); | 454 | | | 455 | 875 | block.replace_by_position(result, std::move(col_res)); | 456 | 875 | } else if (left_is_const && !right_is_const) { | 457 | 47 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 47 | vec_res.resize(col_right->size()); | 461 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 47 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 47 | col_right->get_data(), vec_res); | 465 | | | 466 | 47 | block.replace_by_position(result, std::move(col_res)); | 467 | 47 | } | 468 | 990 | return Status::OK(); | 469 | 990 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 7.57k | const ColumnPtr& col_right_ptr) const { | 426 | 7.57k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 7.57k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 7.57k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 7.57k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 7.57k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 7.57k | if (!left_is_const && !right_is_const) { | 435 | 651 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 651 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 651 | vec_res.resize(col_left->get_data().size()); | 439 | 651 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 651 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 651 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 651 | vec_res); | 443 | | | 444 | 651 | block.replace_by_position(result, std::move(col_res)); | 445 | 6.92k | } else if (!left_is_const && right_is_const) { | 446 | 6.78k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 6.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 6.78k | vec_res.resize(col_left->size()); | 450 | 6.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 6.78k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 6.78k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 6.78k | col_right->get_element(0), vec_res); | 454 | | | 455 | 6.78k | block.replace_by_position(result, std::move(col_res)); | 456 | 6.78k | } else if (left_is_const && !right_is_const) { | 457 | 142 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 142 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 142 | vec_res.resize(col_right->size()); | 461 | 142 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 142 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 142 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 142 | col_right->get_data(), vec_res); | 465 | | | 466 | 142 | block.replace_by_position(result, std::move(col_res)); | 467 | 142 | } | 468 | 7.57k | return Status::OK(); | 469 | 7.57k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 15.7k | const ColumnPtr& col_right_ptr) const { | 426 | 15.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 15.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 15.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 15.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 15.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 15.7k | if (!left_is_const && !right_is_const) { | 435 | 214 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 214 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 214 | vec_res.resize(col_left->get_data().size()); | 439 | 214 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 214 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 214 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 214 | vec_res); | 443 | | | 444 | 214 | block.replace_by_position(result, std::move(col_res)); | 445 | 15.5k | } else if (!left_is_const && right_is_const) { | 446 | 14.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.7k | vec_res.resize(col_left->size()); | 450 | 14.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.7k | } else if (left_is_const && !right_is_const) { | 457 | 851 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 851 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 851 | vec_res.resize(col_right->size()); | 461 | 851 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 851 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 851 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 851 | col_right->get_data(), vec_res); | 465 | | | 466 | 851 | block.replace_by_position(result, std::move(col_res)); | 467 | 851 | } | 468 | 15.7k | return Status::OK(); | 469 | 15.7k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 110 | const ColumnPtr& col_right_ptr) const { | 426 | 110 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 110 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 110 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 110 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 110 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 110 | if (!left_is_const && !right_is_const) { | 435 | 60 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 60 | vec_res.resize(col_left->get_data().size()); | 439 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 60 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 60 | vec_res); | 443 | | | 444 | 60 | block.replace_by_position(result, std::move(col_res)); | 445 | 60 | } else if (!left_is_const && right_is_const) { | 446 | 42 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 42 | vec_res.resize(col_left->size()); | 450 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 42 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 42 | col_right->get_element(0), vec_res); | 454 | | | 455 | 42 | block.replace_by_position(result, std::move(col_res)); | 456 | 42 | } else if (left_is_const && !right_is_const) { | 457 | 8 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 8 | vec_res.resize(col_right->size()); | 461 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 8 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 8 | col_right->get_data(), vec_res); | 465 | | | 466 | 8 | block.replace_by_position(result, std::move(col_res)); | 467 | 8 | } | 468 | 110 | return Status::OK(); | 469 | 110 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 20 | const ColumnPtr& col_right_ptr) const { | 426 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 20 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 20 | 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 | 15 | } else if (!left_is_const && right_is_const) { | 446 | 15 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 15 | vec_res.resize(col_left->size()); | 450 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 15 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 15 | col_right->get_element(0), vec_res); | 454 | | | 455 | 15 | block.replace_by_position(result, std::move(col_res)); | 456 | 15 | } 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 | 20 | return Status::OK(); | 469 | 20 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_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 | 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 | 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 | 18 | return Status::OK(); | 469 | 18 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 90 | const ColumnPtr& col_right_ptr) const { | 426 | 90 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 90 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 90 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 90 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 90 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 90 | if (!left_is_const && !right_is_const) { | 435 | 88 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 88 | vec_res.resize(col_left->get_data().size()); | 439 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 88 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 88 | vec_res); | 443 | | | 444 | 88 | block.replace_by_position(result, std::move(col_res)); | 445 | 88 | } else if (!left_is_const && right_is_const) { | 446 | 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 | 90 | return Status::OK(); | 469 | 90 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 929 | const ColumnPtr& col_right_ptr) const { | 426 | 929 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 929 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 929 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 929 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 929 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 929 | if (!left_is_const && !right_is_const) { | 435 | 85 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 85 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 85 | vec_res.resize(col_left->get_data().size()); | 439 | 85 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 85 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 85 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 85 | vec_res); | 443 | | | 444 | 85 | block.replace_by_position(result, std::move(col_res)); | 445 | 844 | } else if (!left_is_const && right_is_const) { | 446 | 844 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 844 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 844 | vec_res.resize(col_left->size()); | 450 | 844 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 844 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 844 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 844 | col_right->get_element(0), vec_res); | 454 | | | 455 | 844 | block.replace_by_position(result, std::move(col_res)); | 456 | 844 | } 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 | 929 | return Status::OK(); | 469 | 929 | } |
_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 | 76 | const ColumnPtr& col_right_ptr) const { | 426 | 76 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 76 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 76 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 76 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 76 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 76 | if (!left_is_const && !right_is_const) { | 435 | 43 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 43 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 43 | vec_res.resize(col_left->get_data().size()); | 439 | 43 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 43 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 43 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 43 | vec_res); | 443 | | | 444 | 43 | block.replace_by_position(result, std::move(col_res)); | 445 | 43 | } else if (!left_is_const && right_is_const) { | 446 | 33 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 33 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 33 | vec_res.resize(col_left->size()); | 450 | 33 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 33 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 33 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 33 | col_right->get_element(0), vec_res); | 454 | | | 455 | 33 | block.replace_by_position(result, std::move(col_res)); | 456 | 33 | } 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 | 76 | return Status::OK(); | 469 | 76 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_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 | 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 | 1 | } 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 | 1 | return Status::OK(); | 469 | 1 | } |
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 | 92 | const ColumnPtr& col_right_ptr) const { | 426 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 92 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 92 | 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 | 36 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 36 | vec_res.resize(col_left->size()); | 450 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 36 | col_right->get_element(0), vec_res); | 454 | | | 455 | 36 | block.replace_by_position(result, std::move(col_res)); | 456 | 36 | } 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 | 92 | return Status::OK(); | 469 | 92 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 13 | const ColumnPtr& col_right_ptr) const { | 426 | 13 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 13 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 13 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 13 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 13 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 13 | 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 | 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 | 13 | return Status::OK(); | 469 | 13 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.96k | const ColumnPtr& col_right_ptr) const { | 426 | 1.96k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.96k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.96k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.96k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.96k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.96k | if (!left_is_const && !right_is_const) { | 435 | 990 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 990 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 990 | vec_res.resize(col_left->get_data().size()); | 439 | 990 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 990 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 990 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 990 | vec_res); | 443 | | | 444 | 990 | block.replace_by_position(result, std::move(col_res)); | 445 | 990 | } else if (!left_is_const && right_is_const) { | 446 | 974 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 974 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 974 | vec_res.resize(col_left->size()); | 450 | 974 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 974 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 974 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 974 | col_right->get_element(0), vec_res); | 454 | | | 455 | 974 | block.replace_by_position(result, std::move(col_res)); | 456 | 974 | } 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.96k | return Status::OK(); | 469 | 1.96k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.11k | const ColumnPtr& col_right_ptr) const { | 426 | 2.11k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.11k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.11k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.11k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.11k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.11k | if (!left_is_const && !right_is_const) { | 435 | 341 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 341 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 341 | vec_res.resize(col_left->get_data().size()); | 439 | 341 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 341 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 341 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 341 | vec_res); | 443 | | | 444 | 341 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.77k | } else if (!left_is_const && right_is_const) { | 446 | 976 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 976 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 976 | vec_res.resize(col_left->size()); | 450 | 976 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 976 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 976 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 976 | col_right->get_element(0), vec_res); | 454 | | | 455 | 976 | block.replace_by_position(result, std::move(col_res)); | 456 | 976 | } else if (left_is_const && !right_is_const) { | 457 | 802 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 802 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 802 | vec_res.resize(col_right->size()); | 461 | 802 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 802 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 802 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 802 | col_right->get_data(), vec_res); | 465 | | | 466 | 802 | block.replace_by_position(result, std::move(col_res)); | 467 | 802 | } | 468 | 2.11k | return Status::OK(); | 469 | 2.11k | } |
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.24k | const ColumnPtr& col_right_ptr) const { | 426 | 1.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.24k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.24k | if (!left_is_const && !right_is_const) { | 435 | 1.14k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.14k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.14k | vec_res.resize(col_left->get_data().size()); | 439 | 1.14k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.14k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.14k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.14k | vec_res); | 443 | | | 444 | 1.14k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.14k | } else if (!left_is_const && right_is_const) { | 446 | 101 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 101 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 101 | vec_res.resize(col_left->size()); | 450 | 101 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 101 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 101 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 101 | col_right->get_element(0), vec_res); | 454 | | | 455 | 101 | block.replace_by_position(result, std::move(col_res)); | 456 | 101 | } 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.24k | return Status::OK(); | 469 | 1.24k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_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 | 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 | 48 | } else if (!left_is_const && right_is_const) { | 446 | 48 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 48 | vec_res.resize(col_left->size()); | 450 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 48 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 48 | col_right->get_element(0), vec_res); | 454 | | | 455 | 48 | block.replace_by_position(result, std::move(col_res)); | 456 | 48 | } 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_9GreaterOpENS_11NameGreaterEE16execute_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_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.43k | const ColumnPtr& col_right_ptr) const { | 426 | 1.43k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.43k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.43k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.43k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.43k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.43k | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.39k | } else if (!left_is_const && right_is_const) { | 446 | 1.15k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.15k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.15k | vec_res.resize(col_left->size()); | 450 | 1.15k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.15k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.15k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.15k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.15k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.15k | } 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 | 1.43k | return Status::OK(); | 469 | 1.43k | } |
_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.44k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.44k | vec_res.resize(col_left->size()); | 450 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.44k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.44k | } else if (left_is_const && !right_is_const) { | 457 | 239 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 239 | vec_res.resize(col_right->size()); | 461 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 239 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 239 | col_right->get_data(), vec_res); | 465 | | | 466 | 239 | block.replace_by_position(result, std::move(col_res)); | 467 | 239 | } | 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 | 18.1k | const ColumnPtr& col_right_ptr) const { | 426 | 18.1k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 18.1k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 18.1k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 18.1k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 18.1k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 18.1k | if (!left_is_const && !right_is_const) { | 435 | 65 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 65 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 65 | vec_res.resize(col_left->get_data().size()); | 439 | 65 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 65 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 65 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 65 | vec_res); | 443 | | | 444 | 65 | block.replace_by_position(result, std::move(col_res)); | 445 | 18.0k | } else if (!left_is_const && right_is_const) { | 446 | 14.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.7k | vec_res.resize(col_left->size()); | 450 | 14.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.7k | } 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 | 18.1k | return Status::OK(); | 469 | 18.1k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 7.78k | const ColumnPtr& col_right_ptr) const { | 426 | 7.78k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 7.78k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 7.78k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 7.78k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 7.78k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 7.78k | 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 | 7.72k | } else if (!left_is_const && right_is_const) { | 446 | 7.21k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 7.21k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 7.21k | vec_res.resize(col_left->size()); | 450 | 7.21k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 7.21k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 7.21k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 7.21k | col_right->get_element(0), vec_res); | 454 | | | 455 | 7.21k | block.replace_by_position(result, std::move(col_res)); | 456 | 7.21k | } else if (left_is_const && !right_is_const) { | 457 | 507 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 507 | vec_res.resize(col_right->size()); | 461 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 507 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 507 | col_right->get_data(), vec_res); | 465 | | | 466 | 507 | block.replace_by_position(result, std::move(col_res)); | 467 | 507 | } | 468 | 7.78k | return Status::OK(); | 469 | 7.78k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 230 | const ColumnPtr& col_right_ptr) const { | 426 | 230 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 230 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 230 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 230 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 230 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 230 | if (!left_is_const && !right_is_const) { | 435 | 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 | 228 | } else if (!left_is_const && right_is_const) { | 446 | 202 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 202 | vec_res.resize(col_left->size()); | 450 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 202 | col_right->get_element(0), vec_res); | 454 | | | 455 | 202 | block.replace_by_position(result, std::move(col_res)); | 456 | 202 | } else if (left_is_const && !right_is_const) { | 457 | 26 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 26 | vec_res.resize(col_right->size()); | 461 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 26 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 26 | col_right->get_data(), vec_res); | 465 | | | 466 | 26 | block.replace_by_position(result, std::move(col_res)); | 467 | 26 | } | 468 | 230 | return Status::OK(); | 469 | 230 | } |
_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 | 228 | const ColumnPtr& col_right_ptr) const { | 426 | 228 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 228 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 228 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 228 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 228 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 228 | 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 | 208 | } else if (!left_is_const && right_is_const) { | 446 | 208 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 208 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 208 | vec_res.resize(col_left->size()); | 450 | 208 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 208 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 208 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 208 | col_right->get_element(0), vec_res); | 454 | | | 455 | 208 | block.replace_by_position(result, std::move(col_res)); | 456 | 208 | } 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 | 228 | return Status::OK(); | 469 | 228 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.46k | const ColumnPtr& col_right_ptr) const { | 426 | 1.46k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.46k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.46k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.46k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.46k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.46k | if (!left_is_const && !right_is_const) { | 435 | 25 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 25 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 25 | vec_res.resize(col_left->get_data().size()); | 439 | 25 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 25 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 25 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 25 | vec_res); | 443 | | | 444 | 25 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.44k | } else if (!left_is_const && right_is_const) { | 446 | 1.44k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.44k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.44k | vec_res.resize(col_left->size()); | 450 | 1.44k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.44k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.44k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.44k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.44k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.44k | } 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.46k | return Status::OK(); | 469 | 1.46k | } |
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 | 108 | const ColumnPtr& col_right_ptr) const { | 426 | 108 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 108 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 108 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 108 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 108 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 108 | if (!left_is_const && !right_is_const) { | 435 | 6 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 6 | vec_res.resize(col_left->get_data().size()); | 439 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 6 | vec_res); | 443 | | | 444 | 6 | 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 | 108 | return Status::OK(); | 469 | 108 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.37k | const ColumnPtr& col_right_ptr) const { | 426 | 1.37k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.37k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.37k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.37k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.37k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.37k | 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 | 1.36k | } else if (!left_is_const && right_is_const) { | 446 | 1.35k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.35k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.35k | vec_res.resize(col_left->size()); | 450 | 1.35k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.35k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.35k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.35k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.35k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.35k | } 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 | 1.37k | return Status::OK(); | 469 | 1.37k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 466 | const ColumnPtr& col_right_ptr) const { | 426 | 466 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 466 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 466 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 466 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 466 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 466 | if (!left_is_const && !right_is_const) { | 435 | 36 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 36 | vec_res.resize(col_left->get_data().size()); | 439 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 36 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 36 | vec_res); | 443 | | | 444 | 36 | block.replace_by_position(result, std::move(col_res)); | 445 | 430 | } else if (!left_is_const && right_is_const) { | 446 | 430 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 430 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 430 | vec_res.resize(col_left->size()); | 450 | 430 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 430 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 430 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 430 | col_right->get_element(0), vec_res); | 454 | | | 455 | 430 | block.replace_by_position(result, std::move(col_res)); | 456 | 430 | } 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 | 466 | return Status::OK(); | 469 | 466 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 44 | const ColumnPtr& col_right_ptr) const { | 426 | 44 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 44 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 44 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 44 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 44 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 44 | 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 | 44 | } 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 | 44 | return Status::OK(); | 469 | 44 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 53 | const ColumnPtr& col_right_ptr) const { | 426 | 53 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 53 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 53 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 53 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 53 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 53 | 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 | 53 | } else if (!left_is_const && right_is_const) { | 446 | 53 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 53 | vec_res.resize(col_left->size()); | 450 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 53 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 53 | col_right->get_element(0), vec_res); | 454 | | | 455 | 53 | block.replace_by_position(result, std::move(col_res)); | 456 | 53 | } 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 | 53 | return Status::OK(); | 469 | 53 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 26.7k | const ColumnPtr& col_right_ptr) const { | 426 | 26.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 26.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 26.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 26.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 26.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 26.7k | if (!left_is_const && !right_is_const) { | 435 | 28 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 28 | vec_res.resize(col_left->get_data().size()); | 439 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 28 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 28 | vec_res); | 443 | | | 444 | 28 | block.replace_by_position(result, std::move(col_res)); | 445 | 26.7k | } else if (!left_is_const && right_is_const) { | 446 | 26.7k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 26.7k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 26.7k | vec_res.resize(col_left->size()); | 450 | 26.7k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 26.7k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 26.7k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 26.7k | col_right->get_element(0), vec_res); | 454 | | | 455 | 26.7k | block.replace_by_position(result, std::move(col_res)); | 456 | 26.7k | } 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.7k | return Status::OK(); | 469 | 26.7k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 363 | const ColumnPtr& col_right_ptr) const { | 426 | 363 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 363 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 363 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 363 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 363 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 363 | if (!left_is_const && !right_is_const) { | 435 | 14 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 14 | vec_res.resize(col_left->get_data().size()); | 439 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 14 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 14 | vec_res); | 443 | | | 444 | 14 | block.replace_by_position(result, std::move(col_res)); | 445 | 349 | } else if (!left_is_const && right_is_const) { | 446 | 349 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 349 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 349 | vec_res.resize(col_left->size()); | 450 | 349 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 349 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 349 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 349 | col_right->get_element(0), vec_res); | 454 | | | 455 | 349 | block.replace_by_position(result, std::move(col_res)); | 456 | 349 | } 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 | 363 | return Status::OK(); | 469 | 363 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 40 | const ColumnPtr& col_right_ptr) const { | 426 | 40 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 40 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 40 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 40 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 40 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 40 | 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 | 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 | 40 | return Status::OK(); | 469 | 40 | } |
_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 | 127 | const ColumnPtr& col_right_ptr) const { | 426 | 127 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 127 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 127 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 127 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 127 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 127 | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 87 | } else if (!left_is_const && right_is_const) { | 446 | 87 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 87 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 87 | vec_res.resize(col_left->size()); | 450 | 87 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 87 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 87 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 87 | col_right->get_element(0), vec_res); | 454 | | | 455 | 87 | block.replace_by_position(result, std::move(col_res)); | 456 | 87 | } 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 | 127 | return Status::OK(); | 469 | 127 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 162 | const ColumnPtr& col_right_ptr) const { | 426 | 162 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 162 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 162 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 162 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 162 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 162 | if (!left_is_const && !right_is_const) { | 435 | 22 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 22 | vec_res.resize(col_left->get_data().size()); | 439 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 22 | vec_res); | 443 | | | 444 | 22 | block.replace_by_position(result, std::move(col_res)); | 445 | 140 | } else if (!left_is_const && right_is_const) { | 446 | 140 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 140 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 140 | vec_res.resize(col_left->size()); | 450 | 140 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 140 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 140 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 140 | col_right->get_element(0), vec_res); | 454 | | | 455 | 140 | block.replace_by_position(result, std::move(col_res)); | 456 | 140 | } 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 | 162 | return Status::OK(); | 469 | 162 | } |
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 | 99 | const ColumnPtr& col_right_ptr) const { | 426 | 99 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 99 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 99 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 99 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 99 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 99 | if (!left_is_const && !right_is_const) { | 435 | 99 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 99 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 99 | vec_res.resize(col_left->get_data().size()); | 439 | 99 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 99 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 99 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 99 | vec_res); | 443 | | | 444 | 99 | block.replace_by_position(result, std::move(col_res)); | 445 | 99 | } 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 | 99 | return Status::OK(); | 469 | 99 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.10k | const ColumnPtr& col_right_ptr) const { | 426 | 2.10k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.10k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.10k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.10k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.10k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.10k | if (!left_is_const && !right_is_const) { | 435 | 1.65k | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 1.65k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 1.65k | vec_res.resize(col_left->get_data().size()); | 439 | 1.65k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 1.65k | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 1.65k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 1.65k | vec_res); | 443 | | | 444 | 1.65k | block.replace_by_position(result, std::move(col_res)); | 445 | 1.65k | } else if (!left_is_const && right_is_const) { | 446 | 440 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 440 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 440 | vec_res.resize(col_left->size()); | 450 | 440 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 440 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 440 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 440 | col_right->get_element(0), vec_res); | 454 | | | 455 | 440 | block.replace_by_position(result, std::move(col_res)); | 456 | 440 | } 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.10k | return Status::OK(); | 469 | 2.10k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 469 | const ColumnPtr& col_right_ptr) const { | 426 | 469 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 469 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 469 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 469 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 469 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 469 | if (!left_is_const && !right_is_const) { | 435 | 253 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 253 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 253 | vec_res.resize(col_left->get_data().size()); | 439 | 253 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 253 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 253 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 253 | vec_res); | 443 | | | 444 | 253 | block.replace_by_position(result, std::move(col_res)); | 445 | 253 | } 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 | 469 | return Status::OK(); | 469 | 469 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_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 | 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 | 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 | 4 | return Status::OK(); | 469 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.12k | const ColumnPtr& col_right_ptr) const { | 426 | 2.12k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.12k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.12k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.12k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.12k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.12k | if (!left_is_const && !right_is_const) { | 435 | 148 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 148 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 148 | vec_res.resize(col_left->get_data().size()); | 439 | 148 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 148 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 148 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 148 | vec_res); | 443 | | | 444 | 148 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.97k | } else if (!left_is_const && right_is_const) { | 446 | 1.70k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.70k | vec_res.resize(col_left->size()); | 450 | 1.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.70k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.70k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.70k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.70k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.70k | } else if (left_is_const && !right_is_const) { | 457 | 264 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 264 | vec_res.resize(col_right->size()); | 461 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 264 | col_right->get_data(), vec_res); | 465 | | | 466 | 264 | block.replace_by_position(result, std::move(col_res)); | 467 | 264 | } | 468 | 2.12k | return Status::OK(); | 469 | 2.12k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 269 | const ColumnPtr& col_right_ptr) const { | 426 | 269 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 269 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 269 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 269 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 269 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 269 | if (!left_is_const && !right_is_const) { | 435 | 132 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 132 | vec_res.resize(col_left->get_data().size()); | 439 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 132 | vec_res); | 443 | | | 444 | 132 | block.replace_by_position(result, std::move(col_res)); | 445 | 138 | } else if (!left_is_const && right_is_const) { | 446 | 138 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 138 | vec_res.resize(col_left->size()); | 450 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 138 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 138 | col_right->get_element(0), vec_res); | 454 | | | 455 | 138 | 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 | 269 | return Status::OK(); | 469 | 269 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 2.24k | const ColumnPtr& col_right_ptr) const { | 426 | 2.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 2.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 2.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 2.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 2.24k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 2.24k | if (!left_is_const && !right_is_const) { | 435 | 183 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 183 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 183 | vec_res.resize(col_left->get_data().size()); | 439 | 183 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 183 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 183 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 183 | vec_res); | 443 | | | 444 | 183 | block.replace_by_position(result, std::move(col_res)); | 445 | 2.06k | } else if (!left_is_const && right_is_const) { | 446 | 1.94k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 1.94k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 1.94k | vec_res.resize(col_left->size()); | 450 | 1.94k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 1.94k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 1.94k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 1.94k | col_right->get_element(0), vec_res); | 454 | | | 455 | 1.94k | block.replace_by_position(result, std::move(col_res)); | 456 | 1.94k | } else if (left_is_const && !right_is_const) { | 457 | 121 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 121 | vec_res.resize(col_right->size()); | 461 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 121 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 121 | col_right->get_data(), vec_res); | 465 | | | 466 | 121 | block.replace_by_position(result, std::move(col_res)); | 467 | 121 | } | 468 | 2.24k | return Status::OK(); | 469 | 2.24k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 1.26k | const ColumnPtr& col_right_ptr) const { | 426 | 1.26k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 1.26k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 1.26k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 1.26k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 1.26k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 1.26k | if (!left_is_const && !right_is_const) { | 435 | 227 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 227 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 227 | vec_res.resize(col_left->get_data().size()); | 439 | 227 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 227 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 227 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 227 | vec_res); | 443 | | | 444 | 227 | block.replace_by_position(result, std::move(col_res)); | 445 | 1.04k | } else if (!left_is_const && right_is_const) { | 446 | 962 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 962 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 962 | vec_res.resize(col_left->size()); | 450 | 962 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 962 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 962 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 962 | col_right->get_element(0), vec_res); | 454 | | | 455 | 962 | block.replace_by_position(result, std::move(col_res)); | 456 | 962 | } else if (left_is_const && !right_is_const) { | 457 | 79 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 79 | vec_res.resize(col_right->size()); | 461 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 79 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 79 | col_right->get_data(), vec_res); | 465 | | | 466 | 79 | block.replace_by_position(result, std::move(col_res)); | 467 | 79 | } | 468 | 1.26k | return Status::OK(); | 469 | 1.26k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 292 | const ColumnPtr& col_right_ptr) const { | 426 | 292 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 292 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 292 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 292 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 292 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 292 | if (!left_is_const && !right_is_const) { | 435 | 139 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 139 | vec_res.resize(col_left->get_data().size()); | 439 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 139 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 139 | vec_res); | 443 | | | 444 | 139 | block.replace_by_position(result, std::move(col_res)); | 445 | 153 | } 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 | 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 | 292 | return Status::OK(); | 469 | 292 | } |
_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 | 157 | const ColumnPtr& col_right_ptr) const { | 426 | 157 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 157 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 157 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 157 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 157 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 157 | if (!left_is_const && !right_is_const) { | 435 | 144 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 144 | vec_res.resize(col_left->get_data().size()); | 439 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 144 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 144 | vec_res); | 443 | | | 444 | 144 | block.replace_by_position(result, std::move(col_res)); | 445 | 144 | } 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 | 157 | return Status::OK(); | 469 | 157 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 359 | const ColumnPtr& col_right_ptr) const { | 426 | 359 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 359 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 359 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 359 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 359 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 359 | if (!left_is_const && !right_is_const) { | 435 | 145 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 145 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 145 | vec_res.resize(col_left->get_data().size()); | 439 | 145 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 145 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 145 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 145 | vec_res); | 443 | | | 444 | 145 | block.replace_by_position(result, std::move(col_res)); | 445 | 214 | } else if (!left_is_const && right_is_const) { | 446 | 214 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 214 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 214 | vec_res.resize(col_left->size()); | 450 | 214 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 214 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 214 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 214 | col_right->get_element(0), vec_res); | 454 | | | 455 | 214 | block.replace_by_position(result, std::move(col_res)); | 456 | 214 | } 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 | 359 | return Status::OK(); | 469 | 359 | } |
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 | 112 | const ColumnPtr& col_right_ptr) const { | 426 | 112 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 112 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 112 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 112 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 112 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 112 | if (!left_is_const && !right_is_const) { | 435 | 6 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 6 | vec_res.resize(col_left->get_data().size()); | 439 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 6 | vec_res); | 443 | | | 444 | 6 | 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 | 112 | return Status::OK(); | 469 | 112 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 14.6k | const ColumnPtr& col_right_ptr) const { | 426 | 14.6k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 14.6k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 14.6k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 14.6k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 14.6k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 14.6k | if (!left_is_const && !right_is_const) { | 435 | 414 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 414 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 414 | vec_res.resize(col_left->get_data().size()); | 439 | 414 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 414 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 414 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 414 | vec_res); | 443 | | | 444 | 414 | block.replace_by_position(result, std::move(col_res)); | 445 | 14.2k | } else if (!left_is_const && right_is_const) { | 446 | 14.2k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 14.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 14.2k | vec_res.resize(col_left->size()); | 450 | 14.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 14.2k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 14.2k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 14.2k | col_right->get_element(0), vec_res); | 454 | | | 455 | 14.2k | block.replace_by_position(result, std::move(col_res)); | 456 | 14.2k | } 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 | 14.6k | return Status::OK(); | 469 | 14.6k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 244 | const ColumnPtr& col_right_ptr) const { | 426 | 244 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 244 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 244 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 244 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 244 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 244 | if (!left_is_const && !right_is_const) { | 435 | 30 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 30 | vec_res.resize(col_left->get_data().size()); | 439 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 30 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 30 | vec_res); | 443 | | | 444 | 30 | block.replace_by_position(result, std::move(col_res)); | 445 | 214 | } else if (!left_is_const && right_is_const) { | 446 | 214 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 214 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 214 | vec_res.resize(col_left->size()); | 450 | 214 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 214 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 214 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 214 | col_right->get_element(0), vec_res); | 454 | | | 455 | 214 | block.replace_by_position(result, std::move(col_res)); | 456 | 214 | } 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 | 244 | return Status::OK(); | 469 | 244 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_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 | 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 | 49 | } else if (!left_is_const && right_is_const) { | 446 | 49 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 49 | vec_res.resize(col_left->size()); | 450 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 49 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 49 | col_right->get_element(0), vec_res); | 454 | | | 455 | 49 | block.replace_by_position(result, std::move(col_res)); | 456 | 49 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 55 | const ColumnPtr& col_right_ptr) const { | 426 | 55 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 55 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 55 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 55 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 55 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 55 | 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 | 55 | } else if (!left_is_const && right_is_const) { | 446 | 55 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 55 | vec_res.resize(col_left->size()); | 450 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 55 | col_right->get_element(0), vec_res); | 454 | | | 455 | 55 | block.replace_by_position(result, std::move(col_res)); | 456 | 55 | } 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 | 55 | return Status::OK(); | 469 | 55 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 33.7k | const ColumnPtr& col_right_ptr) const { | 426 | 33.7k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 33.7k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 33.7k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 33.7k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 33.7k | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 33.7k | 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 | 33.7k | } else if (!left_is_const && right_is_const) { | 446 | 33.1k | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 33.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 33.1k | vec_res.resize(col_left->size()); | 450 | 33.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 33.1k | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 33.1k | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 33.1k | col_right->get_element(0), vec_res); | 454 | | | 455 | 33.1k | block.replace_by_position(result, std::move(col_res)); | 456 | 33.1k | } else if (left_is_const && !right_is_const) { | 457 | 574 | auto col_res = ColumnUInt8::create(); | 458 | | | 459 | 574 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 460 | 574 | vec_res.resize(col_right->size()); | 461 | 574 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 462 | 574 | typename PrimitiveTypeTraits<PT>::CppType, | 463 | 574 | Op<PT>>::constant_vector(col_left->get_element(0), | 464 | 574 | col_right->get_data(), vec_res); | 465 | | | 466 | 574 | block.replace_by_position(result, std::move(col_res)); | 467 | 574 | } | 468 | 33.7k | return Status::OK(); | 469 | 33.7k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 805 | const ColumnPtr& col_right_ptr) const { | 426 | 805 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 805 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 805 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 805 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 805 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 805 | if (!left_is_const && !right_is_const) { | 435 | 75 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 75 | vec_res.resize(col_left->get_data().size()); | 439 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 75 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 75 | vec_res); | 443 | | | 444 | 75 | block.replace_by_position(result, std::move(col_res)); | 445 | 730 | } else if (!left_is_const && right_is_const) { | 446 | 682 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 682 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 682 | vec_res.resize(col_left->size()); | 450 | 682 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 682 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 682 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 682 | col_right->get_element(0), vec_res); | 454 | | | 455 | 682 | block.replace_by_position(result, std::move(col_res)); | 456 | 682 | } 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 | 805 | return Status::OK(); | 469 | 805 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 52 | const ColumnPtr& col_right_ptr) const { | 426 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 52 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 52 | 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 | 52 | } else if (!left_is_const && right_is_const) { | 446 | 52 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 52 | vec_res.resize(col_left->size()); | 450 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 52 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 52 | col_right->get_element(0), vec_res); | 454 | | | 455 | 52 | block.replace_by_position(result, std::move(col_res)); | 456 | 52 | } 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 | 52 | return Status::OK(); | 469 | 52 | } |
_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 | 123 | const ColumnPtr& col_right_ptr) const { | 426 | 123 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 123 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 123 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 123 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 123 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 123 | if (!left_is_const && !right_is_const) { | 435 | 40 | auto col_res = ColumnUInt8::create(); | 436 | | | 437 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 438 | 40 | vec_res.resize(col_left->get_data().size()); | 439 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 440 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 441 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 442 | 40 | vec_res); | 443 | | | 444 | 40 | block.replace_by_position(result, std::move(col_res)); | 445 | 83 | } else if (!left_is_const && right_is_const) { | 446 | 83 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 83 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 83 | vec_res.resize(col_left->size()); | 450 | 83 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 83 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 83 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 83 | col_right->get_element(0), vec_res); | 454 | | | 455 | 83 | block.replace_by_position(result, std::move(col_res)); | 456 | 83 | } 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 | 123 | return Status::OK(); | 469 | 123 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 425 | 134 | const ColumnPtr& col_right_ptr) const { | 426 | 134 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 427 | 134 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 428 | | | 429 | 134 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 430 | 134 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 431 | | | 432 | 134 | DCHECK(!(left_is_const && right_is_const)); | 433 | | | 434 | 134 | 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 | 114 | } else if (!left_is_const && right_is_const) { | 446 | 113 | auto col_res = ColumnUInt8::create(); | 447 | | | 448 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 449 | 113 | vec_res.resize(col_left->size()); | 450 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 451 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 452 | 113 | Op<PT>>::vector_constant(col_left->get_data(), | 453 | 113 | col_right->get_element(0), vec_res); | 454 | | | 455 | 113 | block.replace_by_position(result, std::move(col_res)); | 456 | 113 | } 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 | 134 | return Status::OK(); | 469 | 134 | } |
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 | 13.9k | const ColumnWithTypeAndName& col_right) const { |
473 | 13.9k | auto call = [&](const auto& type) -> bool { |
474 | 13.9k | using DispatchType = std::decay_t<decltype(type)>; |
475 | 13.9k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
476 | 13.9k | block, result, col_left, col_right); |
477 | 13.9k | return true; |
478 | 13.9k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 191 | auto call = [&](const auto& type) -> bool { | 474 | 191 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 191 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 191 | block, result, col_left, col_right); | 477 | 191 | return true; | 478 | 191 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 213 | auto call = [&](const auto& type) -> bool { | 474 | 213 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 213 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 213 | block, result, col_left, col_right); | 477 | 213 | return true; | 478 | 213 | }; |
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 | 914 | auto call = [&](const auto& type) -> bool { | 474 | 914 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 914 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 914 | block, result, col_left, col_right); | 477 | 914 | return true; | 478 | 914 | }; |
_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 | 67 | auto call = [&](const auto& type) -> bool { | 474 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 67 | block, result, col_left, col_right); | 477 | 67 | return true; | 478 | 67 | }; |
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 | 176 | auto call = [&](const auto& type) -> bool { | 474 | 176 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 176 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 176 | block, result, col_left, col_right); | 477 | 176 | return true; | 478 | 176 | }; |
_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 | 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_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 8.47k | auto call = [&](const auto& type) -> bool { | 474 | 8.47k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 8.47k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 8.47k | block, result, col_left, col_right); | 477 | 8.47k | return true; | 478 | 8.47k | }; |
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.03k | auto call = [&](const auto& type) -> bool { | 474 | 1.03k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.03k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.03k | block, result, col_left, col_right); | 477 | 1.03k | return true; | 478 | 1.03k | }; |
_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 | 5 | auto call = [&](const auto& type) -> bool { | 474 | 5 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 5 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 5 | block, result, col_left, col_right); | 477 | 5 | return true; | 478 | 5 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 195 | auto call = [&](const auto& type) -> bool { | 474 | 195 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 195 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 195 | block, result, col_left, col_right); | 477 | 195 | return true; | 478 | 195 | }; |
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 | 63 | auto call = [&](const auto& type) -> bool { | 474 | 63 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 63 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 63 | block, result, col_left, col_right); | 477 | 63 | return true; | 478 | 63 | }; |
_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 | 181 | auto call = [&](const auto& type) -> bool { | 474 | 181 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 181 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 181 | block, result, col_left, col_right); | 477 | 181 | return true; | 478 | 181 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 227 | auto call = [&](const auto& type) -> bool { | 474 | 227 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 227 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 227 | block, result, col_left, col_right); | 477 | 227 | return true; | 478 | 227 | }; |
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 | 373 | auto call = [&](const auto& type) -> bool { | 474 | 373 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 373 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 373 | block, result, col_left, col_right); | 477 | 373 | return true; | 478 | 373 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 473 | 1 | auto call = [&](const auto& type) -> bool { | 474 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1 | block, result, col_left, col_right); | 477 | 1 | return true; | 478 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 473 | 4 | auto call = [&](const auto& type) -> bool { | 474 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 4 | block, result, col_left, col_right); | 477 | 4 | return true; | 478 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 473 | 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 | }; |
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 | 498 | auto call = [&](const auto& type) -> bool { | 474 | 498 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 498 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 498 | block, result, col_left, col_right); | 477 | 498 | return true; | 478 | 498 | }; |
_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 | 13.9k | 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 | 13.9k | 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 | 13.9k | return Status::OK(); |
491 | 13.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.34k | const ColumnWithTypeAndName& col_right) const { | 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 | }; | 479 | | | 480 | 1.34k | 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.34k | 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.34k | return Status::OK(); | 491 | 1.34k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 273 | const ColumnWithTypeAndName& col_right) const { | 473 | 273 | auto call = [&](const auto& type) -> bool { | 474 | 273 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 273 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 273 | block, result, col_left, col_right); | 477 | 273 | return true; | 478 | 273 | }; | 479 | | | 480 | 273 | 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 | 273 | 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 | 273 | return Status::OK(); | 491 | 273 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 9.54k | const ColumnWithTypeAndName& col_right) const { | 473 | 9.54k | auto call = [&](const auto& type) -> bool { | 474 | 9.54k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 9.54k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 9.54k | block, result, col_left, col_right); | 477 | 9.54k | return true; | 478 | 9.54k | }; | 479 | | | 480 | 9.54k | 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 | 9.54k | 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 | 9.54k | return Status::OK(); | 491 | 9.54k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 290 | const ColumnWithTypeAndName& col_right) const { | 473 | 290 | auto call = [&](const auto& type) -> bool { | 474 | 290 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 290 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 290 | block, result, col_left, col_right); | 477 | 290 | return true; | 478 | 290 | }; | 479 | | | 480 | 290 | 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 | 290 | 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 | 290 | return Status::OK(); | 491 | 290 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 782 | const ColumnWithTypeAndName& col_right) const { | 473 | 782 | auto call = [&](const auto& type) -> bool { | 474 | 782 | using DispatchType = std::decay_t<decltype(type)>; | 475 | 782 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 782 | block, result, col_left, col_right); | 477 | 782 | return true; | 478 | 782 | }; | 479 | | | 480 | 782 | 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 | 782 | 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 | 782 | return Status::OK(); | 491 | 782 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 472 | 1.68k | const ColumnWithTypeAndName& col_right) const { | 473 | 1.68k | auto call = [&](const auto& type) -> bool { | 474 | 1.68k | using DispatchType = std::decay_t<decltype(type)>; | 475 | 1.68k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 476 | 1.68k | block, result, col_left, col_right); | 477 | 1.68k | return true; | 478 | 1.68k | }; | 479 | | | 480 | 1.68k | 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.68k | 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.68k | return Status::OK(); | 491 | 1.68k | } |
|
492 | | |
493 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
494 | 21.5k | const IColumn* c1) const { |
495 | 21.5k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
496 | 21.5k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
497 | 21.5k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
498 | 21.5k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
499 | 21.5k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
500 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
501 | 0 | c0->get_name(), c1->get_name(), name); |
502 | 0 | } |
503 | 21.5k | DCHECK(!(c0_const && c1_const)); |
504 | 21.5k | const ColumnString::Chars* c0_const_chars = nullptr; |
505 | 21.5k | const ColumnString::Chars* c1_const_chars = nullptr; |
506 | 21.5k | ColumnString::Offset c0_const_size = 0; |
507 | 21.5k | ColumnString::Offset c1_const_size = 0; |
508 | | |
509 | 21.5k | if (c0_const) { |
510 | 4 | const ColumnString* c0_const_string = |
511 | 4 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
512 | | |
513 | 4 | if (c0_const_string) { |
514 | 4 | c0_const_chars = &c0_const_string->get_chars(); |
515 | 4 | c0_const_size = c0_const_string->get_offsets()[0]; |
516 | 4 | } else { |
517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
518 | 0 | c0->get_name(), name); |
519 | 0 | } |
520 | 4 | } |
521 | | |
522 | 21.5k | if (c1_const) { |
523 | 19.9k | const ColumnString* c1_const_string = |
524 | 19.9k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
525 | | |
526 | 19.9k | if (c1_const_string) { |
527 | 19.9k | c1_const_chars = &c1_const_string->get_chars(); |
528 | 19.9k | c1_const_size = c1_const_string->get_offsets()[0]; |
529 | 19.9k | } else { |
530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
531 | 1 | c1->get_name(), name); |
532 | 1 | } |
533 | 19.9k | } |
534 | | |
535 | 21.4k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
536 | | |
537 | 21.4k | auto c_res = ColumnUInt8::create(); |
538 | 21.4k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
539 | 21.4k | vec_res.resize(c0->size()); |
540 | | |
541 | 21.4k | if (c0_string && c1_string) { |
542 | 1.55k | StringImpl::string_vector_string_vector( |
543 | 1.55k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
544 | 1.55k | c1_string->get_offsets(), vec_res); |
545 | 19.9k | } else if (c0_string && c1_const) { |
546 | 19.9k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
547 | 19.9k | *c1_const_chars, c1_const_size, vec_res); |
548 | 19.9k | } else if (c0_const && c1_string) { |
549 | 4 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
550 | 4 | c1_string->get_chars(), c1_string->get_offsets(), |
551 | 4 | 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 | 21.5k | block.replace_by_position(result, std::move(c_res)); |
557 | 21.5k | return Status::OK(); |
558 | 21.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 18.2k | const IColumn* c1) const { | 495 | 18.2k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 18.2k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 18.2k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 18.2k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 18.2k | 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 | 18.2k | DCHECK(!(c0_const && c1_const)); | 504 | 18.2k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 18.2k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 18.2k | ColumnString::Offset c0_const_size = 0; | 507 | 18.2k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 18.2k | 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 | 18.2k | if (c1_const) { | 523 | 17.3k | const ColumnString* c1_const_string = | 524 | 17.3k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 17.3k | if (c1_const_string) { | 527 | 17.3k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 17.3k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 17.3k | } else { | 530 | 1 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 1 | c1->get_name(), name); | 532 | 1 | } | 533 | 17.3k | } | 534 | | | 535 | 18.2k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 18.2k | auto c_res = ColumnUInt8::create(); | 538 | 18.2k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 18.2k | vec_res.resize(c0->size()); | 540 | | | 541 | 18.2k | if (c0_string && c1_string) { | 542 | 933 | StringImpl::string_vector_string_vector( | 543 | 933 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 933 | c1_string->get_offsets(), vec_res); | 545 | 17.3k | } else if (c0_string && c1_const) { | 546 | 17.3k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 17.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 | 18.2k | block.replace_by_position(result, std::move(c_res)); | 557 | 18.2k | return Status::OK(); | 558 | 18.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 1.27k | const IColumn* c1) const { | 495 | 1.27k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 1.27k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 1.27k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 1.27k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 1.27k | 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 | 1.27k | DCHECK(!(c0_const && c1_const)); | 504 | 1.27k | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 1.27k | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 1.27k | ColumnString::Offset c0_const_size = 0; | 507 | 1.27k | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 1.27k | 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 | 1.27k | if (c1_const) { | 523 | 1.24k | const ColumnString* c1_const_string = | 524 | 1.24k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 1.24k | if (c1_const_string) { | 527 | 1.24k | c1_const_chars = &c1_const_string->get_chars(); | 528 | 1.24k | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 1.24k | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 1.24k | } | 534 | | | 535 | 1.27k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 1.27k | auto c_res = ColumnUInt8::create(); | 538 | 1.27k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 1.27k | vec_res.resize(c0->size()); | 540 | | | 541 | 1.27k | if (c0_string && c1_string) { | 542 | 28 | StringImpl::string_vector_string_vector( | 543 | 28 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 28 | c1_string->get_offsets(), vec_res); | 545 | 1.24k | } else if (c0_string && c1_const) { | 546 | 1.24k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 1.24k | *c1_const_chars, c1_const_size, vec_res); | 548 | 1.24k | } 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 | 1.27k | block.replace_by_position(result, std::move(c_res)); | 557 | 1.27k | return Status::OK(); | 558 | 1.27k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 202 | const IColumn* c1) const { | 495 | 202 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 202 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 202 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 202 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 202 | 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 | 202 | DCHECK(!(c0_const && c1_const)); | 504 | 202 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 202 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 202 | ColumnString::Offset c0_const_size = 0; | 507 | 202 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 202 | 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 | 202 | if (c1_const) { | 523 | 200 | const ColumnString* c1_const_string = | 524 | 200 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 200 | if (c1_const_string) { | 527 | 200 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 200 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 200 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 200 | } | 534 | | | 535 | 202 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 202 | auto c_res = ColumnUInt8::create(); | 538 | 202 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 202 | vec_res.resize(c0->size()); | 540 | | | 541 | 202 | 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 | 200 | } else if (c0_string && c1_const) { | 546 | 200 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 200 | *c1_const_chars, c1_const_size, vec_res); | 548 | 200 | } 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 | 202 | block.replace_by_position(result, std::move(c_res)); | 557 | 202 | return Status::OK(); | 558 | 202 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 511 | const IColumn* c1) const { | 495 | 511 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 511 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 511 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 511 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 511 | 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 | 511 | DCHECK(!(c0_const && c1_const)); | 504 | 511 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 511 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 511 | ColumnString::Offset c0_const_size = 0; | 507 | 511 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 511 | 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 | 511 | if (c1_const) { | 523 | 446 | const ColumnString* c1_const_string = | 524 | 446 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 446 | if (c1_const_string) { | 527 | 446 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 446 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 446 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 446 | } | 534 | | | 535 | 511 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 511 | auto c_res = ColumnUInt8::create(); | 538 | 511 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 511 | vec_res.resize(c0->size()); | 540 | | | 541 | 511 | if (c0_string && c1_string) { | 542 | 65 | StringImpl::string_vector_string_vector( | 543 | 65 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 65 | c1_string->get_offsets(), vec_res); | 545 | 446 | } else if (c0_string && c1_const) { | 546 | 446 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 446 | *c1_const_chars, c1_const_size, vec_res); | 548 | 446 | } 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 | 511 | block.replace_by_position(result, std::move(c_res)); | 557 | 511 | return Status::OK(); | 558 | 511 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 670 | const IColumn* c1) const { | 495 | 670 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 670 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 670 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 670 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 670 | 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 | 670 | DCHECK(!(c0_const && c1_const)); | 504 | 670 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 670 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 670 | ColumnString::Offset c0_const_size = 0; | 507 | 670 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 670 | if (c0_const) { | 510 | 4 | const ColumnString* c0_const_string = | 511 | 4 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 512 | | | 513 | 4 | if (c0_const_string) { | 514 | 4 | c0_const_chars = &c0_const_string->get_chars(); | 515 | 4 | c0_const_size = c0_const_string->get_offsets()[0]; | 516 | 4 | } else { | 517 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 518 | 0 | c0->get_name(), name); | 519 | 0 | } | 520 | 4 | } | 521 | | | 522 | 670 | if (c1_const) { | 523 | 213 | const ColumnString* c1_const_string = | 524 | 213 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 213 | if (c1_const_string) { | 527 | 213 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 213 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 213 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 213 | } | 534 | | | 535 | 670 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 670 | auto c_res = ColumnUInt8::create(); | 538 | 670 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 670 | vec_res.resize(c0->size()); | 540 | | | 541 | 670 | if (c0_string && c1_string) { | 542 | 453 | StringImpl::string_vector_string_vector( | 543 | 453 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 453 | c1_string->get_offsets(), vec_res); | 545 | 453 | } else if (c0_string && c1_const) { | 546 | 213 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 213 | *c1_const_chars, c1_const_size, vec_res); | 548 | 213 | } else if (c0_const && c1_string) { | 549 | 4 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 550 | 4 | c1_string->get_chars(), c1_string->get_offsets(), | 551 | 4 | vec_res); | 552 | 4 | } else { | 553 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 554 | 0 | c0->get_name(), c1->get_name(), name); | 555 | 0 | } | 556 | 670 | block.replace_by_position(result, std::move(c_res)); | 557 | 670 | return Status::OK(); | 558 | 670 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 494 | 593 | const IColumn* c1) const { | 495 | 593 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 496 | 593 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 497 | 593 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 498 | 593 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 499 | 593 | 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 | 593 | DCHECK(!(c0_const && c1_const)); | 504 | 593 | const ColumnString::Chars* c0_const_chars = nullptr; | 505 | 593 | const ColumnString::Chars* c1_const_chars = nullptr; | 506 | 593 | ColumnString::Offset c0_const_size = 0; | 507 | 593 | ColumnString::Offset c1_const_size = 0; | 508 | | | 509 | 593 | 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 | 593 | if (c1_const) { | 523 | 523 | const ColumnString* c1_const_string = | 524 | 523 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 525 | | | 526 | 523 | if (c1_const_string) { | 527 | 523 | c1_const_chars = &c1_const_string->get_chars(); | 528 | 523 | c1_const_size = c1_const_string->get_offsets()[0]; | 529 | 523 | } else { | 530 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 531 | 0 | c1->get_name(), name); | 532 | 0 | } | 533 | 523 | } | 534 | | | 535 | 593 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 536 | | | 537 | 593 | auto c_res = ColumnUInt8::create(); | 538 | 593 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 539 | 593 | vec_res.resize(c0->size()); | 540 | | | 541 | 593 | if (c0_string && c1_string) { | 542 | 70 | StringImpl::string_vector_string_vector( | 543 | 70 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 544 | 70 | c1_string->get_offsets(), vec_res); | 545 | 523 | } else if (c0_string && c1_const) { | 546 | 523 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 547 | 523 | *c1_const_chars, c1_const_size, vec_res); | 548 | 523 | } 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 | 593 | block.replace_by_position(result, std::move(c_res)); | 557 | 593 | return Status::OK(); | 558 | 593 | } |
|
559 | | |
560 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
561 | 150 | const IColumn* c1) const { |
562 | 150 | bool c0_const = is_column_const(*c0); |
563 | 150 | bool c1_const = is_column_const(*c1); |
564 | | |
565 | 150 | DCHECK(!(c0_const && c1_const)); |
566 | | |
567 | 150 | auto c_res = ColumnUInt8::create(); |
568 | 150 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
569 | 150 | vec_res.resize(c0->size()); |
570 | | |
571 | 150 | if (c0_const) { |
572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
573 | 150 | } else if (c1_const) { |
574 | 141 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
575 | 141 | } else { |
576 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
577 | 9 | } |
578 | | |
579 | 150 | block.replace_by_position(result, std::move(c_res)); |
580 | 150 | } _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 | 64 | const IColumn* c1) const { | 562 | 64 | bool c0_const = is_column_const(*c0); | 563 | 64 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 64 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 64 | auto c_res = ColumnUInt8::create(); | 568 | 64 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 64 | vec_res.resize(c0->size()); | 570 | | | 571 | 64 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 64 | } else if (c1_const) { | 574 | 63 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 63 | } else { | 576 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 1 | } | 578 | | | 579 | 64 | block.replace_by_position(result, std::move(c_res)); | 580 | 64 | } |
_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 | 41 | const IColumn* c1) const { | 562 | 41 | bool c0_const = is_column_const(*c0); | 563 | 41 | bool c1_const = is_column_const(*c1); | 564 | | | 565 | 41 | DCHECK(!(c0_const && c1_const)); | 566 | | | 567 | 41 | auto c_res = ColumnUInt8::create(); | 568 | 41 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 569 | 41 | vec_res.resize(c0->size()); | 570 | | | 571 | 41 | if (c0_const) { | 572 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 573 | 41 | } else if (c1_const) { | 574 | 41 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 575 | 41 | } else { | 576 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 577 | 0 | } | 578 | | | 579 | 41 | block.replace_by_position(result, std::move(c_res)); | 580 | 41 | } |
|
581 | | |
582 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
583 | 150 | const ColumnWithTypeAndName& c1) const { |
584 | 150 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
585 | 150 | return Status::OK(); |
586 | 150 | } _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 | 64 | const ColumnWithTypeAndName& c1) const { | 584 | 64 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 64 | return Status::OK(); | 586 | 64 | } |
_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 | 41 | const ColumnWithTypeAndName& c1) const { | 584 | 41 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 585 | 41 | return Status::OK(); | 586 | 41 | } |
|
587 | | |
588 | | public: |
589 | 221 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 62 | 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 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 589 | 1 | String get_name() const override { return name; } |
|
590 | | |
591 | 392k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 354k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 1.92k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 591 | 6.97k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 10.0k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 591 | 3.70k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 591 | 15.6k | size_t get_number_of_arguments() const override { return 2; } |
|
592 | | |
593 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
594 | 19.8k | const VExprSPtrs& arguments) const override { |
595 | 19.8k | auto op = comparison_zonemap_detail::op_from_name(name); |
596 | 19.8k | DORIS_CHECK(op.has_value()); |
597 | 19.8k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
598 | 19.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.34k | const VExprSPtrs& arguments) const override { | 595 | 5.34k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.34k | DORIS_CHECK(op.has_value()); | 597 | 5.34k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.34k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 651 | const VExprSPtrs& arguments) const override { | 595 | 651 | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 651 | DORIS_CHECK(op.has_value()); | 597 | 651 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 651 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 2.65k | const VExprSPtrs& arguments) const override { | 595 | 2.65k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 2.65k | DORIS_CHECK(op.has_value()); | 597 | 2.65k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 2.65k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 4.04k | const VExprSPtrs& arguments) const override { | 595 | 4.04k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 4.04k | DORIS_CHECK(op.has_value()); | 597 | 4.04k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 4.04k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 1.65k | const VExprSPtrs& arguments) const override { | 595 | 1.65k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 1.65k | DORIS_CHECK(op.has_value()); | 597 | 1.65k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 1.65k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 594 | 5.45k | const VExprSPtrs& arguments) const override { | 595 | 5.45k | auto op = comparison_zonemap_detail::op_from_name(name); | 596 | 5.45k | DORIS_CHECK(op.has_value()); | 597 | 5.45k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 598 | 5.45k | } |
|
599 | | |
600 | 68.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
601 | 68.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
602 | 68.9k | comparison_zonemap_detail::can_evaluate(arguments); |
603 | 68.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 27.0k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 27.0k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 27.0k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 27.0k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 2.57k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 2.57k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 2.57k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 2.57k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 10.5k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 10.5k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 10.6k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 10.5k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 10.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 10.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 10.9k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 10.9k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 5.98k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 5.98k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 5.98k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 5.98k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 600 | 11.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 601 | 11.7k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 602 | 11.7k | comparison_zonemap_detail::can_evaluate(arguments); | 603 | 11.7k | } |
|
604 | | |
605 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
606 | 20.4k | const VExprSPtrs& arguments) const override { |
607 | 20.4k | auto op = comparison_zonemap_detail::op_from_name(name); |
608 | 20.4k | DORIS_CHECK(op.has_value()); |
609 | 20.4k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
610 | 20.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 606 | 20.4k | const VExprSPtrs& arguments) const override { | 607 | 20.4k | auto op = comparison_zonemap_detail::op_from_name(name); | 608 | 20.4k | DORIS_CHECK(op.has_value()); | 609 | 20.4k | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 610 | 20.4k | } |
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 | 28.9k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
613 | 28.9k | auto op = comparison_zonemap_detail::op_from_name(name); |
614 | 28.9k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
615 | 28.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 25.6k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 25.6k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 25.6k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 25.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 671 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 671 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 672 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 671 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 1.58k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 1.58k | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 1.58k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 1.58k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 434 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 434 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 435 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 434 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 483 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 483 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 483 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 483 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 612 | 169 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 613 | 169 | auto op = comparison_zonemap_detail::op_from_name(name); | 614 | 169 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 615 | 169 | } |
|
616 | | |
617 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
618 | 9 | const VExprSPtrs& arguments) const override { |
619 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); |
620 | 9 | DORIS_CHECK(op.has_value()); |
621 | 9 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
622 | 9 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 618 | 9 | const VExprSPtrs& arguments) const override { | 619 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 620 | 9 | DORIS_CHECK(op.has_value()); | 621 | 9 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 622 | 9 | } |
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 | 4.22k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
625 | 4.22k | auto op = comparison_zonemap_detail::op_from_name(name); |
626 | 4.22k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
627 | 4.22k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 2.47k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 2.47k | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 2.47k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 2.47k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 347 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 347 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 347 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 347 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 807 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 807 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 807 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 807 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 218 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 218 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 218 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 218 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 258 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 258 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 258 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 258 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 624 | 121 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 625 | 121 | auto op = comparison_zonemap_detail::op_from_name(name); | 626 | 121 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 627 | 121 | } |
|
628 | | |
629 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
630 | 392k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
631 | 392k | return std::make_shared<DataTypeUInt8>(); |
632 | 392k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 354k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 354k | return std::make_shared<DataTypeUInt8>(); | 632 | 354k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 1.92k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 1.92k | return std::make_shared<DataTypeUInt8>(); | 632 | 1.92k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 6.97k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 6.97k | return std::make_shared<DataTypeUInt8>(); | 632 | 6.97k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 10.0k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 10.0k | return std::make_shared<DataTypeUInt8>(); | 632 | 10.0k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 3.71k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 3.71k | return std::make_shared<DataTypeUInt8>(); | 632 | 3.71k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 630 | 15.6k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 631 | 15.6k | return std::make_shared<DataTypeUInt8>(); | 632 | 15.6k | } |
|
633 | | |
634 | | Status evaluate_inverted_index( |
635 | | const ColumnsWithTypeAndName& arguments, |
636 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
637 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
638 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
639 | 1.34k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
640 | 1.34k | DCHECK(arguments.size() == 1); |
641 | 1.34k | DCHECK(data_type_with_names.size() == 1); |
642 | 1.34k | DCHECK(iterators.size() == 1); |
643 | 1.34k | auto* iter = iterators[0]; |
644 | 1.34k | auto data_type_with_name = data_type_with_names[0]; |
645 | 1.34k | if (iter == nullptr) { |
646 | 0 | return Status::OK(); |
647 | 0 | } |
648 | 1.34k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
649 | 310 | return Status::OK(); |
650 | 310 | } |
651 | 1.03k | segment_v2::InvertedIndexQueryType query_type; |
652 | 1.03k | std::string_view name_view(name); |
653 | 1.03k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
654 | 715 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
655 | 715 | } else if (name_view == NameLess::name) { |
656 | 76 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
657 | 246 | } else if (name_view == NameLessOrEquals::name) { |
658 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
659 | 165 | } else if (name_view == NameGreater::name) { |
660 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
661 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
662 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
663 | 18.4E | } else { |
664 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
665 | 18.4E | } |
666 | | |
667 | 1.03k | if (segment_v2::is_range_query(query_type) && |
668 | 1.03k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
669 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
670 | 133 | return Status::OK(); |
671 | 133 | } |
672 | 905 | Field param_value; |
673 | 905 | arguments[0].column->get(0, param_value); |
674 | 905 | if (param_value.is_null()) { |
675 | 2 | return Status::OK(); |
676 | 2 | } |
677 | 903 | segment_v2::InvertedIndexParam param; |
678 | 903 | param.column_name = data_type_with_name.first; |
679 | 903 | param.column_type = data_type_with_name.second; |
680 | 903 | param.query_value = param_value; |
681 | 903 | param.query_type = query_type; |
682 | 903 | param.num_rows = num_rows; |
683 | 903 | param.roaring = std::make_shared<roaring::Roaring>(); |
684 | 903 | param.analyzer_ctx = analyzer_ctx; |
685 | 903 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
686 | 751 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
687 | 751 | if (iter->has_null()) { |
688 | 751 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
689 | 751 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
690 | 751 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
691 | 751 | } |
692 | 751 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
693 | 751 | bitmap_result = result; |
694 | 751 | bitmap_result.mask_out_null(); |
695 | | |
696 | 751 | 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 | 751 | return Status::OK(); |
703 | 751 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 639 | 691 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 691 | DCHECK(arguments.size() == 1); | 641 | 691 | DCHECK(data_type_with_names.size() == 1); | 642 | 691 | DCHECK(iterators.size() == 1); | 643 | 691 | auto* iter = iterators[0]; | 644 | 691 | auto data_type_with_name = data_type_with_names[0]; | 645 | 691 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 691 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 42 | return Status::OK(); | 650 | 42 | } | 651 | 649 | segment_v2::InvertedIndexQueryType query_type; | 652 | 649 | std::string_view name_view(name); | 653 | 649 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 654 | 649 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 655 | 649 | } 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 | 649 | if (segment_v2::is_range_query(query_type) && | 668 | 649 | 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 | 649 | Field param_value; | 673 | 649 | arguments[0].column->get(0, param_value); | 674 | 649 | if (param_value.is_null()) { | 675 | 2 | return Status::OK(); | 676 | 2 | } | 677 | 647 | segment_v2::InvertedIndexParam param; | 678 | 647 | param.column_name = data_type_with_name.first; | 679 | 647 | param.column_type = data_type_with_name.second; | 680 | 647 | param.query_value = param_value; | 681 | 647 | param.query_type = query_type; | 682 | 647 | param.num_rows = num_rows; | 683 | 647 | param.roaring = std::make_shared<roaring::Roaring>(); | 684 | 647 | param.analyzer_ctx = analyzer_ctx; | 685 | 647 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 686 | 602 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 687 | 602 | if (iter->has_null()) { | 688 | 602 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 689 | 602 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 690 | 602 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 691 | 602 | } | 692 | 602 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 693 | 602 | bitmap_result = result; | 694 | 602 | bitmap_result.mask_out_null(); | 695 | | | 696 | 602 | 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 | 602 | return Status::OK(); | 703 | 602 | } |
_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 | 111 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 640 | 111 | DCHECK(arguments.size() == 1); | 641 | 111 | DCHECK(data_type_with_names.size() == 1); | 642 | 111 | DCHECK(iterators.size() == 1); | 643 | 111 | auto* iter = iterators[0]; | 644 | 111 | auto data_type_with_name = data_type_with_names[0]; | 645 | 111 | if (iter == nullptr) { | 646 | 0 | return Status::OK(); | 647 | 0 | } | 648 | 111 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 649 | 39 | return Status::OK(); | 650 | 39 | } | 651 | 72 | segment_v2::InvertedIndexQueryType query_type; | 652 | 72 | 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 | 72 | } else if (name_view == NameLess::name) { | 656 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 657 | 72 | } 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 | 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 | 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 | 195k | uint32_t result, size_t input_rows_count) const override { |
707 | 195k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
708 | 195k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
709 | | |
710 | 195k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
711 | 195k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
712 | 195k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
713 | 195k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
714 | | |
715 | 195k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
716 | 195k | 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 | 195k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
722 | 195k | 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 | 355k | auto can_compare = [](PrimitiveType t) -> bool { |
745 | 355k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
746 | 355k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 87.7k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 87.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 87.7k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 10.3k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 10.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 10.3k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 74.5k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 74.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 74.5k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 59.9k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 59.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 59.9k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 20.2k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 20.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 20.2k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 744 | 102k | auto can_compare = [](PrimitiveType t) -> bool { | 745 | 102k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 102k | }; |
|
747 | | |
748 | 195k | if (can_compare(left_type->get_primitive_type()) && |
749 | 195k | 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 | 159k | 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 | 159k | } |
757 | | |
758 | 195k | auto compare_type = left_type->get_primitive_type(); |
759 | 195k | switch (compare_type) { |
760 | 1.17k | case TYPE_BOOLEAN: |
761 | 1.17k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
762 | 20.7k | case TYPE_DATEV2: |
763 | 20.7k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
764 | 1.74k | case TYPE_DATETIMEV2: |
765 | 1.74k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
766 | 17 | case TYPE_TIMESTAMPTZ: |
767 | 17 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
768 | 9.64k | case TYPE_TINYINT: |
769 | 9.64k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
770 | 3.17k | case TYPE_SMALLINT: |
771 | 3.17k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
772 | 90.4k | case TYPE_INT: |
773 | 90.4k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
774 | 28.1k | case TYPE_BIGINT: |
775 | 28.1k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
776 | 724 | case TYPE_LARGEINT: |
777 | 724 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
778 | 63 | case TYPE_IPV4: |
779 | 63 | 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 | 773 | case TYPE_FLOAT: |
783 | 773 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
784 | 3.10k | case TYPE_DOUBLE: |
785 | 3.10k | 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 | 408 | case TYPE_DECIMAL32: |
790 | 10.7k | case TYPE_DECIMAL64: |
791 | 13.8k | case TYPE_DECIMAL128I: |
792 | 13.9k | case TYPE_DECIMAL256: |
793 | 13.9k | return execute_decimal(block, result, col_with_type_and_name_left, |
794 | 13.9k | col_with_type_and_name_right); |
795 | 1.23k | case TYPE_CHAR: |
796 | 8.68k | case TYPE_VARCHAR: |
797 | 21.5k | case TYPE_STRING: |
798 | 21.5k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
799 | 150 | default: |
800 | 150 | return execute_generic(block, result, col_with_type_and_name_left, |
801 | 150 | col_with_type_and_name_right); |
802 | 195k | } |
803 | 0 | return Status::OK(); |
804 | 195k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 53.6k | uint32_t result, size_t input_rows_count) const override { | 707 | 53.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 53.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 53.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 53.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 53.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 53.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 53.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 53.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 | 53.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 53.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 | 53.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 53.6k | }; | 747 | | | 748 | 53.6k | if (can_compare(left_type->get_primitive_type()) && | 749 | 53.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 | 34.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 | 34.0k | } | 757 | | | 758 | 53.6k | auto compare_type = left_type->get_primitive_type(); | 759 | 53.6k | switch (compare_type) { | 760 | 859 | case TYPE_BOOLEAN: | 761 | 859 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.25k | case TYPE_DATEV2: | 763 | 1.25k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 512 | case TYPE_DATETIMEV2: | 765 | 512 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 4 | case TYPE_TIMESTAMPTZ: | 767 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 5.91k | case TYPE_TINYINT: | 769 | 5.91k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 990 | case TYPE_SMALLINT: | 771 | 990 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 7.57k | case TYPE_INT: | 773 | 7.57k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 15.7k | case TYPE_BIGINT: | 775 | 15.7k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 110 | case TYPE_LARGEINT: | 777 | 110 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 778 | 20 | case TYPE_IPV4: | 779 | 20 | 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 | 90 | case TYPE_FLOAT: | 783 | 90 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 929 | case TYPE_DOUBLE: | 785 | 929 | 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 | 191 | case TYPE_DECIMAL32: | 790 | 404 | case TYPE_DECIMAL64: | 791 | 1.31k | case TYPE_DECIMAL128I: | 792 | 1.34k | case TYPE_DECIMAL256: | 793 | 1.34k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.34k | col_with_type_and_name_right); | 795 | 918 | case TYPE_CHAR: | 796 | 7.49k | case TYPE_VARCHAR: | 797 | 18.2k | case TYPE_STRING: | 798 | 18.2k | 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 | 53.6k | } | 803 | 0 | return Status::OK(); | 804 | 53.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 5.93k | uint32_t result, size_t input_rows_count) const override { | 707 | 5.93k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 5.93k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 5.93k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 5.93k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 5.93k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 5.93k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 5.93k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 5.93k | 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 | 5.93k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 5.93k | 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 | 5.93k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 5.93k | }; | 747 | | | 748 | 5.93k | if (can_compare(left_type->get_primitive_type()) && | 749 | 5.93k | 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 | 4.37k | 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 | 4.37k | } | 757 | | | 758 | 5.93k | auto compare_type = left_type->get_primitive_type(); | 759 | 5.93k | 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 | 76 | case TYPE_DATEV2: | 763 | 76 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 1 | case TYPE_DATETIMEV2: | 765 | 1 | 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 | 92 | case TYPE_TINYINT: | 769 | 92 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 13 | case TYPE_SMALLINT: | 771 | 13 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 1.96k | case TYPE_INT: | 773 | 1.96k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 2.11k | case TYPE_BIGINT: | 775 | 2.11k | 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 | 67 | case TYPE_DECIMAL64: | 791 | 243 | case TYPE_DECIMAL128I: | 792 | 273 | case TYPE_DECIMAL256: | 793 | 273 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 273 | col_with_type_and_name_right); | 795 | 5 | case TYPE_CHAR: | 796 | 169 | case TYPE_VARCHAR: | 797 | 1.27k | case TYPE_STRING: | 798 | 1.27k | 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 | 5.93k | } | 803 | 0 | return Status::OK(); | 804 | 5.93k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 42.1k | uint32_t result, size_t input_rows_count) const override { | 707 | 42.1k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 42.1k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 42.1k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 42.1k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 42.1k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 42.1k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 42.1k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 42.1k | 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 | 42.1k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 42.1k | 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 | 42.1k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 42.1k | }; | 747 | | | 748 | 42.1k | if (can_compare(left_type->get_primitive_type()) && | 749 | 42.1k | 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 | 32.3k | 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 | 32.3k | } | 757 | | | 758 | 42.1k | auto compare_type = left_type->get_primitive_type(); | 759 | 42.1k | 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.24k | case TYPE_DATEV2: | 763 | 1.24k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 48 | case TYPE_DATETIMEV2: | 765 | 48 | 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 | 1.43k | case TYPE_TINYINT: | 769 | 1.43k | 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 | 18.1k | case TYPE_INT: | 773 | 18.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 7.78k | case TYPE_BIGINT: | 775 | 7.78k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 230 | case TYPE_LARGEINT: | 777 | 230 | 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 | 228 | case TYPE_FLOAT: | 783 | 228 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 1.46k | case TYPE_DOUBLE: | 785 | 1.46k | 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 | 27 | case TYPE_DECIMAL32: | 790 | 8.50k | case TYPE_DECIMAL64: | 791 | 9.54k | case TYPE_DECIMAL128I: | 792 | 9.54k | case TYPE_DECIMAL256: | 793 | 9.54k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 9.54k | col_with_type_and_name_right); | 795 | 14 | case TYPE_CHAR: | 796 | 76 | case TYPE_VARCHAR: | 797 | 202 | case TYPE_STRING: | 798 | 202 | 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 | 42.1k | } | 803 | 0 | return Status::OK(); | 804 | 42.1k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 30.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 30.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 30.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 30.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 30.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 30.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 30.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 30.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 30.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 30.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 30.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 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 | 30.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 30.3k | }; | 747 | | | 748 | 30.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 30.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 29.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 | 29.5k | } | 757 | | | 758 | 30.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 30.3k | switch (compare_type) { | 760 | 108 | case TYPE_BOOLEAN: | 761 | 108 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 1.37k | case TYPE_DATEV2: | 763 | 1.37k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 466 | case TYPE_DATETIMEV2: | 765 | 466 | 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 | 44 | case TYPE_TINYINT: | 769 | 44 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 53 | case TYPE_SMALLINT: | 771 | 53 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 26.7k | case TYPE_INT: | 773 | 26.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 363 | case TYPE_BIGINT: | 775 | 363 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 40 | case TYPE_LARGEINT: | 777 | 40 | 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 | 127 | case TYPE_FLOAT: | 783 | 127 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 162 | case TYPE_DOUBLE: | 785 | 162 | 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 | 5 | case TYPE_DECIMAL32: | 790 | 200 | case TYPE_DECIMAL64: | 791 | 263 | case TYPE_DECIMAL128I: | 792 | 290 | case TYPE_DECIMAL256: | 793 | 290 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 290 | col_with_type_and_name_right); | 795 | 26 | case TYPE_CHAR: | 796 | 247 | case TYPE_VARCHAR: | 797 | 511 | case TYPE_STRING: | 798 | 511 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 64 | default: | 800 | 64 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 64 | col_with_type_and_name_right); | 802 | 30.3k | } | 803 | 0 | return Status::OK(); | 804 | 30.3k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 10.8k | uint32_t result, size_t input_rows_count) const override { | 707 | 10.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 10.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 10.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 10.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 10.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 10.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 10.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 10.8k | 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 | 10.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 10.8k | 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 | 10.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 10.8k | }; | 747 | | | 748 | 10.8k | if (can_compare(left_type->get_primitive_type()) && | 749 | 10.8k | 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 | 9.41k | 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 | 9.41k | } | 757 | | | 758 | 10.8k | auto compare_type = left_type->get_primitive_type(); | 759 | 10.8k | switch (compare_type) { | 760 | 99 | case TYPE_BOOLEAN: | 761 | 99 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 2.10k | case TYPE_DATEV2: | 763 | 2.10k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 469 | case TYPE_DATETIMEV2: | 765 | 469 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 766 | 4 | case TYPE_TIMESTAMPTZ: | 767 | 4 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 768 | 2.12k | case TYPE_TINYINT: | 769 | 2.12k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 270 | case TYPE_SMALLINT: | 771 | 270 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 2.24k | case TYPE_INT: | 773 | 2.24k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 1.26k | case TYPE_BIGINT: | 775 | 1.26k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 292 | case TYPE_LARGEINT: | 777 | 292 | 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 | 157 | case TYPE_FLOAT: | 783 | 157 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 359 | case TYPE_DOUBLE: | 785 | 359 | 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 | 181 | case TYPE_DECIMAL32: | 790 | 408 | case TYPE_DECIMAL64: | 791 | 780 | case TYPE_DECIMAL128I: | 792 | 781 | case TYPE_DECIMAL256: | 793 | 781 | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 781 | col_with_type_and_name_right); | 795 | 193 | case TYPE_CHAR: | 796 | 396 | case TYPE_VARCHAR: | 797 | 670 | case TYPE_STRING: | 798 | 670 | 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 | 10.8k | } | 803 | 0 | return Status::OK(); | 804 | 10.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 706 | 52.3k | uint32_t result, size_t input_rows_count) const override { | 707 | 52.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 708 | 52.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 709 | | | 710 | 52.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 711 | 52.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 712 | 52.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 713 | 52.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 714 | | | 715 | 52.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 716 | 52.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 717 | | | 718 | | /// The case when arguments are the same (tautological comparison). Return constant. | 719 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 720 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 721 | 52.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 722 | 52.3k | col_left_untyped == col_right_untyped) { | 723 | | /// Always true: =, <=, >= | 724 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 725 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 726 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 727 | 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 | 52.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 746 | 52.3k | }; | 747 | | | 748 | 52.3k | if (can_compare(left_type->get_primitive_type()) && | 749 | 52.3k | can_compare(right_type->get_primitive_type())) { | 750 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 751 | 50.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 | 50.0k | } | 757 | | | 758 | 52.3k | auto compare_type = left_type->get_primitive_type(); | 759 | 52.3k | switch (compare_type) { | 760 | 112 | case TYPE_BOOLEAN: | 761 | 112 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 762 | 14.6k | case TYPE_DATEV2: | 763 | 14.6k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 764 | 244 | case TYPE_DATETIMEV2: | 765 | 244 | 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 | 50 | case TYPE_TINYINT: | 769 | 50 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 770 | 55 | case TYPE_SMALLINT: | 771 | 55 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 772 | 33.7k | case TYPE_INT: | 773 | 33.7k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 774 | 805 | case TYPE_BIGINT: | 775 | 805 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 776 | 52 | case TYPE_LARGEINT: | 777 | 52 | 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 | 123 | case TYPE_FLOAT: | 783 | 123 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 784 | 134 | case TYPE_DOUBLE: | 785 | 134 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 786 | 0 | case TYPE_TIMEV2: | 787 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 788 | 0 | case TYPE_DECIMALV2: | 789 | 4 | case TYPE_DECIMAL32: | 790 | 1.16k | case TYPE_DECIMAL64: | 791 | 1.66k | case TYPE_DECIMAL128I: | 792 | 1.68k | case TYPE_DECIMAL256: | 793 | 1.68k | return execute_decimal(block, result, col_with_type_and_name_left, | 794 | 1.68k | col_with_type_and_name_right); | 795 | 75 | case TYPE_CHAR: | 796 | 301 | case TYPE_VARCHAR: | 797 | 593 | case TYPE_STRING: | 798 | 593 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 799 | 41 | default: | 800 | 41 | return execute_generic(block, result, col_with_type_and_name_left, | 801 | 41 | col_with_type_and_name_right); | 802 | 52.3k | } | 803 | 0 | return Status::OK(); | 804 | 52.3k | } |
|
805 | | }; |
806 | | |
807 | | } // namespace doris |