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 | 11.0k | PaddedPODArray<UInt8>& c) { |
72 | 11.0k | size_t size = a.size(); |
73 | 11.0k | const A* __restrict a_pos = a.data(); |
74 | 11.0k | const B* __restrict b_pos = b.data(); |
75 | 11.0k | UInt8* __restrict c_pos = c.data(); |
76 | 11.0k | const A* __restrict a_end = a_pos + size; |
77 | | |
78 | 6.66M | while (a_pos < a_end) { |
79 | 6.65M | *c_pos = Op::apply(*a_pos, *b_pos); |
80 | 6.65M | ++a_pos; |
81 | 6.65M | ++b_pos; |
82 | 6.65M | ++c_pos; |
83 | 6.65M | } |
84 | 11.0k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 67 | PaddedPODArray<UInt8>& c) { | 72 | 67 | size_t size = a.size(); | 73 | 67 | const A* __restrict a_pos = a.data(); | 74 | 67 | const B* __restrict b_pos = b.data(); | 75 | 67 | UInt8* __restrict c_pos = c.data(); | 76 | 67 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 134 | while (a_pos < a_end) { | 79 | 67 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 67 | ++a_pos; | 81 | 67 | ++b_pos; | 82 | 67 | ++c_pos; | 83 | 67 | } | 84 | 67 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 728 | PaddedPODArray<UInt8>& c) { | 72 | 728 | size_t size = a.size(); | 73 | 728 | const A* __restrict a_pos = a.data(); | 74 | 728 | const B* __restrict b_pos = b.data(); | 75 | 728 | UInt8* __restrict c_pos = c.data(); | 76 | 728 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.31k | while (a_pos < a_end) { | 79 | 1.58k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.58k | ++a_pos; | 81 | 1.58k | ++b_pos; | 82 | 1.58k | ++c_pos; | 83 | 1.58k | } | 84 | 728 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 412 | PaddedPODArray<UInt8>& c) { | 72 | 412 | size_t size = a.size(); | 73 | 412 | const A* __restrict a_pos = a.data(); | 74 | 412 | const B* __restrict b_pos = b.data(); | 75 | 412 | UInt8* __restrict c_pos = c.data(); | 76 | 412 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 842 | while (a_pos < a_end) { | 79 | 430 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 430 | ++a_pos; | 81 | 430 | ++b_pos; | 82 | 430 | ++c_pos; | 83 | 430 | } | 84 | 412 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 12 | 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 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 167 | PaddedPODArray<UInt8>& c) { | 72 | 167 | size_t size = a.size(); | 73 | 167 | const A* __restrict a_pos = a.data(); | 74 | 167 | const B* __restrict b_pos = b.data(); | 75 | 167 | UInt8* __restrict c_pos = c.data(); | 76 | 167 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 476 | while (a_pos < a_end) { | 79 | 309 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 309 | ++a_pos; | 81 | 309 | ++b_pos; | 82 | 309 | ++c_pos; | 83 | 309 | } | 84 | 167 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 88 | PaddedPODArray<UInt8>& c) { | 72 | 88 | size_t size = a.size(); | 73 | 88 | const A* __restrict a_pos = a.data(); | 74 | 88 | const B* __restrict b_pos = b.data(); | 75 | 88 | UInt8* __restrict c_pos = c.data(); | 76 | 88 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 176 | while (a_pos < a_end) { | 79 | 88 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 88 | ++a_pos; | 81 | 88 | ++b_pos; | 82 | 88 | ++c_pos; | 83 | 88 | } | 84 | 88 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 996 | PaddedPODArray<UInt8>& c) { | 72 | 996 | size_t size = a.size(); | 73 | 996 | const A* __restrict a_pos = a.data(); | 74 | 996 | const B* __restrict b_pos = b.data(); | 75 | 996 | UInt8* __restrict c_pos = c.data(); | 76 | 996 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.18k | while (a_pos < a_end) { | 79 | 2.19k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.19k | ++a_pos; | 81 | 2.19k | ++b_pos; | 82 | 2.19k | ++c_pos; | 83 | 2.19k | } | 84 | 996 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 294 | PaddedPODArray<UInt8>& c) { | 72 | 294 | size_t size = a.size(); | 73 | 294 | const A* __restrict a_pos = a.data(); | 74 | 294 | const B* __restrict b_pos = b.data(); | 75 | 294 | UInt8* __restrict c_pos = c.data(); | 76 | 294 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.76k | while (a_pos < a_end) { | 79 | 1.47k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1.47k | ++a_pos; | 81 | 1.47k | ++b_pos; | 82 | 1.47k | ++c_pos; | 83 | 1.47k | } | 84 | 294 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 96 | PaddedPODArray<UInt8>& c) { | 72 | 96 | size_t size = a.size(); | 73 | 96 | const A* __restrict a_pos = a.data(); | 74 | 96 | const B* __restrict b_pos = b.data(); | 75 | 96 | UInt8* __restrict c_pos = c.data(); | 76 | 96 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 192 | while (a_pos < a_end) { | 79 | 96 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 96 | ++a_pos; | 81 | 96 | ++b_pos; | 82 | 96 | ++c_pos; | 83 | 96 | } | 84 | 96 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 16 | PaddedPODArray<UInt8>& c) { | 72 | 16 | size_t size = a.size(); | 73 | 16 | const A* __restrict a_pos = a.data(); | 74 | 16 | const B* __restrict b_pos = b.data(); | 75 | 16 | UInt8* __restrict c_pos = c.data(); | 76 | 16 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 32 | while (a_pos < a_end) { | 79 | 16 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 16 | ++a_pos; | 81 | 16 | ++b_pos; | 82 | 16 | ++c_pos; | 83 | 16 | } | 84 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 24 | PaddedPODArray<UInt8>& c) { | 72 | 24 | size_t size = a.size(); | 73 | 24 | const A* __restrict a_pos = a.data(); | 74 | 24 | const B* __restrict b_pos = b.data(); | 75 | 24 | UInt8* __restrict c_pos = c.data(); | 76 | 24 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 48 | while (a_pos < a_end) { | 79 | 24 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 24 | ++a_pos; | 81 | 24 | ++b_pos; | 82 | 24 | ++c_pos; | 83 | 24 | } | 84 | 24 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 107 | PaddedPODArray<UInt8>& c) { | 72 | 107 | size_t size = a.size(); | 73 | 107 | const A* __restrict a_pos = a.data(); | 74 | 107 | const B* __restrict b_pos = b.data(); | 75 | 107 | UInt8* __restrict c_pos = c.data(); | 76 | 107 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 233 | 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 | 107 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 114 | PaddedPODArray<UInt8>& c) { | 72 | 114 | size_t size = a.size(); | 73 | 114 | const A* __restrict a_pos = a.data(); | 74 | 114 | const B* __restrict b_pos = b.data(); | 75 | 114 | UInt8* __restrict c_pos = c.data(); | 76 | 114 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 249 | while (a_pos < a_end) { | 79 | 135 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 135 | ++a_pos; | 81 | 135 | ++b_pos; | 82 | 135 | ++c_pos; | 83 | 135 | } | 84 | 114 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 4 | PaddedPODArray<UInt8>& c) { | 72 | 4 | size_t size = a.size(); | 73 | 4 | const A* __restrict a_pos = a.data(); | 74 | 4 | const B* __restrict b_pos = b.data(); | 75 | 4 | UInt8* __restrict c_pos = c.data(); | 76 | 4 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 8 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 47 | PaddedPODArray<UInt8>& c) { | 72 | 47 | size_t size = a.size(); | 73 | 47 | const A* __restrict a_pos = a.data(); | 74 | 47 | const B* __restrict b_pos = b.data(); | 75 | 47 | UInt8* __restrict c_pos = c.data(); | 76 | 47 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 124 | while (a_pos < a_end) { | 79 | 77 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 77 | ++a_pos; | 81 | 77 | ++b_pos; | 82 | 77 | ++c_pos; | 83 | 77 | } | 84 | 47 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 56 | PaddedPODArray<UInt8>& c) { | 72 | 56 | size_t size = a.size(); | 73 | 56 | const A* __restrict a_pos = a.data(); | 74 | 56 | const B* __restrict b_pos = b.data(); | 75 | 56 | UInt8* __restrict c_pos = c.data(); | 76 | 56 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 252 | while (a_pos < a_end) { | 79 | 196 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 196 | ++a_pos; | 81 | 196 | ++b_pos; | 82 | 196 | ++c_pos; | 83 | 196 | } | 84 | 56 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1.38k | PaddedPODArray<UInt8>& c) { | 72 | 1.38k | size_t size = a.size(); | 73 | 1.38k | const A* __restrict a_pos = a.data(); | 74 | 1.38k | const B* __restrict b_pos = b.data(); | 75 | 1.38k | UInt8* __restrict c_pos = c.data(); | 76 | 1.38k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 363k | while (a_pos < a_end) { | 79 | 361k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 361k | ++a_pos; | 81 | 361k | ++b_pos; | 82 | 361k | ++c_pos; | 83 | 361k | } | 84 | 1.38k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 344 | PaddedPODArray<UInt8>& c) { | 72 | 344 | size_t size = a.size(); | 73 | 344 | const A* __restrict a_pos = a.data(); | 74 | 344 | const B* __restrict b_pos = b.data(); | 75 | 344 | UInt8* __restrict c_pos = c.data(); | 76 | 344 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.57k | while (a_pos < a_end) { | 79 | 6.23k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.23k | ++a_pos; | 81 | 6.23k | ++b_pos; | 82 | 6.23k | ++c_pos; | 83 | 6.23k | } | 84 | 344 | } |
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.20k | PaddedPODArray<UInt8>& c) { | 72 | 1.20k | size_t size = a.size(); | 73 | 1.20k | const A* __restrict a_pos = a.data(); | 74 | 1.20k | const B* __restrict b_pos = b.data(); | 75 | 1.20k | UInt8* __restrict c_pos = c.data(); | 76 | 1.20k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 3.88M | while (a_pos < a_end) { | 79 | 3.88M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 3.88M | ++a_pos; | 81 | 3.88M | ++b_pos; | 82 | 3.88M | ++c_pos; | 83 | 3.88M | } | 84 | 1.20k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 8 | PaddedPODArray<UInt8>& c) { | 72 | 8 | size_t size = a.size(); | 73 | 8 | const A* __restrict a_pos = a.data(); | 74 | 8 | const B* __restrict b_pos = b.data(); | 75 | 8 | UInt8* __restrict c_pos = c.data(); | 76 | 8 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 16 | while (a_pos < a_end) { | 79 | 8 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 8 | ++a_pos; | 81 | 8 | ++b_pos; | 82 | 8 | ++c_pos; | 83 | 8 | } | 84 | 8 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 10 | 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 | 1 | } |
_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 | 80 | PaddedPODArray<UInt8>& c) { | 72 | 80 | size_t size = a.size(); | 73 | 80 | const A* __restrict a_pos = a.data(); | 74 | 80 | const B* __restrict b_pos = b.data(); | 75 | 80 | UInt8* __restrict c_pos = c.data(); | 76 | 80 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 338 | while (a_pos < a_end) { | 79 | 258 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 258 | ++a_pos; | 81 | 258 | ++b_pos; | 82 | 258 | ++c_pos; | 83 | 258 | } | 84 | 80 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 63 | PaddedPODArray<UInt8>& c) { | 72 | 63 | size_t size = a.size(); | 73 | 63 | const A* __restrict a_pos = a.data(); | 74 | 63 | const B* __restrict b_pos = b.data(); | 75 | 63 | UInt8* __restrict c_pos = c.data(); | 76 | 63 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 569 | while (a_pos < a_end) { | 79 | 506 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 506 | ++a_pos; | 81 | 506 | ++b_pos; | 82 | 506 | ++c_pos; | 83 | 506 | } | 84 | 63 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 2 | PaddedPODArray<UInt8>& c) { | 72 | 2 | size_t size = a.size(); | 73 | 2 | const A* __restrict a_pos = a.data(); | 74 | 2 | const B* __restrict b_pos = b.data(); | 75 | 2 | UInt8* __restrict c_pos = c.data(); | 76 | 2 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6 | while (a_pos < a_end) { | 79 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 4 | ++a_pos; | 81 | 4 | ++b_pos; | 82 | 4 | ++c_pos; | 83 | 4 | } | 84 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 1 | PaddedPODArray<UInt8>& c) { | 72 | 1 | size_t size = a.size(); | 73 | 1 | const A* __restrict a_pos = a.data(); | 74 | 1 | const B* __restrict b_pos = b.data(); | 75 | 1 | UInt8* __restrict c_pos = c.data(); | 76 | 1 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2 | while (a_pos < a_end) { | 79 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 1 | ++a_pos; | 81 | 1 | ++b_pos; | 82 | 1 | ++c_pos; | 83 | 1 | } | 84 | 1 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 20 | PaddedPODArray<UInt8>& c) { | 72 | 20 | size_t size = a.size(); | 73 | 20 | const A* __restrict a_pos = a.data(); | 74 | 20 | const B* __restrict b_pos = b.data(); | 75 | 20 | UInt8* __restrict c_pos = c.data(); | 76 | 20 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 59 | while (a_pos < a_end) { | 79 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 39 | ++a_pos; | 81 | 39 | ++b_pos; | 82 | 39 | ++c_pos; | 83 | 39 | } | 84 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 27 | PaddedPODArray<UInt8>& c) { | 72 | 27 | size_t size = a.size(); | 73 | 27 | const A* __restrict a_pos = a.data(); | 74 | 27 | const B* __restrict b_pos = b.data(); | 75 | 27 | UInt8* __restrict c_pos = c.data(); | 76 | 27 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 97 | while (a_pos < a_end) { | 79 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 70 | ++a_pos; | 81 | 70 | ++b_pos; | 82 | 70 | ++c_pos; | 83 | 70 | } | 84 | 27 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 61 | PaddedPODArray<UInt8>& c) { | 72 | 61 | size_t size = a.size(); | 73 | 61 | const A* __restrict a_pos = a.data(); | 74 | 61 | const B* __restrict b_pos = b.data(); | 75 | 61 | UInt8* __restrict c_pos = c.data(); | 76 | 61 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 122 | while (a_pos < a_end) { | 79 | 61 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 61 | ++a_pos; | 81 | 61 | ++b_pos; | 82 | 61 | ++c_pos; | 83 | 61 | } | 84 | 61 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 96 | PaddedPODArray<UInt8>& c) { | 72 | 96 | size_t size = a.size(); | 73 | 96 | const A* __restrict a_pos = a.data(); | 74 | 96 | const B* __restrict b_pos = b.data(); | 75 | 96 | UInt8* __restrict c_pos = c.data(); | 76 | 96 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 250 | while (a_pos < a_end) { | 79 | 154 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 154 | ++a_pos; | 81 | 154 | ++b_pos; | 82 | 154 | ++c_pos; | 83 | 154 | } | 84 | 96 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 10 | 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 | 1 | } |
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 | 81 | PaddedPODArray<UInt8>& c) { | 72 | 81 | size_t size = a.size(); | 73 | 81 | const A* __restrict a_pos = a.data(); | 74 | 81 | const B* __restrict b_pos = b.data(); | 75 | 81 | UInt8* __restrict c_pos = c.data(); | 76 | 81 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 173 | while (a_pos < a_end) { | 79 | 92 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 92 | ++a_pos; | 81 | 92 | ++b_pos; | 82 | 92 | ++c_pos; | 83 | 92 | } | 84 | 81 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_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 | 122 | while (a_pos < a_end) { | 79 | 84 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 84 | ++a_pos; | 81 | 84 | ++b_pos; | 82 | 84 | ++c_pos; | 83 | 84 | } | 84 | 38 | } |
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 | 80 | PaddedPODArray<UInt8>& c) { | 72 | 80 | size_t size = a.size(); | 73 | 80 | const A* __restrict a_pos = a.data(); | 74 | 80 | const B* __restrict b_pos = b.data(); | 75 | 80 | UInt8* __restrict c_pos = c.data(); | 76 | 80 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 179 | while (a_pos < a_end) { | 79 | 99 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 99 | ++a_pos; | 81 | 99 | ++b_pos; | 82 | 99 | ++c_pos; | 83 | 99 | } | 84 | 80 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 23 | PaddedPODArray<UInt8>& c) { | 72 | 23 | size_t size = a.size(); | 73 | 23 | const A* __restrict a_pos = a.data(); | 74 | 23 | const B* __restrict b_pos = b.data(); | 75 | 23 | UInt8* __restrict c_pos = c.data(); | 76 | 23 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 66 | while (a_pos < a_end) { | 79 | 43 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 43 | ++a_pos; | 81 | 43 | ++b_pos; | 82 | 43 | ++c_pos; | 83 | 43 | } | 84 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 92 | PaddedPODArray<UInt8>& c) { | 72 | 92 | size_t size = a.size(); | 73 | 92 | const A* __restrict a_pos = a.data(); | 74 | 92 | const B* __restrict b_pos = b.data(); | 75 | 92 | UInt8* __restrict c_pos = c.data(); | 76 | 92 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 358 | while (a_pos < a_end) { | 79 | 266 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 266 | ++a_pos; | 81 | 266 | ++b_pos; | 82 | 266 | ++c_pos; | 83 | 266 | } | 84 | 92 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 1.73k | PaddedPODArray<UInt8>& c) { | 72 | 1.73k | size_t size = a.size(); | 73 | 1.73k | const A* __restrict a_pos = a.data(); | 74 | 1.73k | const B* __restrict b_pos = b.data(); | 75 | 1.73k | UInt8* __restrict c_pos = c.data(); | 76 | 1.73k | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 2.38M | while (a_pos < a_end) { | 79 | 2.38M | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 2.38M | ++a_pos; | 81 | 2.38M | ++b_pos; | 82 | 2.38M | ++c_pos; | 83 | 2.38M | } | 84 | 1.73k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 274 | PaddedPODArray<UInt8>& c) { | 72 | 274 | size_t size = a.size(); | 73 | 274 | const A* __restrict a_pos = a.data(); | 74 | 274 | const B* __restrict b_pos = b.data(); | 75 | 274 | UInt8* __restrict c_pos = c.data(); | 76 | 274 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 896 | while (a_pos < a_end) { | 79 | 622 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 622 | ++a_pos; | 81 | 622 | ++b_pos; | 82 | 622 | ++c_pos; | 83 | 622 | } | 84 | 274 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_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 | 10 | 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 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 146 | PaddedPODArray<UInt8>& c) { | 72 | 146 | size_t size = a.size(); | 73 | 146 | const A* __restrict a_pos = a.data(); | 74 | 146 | const B* __restrict b_pos = b.data(); | 75 | 146 | UInt8* __restrict c_pos = c.data(); | 76 | 146 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 466 | while (a_pos < a_end) { | 79 | 320 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 320 | ++a_pos; | 81 | 320 | ++b_pos; | 82 | 320 | ++c_pos; | 83 | 320 | } | 84 | 146 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 128 | PaddedPODArray<UInt8>& c) { | 72 | 128 | size_t size = a.size(); | 73 | 128 | const A* __restrict a_pos = a.data(); | 74 | 128 | const B* __restrict b_pos = b.data(); | 75 | 128 | UInt8* __restrict c_pos = c.data(); | 76 | 128 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 432 | while (a_pos < a_end) { | 79 | 304 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 304 | ++a_pos; | 81 | 304 | ++b_pos; | 82 | 304 | ++c_pos; | 83 | 304 | } | 84 | 128 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 155 | PaddedPODArray<UInt8>& c) { | 72 | 155 | size_t size = a.size(); | 73 | 155 | const A* __restrict a_pos = a.data(); | 74 | 155 | const B* __restrict b_pos = b.data(); | 75 | 155 | UInt8* __restrict c_pos = c.data(); | 76 | 155 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 1.00k | while (a_pos < a_end) { | 79 | 850 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 850 | ++a_pos; | 81 | 850 | ++b_pos; | 82 | 850 | ++c_pos; | 83 | 850 | } | 84 | 155 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 221 | PaddedPODArray<UInt8>& c) { | 72 | 221 | size_t size = a.size(); | 73 | 221 | const A* __restrict a_pos = a.data(); | 74 | 221 | const B* __restrict b_pos = b.data(); | 75 | 221 | UInt8* __restrict c_pos = c.data(); | 76 | 221 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 5.42k | while (a_pos < a_end) { | 79 | 5.20k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 5.20k | ++a_pos; | 81 | 5.20k | ++b_pos; | 82 | 5.20k | ++c_pos; | 83 | 5.20k | } | 84 | 221 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 158 | PaddedPODArray<UInt8>& c) { | 72 | 158 | size_t size = a.size(); | 73 | 158 | const A* __restrict a_pos = a.data(); | 74 | 158 | const B* __restrict b_pos = b.data(); | 75 | 158 | UInt8* __restrict c_pos = c.data(); | 76 | 158 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 490 | while (a_pos < a_end) { | 79 | 332 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 332 | ++a_pos; | 81 | 332 | ++b_pos; | 82 | 332 | ++c_pos; | 83 | 332 | } | 84 | 158 | } |
_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 | 141 | PaddedPODArray<UInt8>& c) { | 72 | 141 | size_t size = a.size(); | 73 | 141 | const A* __restrict a_pos = a.data(); | 74 | 141 | const B* __restrict b_pos = b.data(); | 75 | 141 | UInt8* __restrict c_pos = c.data(); | 76 | 141 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 475 | while (a_pos < a_end) { | 79 | 334 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 334 | ++a_pos; | 81 | 334 | ++b_pos; | 82 | 334 | ++c_pos; | 83 | 334 | } | 84 | 141 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 71 | 151 | PaddedPODArray<UInt8>& c) { | 72 | 151 | size_t size = a.size(); | 73 | 151 | const A* __restrict a_pos = a.data(); | 74 | 151 | const B* __restrict b_pos = b.data(); | 75 | 151 | UInt8* __restrict c_pos = c.data(); | 76 | 151 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 503 | while (a_pos < a_end) { | 79 | 352 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 352 | ++a_pos; | 81 | 352 | ++b_pos; | 82 | 352 | ++c_pos; | 83 | 352 | } | 84 | 151 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 71 | 42 | PaddedPODArray<UInt8>& c) { | 72 | 42 | size_t size = a.size(); | 73 | 42 | const A* __restrict a_pos = a.data(); | 74 | 42 | const B* __restrict b_pos = b.data(); | 75 | 42 | UInt8* __restrict c_pos = c.data(); | 76 | 42 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 84 | while (a_pos < a_end) { | 79 | 42 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 42 | ++a_pos; | 81 | 42 | ++b_pos; | 82 | 42 | ++c_pos; | 83 | 42 | } | 84 | 42 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 470 | PaddedPODArray<UInt8>& c) { | 72 | 470 | size_t size = a.size(); | 73 | 470 | const A* __restrict a_pos = a.data(); | 74 | 470 | const B* __restrict b_pos = b.data(); | 75 | 470 | UInt8* __restrict c_pos = c.data(); | 76 | 470 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 6.81k | while (a_pos < a_end) { | 79 | 6.34k | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 6.34k | ++a_pos; | 81 | 6.34k | ++b_pos; | 82 | 6.34k | ++c_pos; | 83 | 6.34k | } | 84 | 470 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 71 | 90 | PaddedPODArray<UInt8>& c) { | 72 | 90 | size_t size = a.size(); | 73 | 90 | const A* __restrict a_pos = a.data(); | 74 | 90 | const B* __restrict b_pos = b.data(); | 75 | 90 | UInt8* __restrict c_pos = c.data(); | 76 | 90 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 180 | while (a_pos < a_end) { | 79 | 90 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 90 | ++a_pos; | 81 | 90 | ++b_pos; | 82 | 90 | ++c_pos; | 83 | 90 | } | 84 | 90 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 71 | 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 | 10 | 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 | 1 | } |
_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 | 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 | 153 | while (a_pos < a_end) { | 79 | 83 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 83 | ++a_pos; | 81 | 83 | ++b_pos; | 82 | 83 | ++c_pos; | 83 | 83 | } | 84 | 70 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 249 | while (a_pos < a_end) { | 79 | 150 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 150 | ++a_pos; | 81 | 150 | ++b_pos; | 82 | 150 | ++c_pos; | 83 | 150 | } | 84 | 99 | } |
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 | 80 | PaddedPODArray<UInt8>& c) { | 72 | 80 | size_t size = a.size(); | 73 | 80 | const A* __restrict a_pos = a.data(); | 74 | 80 | const B* __restrict b_pos = b.data(); | 75 | 80 | UInt8* __restrict c_pos = c.data(); | 76 | 80 | const A* __restrict a_end = a_pos + size; | 77 | | | 78 | 179 | while (a_pos < a_end) { | 79 | 99 | *c_pos = Op::apply(*a_pos, *b_pos); | 80 | 99 | ++a_pos; | 81 | 99 | ++b_pos; | 82 | 99 | ++c_pos; | 83 | 99 | } | 84 | 80 | } |
_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 | 123k | PaddedPODArray<UInt8>& c) { |
88 | 123k | size_t size = a.size(); |
89 | 123k | const A* __restrict a_pos = a.data(); |
90 | 123k | UInt8* __restrict c_pos = c.data(); |
91 | 123k | const A* __restrict a_end = a_pos + size; |
92 | | |
93 | 92.1M | while (a_pos < a_end) { |
94 | 92.0M | *c_pos = Op::apply(*a_pos, b); |
95 | 92.0M | ++a_pos; |
96 | 92.0M | ++c_pos; |
97 | 92.0M | } |
98 | 123k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 1.50k | PaddedPODArray<UInt8>& c) { | 88 | 1.50k | size_t size = a.size(); | 89 | 1.50k | const A* __restrict a_pos = a.data(); | 90 | 1.50k | UInt8* __restrict c_pos = c.data(); | 91 | 1.50k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.85k | while (a_pos < a_end) { | 94 | 3.34k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.34k | ++a_pos; | 96 | 3.34k | ++c_pos; | 97 | 3.34k | } | 98 | 1.50k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 990 | PaddedPODArray<UInt8>& c) { | 88 | 990 | size_t size = a.size(); | 89 | 990 | const A* __restrict a_pos = a.data(); | 90 | 990 | UInt8* __restrict c_pos = c.data(); | 91 | 990 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 206k | while (a_pos < a_end) { | 94 | 205k | *c_pos = Op::apply(*a_pos, b); | 95 | 205k | ++a_pos; | 96 | 205k | ++c_pos; | 97 | 205k | } | 98 | 990 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 301 | PaddedPODArray<UInt8>& c) { | 88 | 301 | size_t size = a.size(); | 89 | 301 | const A* __restrict a_pos = a.data(); | 90 | 301 | UInt8* __restrict c_pos = c.data(); | 91 | 301 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 101k | while (a_pos < a_end) { | 94 | 100k | *c_pos = Op::apply(*a_pos, b); | 95 | 100k | ++a_pos; | 96 | 100k | ++c_pos; | 97 | 100k | } | 98 | 301 | } |
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.43k | PaddedPODArray<UInt8>& c) { | 88 | 5.43k | size_t size = a.size(); | 89 | 5.43k | const A* __restrict a_pos = a.data(); | 90 | 5.43k | UInt8* __restrict c_pos = c.data(); | 91 | 5.43k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 9.21M | while (a_pos < a_end) { | 94 | 9.20M | *c_pos = Op::apply(*a_pos, b); | 95 | 9.20M | ++a_pos; | 96 | 9.20M | ++c_pos; | 97 | 9.20M | } | 98 | 5.43k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 703 | PaddedPODArray<UInt8>& c) { | 88 | 703 | size_t size = a.size(); | 89 | 703 | const A* __restrict a_pos = a.data(); | 90 | 703 | UInt8* __restrict c_pos = c.data(); | 91 | 703 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 160k | while (a_pos < a_end) { | 94 | 159k | *c_pos = Op::apply(*a_pos, b); | 95 | 159k | ++a_pos; | 96 | 159k | ++c_pos; | 97 | 159k | } | 98 | 703 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.87k | PaddedPODArray<UInt8>& c) { | 88 | 6.87k | size_t size = a.size(); | 89 | 6.87k | const A* __restrict a_pos = a.data(); | 90 | 6.87k | UInt8* __restrict c_pos = c.data(); | 91 | 6.87k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.25M | while (a_pos < a_end) { | 94 | 1.24M | *c_pos = Op::apply(*a_pos, b); | 95 | 1.24M | ++a_pos; | 96 | 1.24M | ++c_pos; | 97 | 1.24M | } | 98 | 6.87k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.7k | PaddedPODArray<UInt8>& c) { | 88 | 17.7k | size_t size = a.size(); | 89 | 17.7k | const A* __restrict a_pos = a.data(); | 90 | 17.7k | UInt8* __restrict c_pos = c.data(); | 91 | 17.7k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.36M | while (a_pos < a_end) { | 94 | 3.35M | *c_pos = Op::apply(*a_pos, b); | 95 | 3.35M | ++a_pos; | 96 | 3.35M | ++c_pos; | 97 | 3.35M | } | 98 | 17.7k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 71 | PaddedPODArray<UInt8>& c) { | 88 | 71 | size_t size = a.size(); | 89 | 71 | const A* __restrict a_pos = a.data(); | 90 | 71 | UInt8* __restrict c_pos = c.data(); | 91 | 71 | 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 | 71 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 16 | PaddedPODArray<UInt8>& c) { | 88 | 16 | size_t size = a.size(); | 89 | 16 | const A* __restrict a_pos = a.data(); | 90 | 16 | UInt8* __restrict c_pos = c.data(); | 91 | 16 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130 | while (a_pos < a_end) { | 94 | 114 | *c_pos = Op::apply(*a_pos, b); | 95 | 114 | ++a_pos; | 96 | 114 | ++c_pos; | 97 | 114 | } | 98 | 16 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6 | PaddedPODArray<UInt8>& c) { | 88 | 6 | size_t size = a.size(); | 89 | 6 | const A* __restrict a_pos = a.data(); | 90 | 6 | UInt8* __restrict c_pos = c.data(); | 91 | 6 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 12 | while (a_pos < a_end) { | 94 | 6 | *c_pos = Op::apply(*a_pos, b); | 95 | 6 | ++a_pos; | 96 | 6 | ++c_pos; | 97 | 6 | } | 98 | 6 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4 | while (a_pos < a_end) { | 94 | 2 | *c_pos = Op::apply(*a_pos, b); | 95 | 2 | ++a_pos; | 96 | 2 | ++c_pos; | 97 | 2 | } | 98 | 2 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 871 | PaddedPODArray<UInt8>& c) { | 88 | 871 | size_t size = a.size(); | 89 | 871 | const A* __restrict a_pos = a.data(); | 90 | 871 | UInt8* __restrict c_pos = c.data(); | 91 | 871 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 719k | while (a_pos < a_end) { | 94 | 719k | *c_pos = Op::apply(*a_pos, b); | 95 | 719k | ++a_pos; | 96 | 719k | ++c_pos; | 97 | 719k | } | 98 | 871 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 35 | PaddedPODArray<UInt8>& c) { | 88 | 35 | size_t size = a.size(); | 89 | 35 | const A* __restrict a_pos = a.data(); | 90 | 35 | UInt8* __restrict c_pos = c.data(); | 91 | 35 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 90 | while (a_pos < a_end) { | 94 | 55 | *c_pos = Op::apply(*a_pos, b); | 95 | 55 | ++a_pos; | 96 | 55 | ++c_pos; | 97 | 55 | } | 98 | 35 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 4 | PaddedPODArray<UInt8>& c) { | 88 | 4 | size_t size = a.size(); | 89 | 4 | const A* __restrict a_pos = a.data(); | 90 | 4 | UInt8* __restrict c_pos = c.data(); | 91 | 4 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 8 | while (a_pos < a_end) { | 94 | 4 | *c_pos = Op::apply(*a_pos, b); | 95 | 4 | ++a_pos; | 96 | 4 | ++c_pos; | 97 | 4 | } | 98 | 4 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 44 | PaddedPODArray<UInt8>& c) { | 88 | 44 | size_t size = a.size(); | 89 | 44 | const A* __restrict a_pos = a.data(); | 90 | 44 | UInt8* __restrict c_pos = c.data(); | 91 | 44 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.24k | while (a_pos < a_end) { | 94 | 1.19k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.19k | ++a_pos; | 96 | 1.19k | ++c_pos; | 97 | 1.19k | } | 98 | 44 | } |
_ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 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 | 786 | while (a_pos < a_end) { | 94 | 776 | *c_pos = Op::apply(*a_pos, b); | 95 | 776 | ++a_pos; | 96 | 776 | ++c_pos; | 97 | 776 | } | 98 | 10 | } |
_ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.07k | PaddedPODArray<UInt8>& c) { | 88 | 1.07k | size_t size = a.size(); | 89 | 1.07k | const A* __restrict a_pos = a.data(); | 90 | 1.07k | UInt8* __restrict c_pos = c.data(); | 91 | 1.07k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 629k | while (a_pos < a_end) { | 94 | 628k | *c_pos = Op::apply(*a_pos, b); | 95 | 628k | ++a_pos; | 96 | 628k | ++c_pos; | 97 | 628k | } | 98 | 1.07k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.74k | PaddedPODArray<UInt8>& c) { | 88 | 2.74k | size_t size = a.size(); | 89 | 2.74k | const A* __restrict a_pos = a.data(); | 90 | 2.74k | UInt8* __restrict c_pos = c.data(); | 91 | 2.74k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 272k | while (a_pos < a_end) { | 94 | 270k | *c_pos = Op::apply(*a_pos, b); | 95 | 270k | ++a_pos; | 96 | 270k | ++c_pos; | 97 | 270k | } | 98 | 2.74k | } |
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 | 127 | PaddedPODArray<UInt8>& c) { | 88 | 127 | size_t size = a.size(); | 89 | 127 | const A* __restrict a_pos = a.data(); | 90 | 127 | UInt8* __restrict c_pos = c.data(); | 91 | 127 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.44k | while (a_pos < a_end) { | 94 | 4.31k | *c_pos = Op::apply(*a_pos, b); | 95 | 4.31k | ++a_pos; | 96 | 4.31k | ++c_pos; | 97 | 4.31k | } | 98 | 127 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 460 | PaddedPODArray<UInt8>& c) { | 88 | 460 | size_t size = a.size(); | 89 | 460 | const A* __restrict a_pos = a.data(); | 90 | 460 | UInt8* __restrict c_pos = c.data(); | 91 | 460 | 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 | 460 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 94 | PaddedPODArray<UInt8>& c) { | 88 | 94 | size_t size = a.size(); | 89 | 94 | const A* __restrict a_pos = a.data(); | 90 | 94 | UInt8* __restrict c_pos = c.data(); | 91 | 94 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 230 | while (a_pos < a_end) { | 94 | 136 | *c_pos = Op::apply(*a_pos, b); | 95 | 136 | ++a_pos; | 96 | 136 | ++c_pos; | 97 | 136 | } | 98 | 94 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 437 | PaddedPODArray<UInt8>& c) { | 88 | 437 | size_t size = a.size(); | 89 | 437 | const A* __restrict a_pos = a.data(); | 90 | 437 | UInt8* __restrict c_pos = c.data(); | 91 | 437 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 45.5k | while (a_pos < a_end) { | 94 | 45.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 45.1k | ++a_pos; | 96 | 45.1k | ++c_pos; | 97 | 45.1k | } | 98 | 437 | } |
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.22k | PaddedPODArray<UInt8>& c) { | 88 | 1.22k | size_t size = a.size(); | 89 | 1.22k | const A* __restrict a_pos = a.data(); | 90 | 1.22k | UInt8* __restrict c_pos = c.data(); | 91 | 1.22k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.85k | while (a_pos < a_end) { | 94 | 5.63k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.63k | ++a_pos; | 96 | 5.63k | ++c_pos; | 97 | 5.63k | } | 98 | 1.22k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.02k | PaddedPODArray<UInt8>& c) { | 88 | 2.02k | size_t size = a.size(); | 89 | 2.02k | const A* __restrict a_pos = a.data(); | 90 | 2.02k | UInt8* __restrict c_pos = c.data(); | 91 | 2.02k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 7.80k | while (a_pos < a_end) { | 94 | 5.77k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.77k | ++a_pos; | 96 | 5.77k | ++c_pos; | 97 | 5.77k | } | 98 | 2.02k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.45k | PaddedPODArray<UInt8>& c) { | 88 | 1.45k | size_t size = a.size(); | 89 | 1.45k | const A* __restrict a_pos = a.data(); | 90 | 1.45k | UInt8* __restrict c_pos = c.data(); | 91 | 1.45k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.45k | while (a_pos < a_end) { | 94 | 5.00k | *c_pos = Op::apply(*a_pos, b); | 95 | 5.00k | ++a_pos; | 96 | 5.00k | ++c_pos; | 97 | 5.00k | } | 98 | 1.45k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 384 | PaddedPODArray<UInt8>& c) { | 88 | 384 | size_t size = a.size(); | 89 | 384 | const A* __restrict a_pos = a.data(); | 90 | 384 | UInt8* __restrict c_pos = c.data(); | 91 | 384 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 13.7k | while (a_pos < a_end) { | 94 | 13.3k | *c_pos = Op::apply(*a_pos, b); | 95 | 13.3k | ++a_pos; | 96 | 13.3k | ++c_pos; | 97 | 13.3k | } | 98 | 384 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 14.9k | PaddedPODArray<UInt8>& c) { | 88 | 14.9k | size_t size = a.size(); | 89 | 14.9k | const A* __restrict a_pos = a.data(); | 90 | 14.9k | UInt8* __restrict c_pos = c.data(); | 91 | 14.9k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.21M | while (a_pos < a_end) { | 94 | 6.20M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.20M | ++a_pos; | 96 | 6.20M | ++c_pos; | 97 | 6.20M | } | 98 | 14.9k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 6.25k | PaddedPODArray<UInt8>& c) { | 88 | 6.25k | size_t size = a.size(); | 89 | 6.25k | const A* __restrict a_pos = a.data(); | 90 | 6.25k | UInt8* __restrict c_pos = c.data(); | 91 | 6.25k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 5.09M | while (a_pos < a_end) { | 94 | 5.08M | *c_pos = Op::apply(*a_pos, b); | 95 | 5.08M | ++a_pos; | 96 | 5.08M | ++c_pos; | 97 | 5.08M | } | 98 | 6.25k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 13.3k | PaddedPODArray<UInt8>& c) { | 88 | 13.3k | size_t size = a.size(); | 89 | 13.3k | const A* __restrict a_pos = a.data(); | 90 | 13.3k | UInt8* __restrict c_pos = c.data(); | 91 | 13.3k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 169k | while (a_pos < a_end) { | 94 | 156k | *c_pos = Op::apply(*a_pos, b); | 95 | 156k | ++a_pos; | 96 | 156k | ++c_pos; | 97 | 156k | } | 98 | 13.3k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 1.93k | PaddedPODArray<UInt8>& c) { | 88 | 1.93k | size_t size = a.size(); | 89 | 1.93k | const A* __restrict a_pos = a.data(); | 90 | 1.93k | UInt8* __restrict c_pos = c.data(); | 91 | 1.93k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 14.1k | while (a_pos < a_end) { | 94 | 12.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 12.2k | ++a_pos; | 96 | 12.2k | ++c_pos; | 97 | 12.2k | } | 98 | 1.93k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 258 | PaddedPODArray<UInt8>& c) { | 88 | 258 | size_t size = a.size(); | 89 | 258 | const A* __restrict a_pos = a.data(); | 90 | 258 | UInt8* __restrict c_pos = c.data(); | 91 | 258 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 1.88k | while (a_pos < a_end) { | 94 | 1.62k | *c_pos = Op::apply(*a_pos, b); | 95 | 1.62k | ++a_pos; | 96 | 1.62k | ++c_pos; | 97 | 1.62k | } | 98 | 258 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 149 | PaddedPODArray<UInt8>& c) { | 88 | 149 | size_t size = a.size(); | 89 | 149 | const A* __restrict a_pos = a.data(); | 90 | 149 | UInt8* __restrict c_pos = c.data(); | 91 | 149 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 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 | 149 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 3 | PaddedPODArray<UInt8>& c) { | 88 | 3 | size_t size = a.size(); | 89 | 3 | const A* __restrict a_pos = a.data(); | 90 | 3 | UInt8* __restrict c_pos = c.data(); | 91 | 3 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 31 | while (a_pos < a_end) { | 94 | 28 | *c_pos = Op::apply(*a_pos, b); | 95 | 28 | ++a_pos; | 96 | 28 | ++c_pos; | 97 | 28 | } | 98 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2 | PaddedPODArray<UInt8>& c) { | 88 | 2 | size_t size = a.size(); | 89 | 2 | const A* __restrict a_pos = a.data(); | 90 | 2 | UInt8* __restrict c_pos = c.data(); | 91 | 2 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 22 | while (a_pos < a_end) { | 94 | 20 | *c_pos = Op::apply(*a_pos, b); | 95 | 20 | ++a_pos; | 96 | 20 | ++c_pos; | 97 | 20 | } | 98 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 216 | PaddedPODArray<UInt8>& c) { | 88 | 216 | size_t size = a.size(); | 89 | 216 | const A* __restrict a_pos = a.data(); | 90 | 216 | UInt8* __restrict c_pos = c.data(); | 91 | 216 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 3.77k | while (a_pos < a_end) { | 94 | 3.55k | *c_pos = Op::apply(*a_pos, b); | 95 | 3.55k | ++a_pos; | 96 | 3.55k | ++c_pos; | 97 | 3.55k | } | 98 | 216 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 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 | 64 | while (a_pos < a_end) { | 94 | 36 | *c_pos = Op::apply(*a_pos, b); | 95 | 36 | ++a_pos; | 96 | 36 | ++c_pos; | 97 | 36 | } | 98 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 2.20k | PaddedPODArray<UInt8>& c) { | 88 | 2.20k | size_t size = a.size(); | 89 | 2.20k | const A* __restrict a_pos = a.data(); | 90 | 2.20k | UInt8* __restrict c_pos = c.data(); | 91 | 2.20k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 342k | while (a_pos < a_end) { | 94 | 339k | *c_pos = Op::apply(*a_pos, b); | 95 | 339k | ++a_pos; | 96 | 339k | ++c_pos; | 97 | 339k | } | 98 | 2.20k | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 206 | PaddedPODArray<UInt8>& c) { | 88 | 206 | size_t size = a.size(); | 89 | 206 | const A* __restrict a_pos = a.data(); | 90 | 206 | UInt8* __restrict c_pos = c.data(); | 91 | 206 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 315k | while (a_pos < a_end) { | 94 | 315k | *c_pos = Op::apply(*a_pos, b); | 95 | 315k | ++a_pos; | 96 | 315k | ++c_pos; | 97 | 315k | } | 98 | 206 | } |
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 | 104 | PaddedPODArray<UInt8>& c) { | 88 | 104 | size_t size = a.size(); | 89 | 104 | const A* __restrict a_pos = a.data(); | 90 | 104 | UInt8* __restrict c_pos = c.data(); | 91 | 104 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 162k | while (a_pos < a_end) { | 94 | 162k | *c_pos = Op::apply(*a_pos, b); | 95 | 162k | ++a_pos; | 96 | 162k | ++c_pos; | 97 | 162k | } | 98 | 104 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 87 | 110 | PaddedPODArray<UInt8>& c) { | 88 | 110 | size_t size = a.size(); | 89 | 110 | const A* __restrict a_pos = a.data(); | 90 | 110 | UInt8* __restrict c_pos = c.data(); | 91 | 110 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 152k | while (a_pos < a_end) { | 94 | 152k | *c_pos = Op::apply(*a_pos, b); | 95 | 152k | ++a_pos; | 96 | 152k | ++c_pos; | 97 | 152k | } | 98 | 110 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 2.14k | PaddedPODArray<UInt8>& c) { | 88 | 2.14k | size_t size = a.size(); | 89 | 2.14k | const A* __restrict a_pos = a.data(); | 90 | 2.14k | UInt8* __restrict c_pos = c.data(); | 91 | 2.14k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 4.66M | while (a_pos < a_end) { | 94 | 4.66M | *c_pos = Op::apply(*a_pos, b); | 95 | 4.66M | ++a_pos; | 96 | 4.66M | ++c_pos; | 97 | 4.66M | } | 98 | 2.14k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 6.25k | PaddedPODArray<UInt8>& c) { | 88 | 6.25k | size_t size = a.size(); | 89 | 6.25k | const A* __restrict a_pos = a.data(); | 90 | 6.25k | UInt8* __restrict c_pos = c.data(); | 91 | 6.25k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 39.4M | while (a_pos < a_end) { | 94 | 39.4M | *c_pos = Op::apply(*a_pos, b); | 95 | 39.4M | ++a_pos; | 96 | 39.4M | ++c_pos; | 97 | 39.4M | } | 98 | 6.25k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 766 | PaddedPODArray<UInt8>& c) { | 88 | 766 | size_t size = a.size(); | 89 | 766 | const A* __restrict a_pos = a.data(); | 90 | 766 | UInt8* __restrict c_pos = c.data(); | 91 | 766 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 30.8k | while (a_pos < a_end) { | 94 | 30.0k | *c_pos = Op::apply(*a_pos, b); | 95 | 30.0k | ++a_pos; | 96 | 30.0k | ++c_pos; | 97 | 30.0k | } | 98 | 766 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 87 | 291 | PaddedPODArray<UInt8>& c) { | 88 | 291 | size_t size = a.size(); | 89 | 291 | const A* __restrict a_pos = a.data(); | 90 | 291 | UInt8* __restrict c_pos = c.data(); | 91 | 291 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 15.5k | 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 | 291 | } |
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 | 79 | PaddedPODArray<UInt8>& c) { | 88 | 79 | size_t size = a.size(); | 89 | 79 | const A* __restrict a_pos = a.data(); | 90 | 79 | UInt8* __restrict c_pos = c.data(); | 91 | 79 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 145k | while (a_pos < a_end) { | 94 | 145k | *c_pos = Op::apply(*a_pos, b); | 95 | 145k | ++a_pos; | 96 | 145k | ++c_pos; | 97 | 145k | } | 98 | 79 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 79 | PaddedPODArray<UInt8>& c) { | 88 | 79 | size_t size = a.size(); | 89 | 79 | const A* __restrict a_pos = a.data(); | 90 | 79 | UInt8* __restrict c_pos = c.data(); | 91 | 79 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 67.3k | while (a_pos < a_end) { | 94 | 67.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 67.2k | ++a_pos; | 96 | 67.2k | ++c_pos; | 97 | 67.2k | } | 98 | 79 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 78 | PaddedPODArray<UInt8>& c) { | 88 | 78 | size_t size = a.size(); | 89 | 78 | const A* __restrict a_pos = a.data(); | 90 | 78 | UInt8* __restrict c_pos = c.data(); | 91 | 78 | 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 | 78 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 90 | PaddedPODArray<UInt8>& c) { | 88 | 90 | size_t size = a.size(); | 89 | 90 | const A* __restrict a_pos = a.data(); | 90 | 90 | UInt8* __restrict c_pos = c.data(); | 91 | 90 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 90 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 9.72k | PaddedPODArray<UInt8>& c) { | 88 | 9.72k | size_t size = a.size(); | 89 | 9.72k | const A* __restrict a_pos = a.data(); | 90 | 9.72k | UInt8* __restrict c_pos = c.data(); | 91 | 9.72k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 6.13M | while (a_pos < a_end) { | 94 | 6.12M | *c_pos = Op::apply(*a_pos, b); | 95 | 6.12M | ++a_pos; | 96 | 6.12M | ++c_pos; | 97 | 6.12M | } | 98 | 9.72k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 17.5k | PaddedPODArray<UInt8>& c) { | 88 | 17.5k | size_t size = a.size(); | 89 | 17.5k | const A* __restrict a_pos = a.data(); | 90 | 17.5k | UInt8* __restrict c_pos = c.data(); | 91 | 17.5k | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 10.4M | while (a_pos < a_end) { | 94 | 10.4M | *c_pos = Op::apply(*a_pos, b); | 95 | 10.4M | ++a_pos; | 96 | 10.4M | ++c_pos; | 97 | 10.4M | } | 98 | 17.5k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 602 | PaddedPODArray<UInt8>& c) { | 88 | 602 | size_t size = a.size(); | 89 | 602 | const A* __restrict a_pos = a.data(); | 90 | 602 | UInt8* __restrict c_pos = c.data(); | 91 | 602 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 35.8k | while (a_pos < a_end) { | 94 | 35.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 35.2k | ++a_pos; | 96 | 35.2k | ++c_pos; | 97 | 35.2k | } | 98 | 602 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 783 | PaddedPODArray<UInt8>& c) { | 88 | 783 | size_t size = a.size(); | 89 | 783 | const A* __restrict a_pos = a.data(); | 90 | 783 | UInt8* __restrict c_pos = c.data(); | 91 | 783 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 43.8k | while (a_pos < a_end) { | 94 | 43.1k | *c_pos = Op::apply(*a_pos, b); | 95 | 43.1k | ++a_pos; | 96 | 43.1k | ++c_pos; | 97 | 43.1k | } | 98 | 783 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 46 | PaddedPODArray<UInt8>& c) { | 88 | 46 | size_t size = a.size(); | 89 | 46 | const A* __restrict a_pos = a.data(); | 90 | 46 | UInt8* __restrict c_pos = c.data(); | 91 | 46 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 130k | while (a_pos < a_end) { | 94 | 130k | *c_pos = Op::apply(*a_pos, b); | 95 | 130k | ++a_pos; | 96 | 130k | ++c_pos; | 97 | 130k | } | 98 | 46 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 51 | PaddedPODArray<UInt8>& c) { | 88 | 51 | size_t size = a.size(); | 89 | 51 | const A* __restrict a_pos = a.data(); | 90 | 51 | UInt8* __restrict c_pos = c.data(); | 91 | 51 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 78.2k | while (a_pos < a_end) { | 94 | 78.2k | *c_pos = Op::apply(*a_pos, b); | 95 | 78.2k | ++a_pos; | 96 | 78.2k | ++c_pos; | 97 | 78.2k | } | 98 | 51 | } |
_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 | 122 | PaddedPODArray<UInt8>& c) { | 88 | 122 | size_t size = a.size(); | 89 | 122 | const A* __restrict a_pos = a.data(); | 90 | 122 | UInt8* __restrict c_pos = c.data(); | 91 | 122 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 246 | while (a_pos < a_end) { | 94 | 124 | *c_pos = Op::apply(*a_pos, b); | 95 | 124 | ++a_pos; | 96 | 124 | ++c_pos; | 97 | 124 | } | 98 | 122 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 118 | PaddedPODArray<UInt8>& c) { | 88 | 118 | size_t size = a.size(); | 89 | 118 | const A* __restrict a_pos = a.data(); | 90 | 118 | UInt8* __restrict c_pos = c.data(); | 91 | 118 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 236 | while (a_pos < a_end) { | 94 | 118 | *c_pos = Op::apply(*a_pos, b); | 95 | 118 | ++a_pos; | 96 | 118 | ++c_pos; | 97 | 118 | } | 98 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 118 | PaddedPODArray<UInt8>& c) { | 88 | 118 | size_t size = a.size(); | 89 | 118 | const A* __restrict a_pos = a.data(); | 90 | 118 | UInt8* __restrict c_pos = c.data(); | 91 | 118 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 356k | while (a_pos < a_end) { | 94 | 356k | *c_pos = Op::apply(*a_pos, b); | 95 | 356k | ++a_pos; | 96 | 356k | ++c_pos; | 97 | 356k | } | 98 | 118 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 87 | 124 | PaddedPODArray<UInt8>& c) { | 88 | 124 | size_t size = a.size(); | 89 | 124 | const A* __restrict a_pos = a.data(); | 90 | 124 | UInt8* __restrict c_pos = c.data(); | 91 | 124 | const A* __restrict a_end = a_pos + size; | 92 | | | 93 | 276k | 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 | 124 | } |
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.89k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
101 | 7.89k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
102 | 7.89k | } 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 | 138 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 138 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 138 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 1.19k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 1.19k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 1.19k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_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 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 812 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 812 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 812 | } |
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 | 506 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 506 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 506 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 53 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 53 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 53 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 100 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 264 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 264 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 264 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 119 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 119 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 119 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 80 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 80 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 80 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 100 | 56 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 56 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 56 | } |
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 | 412 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 101 | 412 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 102 | 412 | } |
_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 | 162 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
115 | 162 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
116 | 558k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
117 | 558k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
118 | 558k | } |
119 | 162 | } _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 | 50 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 50 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 249k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 249k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 249k | } | 119 | 50 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 114 | 75 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 115 | 75 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 116 | 309k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 117 | 308k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 118 | 308k | } | 119 | 75 | } |
|
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 | 709 | PaddedPODArray<UInt8>& c) { |
133 | 709 | size_t size = a_offsets.size(); |
134 | 709 | ColumnString::Offset prev_a_offset = 0; |
135 | 709 | ColumnString::Offset prev_b_offset = 0; |
136 | 709 | const auto* a_pos = a_data.data(); |
137 | 709 | const auto* b_pos = b_data.data(); |
138 | | |
139 | 2.14k | for (size_t i = 0; i < size; ++i) { |
140 | 1.43k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
141 | 1.43k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
142 | 1.43k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
143 | 1.43k | 0); |
144 | | |
145 | 1.43k | prev_a_offset = a_offsets[i]; |
146 | 1.43k | prev_b_offset = b_offsets[i]; |
147 | 1.43k | } |
148 | 709 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 2 | PaddedPODArray<UInt8>& c) { | 133 | 2 | size_t size = a_offsets.size(); | 134 | 2 | ColumnString::Offset prev_a_offset = 0; | 135 | 2 | ColumnString::Offset prev_b_offset = 0; | 136 | 2 | const auto* a_pos = a_data.data(); | 137 | 2 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 49 | for (size_t i = 0; i < size; ++i) { | 140 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 47 | 0); | 144 | | | 145 | 47 | prev_a_offset = a_offsets[i]; | 146 | 47 | prev_b_offset = b_offsets[i]; | 147 | 47 | } | 148 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 122 | PaddedPODArray<UInt8>& c) { | 133 | 122 | size_t size = a_offsets.size(); | 134 | 122 | ColumnString::Offset prev_a_offset = 0; | 135 | 122 | ColumnString::Offset prev_b_offset = 0; | 136 | 122 | const auto* a_pos = a_data.data(); | 137 | 122 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 402 | for (size_t i = 0; i < size; ++i) { | 140 | 280 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 280 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 280 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 280 | 0); | 144 | | | 145 | 280 | prev_a_offset = a_offsets[i]; | 146 | 280 | prev_b_offset = b_offsets[i]; | 147 | 280 | } | 148 | 122 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 415 | PaddedPODArray<UInt8>& c) { | 133 | 415 | size_t size = a_offsets.size(); | 134 | 415 | ColumnString::Offset prev_a_offset = 0; | 135 | 415 | ColumnString::Offset prev_b_offset = 0; | 136 | 415 | const auto* a_pos = a_data.data(); | 137 | 415 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 1.35k | for (size_t i = 0; i < size; ++i) { | 140 | 937 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 937 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 937 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 937 | 0); | 144 | | | 145 | 937 | prev_a_offset = a_offsets[i]; | 146 | 937 | prev_b_offset = b_offsets[i]; | 147 | 937 | } | 148 | 415 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 132 | 170 | PaddedPODArray<UInt8>& c) { | 133 | 170 | size_t size = a_offsets.size(); | 134 | 170 | ColumnString::Offset prev_a_offset = 0; | 135 | 170 | ColumnString::Offset prev_b_offset = 0; | 136 | 170 | const auto* a_pos = a_data.data(); | 137 | 170 | const auto* b_pos = b_data.data(); | 138 | | | 139 | 340 | for (size_t i = 0; i < size; ++i) { | 140 | 170 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 141 | 170 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 142 | 170 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 143 | 170 | 0); | 144 | | | 145 | 170 | prev_a_offset = a_offsets[i]; | 146 | 170 | prev_b_offset = b_offsets[i]; | 147 | 170 | } | 148 | 170 | } |
|
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.52k | PaddedPODArray<UInt8>& c) { |
155 | 1.52k | size_t size = a_offsets.size(); |
156 | 1.52k | ColumnString::Offset prev_a_offset = 0; |
157 | 1.52k | const auto* a_pos = a_data.data(); |
158 | 1.52k | const auto* b_pos = b_data.data(); |
159 | | |
160 | 1.65M | for (size_t i = 0; i < size; ++i) { |
161 | 1.65M | c[i] = Op::apply( |
162 | 1.65M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
163 | 1.65M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
164 | 1.65M | 0); |
165 | | |
166 | 1.65M | prev_a_offset = a_offsets[i]; |
167 | 1.65M | } |
168 | 1.52k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 179 | PaddedPODArray<UInt8>& c) { | 155 | 179 | size_t size = a_offsets.size(); | 156 | 179 | ColumnString::Offset prev_a_offset = 0; | 157 | 179 | const auto* a_pos = a_data.data(); | 158 | 179 | 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 | 179 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 200 | PaddedPODArray<UInt8>& c) { | 155 | 200 | size_t size = a_offsets.size(); | 156 | 200 | ColumnString::Offset prev_a_offset = 0; | 157 | 200 | const auto* a_pos = a_data.data(); | 158 | 200 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 150k | for (size_t i = 0; i < size; ++i) { | 161 | 150k | c[i] = Op::apply( | 162 | 150k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 150k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 150k | 0); | 165 | | | 166 | 150k | prev_a_offset = a_offsets[i]; | 167 | 150k | } | 168 | 200 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 468 | PaddedPODArray<UInt8>& c) { | 155 | 468 | size_t size = a_offsets.size(); | 156 | 468 | ColumnString::Offset prev_a_offset = 0; | 157 | 468 | const auto* a_pos = a_data.data(); | 158 | 468 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 568k | for (size_t i = 0; i < size; ++i) { | 161 | 567k | c[i] = Op::apply( | 162 | 567k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 567k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 567k | 0); | 165 | | | 166 | 567k | prev_a_offset = a_offsets[i]; | 167 | 567k | } | 168 | 468 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 154 | 678 | PaddedPODArray<UInt8>& c) { | 155 | 678 | size_t size = a_offsets.size(); | 156 | 678 | ColumnString::Offset prev_a_offset = 0; | 157 | 678 | const auto* a_pos = a_data.data(); | 158 | 678 | const auto* b_pos = b_data.data(); | 159 | | | 160 | 610k | for (size_t i = 0; i < size; ++i) { | 161 | 610k | c[i] = Op::apply( | 162 | 610k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 163 | 610k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 164 | 610k | 0); | 165 | | | 166 | 610k | prev_a_offset = a_offsets[i]; | 167 | 610k | } | 168 | 678 | } |
|
169 | | |
170 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
171 | | ColumnString::Offset a_size, |
172 | | const ColumnString::Chars& b_data, |
173 | | const ColumnString::Offsets& b_offsets, |
174 | 6 | PaddedPODArray<UInt8>& c) { |
175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
176 | 6 | a_data, a_size, c); |
177 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 174 | 6 | PaddedPODArray<UInt8>& c) { | 175 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 176 | 6 | a_data, a_size, c); | 177 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
178 | | }; |
179 | | |
180 | | template <bool positive> |
181 | | struct StringEqualsImpl { |
182 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
183 | | const ColumnString::Offsets& a_offsets, |
184 | | const ColumnString::Chars& b_data, |
185 | | const ColumnString::Offsets& b_offsets, |
186 | 2.60k | PaddedPODArray<UInt8>& c) { |
187 | 2.60k | size_t size = a_offsets.size(); |
188 | 2.60k | ColumnString::Offset prev_a_offset = 0; |
189 | 2.60k | ColumnString::Offset prev_b_offset = 0; |
190 | 2.60k | const auto* a_pos = a_data.data(); |
191 | 2.60k | const auto* b_pos = b_data.data(); |
192 | | |
193 | 5.71k | for (size_t i = 0; i < size; ++i) { |
194 | 3.10k | auto a_size = a_offsets[i] - prev_a_offset; |
195 | 3.10k | auto b_size = b_offsets[i] - prev_b_offset; |
196 | | |
197 | 3.10k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
198 | 3.10k | b_pos + prev_b_offset, b_size); |
199 | | |
200 | 3.10k | prev_a_offset = a_offsets[i]; |
201 | 3.10k | prev_b_offset = b_offsets[i]; |
202 | 3.10k | } |
203 | 2.60k | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 2.55k | PaddedPODArray<UInt8>& c) { | 187 | 2.55k | size_t size = a_offsets.size(); | 188 | 2.55k | ColumnString::Offset prev_a_offset = 0; | 189 | 2.55k | ColumnString::Offset prev_b_offset = 0; | 190 | 2.55k | const auto* a_pos = a_data.data(); | 191 | 2.55k | const auto* b_pos = b_data.data(); | 192 | | | 193 | 5.59k | for (size_t i = 0; i < size; ++i) { | 194 | 3.04k | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 3.04k | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 3.04k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 3.04k | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 3.04k | prev_a_offset = a_offsets[i]; | 201 | 3.04k | prev_b_offset = b_offsets[i]; | 202 | 3.04k | } | 203 | 2.55k | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 186 | 52 | PaddedPODArray<UInt8>& c) { | 187 | 52 | size_t size = a_offsets.size(); | 188 | 52 | ColumnString::Offset prev_a_offset = 0; | 189 | 52 | ColumnString::Offset prev_b_offset = 0; | 190 | 52 | const auto* a_pos = a_data.data(); | 191 | 52 | const auto* b_pos = b_data.data(); | 192 | | | 193 | 113 | for (size_t i = 0; i < size; ++i) { | 194 | 61 | auto a_size = a_offsets[i] - prev_a_offset; | 195 | 61 | auto b_size = b_offsets[i] - prev_b_offset; | 196 | | | 197 | 61 | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 198 | 61 | b_pos + prev_b_offset, b_size); | 199 | | | 200 | 61 | prev_a_offset = a_offsets[i]; | 201 | 61 | prev_b_offset = b_offsets[i]; | 202 | 61 | } | 203 | 52 | } |
|
204 | | |
205 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
206 | | const ColumnString::Offsets& a_offsets, |
207 | | const ColumnString::Chars& b_data, |
208 | | ColumnString::Offset b_size, |
209 | 24.9k | PaddedPODArray<UInt8>& c) { |
210 | 24.9k | size_t size = a_offsets.size(); |
211 | 24.9k | if (b_size == 0) { |
212 | 2 | auto* __restrict data = c.data(); |
213 | 2 | auto* __restrict offsets = a_offsets.data(); |
214 | | |
215 | 2 | ColumnString::Offset prev_a_offset = 0; |
216 | 10 | for (size_t i = 0; i < size; ++i) { |
217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
218 | 8 | prev_a_offset = offsets[i]; |
219 | 8 | } |
220 | 24.9k | } else { |
221 | 24.9k | ColumnString::Offset prev_a_offset = 0; |
222 | 24.9k | const auto* a_pos = a_data.data(); |
223 | 24.9k | const auto* b_pos = b_data.data(); |
224 | 12.2M | for (size_t i = 0; i < size; ++i) { |
225 | 12.2M | auto a_size = a_offsets[i] - prev_a_offset; |
226 | 12.2M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
227 | 12.2M | b_pos, b_size); |
228 | 12.2M | prev_a_offset = a_offsets[i]; |
229 | 12.2M | } |
230 | 24.9k | } |
231 | 24.9k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 22.4k | PaddedPODArray<UInt8>& c) { | 210 | 22.4k | size_t size = a_offsets.size(); | 211 | 22.4k | if (b_size == 0) { | 212 | 0 | auto* __restrict data = c.data(); | 213 | 0 | auto* __restrict offsets = a_offsets.data(); | 214 | |
| 215 | 0 | ColumnString::Offset prev_a_offset = 0; | 216 | 0 | for (size_t i = 0; i < size; ++i) { | 217 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 0 | prev_a_offset = offsets[i]; | 219 | 0 | } | 220 | 22.4k | } else { | 221 | 22.4k | ColumnString::Offset prev_a_offset = 0; | 222 | 22.4k | const auto* a_pos = a_data.data(); | 223 | 22.4k | const auto* b_pos = b_data.data(); | 224 | 8.54M | for (size_t i = 0; i < size; ++i) { | 225 | 8.52M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 8.52M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 8.52M | b_pos, b_size); | 228 | 8.52M | prev_a_offset = a_offsets[i]; | 229 | 8.52M | } | 230 | 22.4k | } | 231 | 22.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 209 | 2.45k | PaddedPODArray<UInt8>& c) { | 210 | 2.45k | size_t size = a_offsets.size(); | 211 | 2.45k | if (b_size == 0) { | 212 | 2 | auto* __restrict data = c.data(); | 213 | 2 | auto* __restrict offsets = a_offsets.data(); | 214 | | | 215 | 2 | ColumnString::Offset prev_a_offset = 0; | 216 | 10 | for (size_t i = 0; i < size; ++i) { | 217 | 8 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 218 | 8 | prev_a_offset = offsets[i]; | 219 | 8 | } | 220 | 2.45k | } else { | 221 | 2.45k | ColumnString::Offset prev_a_offset = 0; | 222 | 2.45k | const auto* a_pos = a_data.data(); | 223 | 2.45k | const auto* b_pos = b_data.data(); | 224 | 3.73M | for (size_t i = 0; i < size; ++i) { | 225 | 3.72M | auto a_size = a_offsets[i] - prev_a_offset; | 226 | 3.72M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 227 | 3.72M | b_pos, b_size); | 228 | 3.72M | prev_a_offset = a_offsets[i]; | 229 | 3.72M | } | 230 | 2.45k | } | 231 | 2.45k | } |
|
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 | 7 | inline Op symmetric_op(Op op) { |
278 | 7 | switch (op) { |
279 | 0 | case Op::EQ: |
280 | 0 | case Op::NE: |
281 | 0 | return op; |
282 | 5 | case Op::LT: |
283 | 5 | 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 | 7 | } |
291 | 0 | __builtin_unreachable(); |
292 | 7 | } |
293 | | |
294 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
295 | 35.5k | Op op) { |
296 | 35.5k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
297 | | |
298 | 35.5k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal->slot_index, |
299 | 35.5k | slot_literal->slot_type); |
300 | 35.5k | if (slot_type == nullptr) { |
301 | 1 | return unsupported_zonemap_filter(ctx); |
302 | 1 | } |
303 | 35.5k | auto zone_map_ptr = ctx.zone_map(slot_literal->slot_index); |
304 | 35.5k | if (zone_map_ptr == nullptr) { |
305 | 80 | return unsupported_zonemap_filter(ctx); |
306 | 80 | } |
307 | 35.4k | const auto& zone_map = *zone_map_ptr; |
308 | 35.4k | if (!zone_map.has_not_null) { |
309 | 220 | return ZoneMapFilterResult::kNoMatch; |
310 | 220 | } |
311 | 35.2k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
312 | 97 | return unsupported_zonemap_filter(ctx); |
313 | 97 | } |
314 | | |
315 | 35.1k | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
316 | 35.1k | const auto& literal = slot_literal->literal; |
317 | 35.1k | switch (effective_op) { |
318 | 9.43k | case Op::EQ: |
319 | 9.43k | return literal < zone_map.min_value || zone_map.max_value < literal |
320 | 9.43k | ? ZoneMapFilterResult::kNoMatch |
321 | 9.43k | : ZoneMapFilterResult::kMayMatch; |
322 | 1.11k | case Op::NE: |
323 | 1.11k | return zone_map.min_value == literal && zone_map.max_value == literal |
324 | 1.11k | ? ZoneMapFilterResult::kNoMatch |
325 | 1.11k | : ZoneMapFilterResult::kMayMatch; |
326 | 3.04k | case Op::LT: |
327 | 3.04k | return zone_map.min_value >= literal ? ZoneMapFilterResult::kNoMatch |
328 | 3.04k | : ZoneMapFilterResult::kMayMatch; |
329 | 9.51k | case Op::LE: |
330 | 9.51k | return zone_map.min_value > literal ? ZoneMapFilterResult::kNoMatch |
331 | 9.51k | : ZoneMapFilterResult::kMayMatch; |
332 | 5.11k | case Op::GT: |
333 | 5.11k | return zone_map.max_value <= literal ? ZoneMapFilterResult::kNoMatch |
334 | 5.11k | : ZoneMapFilterResult::kMayMatch; |
335 | 6.95k | case Op::GE: |
336 | 6.95k | return zone_map.max_value < literal ? ZoneMapFilterResult::kNoMatch |
337 | 6.95k | : ZoneMapFilterResult::kMayMatch; |
338 | 35.1k | } |
339 | | |
340 | | // keep this to avoid compile failure with g++. |
341 | 0 | __builtin_unreachable(); |
342 | 35.1k | } |
343 | | |
344 | 136k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
345 | 136k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
346 | 136k | if (!slot_literal.has_value()) { |
347 | 41.0k | return false; |
348 | 41.0k | } |
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 | 95.6k | if (slot_literal->literal.is_null()) { |
354 | 4 | return false; |
355 | 4 | } |
356 | | |
357 | 95.6k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
358 | 95.6k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
359 | 95.6k | 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 | 19 | return false; |
364 | 19 | } |
365 | | |
366 | 95.6k | return true; |
367 | 95.6k | } |
368 | | |
369 | 8.58k | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
370 | 8.58k | return op == Op::EQ && can_evaluate(arguments); |
371 | 8.58k | } |
372 | | |
373 | 53.4k | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
374 | 53.4k | switch (op) { |
375 | 53.3k | case Op::EQ: |
376 | 53.3k | return value == literal; |
377 | 4 | case Op::NE: |
378 | 4 | return value != literal; |
379 | 5 | case Op::LT: |
380 | 5 | return value < literal; |
381 | 8 | case Op::LE: |
382 | 8 | return value <= literal; |
383 | 14 | case Op::GT: |
384 | 14 | return value > literal; |
385 | 16 | case Op::GE: |
386 | 16 | return value >= literal; |
387 | 53.4k | } |
388 | 0 | __builtin_unreachable(); |
389 | 53.4k | } |
390 | | |
391 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
392 | 660 | const VExprSPtrs& arguments, Op op) { |
393 | 660 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
394 | 660 | DORIS_CHECK(slot_literal.has_value()); |
395 | 660 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
396 | 660 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
397 | 0 | return ZoneMapFilterResult::kUnsupported; |
398 | 0 | } |
399 | 660 | DORIS_CHECK( |
400 | 660 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
401 | 660 | if (slot_literal->literal.is_null()) { |
402 | 0 | return ZoneMapFilterResult::kUnsupported; |
403 | 0 | } |
404 | 660 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
405 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
406 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
407 | 660 | return std::ranges::any_of(dictionary->values, |
408 | 53.4k | [&](const Field& value) { |
409 | 53.4k | return dictionary_value_matches(value, slot_literal->literal, |
410 | 53.4k | effective_op); |
411 | 53.4k | }) |
412 | 660 | ? ZoneMapFilterResult::kMayMatch |
413 | 660 | : ZoneMapFilterResult::kNoMatch; |
414 | 660 | } |
415 | | |
416 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
417 | 14 | const VExprSPtrs& arguments, Op op) { |
418 | 14 | DORIS_CHECK(op == Op::EQ); |
419 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
420 | 14 | DORIS_CHECK(slot_literal.has_value()); |
421 | 14 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
422 | 14 | } |
423 | | |
424 | 176k | inline std::optional<Op> op_from_name(std::string_view name) { |
425 | 176k | if (name == NameEquals::name) { |
426 | 69.4k | return Op::EQ; |
427 | 69.4k | } |
428 | 107k | if (name == NameNotEquals::name) { |
429 | 7.34k | return Op::NE; |
430 | 7.34k | } |
431 | 100k | if (name == NameLess::name) { |
432 | 14.4k | return Op::LT; |
433 | 14.4k | } |
434 | 85.6k | if (name == NameLessOrEquals::name) { |
435 | 31.2k | return Op::LE; |
436 | 31.2k | } |
437 | 54.4k | if (name == NameGreater::name) { |
438 | 27.9k | return Op::GT; |
439 | 27.9k | } |
440 | 26.5k | if (name == NameGreaterOrEquals::name) { |
441 | 26.5k | return Op::GE; |
442 | 26.5k | } |
443 | 18.4E | return std::nullopt; |
444 | 26.4k | } |
445 | | } // namespace comparison_zonemap_detail |
446 | | |
447 | | template <template <PrimitiveType> class Op, typename Name> |
448 | | class FunctionComparison : public IFunction { |
449 | | public: |
450 | | static constexpr auto name = Name::name; |
451 | 579k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 451 | 486k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 451 | 2.78k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 451 | 43.1k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 451 | 15.5k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 451 | 4.64k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 451 | 26.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
452 | | |
453 | 579k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 453 | 486k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 453 | 2.78k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 453 | 43.1k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 453 | 15.5k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 453 | 4.64k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 453 | 26.9k | FunctionComparison() = default; |
|
454 | | |
455 | 1.31M | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 455 | 1.28M | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 455 | 657 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 455 | 3.08k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 455 | 12.4k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 455 | 1.76k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 455 | 8.31k | double execute_cost() const override { return 0.5; } |
|
456 | | |
457 | | private: |
458 | | template <PrimitiveType PT> |
459 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
460 | 134k | const ColumnPtr& col_right_ptr) const { |
461 | 134k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
462 | 134k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
463 | | |
464 | 134k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
465 | 134k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
466 | | |
467 | 134k | DCHECK(!(left_is_const && right_is_const)); |
468 | | |
469 | 134k | if (!left_is_const && !right_is_const) { |
470 | 11.0k | auto col_res = ColumnUInt8::create(); |
471 | | |
472 | 11.0k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
473 | 11.0k | vec_res.resize(col_left->get_data().size()); |
474 | 11.0k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
475 | 11.0k | typename PrimitiveTypeTraits<PT>::CppType, |
476 | 11.0k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
477 | 11.0k | vec_res); |
478 | | |
479 | 11.0k | block.replace_by_position(result, std::move(col_res)); |
480 | 123k | } else if (!left_is_const && right_is_const) { |
481 | 115k | auto col_res = ColumnUInt8::create(); |
482 | | |
483 | 115k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
484 | 115k | vec_res.resize(col_left->size()); |
485 | 115k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
486 | 115k | typename PrimitiveTypeTraits<PT>::CppType, |
487 | 115k | Op<PT>>::vector_constant(col_left->get_data(), |
488 | 115k | col_right->get_element(0), vec_res); |
489 | | |
490 | 115k | block.replace_by_position(result, std::move(col_res)); |
491 | 115k | } else if (left_is_const && !right_is_const) { |
492 | 7.89k | auto col_res = ColumnUInt8::create(); |
493 | | |
494 | 7.89k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
495 | 7.89k | vec_res.resize(col_right->size()); |
496 | 7.89k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
497 | 7.89k | typename PrimitiveTypeTraits<PT>::CppType, |
498 | 7.89k | Op<PT>>::constant_vector(col_left->get_element(0), |
499 | 7.89k | col_right->get_data(), vec_res); |
500 | | |
501 | 7.89k | block.replace_by_position(result, std::move(col_res)); |
502 | 7.89k | } |
503 | 134k | return Status::OK(); |
504 | 134k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.56k | const ColumnPtr& col_right_ptr) const { | 461 | 1.56k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.56k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.56k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.56k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.56k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.56k | if (!left_is_const && !right_is_const) { | 470 | 67 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 67 | vec_res.resize(col_left->get_data().size()); | 474 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 67 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 67 | vec_res); | 478 | | | 479 | 67 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.50k | } else if (!left_is_const && right_is_const) { | 481 | 1.50k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.50k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.50k | vec_res.resize(col_left->size()); | 485 | 1.50k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.50k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.50k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.50k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.50k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.50k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.56k | return Status::OK(); | 504 | 1.56k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.71k | const ColumnPtr& col_right_ptr) const { | 461 | 1.71k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.71k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.71k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.71k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.71k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.71k | if (!left_is_const && !right_is_const) { | 470 | 728 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 728 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 728 | vec_res.resize(col_left->get_data().size()); | 474 | 728 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 728 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 728 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 728 | vec_res); | 478 | | | 479 | 728 | block.replace_by_position(result, std::move(col_res)); | 480 | 990 | } else if (!left_is_const && right_is_const) { | 481 | 990 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 990 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 990 | vec_res.resize(col_left->size()); | 485 | 990 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 990 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 990 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 990 | col_right->get_element(0), vec_res); | 489 | | | 490 | 990 | block.replace_by_position(result, std::move(col_res)); | 491 | 990 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.71k | return Status::OK(); | 504 | 1.71k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 713 | const ColumnPtr& col_right_ptr) const { | 461 | 713 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 713 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 713 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 713 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 713 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 713 | if (!left_is_const && !right_is_const) { | 470 | 412 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 412 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 412 | vec_res.resize(col_left->get_data().size()); | 474 | 412 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 412 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 412 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 412 | vec_res); | 478 | | | 479 | 412 | block.replace_by_position(result, std::move(col_res)); | 480 | 412 | } else if (!left_is_const && right_is_const) { | 481 | 301 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 301 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 301 | vec_res.resize(col_left->size()); | 485 | 301 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 301 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 301 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 301 | col_right->get_element(0), vec_res); | 489 | | | 490 | 301 | block.replace_by_position(result, std::move(col_res)); | 491 | 301 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 713 | return Status::OK(); | 504 | 713 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2 | const ColumnPtr& col_right_ptr) const { | 461 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2 | if (!left_is_const && !right_is_const) { | 470 | 2 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 2 | vec_res.resize(col_left->get_data().size()); | 474 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 2 | vec_res); | 478 | | | 479 | 2 | block.replace_by_position(result, std::move(col_res)); | 480 | 2 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2 | return Status::OK(); | 504 | 2 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 5.60k | const ColumnPtr& col_right_ptr) const { | 461 | 5.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 5.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 5.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 5.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 5.60k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 5.60k | if (!left_is_const && !right_is_const) { | 470 | 167 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 167 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 167 | vec_res.resize(col_left->get_data().size()); | 474 | 167 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 167 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 167 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 167 | vec_res); | 478 | | | 479 | 167 | block.replace_by_position(result, std::move(col_res)); | 480 | 5.43k | } else if (!left_is_const && right_is_const) { | 481 | 5.12k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 5.12k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 5.12k | vec_res.resize(col_left->size()); | 485 | 5.12k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 5.12k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 5.12k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 5.12k | col_right->get_element(0), vec_res); | 489 | | | 490 | 5.12k | block.replace_by_position(result, std::move(col_res)); | 491 | 5.12k | } else if (left_is_const && !right_is_const) { | 492 | 312 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 312 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 312 | vec_res.resize(col_right->size()); | 496 | 312 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 312 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 312 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 312 | col_right->get_data(), vec_res); | 500 | | | 501 | 312 | block.replace_by_position(result, std::move(col_res)); | 502 | 312 | } | 503 | 5.60k | return Status::OK(); | 504 | 5.60k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 791 | const ColumnPtr& col_right_ptr) const { | 461 | 791 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 791 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 791 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 791 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 791 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 791 | if (!left_is_const && !right_is_const) { | 470 | 88 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 88 | vec_res.resize(col_left->get_data().size()); | 474 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 88 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 88 | vec_res); | 478 | | | 479 | 88 | block.replace_by_position(result, std::move(col_res)); | 480 | 703 | } else if (!left_is_const && right_is_const) { | 481 | 655 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 655 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 655 | vec_res.resize(col_left->size()); | 485 | 655 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 655 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 655 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 655 | col_right->get_element(0), vec_res); | 489 | | | 490 | 655 | block.replace_by_position(result, std::move(col_res)); | 491 | 655 | } else if (left_is_const && !right_is_const) { | 492 | 48 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 48 | vec_res.resize(col_right->size()); | 496 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 48 | col_right->get_data(), vec_res); | 500 | | | 501 | 48 | block.replace_by_position(result, std::move(col_res)); | 502 | 48 | } | 503 | 791 | return Status::OK(); | 504 | 791 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 7.87k | const ColumnPtr& col_right_ptr) const { | 461 | 7.87k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 7.87k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 7.87k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 7.87k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 7.87k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 7.87k | if (!left_is_const && !right_is_const) { | 470 | 996 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 996 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 996 | vec_res.resize(col_left->get_data().size()); | 474 | 996 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 996 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 996 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 996 | vec_res); | 478 | | | 479 | 996 | block.replace_by_position(result, std::move(col_res)); | 480 | 6.87k | } else if (!left_is_const && right_is_const) { | 481 | 6.73k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 6.73k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 6.73k | vec_res.resize(col_left->size()); | 485 | 6.73k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 6.73k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 6.73k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 6.73k | col_right->get_element(0), vec_res); | 489 | | | 490 | 6.73k | block.replace_by_position(result, std::move(col_res)); | 491 | 6.73k | } else if (left_is_const && !right_is_const) { | 492 | 138 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 138 | vec_res.resize(col_right->size()); | 496 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 138 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 138 | col_right->get_data(), vec_res); | 500 | | | 501 | 138 | block.replace_by_position(result, std::move(col_res)); | 502 | 138 | } | 503 | 7.87k | return Status::OK(); | 504 | 7.87k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18.0k | const ColumnPtr& col_right_ptr) const { | 461 | 18.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18.0k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18.0k | if (!left_is_const && !right_is_const) { | 470 | 294 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 294 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 294 | vec_res.resize(col_left->get_data().size()); | 474 | 294 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 294 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 294 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 294 | vec_res); | 478 | | | 479 | 294 | block.replace_by_position(result, std::move(col_res)); | 480 | 17.7k | } else if (!left_is_const && right_is_const) { | 481 | 16.5k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 16.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 16.5k | vec_res.resize(col_left->size()); | 485 | 16.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 16.5k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 16.5k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 16.5k | col_right->get_element(0), vec_res); | 489 | | | 490 | 16.5k | block.replace_by_position(result, std::move(col_res)); | 491 | 16.5k | } else if (left_is_const && !right_is_const) { | 492 | 1.19k | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 1.19k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 1.19k | vec_res.resize(col_right->size()); | 496 | 1.19k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 1.19k | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 1.19k | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 1.19k | col_right->get_data(), vec_res); | 500 | | | 501 | 1.19k | block.replace_by_position(result, std::move(col_res)); | 502 | 1.19k | } | 503 | 18.0k | return Status::OK(); | 504 | 18.0k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 167 | const ColumnPtr& col_right_ptr) const { | 461 | 167 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 167 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 167 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 167 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 167 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 167 | if (!left_is_const && !right_is_const) { | 470 | 96 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 96 | vec_res.resize(col_left->get_data().size()); | 474 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 96 | vec_res); | 478 | | | 479 | 96 | block.replace_by_position(result, std::move(col_res)); | 480 | 96 | } else if (!left_is_const && right_is_const) { | 481 | 55 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 55 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 55 | vec_res.resize(col_left->size()); | 485 | 55 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 55 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 55 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 55 | col_right->get_element(0), vec_res); | 489 | | | 490 | 55 | block.replace_by_position(result, std::move(col_res)); | 491 | 55 | } else if (left_is_const && !right_is_const) { | 492 | 16 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 16 | vec_res.resize(col_right->size()); | 496 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 16 | col_right->get_data(), vec_res); | 500 | | | 501 | 16 | block.replace_by_position(result, std::move(col_res)); | 502 | 16 | } | 503 | 167 | return Status::OK(); | 504 | 167 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 32 | const ColumnPtr& col_right_ptr) const { | 461 | 32 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 32 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 32 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 32 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 32 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 32 | if (!left_is_const && !right_is_const) { | 470 | 16 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 16 | vec_res.resize(col_left->get_data().size()); | 474 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 16 | vec_res); | 478 | | | 479 | 16 | block.replace_by_position(result, std::move(col_res)); | 480 | 16 | } else if (!left_is_const && right_is_const) { | 481 | 16 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 16 | vec_res.resize(col_left->size()); | 485 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 16 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 16 | col_right->get_element(0), vec_res); | 489 | | | 490 | 16 | block.replace_by_position(result, std::move(col_res)); | 491 | 16 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 32 | return Status::OK(); | 504 | 32 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 30 | const ColumnPtr& col_right_ptr) const { | 461 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 30 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 30 | if (!left_is_const && !right_is_const) { | 470 | 24 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 24 | vec_res.resize(col_left->get_data().size()); | 474 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 24 | vec_res); | 478 | | | 479 | 24 | block.replace_by_position(result, std::move(col_res)); | 480 | 24 | } else if (!left_is_const && right_is_const) { | 481 | 6 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 6 | vec_res.resize(col_left->size()); | 485 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 6 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 6 | col_right->get_element(0), vec_res); | 489 | | | 490 | 6 | block.replace_by_position(result, std::move(col_res)); | 491 | 6 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 30 | return Status::OK(); | 504 | 30 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 109 | const ColumnPtr& col_right_ptr) const { | 461 | 109 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 109 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 109 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 109 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 109 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 109 | if (!left_is_const && !right_is_const) { | 470 | 106 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 106 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 106 | vec_res.resize(col_left->get_data().size()); | 474 | 106 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 106 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 106 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 106 | vec_res); | 478 | | | 479 | 106 | block.replace_by_position(result, std::move(col_res)); | 480 | 106 | } else if (!left_is_const && right_is_const) { | 481 | 2 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2 | vec_res.resize(col_left->size()); | 485 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2 | col_right->get_element(0), vec_res); | 489 | | | 490 | 2 | block.replace_by_position(result, std::move(col_res)); | 491 | 2 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 109 | return Status::OK(); | 504 | 109 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 985 | const ColumnPtr& col_right_ptr) const { | 461 | 985 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 985 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 985 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 985 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 985 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 985 | if (!left_is_const && !right_is_const) { | 470 | 114 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 114 | vec_res.resize(col_left->get_data().size()); | 474 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 114 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 114 | vec_res); | 478 | | | 479 | 114 | block.replace_by_position(result, std::move(col_res)); | 480 | 871 | } else if (!left_is_const && right_is_const) { | 481 | 870 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 870 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 870 | vec_res.resize(col_left->size()); | 485 | 870 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 870 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 870 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 870 | col_right->get_element(0), vec_res); | 489 | | | 490 | 870 | block.replace_by_position(result, std::move(col_res)); | 491 | 870 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 985 | return Status::OK(); | 504 | 985 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 4 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 4 | vec_res.resize(col_left->get_data().size()); | 474 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 4 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 4 | vec_res); | 478 | | | 479 | 4 | block.replace_by_position(result, std::move(col_res)); | 480 | 4 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 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 | 460 | 82 | const ColumnPtr& col_right_ptr) const { | 461 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 82 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 82 | if (!left_is_const && !right_is_const) { | 470 | 47 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 47 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 47 | vec_res.resize(col_left->get_data().size()); | 474 | 47 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 47 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 47 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 47 | vec_res); | 478 | | | 479 | 47 | block.replace_by_position(result, std::move(col_res)); | 480 | 47 | } else if (!left_is_const && right_is_const) { | 481 | 35 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 35 | vec_res.resize(col_left->size()); | 485 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 35 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 35 | col_right->get_element(0), vec_res); | 489 | | | 490 | 35 | block.replace_by_position(result, std::move(col_res)); | 491 | 35 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 82 | return Status::OK(); | 504 | 82 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 4 | } else if (!left_is_const && right_is_const) { | 481 | 4 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 4 | vec_res.resize(col_left->size()); | 485 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 4 | col_right->get_element(0), vec_res); | 489 | | | 490 | 4 | block.replace_by_position(result, std::move(col_res)); | 491 | 4 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 100 | const ColumnPtr& col_right_ptr) const { | 461 | 100 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 100 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 100 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 100 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 100 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 100 | if (!left_is_const && !right_is_const) { | 470 | 56 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 56 | vec_res.resize(col_left->get_data().size()); | 474 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 56 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 56 | vec_res); | 478 | | | 479 | 56 | block.replace_by_position(result, std::move(col_res)); | 480 | 56 | } else if (!left_is_const && right_is_const) { | 481 | 44 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 44 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 44 | vec_res.resize(col_left->size()); | 485 | 44 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 44 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 44 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 44 | col_right->get_element(0), vec_res); | 489 | | | 490 | 44 | block.replace_by_position(result, std::move(col_res)); | 491 | 44 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 100 | return Status::OK(); | 504 | 100 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 10 | const ColumnPtr& col_right_ptr) const { | 461 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 10 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 10 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 10 | return Status::OK(); | 504 | 10 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.45k | const ColumnPtr& col_right_ptr) const { | 461 | 2.45k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.45k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.45k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.45k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.45k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.45k | if (!left_is_const && !right_is_const) { | 470 | 1.38k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.38k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.38k | vec_res.resize(col_left->get_data().size()); | 474 | 1.38k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.38k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.38k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.38k | vec_res); | 478 | | | 479 | 1.38k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.38k | } else if (!left_is_const && right_is_const) { | 481 | 1.07k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.07k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.07k | vec_res.resize(col_left->size()); | 485 | 1.07k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.07k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.07k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.07k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.07k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.07k | } else if (left_is_const && !right_is_const) { | 492 | 5 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 5 | vec_res.resize(col_right->size()); | 496 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 5 | col_right->get_data(), vec_res); | 500 | | | 501 | 5 | block.replace_by_position(result, std::move(col_res)); | 502 | 5 | } | 503 | 2.45k | return Status::OK(); | 504 | 2.45k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 3.08k | const ColumnPtr& col_right_ptr) const { | 461 | 3.08k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 3.08k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 3.08k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 3.08k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 3.08k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 3.08k | if (!left_is_const && !right_is_const) { | 470 | 344 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 344 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 344 | vec_res.resize(col_left->get_data().size()); | 474 | 344 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 344 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 344 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 344 | vec_res); | 478 | | | 479 | 344 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.74k | } else if (!left_is_const && right_is_const) { | 481 | 1.92k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.92k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.92k | vec_res.resize(col_left->size()); | 485 | 1.92k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.92k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.92k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.92k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.92k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.92k | } else if (left_is_const && !right_is_const) { | 492 | 812 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 812 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 812 | vec_res.resize(col_right->size()); | 496 | 812 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 812 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 812 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 812 | col_right->get_data(), vec_res); | 500 | | | 501 | 812 | block.replace_by_position(result, std::move(col_res)); | 502 | 812 | } | 503 | 3.08k | return Status::OK(); | 504 | 3.08k | } |
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 | 460 | 48 | const ColumnPtr& col_right_ptr) const { | 461 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 48 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 48 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 28 | } else if (!left_is_const && right_is_const) { | 481 | 28 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 28 | vec_res.resize(col_left->size()); | 485 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 28 | col_right->get_element(0), vec_res); | 489 | | | 490 | 28 | block.replace_by_position(result, std::move(col_res)); | 491 | 28 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 48 | return Status::OK(); | 504 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 60 | const ColumnPtr& col_right_ptr) const { | 461 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 60 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 60 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 40 | } else if (!left_is_const && right_is_const) { | 481 | 40 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 40 | vec_res.resize(col_left->size()); | 485 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 40 | col_right->get_element(0), vec_res); | 489 | | | 490 | 40 | block.replace_by_position(result, std::move(col_res)); | 491 | 40 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 60 | return Status::OK(); | 504 | 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 | 460 | 1.33k | const ColumnPtr& col_right_ptr) const { | 461 | 1.33k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.33k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.33k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.33k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.33k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.33k | if (!left_is_const && !right_is_const) { | 470 | 1.20k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.20k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.20k | vec_res.resize(col_left->get_data().size()); | 474 | 1.20k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.20k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.20k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.20k | vec_res); | 478 | | | 479 | 1.20k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.20k | } else if (!left_is_const && right_is_const) { | 481 | 127 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 127 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 127 | vec_res.resize(col_left->size()); | 485 | 127 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 127 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 127 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 127 | col_right->get_element(0), vec_res); | 489 | | | 490 | 127 | block.replace_by_position(result, std::move(col_res)); | 491 | 127 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1.33k | return Status::OK(); | 504 | 1.33k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 102 | const ColumnPtr& col_right_ptr) const { | 461 | 102 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 102 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 102 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 102 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 102 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 102 | if (!left_is_const && !right_is_const) { | 470 | 8 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 8 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 8 | vec_res.resize(col_left->get_data().size()); | 474 | 8 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 8 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 8 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 8 | vec_res); | 478 | | | 479 | 8 | block.replace_by_position(result, std::move(col_res)); | 480 | 94 | } else if (!left_is_const && right_is_const) { | 481 | 94 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 94 | vec_res.resize(col_left->size()); | 485 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 94 | col_right->get_element(0), vec_res); | 489 | | | 490 | 94 | block.replace_by_position(result, std::move(col_res)); | 491 | 94 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 102 | return Status::OK(); | 504 | 102 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.24k | const ColumnPtr& col_right_ptr) const { | 461 | 1.24k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.24k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.24k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.24k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.24k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.24k | if (!left_is_const && !right_is_const) { | 470 | 40 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 40 | vec_res.resize(col_left->get_data().size()); | 474 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 40 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 40 | vec_res); | 478 | | | 479 | 40 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.20k | } else if (!left_is_const && right_is_const) { | 481 | 962 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 962 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 962 | vec_res.resize(col_left->size()); | 485 | 962 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 962 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 962 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 962 | col_right->get_element(0), vec_res); | 489 | | | 490 | 962 | block.replace_by_position(result, std::move(col_res)); | 491 | 962 | } else if (left_is_const && !right_is_const) { | 492 | 240 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 240 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 240 | vec_res.resize(col_right->size()); | 496 | 240 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 240 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 240 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 240 | col_right->get_data(), vec_res); | 500 | | | 501 | 240 | block.replace_by_position(result, std::move(col_res)); | 502 | 240 | } | 503 | 1.24k | return Status::OK(); | 504 | 1.24k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.79k | const ColumnPtr& col_right_ptr) const { | 461 | 1.79k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.79k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.79k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.79k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.79k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.79k | if (!left_is_const && !right_is_const) { | 470 | 112 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 112 | vec_res.resize(col_left->get_data().size()); | 474 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 112 | vec_res); | 478 | | | 479 | 112 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.68k | } else if (!left_is_const && right_is_const) { | 481 | 1.45k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.45k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.45k | vec_res.resize(col_left->size()); | 485 | 1.45k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.45k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.45k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.45k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.45k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.45k | } else if (left_is_const && !right_is_const) { | 492 | 239 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 239 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 239 | vec_res.resize(col_right->size()); | 496 | 239 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 239 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 239 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 239 | col_right->get_data(), vec_res); | 500 | | | 501 | 239 | block.replace_by_position(result, std::move(col_res)); | 502 | 239 | } | 503 | 1.79k | return Status::OK(); | 504 | 1.79k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18.2k | const ColumnPtr& col_right_ptr) const { | 461 | 18.2k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18.2k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18.2k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18.2k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18.2k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18.2k | if (!left_is_const && !right_is_const) { | 470 | 80 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 80 | vec_res.resize(col_left->get_data().size()); | 474 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 80 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 80 | vec_res); | 478 | | | 479 | 80 | block.replace_by_position(result, std::move(col_res)); | 480 | 18.1k | } else if (!left_is_const && right_is_const) { | 481 | 14.8k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 14.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 14.8k | vec_res.resize(col_left->size()); | 485 | 14.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 14.8k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 14.8k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 14.8k | col_right->get_element(0), vec_res); | 489 | | | 490 | 14.8k | block.replace_by_position(result, std::move(col_res)); | 491 | 14.8k | } else if (left_is_const && !right_is_const) { | 492 | 3.33k | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 3.33k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 3.33k | vec_res.resize(col_right->size()); | 496 | 3.33k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 3.33k | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 3.33k | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 3.33k | col_right->get_data(), vec_res); | 500 | | | 501 | 3.33k | block.replace_by_position(result, std::move(col_res)); | 502 | 3.33k | } | 503 | 18.2k | return Status::OK(); | 504 | 18.2k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 13.8k | const ColumnPtr& col_right_ptr) const { | 461 | 13.8k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 13.8k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 13.8k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 13.8k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 13.8k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 13.8k | if (!left_is_const && !right_is_const) { | 470 | 63 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 63 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 63 | vec_res.resize(col_left->get_data().size()); | 474 | 63 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 63 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 63 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 63 | vec_res); | 478 | | | 479 | 63 | block.replace_by_position(result, std::move(col_res)); | 480 | 13.7k | } else if (!left_is_const && right_is_const) { | 481 | 13.2k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 13.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 13.2k | vec_res.resize(col_left->size()); | 485 | 13.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 13.2k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 13.2k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 13.2k | col_right->get_element(0), vec_res); | 489 | | | 490 | 13.2k | block.replace_by_position(result, std::move(col_res)); | 491 | 13.2k | } else if (left_is_const && !right_is_const) { | 492 | 506 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 506 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 506 | vec_res.resize(col_right->size()); | 496 | 506 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 506 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 506 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 506 | col_right->get_data(), vec_res); | 500 | | | 501 | 506 | block.replace_by_position(result, std::move(col_res)); | 502 | 506 | } | 503 | 13.8k | return Status::OK(); | 504 | 13.8k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 257 | const ColumnPtr& col_right_ptr) const { | 461 | 257 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 257 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 257 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 257 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 257 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 257 | if (!left_is_const && !right_is_const) { | 470 | 2 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 2 | vec_res.resize(col_left->get_data().size()); | 474 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 2 | vec_res); | 478 | | | 479 | 2 | block.replace_by_position(result, std::move(col_res)); | 480 | 255 | } else if (!left_is_const && right_is_const) { | 481 | 202 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 202 | vec_res.resize(col_left->size()); | 485 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 202 | col_right->get_element(0), vec_res); | 489 | | | 490 | 202 | block.replace_by_position(result, std::move(col_res)); | 491 | 202 | } else if (left_is_const && !right_is_const) { | 492 | 53 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 53 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 53 | vec_res.resize(col_right->size()); | 496 | 53 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 53 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 53 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 53 | col_right->get_data(), vec_res); | 500 | | | 501 | 53 | block.replace_by_position(result, std::move(col_res)); | 502 | 53 | } | 503 | 257 | return Status::OK(); | 504 | 257 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 4 | const ColumnPtr& col_right_ptr) const { | 461 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 4 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 4 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 3 | } else if (!left_is_const && right_is_const) { | 481 | 3 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 3 | vec_res.resize(col_left->size()); | 485 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 3 | col_right->get_element(0), vec_res); | 489 | | | 490 | 3 | block.replace_by_position(result, std::move(col_res)); | 491 | 3 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 4 | return Status::OK(); | 504 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 235 | const ColumnPtr& col_right_ptr) const { | 461 | 235 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 235 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 235 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 235 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 235 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 236 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 216 | } else if (!left_is_const && right_is_const) { | 481 | 216 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 216 | vec_res.resize(col_left->size()); | 485 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 216 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 216 | col_right->get_element(0), vec_res); | 489 | | | 490 | 216 | block.replace_by_position(result, std::move(col_res)); | 491 | 18.4E | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 235 | return Status::OK(); | 504 | 235 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.22k | const ColumnPtr& col_right_ptr) const { | 461 | 2.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.22k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.22k | if (!left_is_const && !right_is_const) { | 470 | 27 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 27 | vec_res.resize(col_left->get_data().size()); | 474 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 27 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 27 | vec_res); | 478 | | | 479 | 27 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.20k | } else if (!left_is_const && right_is_const) { | 481 | 2.20k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.20k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.20k | vec_res.resize(col_left->size()); | 485 | 2.20k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.20k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.20k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.20k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.20k | block.replace_by_position(result, std::move(col_res)); | 491 | 18.4E | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.22k | return Status::OK(); | 504 | 2.22k | } |
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 | 460 | 146 | const ColumnPtr& col_right_ptr) const { | 461 | 146 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 146 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 146 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 146 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 146 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 146 | if (!left_is_const && !right_is_const) { | 470 | 42 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 42 | vec_res.resize(col_left->get_data().size()); | 474 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 42 | vec_res); | 478 | | | 479 | 42 | block.replace_by_position(result, std::move(col_res)); | 480 | 104 | } else if (!left_is_const && right_is_const) { | 481 | 104 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 104 | vec_res.resize(col_left->size()); | 485 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 104 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 104 | col_right->get_element(0), vec_res); | 489 | | | 490 | 104 | block.replace_by_position(result, std::move(col_res)); | 491 | 104 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 146 | return Status::OK(); | 504 | 146 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.20k | const ColumnPtr& col_right_ptr) const { | 461 | 2.20k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.20k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.20k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.20k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.20k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.20k | if (!left_is_const && !right_is_const) { | 470 | 61 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 61 | vec_res.resize(col_left->get_data().size()); | 474 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 61 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 61 | vec_res); | 478 | | | 479 | 61 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.14k | } else if (!left_is_const && right_is_const) { | 481 | 2.14k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.14k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.14k | vec_res.resize(col_left->size()); | 485 | 2.14k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.14k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.14k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.14k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.14k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.14k | } else if (left_is_const && !right_is_const) { | 492 | 6 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 6 | vec_res.resize(col_right->size()); | 496 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 6 | col_right->get_data(), vec_res); | 500 | | | 501 | 6 | block.replace_by_position(result, std::move(col_res)); | 502 | 6 | } | 503 | 2.20k | return Status::OK(); | 504 | 2.20k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 862 | const ColumnPtr& col_right_ptr) const { | 461 | 862 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 862 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 862 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 862 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 862 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 862 | if (!left_is_const && !right_is_const) { | 470 | 96 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 96 | vec_res.resize(col_left->get_data().size()); | 474 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 96 | vec_res); | 478 | | | 479 | 96 | block.replace_by_position(result, std::move(col_res)); | 480 | 766 | } else if (!left_is_const && right_is_const) { | 481 | 765 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 765 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 765 | vec_res.resize(col_left->size()); | 485 | 765 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 765 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 765 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 765 | col_right->get_element(0), vec_res); | 489 | | | 490 | 765 | block.replace_by_position(result, std::move(col_res)); | 491 | 765 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 862 | return Status::OK(); | 504 | 862 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 79 | const ColumnPtr& col_right_ptr) const { | 461 | 79 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 79 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 79 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 79 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 79 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 79 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 79 | } else if (!left_is_const && right_is_const) { | 481 | 79 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 79 | vec_res.resize(col_left->size()); | 485 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 79 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 79 | col_right->get_element(0), vec_res); | 489 | | | 490 | 79 | block.replace_by_position(result, std::move(col_res)); | 491 | 79 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 79 | return Status::OK(); | 504 | 79 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 78 | const ColumnPtr& col_right_ptr) const { | 461 | 78 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 78 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 78 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 78 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 78 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 78 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 78 | } else if (!left_is_const && right_is_const) { | 481 | 78 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 78 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 78 | vec_res.resize(col_left->size()); | 485 | 78 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 78 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 78 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 78 | col_right->get_element(0), vec_res); | 489 | | | 490 | 78 | block.replace_by_position(result, std::move(col_res)); | 491 | 78 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 78 | return Status::OK(); | 504 | 78 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 9.39k | const ColumnPtr& col_right_ptr) const { | 461 | 9.39k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 9.39k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 9.39k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 9.39k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 9.39k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 9.39k | if (!left_is_const && !right_is_const) { | 470 | 81 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 81 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 81 | vec_res.resize(col_left->get_data().size()); | 474 | 81 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 81 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 81 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 81 | vec_res); | 478 | | | 479 | 81 | block.replace_by_position(result, std::move(col_res)); | 480 | 9.31k | } else if (!left_is_const && right_is_const) { | 481 | 9.31k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 9.31k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 9.31k | vec_res.resize(col_left->size()); | 485 | 9.31k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 9.31k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 9.31k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 9.31k | col_right->get_element(0), vec_res); | 489 | | | 490 | 9.31k | block.replace_by_position(result, std::move(col_res)); | 491 | 9.31k | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 9.39k | return Status::OK(); | 504 | 9.39k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 592 | const ColumnPtr& col_right_ptr) const { | 461 | 592 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 592 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 592 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 592 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 592 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 592 | if (!left_is_const && !right_is_const) { | 470 | 38 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 38 | vec_res.resize(col_left->get_data().size()); | 474 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 38 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 38 | vec_res); | 478 | | | 479 | 38 | block.replace_by_position(result, std::move(col_res)); | 480 | 554 | } else if (!left_is_const && right_is_const) { | 481 | 554 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 554 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 554 | vec_res.resize(col_left->size()); | 485 | 554 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 554 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 554 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 554 | col_right->get_element(0), vec_res); | 489 | | | 490 | 554 | block.replace_by_position(result, std::move(col_res)); | 491 | 554 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 592 | return Status::OK(); | 504 | 592 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 46 | const ColumnPtr& col_right_ptr) const { | 461 | 46 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 46 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 46 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 46 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 46 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 46 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 46 | } else if (!left_is_const && right_is_const) { | 481 | 46 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 46 | vec_res.resize(col_left->size()); | 485 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 46 | col_right->get_element(0), vec_res); | 489 | | | 490 | 46 | block.replace_by_position(result, std::move(col_res)); | 491 | 46 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 46 | return Status::OK(); | 504 | 46 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 11 | const ColumnPtr& col_right_ptr) const { | 461 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 11 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 11 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 11 | return Status::OK(); | 504 | 11 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 202 | const ColumnPtr& col_right_ptr) const { | 461 | 202 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 202 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 202 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 202 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 202 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 202 | if (!left_is_const && !right_is_const) { | 470 | 80 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 80 | vec_res.resize(col_left->get_data().size()); | 474 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 80 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 80 | vec_res); | 478 | | | 479 | 80 | block.replace_by_position(result, std::move(col_res)); | 480 | 122 | } else if (!left_is_const && right_is_const) { | 481 | 122 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 122 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 122 | vec_res.resize(col_left->size()); | 485 | 122 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 122 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 122 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 122 | col_right->get_element(0), vec_res); | 489 | | | 490 | 122 | block.replace_by_position(result, std::move(col_res)); | 491 | 122 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 202 | return Status::OK(); | 504 | 202 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 140 | const ColumnPtr& col_right_ptr) const { | 461 | 140 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 140 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 140 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 140 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 140 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 140 | if (!left_is_const && !right_is_const) { | 470 | 23 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 23 | vec_res.resize(col_left->get_data().size()); | 474 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 23 | vec_res); | 478 | | | 479 | 23 | block.replace_by_position(result, std::move(col_res)); | 480 | 117 | } else if (!left_is_const && right_is_const) { | 481 | 117 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 117 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 117 | vec_res.resize(col_left->size()); | 485 | 117 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 117 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 117 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 117 | col_right->get_element(0), vec_res); | 489 | | | 490 | 117 | block.replace_by_position(result, std::move(col_res)); | 491 | 117 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 140 | return Status::OK(); | 504 | 140 | } |
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 | 460 | 92 | const ColumnPtr& col_right_ptr) const { | 461 | 92 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 92 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 92 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 92 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 92 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 92 | if (!left_is_const && !right_is_const) { | 470 | 92 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 92 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 92 | vec_res.resize(col_left->get_data().size()); | 474 | 92 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 92 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 92 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 92 | vec_res); | 478 | | | 479 | 92 | block.replace_by_position(result, std::move(col_res)); | 480 | 92 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 92 | return Status::OK(); | 504 | 92 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.19k | const ColumnPtr& col_right_ptr) const { | 461 | 2.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.19k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.19k | if (!left_is_const && !right_is_const) { | 470 | 1.73k | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1.73k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1.73k | vec_res.resize(col_left->get_data().size()); | 474 | 1.73k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1.73k | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1.73k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1.73k | vec_res); | 478 | | | 479 | 1.73k | block.replace_by_position(result, std::move(col_res)); | 480 | 1.73k | } else if (!left_is_const && right_is_const) { | 481 | 460 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 460 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 460 | vec_res.resize(col_left->size()); | 485 | 460 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 460 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 460 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 460 | col_right->get_element(0), vec_res); | 489 | | | 490 | 460 | block.replace_by_position(result, std::move(col_res)); | 491 | 18.4E | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2.19k | return Status::OK(); | 504 | 2.19k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 710 | const ColumnPtr& col_right_ptr) const { | 461 | 710 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 710 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 710 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 710 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 710 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 710 | if (!left_is_const && !right_is_const) { | 470 | 273 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 273 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 273 | vec_res.resize(col_left->get_data().size()); | 474 | 273 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 273 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 273 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 273 | vec_res); | 478 | | | 479 | 273 | block.replace_by_position(result, std::move(col_res)); | 480 | 437 | } else if (!left_is_const && right_is_const) { | 481 | 437 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 437 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 437 | vec_res.resize(col_left->size()); | 485 | 437 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 437 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 437 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 437 | col_right->get_element(0), vec_res); | 489 | | | 490 | 437 | block.replace_by_position(result, std::move(col_res)); | 491 | 437 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 710 | return Status::OK(); | 504 | 710 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2 | const ColumnPtr& col_right_ptr) const { | 461 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 1 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1 | vec_res.resize(col_left->size()); | 485 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1 | col_right->get_element(0), vec_res); | 489 | | | 490 | 1 | block.replace_by_position(result, std::move(col_res)); | 491 | 1 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 2 | return Status::OK(); | 504 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 2.19k | const ColumnPtr& col_right_ptr) const { | 461 | 2.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 2.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 2.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 2.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 2.19k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 2.19k | if (!left_is_const && !right_is_const) { | 470 | 146 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 146 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 146 | vec_res.resize(col_left->get_data().size()); | 474 | 146 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 146 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 146 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 146 | vec_res); | 478 | | | 479 | 146 | block.replace_by_position(result, std::move(col_res)); | 480 | 2.05k | } else if (!left_is_const && right_is_const) { | 481 | 1.78k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.78k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.78k | vec_res.resize(col_left->size()); | 485 | 1.78k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.78k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.78k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.78k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.78k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.78k | } else if (left_is_const && !right_is_const) { | 492 | 264 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 264 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 264 | vec_res.resize(col_right->size()); | 496 | 264 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 264 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 264 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 264 | col_right->get_data(), vec_res); | 500 | | | 501 | 264 | block.replace_by_position(result, std::move(col_res)); | 502 | 264 | } | 503 | 2.19k | return Status::OK(); | 504 | 2.19k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 272 | const ColumnPtr& col_right_ptr) const { | 461 | 272 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 272 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 272 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 272 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 272 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 272 | if (!left_is_const && !right_is_const) { | 470 | 128 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 128 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 128 | vec_res.resize(col_left->get_data().size()); | 474 | 128 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 128 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 128 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 128 | vec_res); | 478 | | | 479 | 128 | block.replace_by_position(result, std::move(col_res)); | 480 | 144 | } else if (!left_is_const && right_is_const) { | 481 | 144 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 144 | vec_res.resize(col_left->size()); | 485 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 144 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 144 | col_right->get_element(0), vec_res); | 489 | | | 490 | 144 | block.replace_by_position(result, std::move(col_res)); | 491 | 144 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 272 | return Status::OK(); | 504 | 272 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 3.19k | const ColumnPtr& col_right_ptr) const { | 461 | 3.19k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 3.19k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 3.19k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 3.19k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 3.19k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 3.19k | if (!left_is_const && !right_is_const) { | 470 | 155 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 155 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 155 | vec_res.resize(col_left->get_data().size()); | 474 | 155 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 155 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 155 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 155 | vec_res); | 478 | | | 479 | 155 | block.replace_by_position(result, std::move(col_res)); | 480 | 3.03k | } else if (!left_is_const && right_is_const) { | 481 | 2.91k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2.91k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2.91k | vec_res.resize(col_left->size()); | 485 | 2.91k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2.91k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2.91k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2.91k | col_right->get_element(0), vec_res); | 489 | | | 490 | 2.91k | block.replace_by_position(result, std::move(col_res)); | 491 | 2.91k | } else if (left_is_const && !right_is_const) { | 492 | 119 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 119 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 119 | vec_res.resize(col_right->size()); | 496 | 119 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 119 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 119 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 119 | col_right->get_data(), vec_res); | 500 | | | 501 | 119 | block.replace_by_position(result, std::move(col_res)); | 502 | 119 | } | 503 | 3.19k | return Status::OK(); | 504 | 3.19k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1.73k | const ColumnPtr& col_right_ptr) const { | 461 | 1.73k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1.73k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1.73k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1.73k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1.73k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1.73k | if (!left_is_const && !right_is_const) { | 470 | 221 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 221 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 221 | vec_res.resize(col_left->get_data().size()); | 474 | 221 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 221 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 221 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 221 | vec_res); | 478 | | | 479 | 221 | block.replace_by_position(result, std::move(col_res)); | 480 | 1.51k | } else if (!left_is_const && right_is_const) { | 481 | 1.43k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 1.43k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 1.43k | vec_res.resize(col_left->size()); | 485 | 1.43k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 1.43k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 1.43k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 1.43k | col_right->get_element(0), vec_res); | 489 | | | 490 | 1.43k | block.replace_by_position(result, std::move(col_res)); | 491 | 1.43k | } else if (left_is_const && !right_is_const) { | 492 | 80 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 80 | vec_res.resize(col_right->size()); | 496 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 80 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 80 | col_right->get_data(), vec_res); | 500 | | | 501 | 80 | block.replace_by_position(result, std::move(col_res)); | 502 | 80 | } | 503 | 1.73k | return Status::OK(); | 504 | 1.73k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 309 | const ColumnPtr& col_right_ptr) const { | 461 | 309 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 309 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 309 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 309 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 309 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 309 | if (!left_is_const && !right_is_const) { | 470 | 158 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 158 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 158 | vec_res.resize(col_left->get_data().size()); | 474 | 158 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 158 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 158 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 158 | vec_res); | 478 | | | 479 | 158 | block.replace_by_position(result, std::move(col_res)); | 480 | 158 | } else if (!left_is_const && right_is_const) { | 481 | 96 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 96 | vec_res.resize(col_left->size()); | 485 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 96 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 96 | col_right->get_element(0), vec_res); | 489 | | | 490 | 96 | block.replace_by_position(result, std::move(col_res)); | 491 | 96 | } else if (left_is_const && !right_is_const) { | 492 | 56 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 56 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 56 | vec_res.resize(col_right->size()); | 496 | 56 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 56 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 56 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 56 | col_right->get_data(), vec_res); | 500 | | | 501 | 56 | block.replace_by_position(result, std::move(col_res)); | 502 | 56 | } | 503 | 309 | return Status::OK(); | 504 | 309 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18 | const ColumnPtr& col_right_ptr) const { | 461 | 18 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18 | if (!left_is_const && !right_is_const) { | 470 | 16 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 16 | vec_res.resize(col_left->get_data().size()); | 474 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 16 | vec_res); | 478 | | | 479 | 16 | block.replace_by_position(result, std::move(col_res)); | 480 | 16 | } else if (!left_is_const && right_is_const) { | 481 | 2 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 2 | vec_res.resize(col_left->size()); | 485 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 2 | col_right->get_element(0), vec_res); | 489 | | | 490 | 2 | block.replace_by_position(result, std::move(col_res)); | 491 | 2 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 18 | return Status::OK(); | 504 | 18 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 16 | const ColumnPtr& col_right_ptr) const { | 461 | 16 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 16 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 16 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 16 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 16 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 16 | if (!left_is_const && !right_is_const) { | 470 | 16 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 16 | vec_res.resize(col_left->get_data().size()); | 474 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 16 | vec_res); | 478 | | | 479 | 16 | block.replace_by_position(result, std::move(col_res)); | 480 | 16 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 16 | return Status::OK(); | 504 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 169 | const ColumnPtr& col_right_ptr) const { | 461 | 169 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 169 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 169 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 169 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 169 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 169 | if (!left_is_const && !right_is_const) { | 470 | 141 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 141 | vec_res.resize(col_left->get_data().size()); | 474 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 141 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 141 | vec_res); | 478 | | | 479 | 141 | block.replace_by_position(result, std::move(col_res)); | 480 | 141 | } else if (!left_is_const && right_is_const) { | 481 | 28 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 28 | vec_res.resize(col_left->size()); | 485 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 28 | col_right->get_element(0), vec_res); | 489 | | | 490 | 28 | block.replace_by_position(result, std::move(col_res)); | 491 | 28 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 169 | return Status::OK(); | 504 | 169 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 357 | const ColumnPtr& col_right_ptr) const { | 461 | 357 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 357 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 357 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 357 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 357 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 357 | if (!left_is_const && !right_is_const) { | 470 | 151 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 151 | vec_res.resize(col_left->get_data().size()); | 474 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 151 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 151 | vec_res); | 478 | | | 479 | 151 | block.replace_by_position(result, std::move(col_res)); | 480 | 206 | } else if (!left_is_const && right_is_const) { | 481 | 206 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 206 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 206 | vec_res.resize(col_left->size()); | 485 | 206 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 206 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 206 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 206 | col_right->get_element(0), vec_res); | 489 | | | 490 | 206 | block.replace_by_position(result, std::move(col_res)); | 491 | 206 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 357 | return Status::OK(); | 504 | 357 | } |
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 | 460 | 152 | const ColumnPtr& col_right_ptr) const { | 461 | 152 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 152 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 152 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 152 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 152 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 152 | if (!left_is_const && !right_is_const) { | 470 | 42 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 42 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 42 | vec_res.resize(col_left->get_data().size()); | 474 | 42 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 42 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 42 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 42 | vec_res); | 478 | | | 479 | 42 | block.replace_by_position(result, std::move(col_res)); | 480 | 110 | } else if (!left_is_const && right_is_const) { | 481 | 110 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 110 | vec_res.resize(col_left->size()); | 485 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 110 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 110 | col_right->get_element(0), vec_res); | 489 | | | 490 | 110 | block.replace_by_position(result, std::move(col_res)); | 491 | 110 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 152 | return Status::OK(); | 504 | 152 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 6.72k | const ColumnPtr& col_right_ptr) const { | 461 | 6.72k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 6.72k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 6.72k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 6.72k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 6.72k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 6.72k | if (!left_is_const && !right_is_const) { | 470 | 469 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 469 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 469 | vec_res.resize(col_left->get_data().size()); | 474 | 469 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 469 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 469 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 469 | vec_res); | 478 | | | 479 | 469 | block.replace_by_position(result, std::move(col_res)); | 480 | 6.25k | } else if (!left_is_const && right_is_const) { | 481 | 6.25k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 6.25k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 6.25k | vec_res.resize(col_left->size()); | 485 | 6.25k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 6.25k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 6.25k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 6.25k | col_right->get_element(0), vec_res); | 489 | | | 490 | 6.25k | block.replace_by_position(result, std::move(col_res)); | 491 | 6.25k | } else if (left_is_const && !right_is_const) { | 492 | 5 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 5 | vec_res.resize(col_right->size()); | 496 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 5 | col_right->get_data(), vec_res); | 500 | | | 501 | 5 | block.replace_by_position(result, std::move(col_res)); | 502 | 5 | } | 503 | 6.72k | return Status::OK(); | 504 | 6.72k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 381 | const ColumnPtr& col_right_ptr) const { | 461 | 381 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 381 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 381 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 381 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 381 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 381 | if (!left_is_const && !right_is_const) { | 470 | 90 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 90 | vec_res.resize(col_left->get_data().size()); | 474 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 90 | vec_res); | 478 | | | 479 | 90 | block.replace_by_position(result, std::move(col_res)); | 480 | 291 | } else if (!left_is_const && right_is_const) { | 481 | 291 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 291 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 291 | vec_res.resize(col_left->size()); | 485 | 291 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 291 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 291 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 291 | col_right->get_element(0), vec_res); | 489 | | | 490 | 291 | block.replace_by_position(result, std::move(col_res)); | 491 | 291 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 381 | return Status::OK(); | 504 | 381 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 1 | const ColumnPtr& col_right_ptr) const { | 461 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 1 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 1 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 1 | } else if (!left_is_const && right_is_const) { | 481 | 0 | auto col_res = ColumnUInt8::create(); | 482 | |
| 483 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 0 | vec_res.resize(col_left->size()); | 485 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 0 | col_right->get_element(0), vec_res); | 489 | |
| 490 | 0 | block.replace_by_position(result, std::move(col_res)); | 491 | 0 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 1 | return Status::OK(); | 504 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 80 | const ColumnPtr& col_right_ptr) const { | 461 | 80 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 80 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 80 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 80 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 80 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 80 | if (!left_is_const && !right_is_const) { | 470 | 1 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 1 | vec_res.resize(col_left->get_data().size()); | 474 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 1 | vec_res); | 478 | | | 479 | 1 | block.replace_by_position(result, std::move(col_res)); | 480 | 79 | } else if (!left_is_const && right_is_const) { | 481 | 79 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 79 | vec_res.resize(col_left->size()); | 485 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 79 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 79 | col_right->get_element(0), vec_res); | 489 | | | 490 | 79 | block.replace_by_position(result, std::move(col_res)); | 491 | 79 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 80 | return Status::OK(); | 504 | 80 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 90 | const ColumnPtr& col_right_ptr) const { | 461 | 90 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 90 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 90 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 90 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 90 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 90 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 90 | } else if (!left_is_const && right_is_const) { | 481 | 90 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 90 | vec_res.resize(col_left->size()); | 485 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 90 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 90 | col_right->get_element(0), vec_res); | 489 | | | 490 | 90 | block.replace_by_position(result, std::move(col_res)); | 491 | 90 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 90 | return Status::OK(); | 504 | 90 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 18.0k | const ColumnPtr& col_right_ptr) const { | 461 | 18.0k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 18.0k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 18.0k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 18.0k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 18.0k | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 18.0k | if (!left_is_const && !right_is_const) { | 470 | 70 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 70 | vec_res.resize(col_left->get_data().size()); | 474 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 70 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 70 | vec_res); | 478 | | | 479 | 70 | block.replace_by_position(result, std::move(col_res)); | 480 | 17.9k | } else if (!left_is_const && right_is_const) { | 481 | 17.5k | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 17.5k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 17.5k | vec_res.resize(col_left->size()); | 485 | 17.5k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 17.5k | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 17.5k | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 17.5k | col_right->get_element(0), vec_res); | 489 | | | 490 | 17.5k | block.replace_by_position(result, std::move(col_res)); | 491 | 17.5k | } else if (left_is_const && !right_is_const) { | 492 | 412 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 412 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 412 | vec_res.resize(col_right->size()); | 496 | 412 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 412 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 412 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 412 | col_right->get_data(), vec_res); | 500 | | | 501 | 412 | block.replace_by_position(result, std::move(col_res)); | 502 | 412 | } | 503 | 18.0k | return Status::OK(); | 504 | 18.0k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 930 | const ColumnPtr& col_right_ptr) const { | 461 | 930 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 930 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 930 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 930 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 930 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 930 | if (!left_is_const && !right_is_const) { | 470 | 99 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 99 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 99 | vec_res.resize(col_left->get_data().size()); | 474 | 99 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 99 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 99 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 99 | vec_res); | 478 | | | 479 | 99 | block.replace_by_position(result, std::move(col_res)); | 480 | 831 | } else if (!left_is_const && right_is_const) { | 481 | 783 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 783 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 783 | vec_res.resize(col_left->size()); | 485 | 783 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 783 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 783 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 783 | col_right->get_element(0), vec_res); | 489 | | | 490 | 783 | block.replace_by_position(result, std::move(col_res)); | 491 | 783 | } else if (left_is_const && !right_is_const) { | 492 | 48 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 48 | vec_res.resize(col_right->size()); | 496 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 48 | col_right->get_data(), vec_res); | 500 | | | 501 | 48 | block.replace_by_position(result, std::move(col_res)); | 502 | 48 | } | 503 | 930 | return Status::OK(); | 504 | 930 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 51 | const ColumnPtr& col_right_ptr) const { | 461 | 51 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 51 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 51 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 51 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 51 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 51 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 51 | } else if (!left_is_const && right_is_const) { | 481 | 51 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 51 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 51 | vec_res.resize(col_left->size()); | 485 | 51 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 51 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 51 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 51 | col_right->get_element(0), vec_res); | 489 | | | 490 | 51 | block.replace_by_position(result, std::move(col_res)); | 491 | 51 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 51 | return Status::OK(); | 504 | 51 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 10 | const ColumnPtr& col_right_ptr) const { | 461 | 10 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 10 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 10 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 10 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 10 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 10 | if (!left_is_const && !right_is_const) { | 470 | 0 | auto col_res = ColumnUInt8::create(); | 471 | |
| 472 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 0 | vec_res.resize(col_left->get_data().size()); | 474 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 0 | vec_res); | 478 | |
| 479 | 0 | block.replace_by_position(result, std::move(col_res)); | 480 | 10 | } else if (!left_is_const && right_is_const) { | 481 | 10 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 10 | vec_res.resize(col_left->size()); | 485 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 10 | col_right->get_element(0), vec_res); | 489 | | | 490 | 10 | block.replace_by_position(result, std::move(col_res)); | 491 | 10 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 10 | return Status::OK(); | 504 | 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 | 460 | 198 | const ColumnPtr& col_right_ptr) const { | 461 | 198 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 198 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 198 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 198 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 198 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 198 | if (!left_is_const && !right_is_const) { | 470 | 80 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 80 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 80 | vec_res.resize(col_left->get_data().size()); | 474 | 80 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 80 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 80 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 80 | vec_res); | 478 | | | 479 | 80 | block.replace_by_position(result, std::move(col_res)); | 480 | 118 | } else if (!left_is_const && right_is_const) { | 481 | 118 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 118 | vec_res.resize(col_left->size()); | 485 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 118 | col_right->get_element(0), vec_res); | 489 | | | 490 | 118 | block.replace_by_position(result, std::move(col_res)); | 491 | 118 | } else if (left_is_const && !right_is_const) { | 492 | 0 | auto col_res = ColumnUInt8::create(); | 493 | |
| 494 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 0 | vec_res.resize(col_right->size()); | 496 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 0 | col_right->get_data(), vec_res); | 500 | |
| 501 | 0 | block.replace_by_position(result, std::move(col_res)); | 502 | 0 | } | 503 | 198 | return Status::OK(); | 504 | 198 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 460 | 145 | const ColumnPtr& col_right_ptr) const { | 461 | 145 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 462 | 145 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 463 | | | 464 | 145 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 465 | 145 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 466 | | | 467 | 145 | DCHECK(!(left_is_const && right_is_const)); | 468 | | | 469 | 145 | if (!left_is_const && !right_is_const) { | 470 | 20 | auto col_res = ColumnUInt8::create(); | 471 | | | 472 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 473 | 20 | vec_res.resize(col_left->get_data().size()); | 474 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 475 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 476 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 477 | 20 | vec_res); | 478 | | | 479 | 20 | block.replace_by_position(result, std::move(col_res)); | 480 | 125 | } else if (!left_is_const && right_is_const) { | 481 | 124 | auto col_res = ColumnUInt8::create(); | 482 | | | 483 | 124 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 484 | 124 | vec_res.resize(col_left->size()); | 485 | 124 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 486 | 124 | typename PrimitiveTypeTraits<PT>::CppType, | 487 | 124 | Op<PT>>::vector_constant(col_left->get_data(), | 488 | 124 | col_right->get_element(0), vec_res); | 489 | | | 490 | 124 | block.replace_by_position(result, std::move(col_res)); | 491 | 124 | } else if (left_is_const && !right_is_const) { | 492 | 1 | auto col_res = ColumnUInt8::create(); | 493 | | | 494 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 495 | 1 | vec_res.resize(col_right->size()); | 496 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 497 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 498 | 1 | Op<PT>>::constant_vector(col_left->get_element(0), | 499 | 1 | col_right->get_data(), vec_res); | 500 | | | 501 | 1 | block.replace_by_position(result, std::move(col_res)); | 502 | 1 | } | 503 | 145 | return Status::OK(); | 504 | 145 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
505 | | |
506 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
507 | 13.1k | const ColumnWithTypeAndName& col_right) const { |
508 | 13.1k | auto call = [&](const auto& type) -> bool { |
509 | 13.1k | using DispatchType = std::decay_t<decltype(type)>; |
510 | 13.1k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
511 | 13.1k | block, result, col_left, col_right); |
512 | 13.1k | return true; |
513 | 13.1k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 285 | auto call = [&](const auto& type) -> bool { | 509 | 285 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 285 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 285 | block, result, col_left, col_right); | 512 | 285 | return true; | 513 | 285 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 284 | auto call = [&](const auto& type) -> bool { | 509 | 284 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 284 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 284 | block, result, col_left, col_right); | 512 | 284 | return true; | 513 | 284 | }; |
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 | 508 | 1.20k | auto call = [&](const auto& type) -> bool { | 509 | 1.20k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.20k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.20k | block, result, col_left, col_right); | 512 | 1.20k | return true; | 513 | 1.20k | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 34 | auto call = [&](const auto& type) -> bool { | 509 | 34 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 34 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 34 | block, result, col_left, col_right); | 512 | 34 | return true; | 513 | 34 | }; |
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 | 508 | 62 | auto call = [&](const auto& type) -> bool { | 509 | 62 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 62 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 62 | block, result, col_left, col_right); | 512 | 62 | return true; | 513 | 62 | }; |
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 | 508 | 324 | auto call = [&](const auto& type) -> bool { | 509 | 324 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 324 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 324 | block, result, col_left, col_right); | 512 | 324 | return true; | 513 | 324 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 30 | auto call = [&](const auto& type) -> bool { | 509 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 30 | block, result, col_left, col_right); | 512 | 30 | return true; | 513 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 46 | auto call = [&](const auto& type) -> bool { | 509 | 46 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 46 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 46 | block, result, col_left, col_right); | 512 | 46 | return true; | 513 | 46 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 5.03k | auto call = [&](const auto& type) -> bool { | 509 | 5.03k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 5.03k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 5.03k | block, result, col_left, col_right); | 512 | 5.03k | return true; | 513 | 5.03k | }; |
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 | 508 | 1.42k | auto call = [&](const auto& type) -> bool { | 509 | 1.42k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.42k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.42k | block, result, col_left, col_right); | 512 | 1.42k | return true; | 513 | 1.42k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 2 | auto call = [&](const auto& type) -> bool { | 509 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 2 | block, result, col_left, col_right); | 512 | 2 | return true; | 513 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 12 | auto call = [&](const auto& type) -> bool { | 509 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 12 | block, result, col_left, col_right); | 512 | 12 | return true; | 513 | 12 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 272 | auto call = [&](const auto& type) -> bool { | 509 | 272 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 272 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 272 | block, result, col_left, col_right); | 512 | 272 | return true; | 513 | 272 | }; |
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 | 508 | 59 | auto call = [&](const auto& type) -> bool { | 509 | 59 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 59 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 59 | block, result, col_left, col_right); | 512 | 59 | return true; | 513 | 59 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 21 | auto call = [&](const auto& type) -> bool { | 509 | 21 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 21 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 21 | block, result, col_left, col_right); | 512 | 21 | return true; | 513 | 21 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 210 | auto call = [&](const auto& type) -> bool { | 509 | 210 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 210 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 210 | block, result, col_left, col_right); | 512 | 210 | return true; | 513 | 210 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 247 | auto call = [&](const auto& type) -> bool { | 509 | 247 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 247 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 247 | block, result, col_left, col_right); | 512 | 247 | return true; | 513 | 247 | }; |
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 | 508 | 480 | auto call = [&](const auto& type) -> bool { | 509 | 480 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 480 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 480 | block, result, col_left, col_right); | 512 | 480 | return true; | 513 | 480 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 1 | auto call = [&](const auto& type) -> bool { | 509 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1 | block, result, col_left, col_right); | 512 | 1 | return true; | 513 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 508 | 7 | auto call = [&](const auto& type) -> bool { | 509 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 7 | block, result, col_left, col_right); | 512 | 7 | return true; | 513 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 508 | 2.17k | auto call = [&](const auto& type) -> bool { | 509 | 2.17k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 2.17k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 2.17k | block, result, col_left, col_right); | 512 | 2.17k | return true; | 513 | 2.17k | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 508 | 911 | auto call = [&](const auto& type) -> bool { | 509 | 911 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 911 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 911 | block, result, col_left, col_right); | 512 | 911 | return true; | 513 | 911 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 508 | 16 | auto call = [&](const auto& type) -> bool { | 509 | 16 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 16 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 16 | block, result, col_left, col_right); | 512 | 16 | return true; | 513 | 16 | }; |
|
514 | | |
515 | 13.1k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
516 | 0 | return Status::RuntimeError( |
517 | 0 | "type of left column {} is not equal to type of right column {}", |
518 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
519 | 0 | } |
520 | | |
521 | 13.1k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
523 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
524 | 0 | } |
525 | 13.1k | return Status::OK(); |
526 | 13.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 1.81k | const ColumnWithTypeAndName& col_right) const { | 508 | 1.81k | auto call = [&](const auto& type) -> bool { | 509 | 1.81k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 1.81k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 1.81k | block, result, col_left, col_right); | 512 | 1.81k | return true; | 513 | 1.81k | }; | 514 | | | 515 | 1.81k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 1.81k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 1.81k | return Status::OK(); | 526 | 1.81k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 416 | const ColumnWithTypeAndName& col_right) const { | 508 | 416 | auto call = [&](const auto& type) -> bool { | 509 | 416 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 416 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 416 | block, result, col_left, col_right); | 512 | 416 | return true; | 513 | 416 | }; | 514 | | | 515 | 416 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 416 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 416 | return Status::OK(); | 526 | 416 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 6.50k | const ColumnWithTypeAndName& col_right) const { | 508 | 6.50k | auto call = [&](const auto& type) -> bool { | 509 | 6.50k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 6.50k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 6.50k | block, result, col_left, col_right); | 512 | 6.50k | return true; | 513 | 6.50k | }; | 514 | | | 515 | 6.50k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 6.50k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 6.50k | return Status::OK(); | 526 | 6.50k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 364 | const ColumnWithTypeAndName& col_right) const { | 508 | 364 | auto call = [&](const auto& type) -> bool { | 509 | 364 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 364 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 364 | block, result, col_left, col_right); | 512 | 364 | return true; | 513 | 364 | }; | 514 | | | 515 | 364 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 364 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 364 | return Status::OK(); | 526 | 364 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 934 | const ColumnWithTypeAndName& col_right) const { | 508 | 934 | auto call = [&](const auto& type) -> bool { | 509 | 934 | using DispatchType = std::decay_t<decltype(type)>; | 510 | 934 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 934 | block, result, col_left, col_right); | 512 | 934 | return true; | 513 | 934 | }; | 514 | | | 515 | 934 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 934 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 934 | return Status::OK(); | 526 | 934 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 507 | 3.10k | const ColumnWithTypeAndName& col_right) const { | 508 | 3.10k | auto call = [&](const auto& type) -> bool { | 509 | 3.10k | using DispatchType = std::decay_t<decltype(type)>; | 510 | 3.10k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 511 | 3.10k | block, result, col_left, col_right); | 512 | 3.10k | return true; | 513 | 3.10k | }; | 514 | | | 515 | 3.10k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 516 | 0 | return Status::RuntimeError( | 517 | 0 | "type of left column {} is not equal to type of right column {}", | 518 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 519 | 0 | } | 520 | | | 521 | 3.10k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 522 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 523 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 524 | 0 | } | 525 | 3.10k | return Status::OK(); | 526 | 3.10k | } |
|
527 | | |
528 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
529 | 29.7k | const IColumn* c1) const { |
530 | 29.7k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
531 | 29.7k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
532 | 29.7k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
533 | 29.7k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
534 | 29.7k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
536 | 0 | c0->get_name(), c1->get_name(), name); |
537 | 0 | } |
538 | 29.7k | DCHECK(!(c0_const && c1_const)); |
539 | 29.7k | const ColumnString::Chars* c0_const_chars = nullptr; |
540 | 29.7k | const ColumnString::Chars* c1_const_chars = nullptr; |
541 | 29.7k | ColumnString::Offset c0_const_size = 0; |
542 | 29.7k | ColumnString::Offset c1_const_size = 0; |
543 | | |
544 | 29.7k | if (c0_const) { |
545 | 6 | const ColumnString* c0_const_string = |
546 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
547 | | |
548 | 6 | if (c0_const_string) { |
549 | 6 | c0_const_chars = &c0_const_string->get_chars(); |
550 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; |
551 | 6 | } else { |
552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
553 | 0 | c0->get_name(), name); |
554 | 0 | } |
555 | 6 | } |
556 | | |
557 | 29.7k | if (c1_const) { |
558 | 26.4k | const ColumnString* c1_const_string = |
559 | 26.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
560 | | |
561 | 26.4k | if (c1_const_string) { |
562 | 26.4k | c1_const_chars = &c1_const_string->get_chars(); |
563 | 26.4k | c1_const_size = c1_const_string->get_offsets()[0]; |
564 | 26.4k | } else { |
565 | 2 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
566 | 2 | c1->get_name(), name); |
567 | 2 | } |
568 | 26.4k | } |
569 | | |
570 | 29.7k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
571 | | |
572 | 29.7k | auto c_res = ColumnUInt8::create(); |
573 | 29.7k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
574 | 29.7k | vec_res.resize(c0->size()); |
575 | | |
576 | 29.7k | if (c0_string && c1_string) { |
577 | 3.31k | StringImpl::string_vector_string_vector( |
578 | 3.31k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
579 | 3.31k | c1_string->get_offsets(), vec_res); |
580 | 26.4k | } else if (c0_string && c1_const) { |
581 | 26.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
582 | 26.4k | *c1_const_chars, c1_const_size, vec_res); |
583 | 18.4E | } else if (c0_const && c1_string) { |
584 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
585 | 6 | c1_string->get_chars(), c1_string->get_offsets(), |
586 | 6 | vec_res); |
587 | 18.4E | } else { |
588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
589 | 18.4E | c0->get_name(), c1->get_name(), name); |
590 | 18.4E | } |
591 | 29.7k | block.replace_by_position(result, std::move(c_res)); |
592 | 29.7k | return Status::OK(); |
593 | 29.7k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 25.0k | const IColumn* c1) const { | 530 | 25.0k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 25.0k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 25.0k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 25.0k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 25.0k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 25.0k | DCHECK(!(c0_const && c1_const)); | 539 | 25.0k | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 25.0k | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 25.0k | ColumnString::Offset c0_const_size = 0; | 542 | 25.0k | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 25.0k | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 25.0k | if (c1_const) { | 558 | 22.4k | const ColumnString* c1_const_string = | 559 | 22.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 22.4k | if (c1_const_string) { | 562 | 22.4k | c1_const_chars = &c1_const_string->get_chars(); | 563 | 22.4k | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 22.4k | } else { | 565 | 2 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 2 | c1->get_name(), name); | 567 | 2 | } | 568 | 22.4k | } | 569 | | | 570 | 25.0k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 25.0k | auto c_res = ColumnUInt8::create(); | 573 | 25.0k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 25.0k | vec_res.resize(c0->size()); | 575 | | | 576 | 25.0k | if (c0_string && c1_string) { | 577 | 2.55k | StringImpl::string_vector_string_vector( | 578 | 2.55k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 2.55k | c1_string->get_offsets(), vec_res); | 580 | 22.4k | } else if (c0_string && c1_const) { | 581 | 22.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 22.4k | *c1_const_chars, c1_const_size, vec_res); | 583 | 18.4E | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 18.4E | } else { | 588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 18.4E | c0->get_name(), c1->get_name(), name); | 590 | 18.4E | } | 591 | 25.0k | block.replace_by_position(result, std::move(c_res)); | 592 | 25.0k | return Status::OK(); | 593 | 25.0k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 2.51k | const IColumn* c1) const { | 530 | 2.51k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 2.51k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 2.51k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 2.51k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 2.51k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 2.51k | DCHECK(!(c0_const && c1_const)); | 539 | 2.51k | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 2.51k | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 2.51k | ColumnString::Offset c0_const_size = 0; | 542 | 2.51k | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 2.51k | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 2.51k | if (c1_const) { | 558 | 2.45k | const ColumnString* c1_const_string = | 559 | 2.45k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 2.45k | if (c1_const_string) { | 562 | 2.45k | c1_const_chars = &c1_const_string->get_chars(); | 563 | 2.45k | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 2.45k | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 2.45k | } | 569 | | | 570 | 2.51k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 2.51k | auto c_res = ColumnUInt8::create(); | 573 | 2.51k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 2.51k | vec_res.resize(c0->size()); | 575 | | | 576 | 2.51k | if (c0_string && c1_string) { | 577 | 52 | StringImpl::string_vector_string_vector( | 578 | 52 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 52 | c1_string->get_offsets(), vec_res); | 580 | 2.45k | } else if (c0_string && c1_const) { | 581 | 2.45k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 2.45k | *c1_const_chars, c1_const_size, vec_res); | 583 | 2.45k | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 2.51k | block.replace_by_position(result, std::move(c_res)); | 592 | 2.51k | return Status::OK(); | 593 | 2.51k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 175 | const IColumn* c1) const { | 530 | 175 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 175 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 175 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 175 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 175 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 175 | DCHECK(!(c0_const && c1_const)); | 539 | 175 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 175 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 175 | ColumnString::Offset c0_const_size = 0; | 542 | 175 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 175 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 175 | if (c1_const) { | 558 | 173 | const ColumnString* c1_const_string = | 559 | 173 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 173 | if (c1_const_string) { | 562 | 173 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 173 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 173 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 173 | } | 569 | | | 570 | 175 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 175 | auto c_res = ColumnUInt8::create(); | 573 | 175 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 175 | vec_res.resize(c0->size()); | 575 | | | 576 | 175 | if (c0_string && c1_string) { | 577 | 2 | StringImpl::string_vector_string_vector( | 578 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 2 | c1_string->get_offsets(), vec_res); | 580 | 173 | } else if (c0_string && c1_const) { | 581 | 173 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 173 | *c1_const_chars, c1_const_size, vec_res); | 583 | 173 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 175 | block.replace_by_position(result, std::move(c_res)); | 592 | 175 | return Status::OK(); | 593 | 175 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 590 | const IColumn* c1) const { | 530 | 590 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 590 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 590 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 590 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 590 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 590 | DCHECK(!(c0_const && c1_const)); | 539 | 590 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 590 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 590 | ColumnString::Offset c0_const_size = 0; | 542 | 590 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 590 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 590 | if (c1_const) { | 558 | 468 | const ColumnString* c1_const_string = | 559 | 468 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 468 | if (c1_const_string) { | 562 | 468 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 468 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 468 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 468 | } | 569 | | | 570 | 590 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 590 | auto c_res = ColumnUInt8::create(); | 573 | 590 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 590 | vec_res.resize(c0->size()); | 575 | | | 576 | 590 | if (c0_string && c1_string) { | 577 | 122 | StringImpl::string_vector_string_vector( | 578 | 122 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 122 | c1_string->get_offsets(), vec_res); | 580 | 468 | } else if (c0_string && c1_const) { | 581 | 468 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 468 | *c1_const_chars, c1_const_size, vec_res); | 583 | 468 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 590 | block.replace_by_position(result, std::move(c_res)); | 592 | 590 | return Status::OK(); | 593 | 590 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 619 | const IColumn* c1) const { | 530 | 619 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 619 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 619 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 619 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 621 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 619 | DCHECK(!(c0_const && c1_const)); | 539 | 619 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 619 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 619 | ColumnString::Offset c0_const_size = 0; | 542 | 619 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 619 | if (c0_const) { | 545 | 6 | const ColumnString* c0_const_string = | 546 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | | | 548 | 6 | if (c0_const_string) { | 549 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 6 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 6 | } | 556 | | | 557 | 619 | if (c1_const) { | 558 | 200 | const ColumnString* c1_const_string = | 559 | 200 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 200 | if (c1_const_string) { | 562 | 200 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 200 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 200 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 200 | } | 569 | | | 570 | 619 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 619 | auto c_res = ColumnUInt8::create(); | 573 | 619 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 619 | vec_res.resize(c0->size()); | 575 | | | 576 | 619 | if (c0_string && c1_string) { | 577 | 415 | StringImpl::string_vector_string_vector( | 578 | 415 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 415 | c1_string->get_offsets(), vec_res); | 580 | 415 | } else if (c0_string && c1_const) { | 581 | 200 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 200 | *c1_const_chars, c1_const_size, vec_res); | 583 | 200 | } else if (c0_const && c1_string) { | 584 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 6 | vec_res); | 587 | 18.4E | } else { | 588 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 18.4E | c0->get_name(), c1->get_name(), name); | 590 | 18.4E | } | 591 | 621 | block.replace_by_position(result, std::move(c_res)); | 592 | 621 | return Status::OK(); | 593 | 619 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 529 | 848 | const IColumn* c1) const { | 530 | 848 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 531 | 848 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 532 | 848 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 533 | 848 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 534 | 848 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 535 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 536 | 0 | c0->get_name(), c1->get_name(), name); | 537 | 0 | } | 538 | 848 | DCHECK(!(c0_const && c1_const)); | 539 | 848 | const ColumnString::Chars* c0_const_chars = nullptr; | 540 | 848 | const ColumnString::Chars* c1_const_chars = nullptr; | 541 | 848 | ColumnString::Offset c0_const_size = 0; | 542 | 848 | ColumnString::Offset c1_const_size = 0; | 543 | | | 544 | 848 | if (c0_const) { | 545 | 0 | const ColumnString* c0_const_string = | 546 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 547 | |
| 548 | 0 | if (c0_const_string) { | 549 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 550 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 551 | 0 | } else { | 552 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 553 | 0 | c0->get_name(), name); | 554 | 0 | } | 555 | 0 | } | 556 | | | 557 | 848 | if (c1_const) { | 558 | 678 | const ColumnString* c1_const_string = | 559 | 678 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 560 | | | 561 | 678 | if (c1_const_string) { | 562 | 678 | c1_const_chars = &c1_const_string->get_chars(); | 563 | 678 | c1_const_size = c1_const_string->get_offsets()[0]; | 564 | 678 | } else { | 565 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 566 | 0 | c1->get_name(), name); | 567 | 0 | } | 568 | 678 | } | 569 | | | 570 | 848 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 571 | | | 572 | 848 | auto c_res = ColumnUInt8::create(); | 573 | 848 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 574 | 848 | vec_res.resize(c0->size()); | 575 | | | 576 | 848 | if (c0_string && c1_string) { | 577 | 170 | StringImpl::string_vector_string_vector( | 578 | 170 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 579 | 170 | c1_string->get_offsets(), vec_res); | 580 | 678 | } else if (c0_string && c1_const) { | 581 | 678 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 582 | 678 | *c1_const_chars, c1_const_size, vec_res); | 583 | 678 | } else if (c0_const && c1_string) { | 584 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 585 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 586 | 0 | vec_res); | 587 | 0 | } else { | 588 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 589 | 0 | c0->get_name(), c1->get_name(), name); | 590 | 0 | } | 591 | 848 | block.replace_by_position(result, std::move(c_res)); | 592 | 848 | return Status::OK(); | 593 | 848 | } |
|
594 | | |
595 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
596 | 171 | const IColumn* c1) const { |
597 | 171 | bool c0_const = is_column_const(*c0); |
598 | 171 | bool c1_const = is_column_const(*c1); |
599 | | |
600 | 171 | DCHECK(!(c0_const && c1_const)); |
601 | | |
602 | 171 | auto c_res = ColumnUInt8::create(); |
603 | 171 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
604 | 171 | vec_res.resize(c0->size()); |
605 | | |
606 | 171 | if (c0_const) { |
607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
608 | 171 | } else if (c1_const) { |
609 | 162 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
610 | 162 | } else { |
611 | 9 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
612 | 9 | } |
613 | | |
614 | 171 | block.replace_by_position(result, std::move(c_res)); |
615 | 171 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 17 | const IColumn* c1) const { | 597 | 17 | bool c0_const = is_column_const(*c0); | 598 | 17 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 17 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 17 | auto c_res = ColumnUInt8::create(); | 603 | 17 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 17 | vec_res.resize(c0->size()); | 605 | | | 606 | 17 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 17 | } else if (c1_const) { | 609 | 13 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 13 | } else { | 611 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 4 | } | 613 | | | 614 | 17 | block.replace_by_position(result, std::move(c_res)); | 615 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 8 | const IColumn* c1) const { | 597 | 8 | bool c0_const = is_column_const(*c0); | 598 | 8 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 8 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 8 | auto c_res = ColumnUInt8::create(); | 603 | 8 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 8 | vec_res.resize(c0->size()); | 605 | | | 606 | 8 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 8 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 0 | } | 613 | | | 614 | 8 | block.replace_by_position(result, std::move(c_res)); | 615 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 9 | const IColumn* c1) const { | 597 | 9 | bool c0_const = is_column_const(*c0); | 598 | 9 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 9 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 9 | auto c_res = ColumnUInt8::create(); | 603 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 9 | vec_res.resize(c0->size()); | 605 | | | 606 | 9 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 9 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 1 | } | 613 | | | 614 | 9 | block.replace_by_position(result, std::move(c_res)); | 615 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 76 | const IColumn* c1) const { | 597 | 76 | bool c0_const = is_column_const(*c0); | 598 | 76 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 76 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 76 | auto c_res = ColumnUInt8::create(); | 603 | 76 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 76 | vec_res.resize(c0->size()); | 605 | | | 606 | 76 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 76 | } else if (c1_const) { | 609 | 75 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 75 | } else { | 611 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 1 | } | 613 | | | 614 | 76 | block.replace_by_position(result, std::move(c_res)); | 615 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 11 | const IColumn* c1) const { | 597 | 11 | bool c0_const = is_column_const(*c0); | 598 | 11 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 11 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 11 | auto c_res = ColumnUInt8::create(); | 603 | 11 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 11 | vec_res.resize(c0->size()); | 605 | | | 606 | 11 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 11 | } else if (c1_const) { | 609 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 8 | } else { | 611 | 3 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 3 | } | 613 | | | 614 | 11 | block.replace_by_position(result, std::move(c_res)); | 615 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 596 | 50 | const IColumn* c1) const { | 597 | 50 | bool c0_const = is_column_const(*c0); | 598 | 50 | bool c1_const = is_column_const(*c1); | 599 | | | 600 | 50 | DCHECK(!(c0_const && c1_const)); | 601 | | | 602 | 50 | auto c_res = ColumnUInt8::create(); | 603 | 50 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 604 | 50 | vec_res.resize(c0->size()); | 605 | | | 606 | 50 | if (c0_const) { | 607 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 608 | 50 | } else if (c1_const) { | 609 | 50 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 610 | 50 | } else { | 611 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 612 | 0 | } | 613 | | | 614 | 50 | block.replace_by_position(result, std::move(c_res)); | 615 | 50 | } |
|
616 | | |
617 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
618 | 171 | const ColumnWithTypeAndName& c1) const { |
619 | 171 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
620 | 171 | return Status::OK(); |
621 | 171 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 17 | const ColumnWithTypeAndName& c1) const { | 619 | 17 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 17 | return Status::OK(); | 621 | 17 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 8 | const ColumnWithTypeAndName& c1) const { | 619 | 8 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 8 | return Status::OK(); | 621 | 8 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 9 | const ColumnWithTypeAndName& c1) const { | 619 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 9 | return Status::OK(); | 621 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 76 | const ColumnWithTypeAndName& c1) const { | 619 | 76 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 76 | return Status::OK(); | 621 | 76 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 11 | const ColumnWithTypeAndName& c1) const { | 619 | 11 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 11 | return Status::OK(); | 621 | 11 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 618 | 50 | const ColumnWithTypeAndName& c1) const { | 619 | 50 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 620 | 50 | return Status::OK(); | 621 | 50 | } |
|
622 | | |
623 | | public: |
624 | 218 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 63 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 34 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 38 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 81 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 1 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 624 | 1 | String get_name() const override { return name; } |
|
625 | | |
626 | 578k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 485k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 2.77k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 626 | 43.0k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 15.5k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 626 | 4.62k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 626 | 26.7k | size_t get_number_of_arguments() const override { return 2; } |
|
627 | | |
628 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
629 | 35.5k | const VExprSPtrs& arguments) const override { |
630 | 35.5k | auto op = comparison_zonemap_detail::op_from_name(name); |
631 | 35.5k | DORIS_CHECK(op.has_value()); |
632 | 35.5k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
633 | 35.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 9.49k | const VExprSPtrs& arguments) const override { | 630 | 9.49k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 9.49k | DORIS_CHECK(op.has_value()); | 632 | 9.49k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 9.49k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 1.16k | const VExprSPtrs& arguments) const override { | 630 | 1.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 1.16k | DORIS_CHECK(op.has_value()); | 632 | 1.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 5.12k | const VExprSPtrs& arguments) const override { | 630 | 5.12k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 5.12k | DORIS_CHECK(op.has_value()); | 632 | 5.12k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 5.12k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 6.97k | const VExprSPtrs& arguments) const override { | 630 | 6.97k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 6.97k | DORIS_CHECK(op.has_value()); | 632 | 6.97k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 6.97k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 3.13k | const VExprSPtrs& arguments) const override { | 630 | 3.13k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 3.13k | DORIS_CHECK(op.has_value()); | 632 | 3.13k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 3.13k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 629 | 9.65k | const VExprSPtrs& arguments) const override { | 630 | 9.65k | auto op = comparison_zonemap_detail::op_from_name(name); | 631 | 9.65k | DORIS_CHECK(op.has_value()); | 632 | 9.65k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 633 | 9.65k | } |
|
634 | | |
635 | 115k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
636 | 115k | return comparison_zonemap_detail::op_from_name(name).has_value() && |
637 | 115k | comparison_zonemap_detail::can_evaluate(arguments); |
638 | 115k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 46.2k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 46.2k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 46.2k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 46.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 4.57k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 4.57k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 4.57k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 4.57k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 17.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 17.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 17.8k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 17.8k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 16.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 16.9k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 16.9k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 16.9k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 9.54k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 9.54k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 9.54k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 9.54k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 635 | 19.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 636 | 19.8k | return comparison_zonemap_detail::op_from_name(name).has_value() && | 637 | 19.8k | comparison_zonemap_detail::can_evaluate(arguments); | 638 | 19.8k | } |
|
639 | | |
640 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
641 | 660 | const VExprSPtrs& arguments) const override { |
642 | 660 | auto op = comparison_zonemap_detail::op_from_name(name); |
643 | 660 | DORIS_CHECK(op.has_value()); |
644 | 660 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
645 | 660 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 622 | const VExprSPtrs& arguments) const override { | 642 | 622 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 622 | DORIS_CHECK(op.has_value()); | 644 | 622 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 622 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 4 | const VExprSPtrs& arguments) const override { | 642 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 4 | DORIS_CHECK(op.has_value()); | 644 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 3 | const VExprSPtrs& arguments) const override { | 642 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 3 | DORIS_CHECK(op.has_value()); | 644 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 3 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 16 | const VExprSPtrs& arguments) const override { | 642 | 16 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 16 | DORIS_CHECK(op.has_value()); | 644 | 16 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 16 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 7 | const VExprSPtrs& arguments) const override { | 642 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 7 | DORIS_CHECK(op.has_value()); | 644 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 7 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 641 | 8 | const VExprSPtrs& arguments) const override { | 642 | 8 | auto op = comparison_zonemap_detail::op_from_name(name); | 643 | 8 | DORIS_CHECK(op.has_value()); | 644 | 8 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 645 | 8 | } |
|
646 | | |
647 | 17.0k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
648 | 17.0k | auto op = comparison_zonemap_detail::op_from_name(name); |
649 | 17.0k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
650 | 17.0k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 8.18k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 8.18k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 8.18k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 8.18k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 909 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 909 | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 909 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 909 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 3.20k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 3.20k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 3.20k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 3.20k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 2.09k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 2.09k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 2.09k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 2.09k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 1.19k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 1.19k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 1.19k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 1.19k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 647 | 1.45k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 648 | 1.45k | auto op = comparison_zonemap_detail::op_from_name(name); | 649 | 1.45k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 650 | 1.45k | } |
|
651 | | |
652 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
653 | 14 | const VExprSPtrs& arguments) const override { |
654 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
655 | 14 | DORIS_CHECK(op.has_value()); |
656 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
657 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 653 | 14 | const VExprSPtrs& arguments) const override { | 654 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); | 655 | 14 | DORIS_CHECK(op.has_value()); | 656 | 14 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 657 | 14 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
658 | | |
659 | 8.58k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
660 | 8.58k | auto op = comparison_zonemap_detail::op_from_name(name); |
661 | 8.58k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); |
662 | 8.58k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 4.85k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 4.85k | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 4.85k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 4.85k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 695 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 695 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 695 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 695 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 1.72k | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 1.72k | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 1.72k | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 1.72k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 524 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 524 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 524 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 524 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 541 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 541 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 541 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 541 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 659 | 248 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 660 | 248 | auto op = comparison_zonemap_detail::op_from_name(name); | 661 | 248 | return op.has_value() && comparison_zonemap_detail::can_evaluate_equality(arguments, *op); | 662 | 248 | } |
|
663 | | |
664 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
665 | 578k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
666 | 578k | return std::make_shared<DataTypeUInt8>(); |
667 | 578k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 485k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 485k | return std::make_shared<DataTypeUInt8>(); | 667 | 485k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 2.78k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 2.78k | return std::make_shared<DataTypeUInt8>(); | 667 | 2.78k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 43.1k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 43.1k | return std::make_shared<DataTypeUInt8>(); | 667 | 43.1k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 15.5k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 15.5k | return std::make_shared<DataTypeUInt8>(); | 667 | 15.5k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 4.62k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 4.62k | return std::make_shared<DataTypeUInt8>(); | 667 | 4.62k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 665 | 26.8k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 666 | 26.8k | return std::make_shared<DataTypeUInt8>(); | 667 | 26.8k | } |
|
668 | | |
669 | | Status evaluate_inverted_index( |
670 | | const ColumnsWithTypeAndName& arguments, |
671 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
672 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
673 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
674 | 1.34k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
675 | 1.34k | DCHECK(arguments.size() == 1); |
676 | 1.34k | DCHECK(data_type_with_names.size() == 1); |
677 | 1.34k | DCHECK(iterators.size() == 1); |
678 | 1.34k | auto* iter = iterators[0]; |
679 | 1.34k | auto data_type_with_name = data_type_with_names[0]; |
680 | 1.34k | if (iter == nullptr) { |
681 | 0 | return Status::OK(); |
682 | 0 | } |
683 | 1.34k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
684 | 304 | return Status::OK(); |
685 | 304 | } |
686 | 1.04k | segment_v2::InvertedIndexQueryType query_type; |
687 | 1.04k | std::string_view name_view(name); |
688 | 1.04k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
689 | 723 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
690 | 723 | } else if (name_view == NameLess::name) { |
691 | 79 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
692 | 238 | } else if (name_view == NameLessOrEquals::name) { |
693 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
694 | 157 | } else if (name_view == NameGreater::name) { |
695 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
696 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
697 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
698 | 18.4E | } else { |
699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
700 | 18.4E | } |
701 | | |
702 | 1.04k | if (segment_v2::is_range_query(query_type) && |
703 | 1.04k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
705 | 133 | return Status::OK(); |
706 | 133 | } |
707 | 916 | Field param_value; |
708 | 916 | arguments[0].column->get(0, param_value); |
709 | 916 | if (param_value.is_null()) { |
710 | 2 | return Status::OK(); |
711 | 2 | } |
712 | 914 | segment_v2::InvertedIndexParam param; |
713 | 914 | param.column_name = data_type_with_name.first; |
714 | 914 | param.column_type = data_type_with_name.second; |
715 | 914 | param.query_value = param_value; |
716 | 914 | param.query_type = query_type; |
717 | 914 | param.num_rows = num_rows; |
718 | 914 | param.roaring = std::make_shared<roaring::Roaring>(); |
719 | 914 | param.analyzer_ctx = analyzer_ctx; |
720 | 914 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
721 | 756 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
722 | 756 | if (iter->has_null()) { |
723 | 754 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
724 | 754 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
725 | 754 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
726 | 754 | } |
727 | 756 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
728 | 756 | bitmap_result = result; |
729 | 756 | bitmap_result.mask_out_null(); |
730 | | |
731 | 756 | if (name_view == NameNotEquals::name) { |
732 | 59 | roaring::Roaring full_result; |
733 | 59 | full_result.addRange(0, num_rows); |
734 | 59 | bitmap_result.op_not(&full_result); |
735 | 59 | } |
736 | | |
737 | 756 | return Status::OK(); |
738 | 756 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 689 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 689 | DCHECK(arguments.size() == 1); | 676 | 689 | DCHECK(data_type_with_names.size() == 1); | 677 | 689 | DCHECK(iterators.size() == 1); | 678 | 689 | auto* iter = iterators[0]; | 679 | 689 | auto data_type_with_name = data_type_with_names[0]; | 680 | 689 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 689 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 36 | return Status::OK(); | 685 | 36 | } | 686 | 653 | segment_v2::InvertedIndexQueryType query_type; | 687 | 653 | std::string_view name_view(name); | 688 | 657 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 657 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 18.4E | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 18.4E | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 657 | if (segment_v2::is_range_query(query_type) && | 703 | 657 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 657 | Field param_value; | 708 | 657 | arguments[0].column->get(0, param_value); | 709 | 657 | if (param_value.is_null()) { | 710 | 2 | return Status::OK(); | 711 | 2 | } | 712 | 655 | segment_v2::InvertedIndexParam param; | 713 | 655 | param.column_name = data_type_with_name.first; | 714 | 655 | param.column_type = data_type_with_name.second; | 715 | 655 | param.query_value = param_value; | 716 | 655 | param.query_type = query_type; | 717 | 655 | param.num_rows = num_rows; | 718 | 655 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 655 | param.analyzer_ctx = analyzer_ctx; | 720 | 655 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 605 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 605 | if (iter->has_null()) { | 723 | 604 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 604 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 604 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 604 | } | 727 | 605 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 605 | bitmap_result = result; | 729 | 605 | bitmap_result.mask_out_null(); | 730 | | | 731 | 605 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 605 | return Status::OK(); | 738 | 605 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 71 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 71 | DCHECK(arguments.size() == 1); | 676 | 71 | DCHECK(data_type_with_names.size() == 1); | 677 | 71 | DCHECK(iterators.size() == 1); | 678 | 71 | auto* iter = iterators[0]; | 679 | 71 | auto data_type_with_name = data_type_with_names[0]; | 680 | 71 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 71 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 6 | return Status::OK(); | 685 | 6 | } | 686 | 65 | segment_v2::InvertedIndexQueryType query_type; | 687 | 65 | std::string_view name_view(name); | 688 | 66 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 66 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 18.4E | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 18.4E | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 66 | if (segment_v2::is_range_query(query_type) && | 703 | 66 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 0 | return Status::OK(); | 706 | 0 | } | 707 | 66 | Field param_value; | 708 | 66 | arguments[0].column->get(0, param_value); | 709 | 66 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 66 | segment_v2::InvertedIndexParam param; | 713 | 66 | param.column_name = data_type_with_name.first; | 714 | 66 | param.column_type = data_type_with_name.second; | 715 | 66 | param.query_value = param_value; | 716 | 66 | param.query_type = query_type; | 717 | 66 | param.num_rows = num_rows; | 718 | 66 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 66 | param.analyzer_ctx = analyzer_ctx; | 720 | 66 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 59 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 59 | if (iter->has_null()) { | 723 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 58 | } | 727 | 59 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 59 | bitmap_result = result; | 729 | 59 | bitmap_result.mask_out_null(); | 730 | | | 731 | 59 | if (name_view == NameNotEquals::name) { | 732 | 59 | roaring::Roaring full_result; | 733 | 59 | full_result.addRange(0, num_rows); | 734 | 59 | bitmap_result.op_not(&full_result); | 735 | 59 | } | 736 | | | 737 | 59 | return Status::OK(); | 738 | 59 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 111 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 111 | DCHECK(arguments.size() == 1); | 676 | 111 | DCHECK(data_type_with_names.size() == 1); | 677 | 111 | DCHECK(iterators.size() == 1); | 678 | 111 | auto* iter = iterators[0]; | 679 | 111 | auto data_type_with_name = data_type_with_names[0]; | 680 | 111 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 111 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 39 | return Status::OK(); | 685 | 39 | } | 686 | 72 | segment_v2::InvertedIndexQueryType query_type; | 687 | 72 | std::string_view name_view(name); | 688 | 73 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 72 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 72 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 73 | } else if (name_view == NameGreater::name) { | 695 | 73 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 73 | if (segment_v2::is_range_query(query_type) && | 703 | 73 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 17 | return Status::OK(); | 706 | 17 | } | 707 | 56 | Field param_value; | 708 | 56 | arguments[0].column->get(0, param_value); | 709 | 56 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 56 | segment_v2::InvertedIndexParam param; | 713 | 56 | param.column_name = data_type_with_name.first; | 714 | 56 | param.column_type = data_type_with_name.second; | 715 | 56 | param.query_value = param_value; | 716 | 56 | param.query_type = query_type; | 717 | 56 | param.num_rows = num_rows; | 718 | 56 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 56 | param.analyzer_ctx = analyzer_ctx; | 720 | 56 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 37 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 37 | if (iter->has_null()) { | 723 | 37 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 37 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 37 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 37 | } | 727 | 37 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 37 | bitmap_result = result; | 729 | 37 | bitmap_result.mask_out_null(); | 730 | | | 731 | 37 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 37 | return Status::OK(); | 738 | 37 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 178 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 178 | DCHECK(arguments.size() == 1); | 676 | 178 | DCHECK(data_type_with_names.size() == 1); | 677 | 178 | DCHECK(iterators.size() == 1); | 678 | 178 | auto* iter = iterators[0]; | 679 | 178 | auto data_type_with_name = data_type_with_names[0]; | 680 | 178 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 178 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 86 | return Status::OK(); | 685 | 86 | } | 686 | 92 | segment_v2::InvertedIndexQueryType query_type; | 687 | 92 | std::string_view name_view(name); | 688 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 92 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 92 | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 92 | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 93 | if (segment_v2::is_range_query(query_type) && | 703 | 93 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 47 | return Status::OK(); | 706 | 47 | } | 707 | 46 | Field param_value; | 708 | 46 | arguments[0].column->get(0, param_value); | 709 | 46 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 46 | segment_v2::InvertedIndexParam param; | 713 | 46 | param.column_name = data_type_with_name.first; | 714 | 46 | param.column_type = data_type_with_name.second; | 715 | 46 | param.query_value = param_value; | 716 | 46 | param.query_type = query_type; | 717 | 46 | param.num_rows = num_rows; | 718 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 46 | param.analyzer_ctx = analyzer_ctx; | 720 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 5 | if (iter->has_null()) { | 723 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 5 | } | 727 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 5 | bitmap_result = result; | 729 | 5 | bitmap_result.mask_out_null(); | 730 | | | 731 | 5 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 5 | return Status::OK(); | 738 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 121 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 121 | DCHECK(arguments.size() == 1); | 676 | 121 | DCHECK(data_type_with_names.size() == 1); | 677 | 121 | DCHECK(iterators.size() == 1); | 678 | 121 | auto* iter = iterators[0]; | 679 | 121 | auto data_type_with_name = data_type_with_names[0]; | 680 | 121 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 121 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 43 | return Status::OK(); | 685 | 43 | } | 686 | 78 | segment_v2::InvertedIndexQueryType query_type; | 687 | 78 | std::string_view name_view(name); | 688 | 79 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 79 | } else if (name_view == NameLess::name) { | 691 | 79 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 693 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 18.4E | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 79 | if (segment_v2::is_range_query(query_type) && | 703 | 79 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 18 | return Status::OK(); | 706 | 18 | } | 707 | 61 | Field param_value; | 708 | 61 | arguments[0].column->get(0, param_value); | 709 | 61 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 61 | segment_v2::InvertedIndexParam param; | 713 | 61 | param.column_name = data_type_with_name.first; | 714 | 61 | param.column_type = data_type_with_name.second; | 715 | 61 | param.query_value = param_value; | 716 | 61 | param.query_type = query_type; | 717 | 61 | param.num_rows = num_rows; | 718 | 61 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 61 | param.analyzer_ctx = analyzer_ctx; | 720 | 61 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 41 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 41 | if (iter->has_null()) { | 723 | 41 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 41 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 41 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 41 | } | 727 | 41 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 41 | bitmap_result = result; | 729 | 41 | bitmap_result.mask_out_null(); | 730 | | | 731 | 41 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 41 | return Status::OK(); | 738 | 41 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 674 | 174 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 675 | 174 | DCHECK(arguments.size() == 1); | 676 | 174 | DCHECK(data_type_with_names.size() == 1); | 677 | 174 | DCHECK(iterators.size() == 1); | 678 | 174 | auto* iter = iterators[0]; | 679 | 174 | auto data_type_with_name = data_type_with_names[0]; | 680 | 174 | if (iter == nullptr) { | 681 | 0 | return Status::OK(); | 682 | 0 | } | 683 | 174 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 684 | 94 | return Status::OK(); | 685 | 94 | } | 686 | 80 | segment_v2::InvertedIndexQueryType query_type; | 687 | 80 | std::string_view name_view(name); | 688 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 689 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 690 | 80 | } else if (name_view == NameLess::name) { | 691 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 692 | 81 | } else if (name_view == NameLessOrEquals::name) { | 693 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 694 | 18.4E | } else if (name_view == NameGreater::name) { | 695 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 696 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 697 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 698 | 18.4E | } else { | 699 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 700 | 18.4E | } | 701 | | | 702 | 81 | if (segment_v2::is_range_query(query_type) && | 703 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 704 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 705 | 51 | return Status::OK(); | 706 | 51 | } | 707 | 30 | Field param_value; | 708 | 30 | arguments[0].column->get(0, param_value); | 709 | 30 | if (param_value.is_null()) { | 710 | 0 | return Status::OK(); | 711 | 0 | } | 712 | 30 | segment_v2::InvertedIndexParam param; | 713 | 30 | param.column_name = data_type_with_name.first; | 714 | 30 | param.column_type = data_type_with_name.second; | 715 | 30 | param.query_value = param_value; | 716 | 30 | param.query_type = query_type; | 717 | 30 | param.num_rows = num_rows; | 718 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 719 | 30 | param.analyzer_ctx = analyzer_ctx; | 720 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 721 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 722 | 9 | if (iter->has_null()) { | 723 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 724 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 725 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 726 | 9 | } | 727 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 728 | 9 | bitmap_result = result; | 729 | 9 | bitmap_result.mask_out_null(); | 730 | | | 731 | 9 | if (name_view == NameNotEquals::name) { | 732 | 0 | roaring::Roaring full_result; | 733 | 0 | full_result.addRange(0, num_rows); | 734 | 0 | bitmap_result.op_not(&full_result); | 735 | 0 | } | 736 | | | 737 | 9 | return Status::OK(); | 738 | 9 | } |
|
739 | | |
740 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
741 | 177k | uint32_t result, size_t input_rows_count) const override { |
742 | 177k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
743 | 177k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
744 | | |
745 | 177k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
746 | 177k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
747 | 177k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
748 | 177k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
749 | | |
750 | 177k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
751 | 177k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
752 | | |
753 | | /// The case when arguments are the same (tautological comparison). Return constant. |
754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
756 | 177k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
757 | 177k | col_left_untyped == col_right_untyped) { |
758 | | /// Always true: =, <=, >= |
759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
763 | 0 | block.get_by_position(result).column = |
764 | 0 | DataTypeUInt8() |
765 | 0 | .create_column_const(input_rows_count, |
766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) |
767 | 0 | ->convert_to_full_column_if_const(); |
768 | 0 | return Status::OK(); |
769 | 0 | } else { |
770 | 0 | block.get_by_position(result).column = |
771 | 0 | DataTypeUInt8() |
772 | 0 | .create_column_const(input_rows_count, |
773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
774 | 0 | ->convert_to_full_column_if_const(); |
775 | 0 | return Status::OK(); |
776 | 0 | } |
777 | 0 | } |
778 | | |
779 | 312k | auto can_compare = [](PrimitiveType t) -> bool { |
780 | 312k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); |
781 | 312k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 102k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 102k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 102k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 14.6k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 14.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 14.6k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 85.2k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 85.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 85.2k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 28.6k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 28.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 28.6k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 24.0k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 24.0k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 24.0k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 779 | 57.6k | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 57.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 57.6k | }; |
|
782 | | |
783 | 177k | if (can_compare(left_type->get_primitive_type()) && |
784 | 177k | can_compare(right_type->get_primitive_type())) { |
785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
786 | 134k | if (!left_type->equals_ignore_precision(*right_type)) { |
787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
788 | 0 | get_name(), left_type->get_name(), |
789 | 0 | right_type->get_name()); |
790 | 0 | } |
791 | 134k | } |
792 | | |
793 | 177k | auto compare_type = left_type->get_primitive_type(); |
794 | 177k | switch (compare_type) { |
795 | 1.95k | case TYPE_BOOLEAN: |
796 | 1.95k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
797 | 14.2k | case TYPE_DATEV2: |
798 | 14.2k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
799 | 2.77k | case TYPE_DATETIMEV2: |
800 | 2.77k | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
801 | 7 | case TYPE_TIMESTAMPTZ: |
802 | 7 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
803 | 9.30k | case TYPE_TINYINT: |
804 | 9.30k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
805 | 3.04k | case TYPE_SMALLINT: |
806 | 3.04k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
807 | 59.1k | case TYPE_INT: |
808 | 59.1k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
809 | 38.2k | case TYPE_BIGINT: |
810 | 38.2k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
811 | 831 | case TYPE_LARGEINT: |
812 | 831 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
813 | 75 | case TYPE_IPV4: |
814 | 75 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
815 | 48 | case TYPE_IPV6: |
816 | 48 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
817 | 962 | case TYPE_FLOAT: |
818 | 962 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
819 | 3.91k | case TYPE_DOUBLE: |
820 | 3.91k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
821 | 4 | case TYPE_TIMEV2: |
822 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
823 | 0 | case TYPE_DECIMALV2: |
824 | 560 | case TYPE_DECIMAL32: |
825 | 8.62k | case TYPE_DECIMAL64: |
826 | 13.0k | case TYPE_DECIMAL128I: |
827 | 13.1k | case TYPE_DECIMAL256: |
828 | 13.1k | return execute_decimal(block, result, col_with_type_and_name_left, |
829 | 13.1k | col_with_type_and_name_right); |
830 | 1.21k | case TYPE_CHAR: |
831 | 10.5k | case TYPE_VARCHAR: |
832 | 29.7k | case TYPE_STRING: |
833 | 29.7k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
834 | 171 | default: |
835 | 171 | return execute_generic(block, result, col_with_type_and_name_left, |
836 | 171 | col_with_type_and_name_right); |
837 | 177k | } |
838 | 0 | return Status::OK(); |
839 | 177k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 64.4k | uint32_t result, size_t input_rows_count) const override { | 742 | 64.4k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 64.4k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 64.4k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 64.4k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 64.4k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 64.4k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 64.4k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 64.4k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 64.4k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 64.4k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 64.4k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 64.4k | }; | 782 | | | 783 | 64.4k | if (can_compare(left_type->get_primitive_type()) && | 784 | 64.4k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 37.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 37.6k | } | 792 | | | 793 | 64.4k | auto compare_type = left_type->get_primitive_type(); | 794 | 64.4k | switch (compare_type) { | 795 | 1.56k | case TYPE_BOOLEAN: | 796 | 1.56k | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 1.71k | case TYPE_DATEV2: | 798 | 1.71k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 713 | case TYPE_DATETIMEV2: | 800 | 713 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 2 | case TYPE_TIMESTAMPTZ: | 802 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 5.60k | case TYPE_TINYINT: | 804 | 5.60k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 791 | case TYPE_SMALLINT: | 806 | 791 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 7.87k | case TYPE_INT: | 808 | 7.87k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 18.0k | case TYPE_BIGINT: | 810 | 18.0k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 167 | case TYPE_LARGEINT: | 812 | 167 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 32 | case TYPE_IPV4: | 814 | 32 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 30 | case TYPE_IPV6: | 816 | 30 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 109 | case TYPE_FLOAT: | 818 | 109 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 985 | case TYPE_DOUBLE: | 820 | 985 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 4 | case TYPE_TIMEV2: | 822 | 4 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 285 | case TYPE_DECIMAL32: | 825 | 569 | case TYPE_DECIMAL64: | 826 | 1.77k | case TYPE_DECIMAL128I: | 827 | 1.81k | case TYPE_DECIMAL256: | 828 | 1.81k | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 1.81k | col_with_type_and_name_right); | 830 | 897 | case TYPE_CHAR: | 831 | 9.11k | case TYPE_VARCHAR: | 832 | 25.0k | case TYPE_STRING: | 833 | 25.0k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 17 | default: | 835 | 17 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 17 | col_with_type_and_name_right); | 837 | 64.4k | } | 838 | 0 | return Status::OK(); | 839 | 64.4k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 8.78k | uint32_t result, size_t input_rows_count) const override { | 742 | 8.78k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 8.78k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 8.78k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 8.78k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 8.78k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 8.78k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 8.78k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 8.78k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 8.78k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 8.78k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 8.78k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 8.78k | }; | 782 | | | 783 | 8.78k | if (can_compare(left_type->get_primitive_type()) && | 784 | 8.78k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 5.84k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 5.84k | } | 792 | | | 793 | 8.78k | auto compare_type = left_type->get_primitive_type(); | 794 | 8.78k | switch (compare_type) { | 795 | 0 | case TYPE_BOOLEAN: | 796 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 82 | case TYPE_DATEV2: | 798 | 82 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 4 | case TYPE_DATETIMEV2: | 800 | 4 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 0 | case TYPE_TIMESTAMPTZ: | 802 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 100 | case TYPE_TINYINT: | 804 | 100 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 10 | case TYPE_SMALLINT: | 806 | 10 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 2.45k | case TYPE_INT: | 808 | 2.45k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 3.08k | case TYPE_BIGINT: | 810 | 3.08k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 0 | case TYPE_LARGEINT: | 812 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 0 | case TYPE_IPV4: | 814 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 0 | case TYPE_IPV6: | 816 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 48 | case TYPE_FLOAT: | 818 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 60 | case TYPE_DOUBLE: | 820 | 60 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 0 | case TYPE_DECIMAL32: | 825 | 62 | case TYPE_DECIMAL64: | 826 | 386 | case TYPE_DECIMAL128I: | 827 | 416 | case TYPE_DECIMAL256: | 828 | 416 | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 416 | col_with_type_and_name_right); | 830 | 9 | case TYPE_CHAR: | 831 | 300 | case TYPE_VARCHAR: | 832 | 2.51k | case TYPE_STRING: | 833 | 2.51k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 8 | default: | 835 | 8 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 8 | col_with_type_and_name_right); | 837 | 8.78k | } | 838 | 0 | return Status::OK(); | 839 | 8.78k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 45.9k | uint32_t result, size_t input_rows_count) const override { | 742 | 45.9k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 45.9k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 45.9k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 45.9k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 45.9k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 45.9k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 45.9k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 45.9k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 45.9k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 45.9k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 45.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 45.9k | }; | 782 | | | 783 | 45.9k | if (can_compare(left_type->get_primitive_type()) && | 784 | 45.9k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 39.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 39.2k | } | 792 | | | 793 | 45.9k | auto compare_type = left_type->get_primitive_type(); | 794 | 45.9k | switch (compare_type) { | 795 | 0 | case TYPE_BOOLEAN: | 796 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 1.33k | case TYPE_DATEV2: | 798 | 1.33k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 102 | case TYPE_DATETIMEV2: | 800 | 102 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 1 | case TYPE_TIMESTAMPTZ: | 802 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 1.24k | case TYPE_TINYINT: | 804 | 1.24k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 1.80k | case TYPE_SMALLINT: | 806 | 1.80k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 18.2k | case TYPE_INT: | 808 | 18.2k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 13.8k | case TYPE_BIGINT: | 810 | 13.8k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 257 | case TYPE_LARGEINT: | 812 | 257 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 4 | case TYPE_IPV4: | 814 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 1 | case TYPE_IPV6: | 816 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 236 | case TYPE_FLOAT: | 818 | 236 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 2.22k | case TYPE_DOUBLE: | 820 | 2.22k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 46 | case TYPE_DECIMAL32: | 825 | 5.07k | case TYPE_DECIMAL64: | 826 | 6.49k | case TYPE_DECIMAL128I: | 827 | 6.50k | case TYPE_DECIMAL256: | 828 | 6.50k | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 6.50k | col_with_type_and_name_right); | 830 | 14 | case TYPE_CHAR: | 831 | 76 | case TYPE_VARCHAR: | 832 | 175 | case TYPE_STRING: | 833 | 175 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 9 | default: | 835 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 9 | col_with_type_and_name_right); | 837 | 45.9k | } | 838 | 0 | return Status::OK(); | 839 | 45.9k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 14.7k | uint32_t result, size_t input_rows_count) const override { | 742 | 14.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 14.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 14.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 14.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 14.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 14.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 14.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 14.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 14.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 14.7k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 14.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 14.7k | }; | 782 | | | 783 | 14.7k | if (can_compare(left_type->get_primitive_type()) && | 784 | 14.7k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 13.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 13.8k | } | 792 | | | 793 | 14.7k | auto compare_type = left_type->get_primitive_type(); | 794 | 14.7k | switch (compare_type) { | 795 | 146 | case TYPE_BOOLEAN: | 796 | 146 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 2.20k | case TYPE_DATEV2: | 798 | 2.20k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 862 | case TYPE_DATETIMEV2: | 800 | 862 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 1 | case TYPE_TIMESTAMPTZ: | 802 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 79 | case TYPE_TINYINT: | 804 | 79 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 78 | case TYPE_SMALLINT: | 806 | 78 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 9.39k | case TYPE_INT: | 808 | 9.39k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 592 | case TYPE_BIGINT: | 810 | 592 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 46 | case TYPE_LARGEINT: | 812 | 46 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 11 | case TYPE_IPV4: | 814 | 11 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 1 | case TYPE_IPV6: | 816 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 202 | case TYPE_FLOAT: | 818 | 202 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 140 | case TYPE_DOUBLE: | 820 | 140 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 12 | case TYPE_DECIMAL32: | 825 | 284 | case TYPE_DECIMAL64: | 826 | 343 | case TYPE_DECIMAL128I: | 827 | 364 | case TYPE_DECIMAL256: | 828 | 364 | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 364 | col_with_type_and_name_right); | 830 | 26 | case TYPE_CHAR: | 831 | 277 | case TYPE_VARCHAR: | 832 | 590 | case TYPE_STRING: | 833 | 590 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 76 | default: | 835 | 76 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 76 | col_with_type_and_name_right); | 837 | 14.7k | } | 838 | 0 | return Status::OK(); | 839 | 14.7k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 12.8k | uint32_t result, size_t input_rows_count) const override { | 742 | 12.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 12.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 12.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 12.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 12.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 12.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 12.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 12.8k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 12.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 12.8k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | | block.get_by_position(result).column = | 764 | | DataTypeUInt8() | 765 | | .create_column_const(input_rows_count, | 766 | | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | | ->convert_to_full_column_if_const(); | 768 | | return Status::OK(); | 769 | 0 | } else { | 770 | 0 | block.get_by_position(result).column = | 771 | 0 | DataTypeUInt8() | 772 | 0 | .create_column_const(input_rows_count, | 773 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | 0 | ->convert_to_full_column_if_const(); | 775 | 0 | return Status::OK(); | 776 | 0 | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 12.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 12.8k | }; | 782 | | | 783 | 12.8k | if (can_compare(left_type->get_primitive_type()) && | 784 | 12.8k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 11.2k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 11.2k | } | 792 | | | 793 | 12.8k | auto compare_type = left_type->get_primitive_type(); | 794 | 12.8k | switch (compare_type) { | 795 | 92 | case TYPE_BOOLEAN: | 796 | 92 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 2.19k | case TYPE_DATEV2: | 798 | 2.19k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 710 | case TYPE_DATETIMEV2: | 800 | 710 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 2 | case TYPE_TIMESTAMPTZ: | 802 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 2.19k | case TYPE_TINYINT: | 804 | 2.19k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 272 | case TYPE_SMALLINT: | 806 | 272 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 3.19k | case TYPE_INT: | 808 | 3.19k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 1.73k | case TYPE_BIGINT: | 810 | 1.73k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 310 | case TYPE_LARGEINT: | 812 | 310 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 18 | case TYPE_IPV4: | 814 | 18 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 16 | case TYPE_IPV6: | 816 | 16 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 169 | case TYPE_FLOAT: | 818 | 169 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 357 | case TYPE_DOUBLE: | 820 | 357 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 210 | case TYPE_DECIMAL32: | 825 | 457 | case TYPE_DECIMAL64: | 826 | 937 | case TYPE_DECIMAL128I: | 827 | 938 | case TYPE_DECIMAL256: | 828 | 938 | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 938 | col_with_type_and_name_right); | 830 | 177 | case TYPE_CHAR: | 831 | 348 | case TYPE_VARCHAR: | 832 | 621 | case TYPE_STRING: | 833 | 621 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 11 | default: | 835 | 11 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 11 | col_with_type_and_name_right); | 837 | 12.8k | } | 838 | 0 | return Status::OK(); | 839 | 12.8k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 741 | 30.7k | uint32_t result, size_t input_rows_count) const override { | 742 | 30.7k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 743 | 30.7k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 744 | | | 745 | 30.7k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 746 | 30.7k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 747 | 30.7k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 748 | 30.7k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 749 | | | 750 | 30.7k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 751 | 30.7k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 752 | | | 753 | | /// The case when arguments are the same (tautological comparison). Return constant. | 754 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 755 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 756 | 30.7k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 757 | 30.7k | col_left_untyped == col_right_untyped) { | 758 | | /// Always true: =, <=, >= | 759 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 760 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 761 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 762 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 763 | 0 | block.get_by_position(result).column = | 764 | 0 | DataTypeUInt8() | 765 | 0 | .create_column_const(input_rows_count, | 766 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 767 | 0 | ->convert_to_full_column_if_const(); | 768 | 0 | return Status::OK(); | 769 | | } else { | 770 | | block.get_by_position(result).column = | 771 | | DataTypeUInt8() | 772 | | .create_column_const(input_rows_count, | 773 | | Field::create_field<TYPE_BOOLEAN>(0)) | 774 | | ->convert_to_full_column_if_const(); | 775 | | return Status::OK(); | 776 | | } | 777 | 0 | } | 778 | | | 779 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 780 | 30.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t); | 781 | 30.7k | }; | 782 | | | 783 | 30.7k | if (can_compare(left_type->get_primitive_type()) && | 784 | 30.7k | can_compare(right_type->get_primitive_type())) { | 785 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 786 | 26.8k | if (!left_type->equals_ignore_precision(*right_type)) { | 787 | 0 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 788 | 0 | get_name(), left_type->get_name(), | 789 | 0 | right_type->get_name()); | 790 | 0 | } | 791 | 26.8k | } | 792 | | | 793 | 30.7k | auto compare_type = left_type->get_primitive_type(); | 794 | 30.7k | switch (compare_type) { | 795 | 152 | case TYPE_BOOLEAN: | 796 | 152 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 797 | 6.72k | case TYPE_DATEV2: | 798 | 6.72k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 799 | 381 | case TYPE_DATETIMEV2: | 800 | 381 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 801 | 1 | case TYPE_TIMESTAMPTZ: | 802 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 803 | 80 | case TYPE_TINYINT: | 804 | 80 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 805 | 90 | case TYPE_SMALLINT: | 806 | 90 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 807 | 18.0k | case TYPE_INT: | 808 | 18.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 809 | 930 | case TYPE_BIGINT: | 810 | 930 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 811 | 51 | case TYPE_LARGEINT: | 812 | 51 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 813 | 10 | case TYPE_IPV4: | 814 | 10 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 815 | 0 | case TYPE_IPV6: | 816 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 817 | 198 | case TYPE_FLOAT: | 818 | 198 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 819 | 145 | case TYPE_DOUBLE: | 820 | 145 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 821 | 0 | case TYPE_TIMEV2: | 822 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 823 | 0 | case TYPE_DECIMALV2: | 824 | 7 | case TYPE_DECIMAL32: | 825 | 2.17k | case TYPE_DECIMAL64: | 826 | 3.09k | case TYPE_DECIMAL128I: | 827 | 3.10k | case TYPE_DECIMAL256: | 828 | 3.10k | return execute_decimal(block, result, col_with_type_and_name_left, | 829 | 3.10k | col_with_type_and_name_right); | 830 | 87 | case TYPE_CHAR: | 831 | 443 | case TYPE_VARCHAR: | 832 | 848 | case TYPE_STRING: | 833 | 848 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 834 | 50 | default: | 835 | 50 | return execute_generic(block, result, col_with_type_and_name_left, | 836 | 50 | col_with_type_and_name_right); | 837 | 30.7k | } | 838 | 0 | return Status::OK(); | 839 | 30.7k | } |
|
840 | | }; |
841 | | |
842 | | } // namespace doris |