be/src/exprs/function/functions_comparison.h
Line | Count | Source |
1 | | // Licensed to the Apache Software Foundation (ASF) under one |
2 | | // or more contributor license agreements. See the NOTICE file |
3 | | // distributed with this work for additional information |
4 | | // regarding copyright ownership. The ASF licenses this file |
5 | | // to you under the Apache License, Version 2.0 (the |
6 | | // "License"); you may not use this file except in compliance |
7 | | // with the License. You may obtain a copy of the License at |
8 | | // |
9 | | // http://www.apache.org/licenses/LICENSE-2.0 |
10 | | // |
11 | | // Unless required by applicable law or agreed to in writing, |
12 | | // software distributed under the License is distributed on an |
13 | | // "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
14 | | // KIND, either express or implied. See the License for the |
15 | | // specific language governing permissions and limitations |
16 | | // under the License. |
17 | | // This file is copied from |
18 | | // https://github.com/ClickHouse/ClickHouse/blob/master/src/Functions/FunctionsComparison.h |
19 | | // and modified by Doris |
20 | | |
21 | | #pragma once |
22 | | |
23 | | #include <compare> |
24 | | #include <limits> |
25 | | #include <optional> |
26 | | #include <string_view> |
27 | | #include <type_traits> |
28 | | |
29 | | #include "common/check.h" |
30 | | #include "common/logging.h" |
31 | | #include "core/accurate_comparison.h" |
32 | | #include "core/assert_cast.h" |
33 | | #include "core/column/column_const.h" |
34 | | #include "core/column/column_decimal.h" |
35 | | #include "core/column/column_nullable.h" |
36 | | #include "core/column/column_string.h" |
37 | | #include "core/data_type/data_type_nullable.h" |
38 | | #include "core/data_type/data_type_number.h" |
39 | | #include "core/data_type/data_type_string.h" |
40 | | #include "core/data_type/define_primitive_type.h" |
41 | | #include "core/decimal_comparison.h" |
42 | | #include "core/field.h" |
43 | | #include "core/memcmp_small.h" |
44 | | #include "core/value/vdatetime_value.h" |
45 | | #include "exprs/expr_zonemap_filter.h" |
46 | | #include "exprs/function/function.h" |
47 | | #include "exprs/function/function_helpers.h" |
48 | | #include "exprs/function/functions_logical.h" |
49 | | #include "exprs/vexpr.h" |
50 | | #include "storage/index/index_reader_helper.h" |
51 | | #include "storage/index/inverted/inverted_index_iterator.h" |
52 | | #include "storage/olap_define.h" |
53 | | |
54 | | namespace doris { |
55 | | /** Comparison functions: ==, !=, <, >, <=, >=. |
56 | | * The comparison functions always return 0 or 1 (UInt8). |
57 | | * |
58 | | * You can compare the following types: |
59 | | * - numbers and decimals; |
60 | | * - strings and fixed strings; |
61 | | * - dates; |
62 | | * - datetimes; |
63 | | * within each group, but not from different groups; |
64 | | * - tuples (lexicographic comparison). |
65 | | * |
66 | | * Exception: You can compare the date and datetime with a constant string. Example: EventDate = '2015-01-01'. |
67 | | */ |
68 | | |
69 | | template <typename A, typename B, typename Op> |
70 | | struct NumComparisonImpl { |
71 | | /// If you don't specify NO_INLINE, the compiler will inline this function, but we don't need this as this function contains tight loop inside. |
72 | | static void NO_INLINE vector_vector(const PaddedPODArray<A>& a, const PaddedPODArray<B>& b, |
73 | 13.2k | PaddedPODArray<UInt8>& c) { |
74 | 13.2k | size_t size = a.size(); |
75 | 13.2k | const A* __restrict a_pos = a.data(); |
76 | 13.2k | const B* __restrict b_pos = b.data(); |
77 | 13.2k | UInt8* __restrict c_pos = c.data(); |
78 | 13.2k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 8.18M | while (a_pos < a_end) { |
81 | 8.17M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 8.17M | ++a_pos; |
83 | 8.17M | ++b_pos; |
84 | 8.17M | ++c_pos; |
85 | 8.17M | } |
86 | 13.2k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 72 | PaddedPODArray<UInt8>& c) { | 74 | 72 | size_t size = a.size(); | 75 | 72 | const A* __restrict a_pos = a.data(); | 76 | 72 | const B* __restrict b_pos = b.data(); | 77 | 72 | UInt8* __restrict c_pos = c.data(); | 78 | 72 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 148 | while (a_pos < a_end) { | 81 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 76 | ++a_pos; | 83 | 76 | ++b_pos; | 84 | 76 | ++c_pos; | 85 | 76 | } | 86 | 72 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 246 | PaddedPODArray<UInt8>& c) { | 74 | 246 | size_t size = a.size(); | 75 | 246 | const A* __restrict a_pos = a.data(); | 76 | 246 | const B* __restrict b_pos = b.data(); | 77 | 246 | UInt8* __restrict c_pos = c.data(); | 78 | 246 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.43k | while (a_pos < a_end) { | 81 | 1.18k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.18k | ++a_pos; | 83 | 1.18k | ++b_pos; | 84 | 1.18k | ++c_pos; | 85 | 1.18k | } | 86 | 246 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 256 | PaddedPODArray<UInt8>& c) { | 74 | 256 | size_t size = a.size(); | 75 | 256 | const A* __restrict a_pos = a.data(); | 76 | 256 | const B* __restrict b_pos = b.data(); | 77 | 256 | UInt8* __restrict c_pos = c.data(); | 78 | 256 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 525 | while (a_pos < a_end) { | 81 | 269 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 269 | ++a_pos; | 83 | 269 | ++b_pos; | 84 | 269 | ++c_pos; | 85 | 269 | } | 86 | 256 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 145 | PaddedPODArray<UInt8>& c) { | 74 | 145 | size_t size = a.size(); | 75 | 145 | const A* __restrict a_pos = a.data(); | 76 | 145 | const B* __restrict b_pos = b.data(); | 77 | 145 | UInt8* __restrict c_pos = c.data(); | 78 | 145 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 363 | while (a_pos < a_end) { | 81 | 218 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 218 | ++a_pos; | 83 | 218 | ++b_pos; | 84 | 218 | ++c_pos; | 85 | 218 | } | 86 | 145 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12 | while (a_pos < a_end) { | 81 | 10 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 10 | ++a_pos; | 83 | 10 | ++b_pos; | 84 | 10 | ++c_pos; | 85 | 10 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 217 | PaddedPODArray<UInt8>& c) { | 74 | 217 | size_t size = a.size(); | 75 | 217 | const A* __restrict a_pos = a.data(); | 76 | 217 | const B* __restrict b_pos = b.data(); | 77 | 217 | UInt8* __restrict c_pos = c.data(); | 78 | 217 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 566 | while (a_pos < a_end) { | 81 | 349 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 349 | ++a_pos; | 83 | 349 | ++b_pos; | 84 | 349 | ++c_pos; | 85 | 349 | } | 86 | 217 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 121 | PaddedPODArray<UInt8>& c) { | 74 | 121 | size_t size = a.size(); | 75 | 121 | const A* __restrict a_pos = a.data(); | 76 | 121 | const B* __restrict b_pos = b.data(); | 77 | 121 | UInt8* __restrict c_pos = c.data(); | 78 | 121 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 242 | while (a_pos < a_end) { | 81 | 121 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 121 | ++a_pos; | 83 | 121 | ++b_pos; | 84 | 121 | ++c_pos; | 85 | 121 | } | 86 | 121 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.08k | PaddedPODArray<UInt8>& c) { | 74 | 1.08k | size_t size = a.size(); | 75 | 1.08k | const A* __restrict a_pos = a.data(); | 76 | 1.08k | const B* __restrict b_pos = b.data(); | 77 | 1.08k | UInt8* __restrict c_pos = c.data(); | 78 | 1.08k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 19.9k | while (a_pos < a_end) { | 81 | 18.8k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.8k | ++a_pos; | 83 | 18.8k | ++b_pos; | 84 | 18.8k | ++c_pos; | 85 | 18.8k | } | 86 | 1.08k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 211 | PaddedPODArray<UInt8>& c) { | 74 | 211 | size_t size = a.size(); | 75 | 211 | const A* __restrict a_pos = a.data(); | 76 | 211 | const B* __restrict b_pos = b.data(); | 77 | 211 | UInt8* __restrict c_pos = c.data(); | 78 | 211 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.65k | while (a_pos < a_end) { | 81 | 1.44k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.44k | ++a_pos; | 83 | 1.44k | ++b_pos; | 84 | 1.44k | ++c_pos; | 85 | 1.44k | } | 86 | 211 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 76 | PaddedPODArray<UInt8>& c) { | 74 | 76 | size_t size = a.size(); | 75 | 76 | const A* __restrict a_pos = a.data(); | 76 | 76 | const B* __restrict b_pos = b.data(); | 77 | 76 | UInt8* __restrict c_pos = c.data(); | 78 | 76 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 152 | while (a_pos < a_end) { | 81 | 76 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 76 | ++a_pos; | 83 | 76 | ++b_pos; | 84 | 76 | ++c_pos; | 85 | 76 | } | 86 | 76 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 46 | while (a_pos < a_end) { | 81 | 23 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 23 | ++a_pos; | 83 | 23 | ++b_pos; | 84 | 23 | ++c_pos; | 85 | 23 | } | 86 | 23 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 788 | PaddedPODArray<UInt8>& c) { | 74 | 788 | size_t size = a.size(); | 75 | 788 | const A* __restrict a_pos = a.data(); | 76 | 788 | const B* __restrict b_pos = b.data(); | 77 | 788 | UInt8* __restrict c_pos = c.data(); | 78 | 788 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 38.4k | while (a_pos < a_end) { | 81 | 37.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 37.6k | ++a_pos; | 83 | 37.6k | ++b_pos; | 84 | 37.6k | ++c_pos; | 85 | 37.6k | } | 86 | 788 | } |
_ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 96 | PaddedPODArray<UInt8>& c) { | 74 | 96 | size_t size = a.size(); | 75 | 96 | const A* __restrict a_pos = a.data(); | 76 | 96 | const B* __restrict b_pos = b.data(); | 77 | 96 | UInt8* __restrict c_pos = c.data(); | 78 | 96 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 211 | while (a_pos < a_end) { | 81 | 115 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 115 | ++a_pos; | 83 | 115 | ++b_pos; | 84 | 115 | ++c_pos; | 85 | 115 | } | 86 | 96 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 113 | PaddedPODArray<UInt8>& c) { | 74 | 113 | size_t size = a.size(); | 75 | 113 | const A* __restrict a_pos = a.data(); | 76 | 113 | const B* __restrict b_pos = b.data(); | 77 | 113 | UInt8* __restrict c_pos = c.data(); | 78 | 113 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 297 | while (a_pos < a_end) { | 81 | 184 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 184 | ++a_pos; | 83 | 184 | ++b_pos; | 84 | 184 | ++c_pos; | 85 | 184 | } | 86 | 113 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 52 | PaddedPODArray<UInt8>& c) { | 74 | 52 | size_t size = a.size(); | 75 | 52 | const A* __restrict a_pos = a.data(); | 76 | 52 | const B* __restrict b_pos = b.data(); | 77 | 52 | UInt8* __restrict c_pos = c.data(); | 78 | 52 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 104 | while (a_pos < a_end) { | 81 | 52 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 52 | ++a_pos; | 83 | 52 | ++b_pos; | 84 | 52 | ++c_pos; | 85 | 52 | } | 86 | 52 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 39 | PaddedPODArray<UInt8>& c) { | 74 | 39 | size_t size = a.size(); | 75 | 39 | const A* __restrict a_pos = a.data(); | 76 | 39 | const B* __restrict b_pos = b.data(); | 77 | 39 | UInt8* __restrict c_pos = c.data(); | 78 | 39 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 108 | while (a_pos < a_end) { | 81 | 69 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 69 | ++a_pos; | 83 | 69 | ++b_pos; | 84 | 69 | ++c_pos; | 85 | 69 | } | 86 | 39 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 9 | PaddedPODArray<UInt8>& c) { | 74 | 9 | size_t size = a.size(); | 75 | 9 | const A* __restrict a_pos = a.data(); | 76 | 9 | const B* __restrict b_pos = b.data(); | 77 | 9 | UInt8* __restrict c_pos = c.data(); | 78 | 9 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 22 | while (a_pos < a_end) { | 81 | 13 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 13 | ++a_pos; | 83 | 13 | ++b_pos; | 84 | 13 | ++c_pos; | 85 | 13 | } | 86 | 9 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 52 | PaddedPODArray<UInt8>& c) { | 74 | 52 | size_t size = a.size(); | 75 | 52 | const A* __restrict a_pos = a.data(); | 76 | 52 | const B* __restrict b_pos = b.data(); | 77 | 52 | UInt8* __restrict c_pos = c.data(); | 78 | 52 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 234 | while (a_pos < a_end) { | 81 | 182 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 182 | ++a_pos; | 83 | 182 | ++b_pos; | 84 | 182 | ++c_pos; | 85 | 182 | } | 86 | 52 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.52k | PaddedPODArray<UInt8>& c) { | 74 | 1.52k | size_t size = a.size(); | 75 | 1.52k | const A* __restrict a_pos = a.data(); | 76 | 1.52k | const B* __restrict b_pos = b.data(); | 77 | 1.52k | UInt8* __restrict c_pos = c.data(); | 78 | 1.52k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 315k | while (a_pos < a_end) { | 81 | 313k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 313k | ++a_pos; | 83 | 313k | ++b_pos; | 84 | 313k | ++c_pos; | 85 | 313k | } | 86 | 1.52k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 338 | PaddedPODArray<UInt8>& c) { | 74 | 338 | size_t size = a.size(); | 75 | 338 | const A* __restrict a_pos = a.data(); | 76 | 338 | const B* __restrict b_pos = b.data(); | 77 | 338 | UInt8* __restrict c_pos = c.data(); | 78 | 338 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.44k | while (a_pos < a_end) { | 81 | 6.10k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.10k | ++a_pos; | 83 | 6.10k | ++b_pos; | 84 | 6.10k | ++c_pos; | 85 | 6.10k | } | 86 | 338 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 80 | while (a_pos < a_end) { | 81 | 57 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 57 | ++a_pos; | 83 | 57 | ++b_pos; | 84 | 57 | ++c_pos; | 85 | 57 | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.22k | PaddedPODArray<UInt8>& c) { | 74 | 1.22k | size_t size = a.size(); | 75 | 1.22k | const A* __restrict a_pos = a.data(); | 76 | 1.22k | const B* __restrict b_pos = b.data(); | 77 | 1.22k | UInt8* __restrict c_pos = c.data(); | 78 | 1.22k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 3.74M | while (a_pos < a_end) { | 81 | 3.74M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 3.74M | ++a_pos; | 83 | 3.74M | ++b_pos; | 84 | 3.74M | ++c_pos; | 85 | 3.74M | } | 86 | 1.22k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 90 | while (a_pos < a_end) { | 81 | 55 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 55 | ++a_pos; | 83 | 55 | ++b_pos; | 84 | 55 | ++c_pos; | 85 | 55 | } | 86 | 35 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 64 | PaddedPODArray<UInt8>& c) { | 74 | 64 | size_t size = a.size(); | 75 | 64 | const A* __restrict a_pos = a.data(); | 76 | 64 | const B* __restrict b_pos = b.data(); | 77 | 64 | UInt8* __restrict c_pos = c.data(); | 78 | 64 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 374 | while (a_pos < a_end) { | 81 | 310 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 310 | ++a_pos; | 83 | 310 | ++b_pos; | 84 | 310 | ++c_pos; | 85 | 310 | } | 86 | 64 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 376 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 64 | PaddedPODArray<UInt8>& c) { | 74 | 64 | size_t size = a.size(); | 75 | 64 | const A* __restrict a_pos = a.data(); | 76 | 64 | const B* __restrict b_pos = b.data(); | 77 | 64 | UInt8* __restrict c_pos = c.data(); | 78 | 64 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 8.44k | while (a_pos < a_end) { | 81 | 8.38k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 8.38k | ++a_pos; | 83 | 8.38k | ++b_pos; | 84 | 8.38k | ++c_pos; | 85 | 8.38k | } | 86 | 64 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 331 | PaddedPODArray<UInt8>& c) { | 74 | 331 | size_t size = a.size(); | 75 | 331 | const A* __restrict a_pos = a.data(); | 76 | 331 | const B* __restrict b_pos = b.data(); | 77 | 331 | UInt8* __restrict c_pos = c.data(); | 78 | 331 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 800k | while (a_pos < a_end) { | 81 | 800k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 800k | ++a_pos; | 83 | 800k | ++b_pos; | 84 | 800k | ++c_pos; | 85 | 800k | } | 86 | 331 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 2 | PaddedPODArray<UInt8>& c) { | 74 | 2 | size_t size = a.size(); | 75 | 2 | const A* __restrict a_pos = a.data(); | 76 | 2 | const B* __restrict b_pos = b.data(); | 77 | 2 | UInt8* __restrict c_pos = c.data(); | 78 | 2 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 2 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 35 | PaddedPODArray<UInt8>& c) { | 74 | 35 | size_t size = a.size(); | 75 | 35 | const A* __restrict a_pos = a.data(); | 76 | 35 | const B* __restrict b_pos = b.data(); | 77 | 35 | UInt8* __restrict c_pos = c.data(); | 78 | 35 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 124 | while (a_pos < a_end) { | 81 | 89 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 89 | ++a_pos; | 83 | 89 | ++b_pos; | 84 | 89 | ++c_pos; | 85 | 89 | } | 86 | 35 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 6 | PaddedPODArray<UInt8>& c) { | 74 | 6 | size_t size = a.size(); | 75 | 6 | const A* __restrict a_pos = a.data(); | 76 | 6 | const B* __restrict b_pos = b.data(); | 77 | 6 | UInt8* __restrict c_pos = c.data(); | 78 | 6 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 65 | while (a_pos < a_end) { | 81 | 59 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 59 | ++a_pos; | 83 | 59 | ++b_pos; | 84 | 59 | ++c_pos; | 85 | 59 | } | 86 | 6 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 361 | PaddedPODArray<UInt8>& c) { | 74 | 361 | size_t size = a.size(); | 75 | 361 | const A* __restrict a_pos = a.data(); | 76 | 361 | const B* __restrict b_pos = b.data(); | 77 | 361 | UInt8* __restrict c_pos = c.data(); | 78 | 361 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.46k | while (a_pos < a_end) { | 81 | 1.10k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.10k | ++a_pos; | 83 | 1.10k | ++b_pos; | 84 | 1.10k | ++c_pos; | 85 | 1.10k | } | 86 | 361 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 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 | 73 | 16 | PaddedPODArray<UInt8>& c) { | 74 | 16 | size_t size = a.size(); | 75 | 16 | const A* __restrict a_pos = a.data(); | 76 | 16 | const B* __restrict b_pos = b.data(); | 77 | 16 | UInt8* __restrict c_pos = c.data(); | 78 | 16 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 4.15k | while (a_pos < a_end) { | 81 | 4.13k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4.13k | ++a_pos; | 83 | 4.13k | ++b_pos; | 84 | 4.13k | ++c_pos; | 85 | 4.13k | } | 86 | 16 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 12.3k | while (a_pos < a_end) { | 81 | 12.3k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 12.3k | ++a_pos; | 83 | 12.3k | ++b_pos; | 84 | 12.3k | ++c_pos; | 85 | 12.3k | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2 | while (a_pos < a_end) { | 81 | 1 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1 | ++a_pos; | 83 | 1 | ++b_pos; | 84 | 1 | ++c_pos; | 85 | 1 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 108 | PaddedPODArray<UInt8>& c) { | 74 | 108 | size_t size = a.size(); | 75 | 108 | const A* __restrict a_pos = a.data(); | 76 | 108 | const B* __restrict b_pos = b.data(); | 77 | 108 | UInt8* __restrict c_pos = c.data(); | 78 | 108 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 864 | while (a_pos < a_end) { | 81 | 756 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 756 | ++a_pos; | 83 | 756 | ++b_pos; | 84 | 756 | ++c_pos; | 85 | 756 | } | 86 | 108 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 22 | PaddedPODArray<UInt8>& c) { | 74 | 22 | size_t size = a.size(); | 75 | 22 | const A* __restrict a_pos = a.data(); | 76 | 22 | const B* __restrict b_pos = b.data(); | 77 | 22 | UInt8* __restrict c_pos = c.data(); | 78 | 22 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 67 | while (a_pos < a_end) { | 81 | 45 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 45 | ++a_pos; | 83 | 45 | ++b_pos; | 84 | 45 | ++c_pos; | 85 | 45 | } | 86 | 22 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 90 | PaddedPODArray<UInt8>& c) { | 74 | 90 | size_t size = a.size(); | 75 | 90 | const A* __restrict a_pos = a.data(); | 76 | 90 | const B* __restrict b_pos = b.data(); | 77 | 90 | UInt8* __restrict c_pos = c.data(); | 78 | 90 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 354 | while (a_pos < a_end) { | 81 | 264 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 264 | ++a_pos; | 83 | 264 | ++b_pos; | 84 | 264 | ++c_pos; | 85 | 264 | } | 86 | 90 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.93k | PaddedPODArray<UInt8>& c) { | 74 | 1.93k | size_t size = a.size(); | 75 | 1.93k | const A* __restrict a_pos = a.data(); | 76 | 1.93k | const B* __restrict b_pos = b.data(); | 77 | 1.93k | UInt8* __restrict c_pos = c.data(); | 78 | 1.93k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.82M | while (a_pos < a_end) { | 81 | 2.82M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.82M | ++a_pos; | 83 | 2.82M | ++b_pos; | 84 | 2.82M | ++c_pos; | 85 | 2.82M | } | 86 | 1.93k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 234 | PaddedPODArray<UInt8>& c) { | 74 | 234 | size_t size = a.size(); | 75 | 234 | const A* __restrict a_pos = a.data(); | 76 | 234 | const B* __restrict b_pos = b.data(); | 77 | 234 | UInt8* __restrict c_pos = c.data(); | 78 | 234 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 816 | while (a_pos < a_end) { | 81 | 582 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 582 | ++a_pos; | 83 | 582 | ++b_pos; | 84 | 582 | ++c_pos; | 85 | 582 | } | 86 | 234 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 112 | PaddedPODArray<UInt8>& c) { | 74 | 112 | size_t size = a.size(); | 75 | 112 | const A* __restrict a_pos = a.data(); | 76 | 112 | const B* __restrict b_pos = b.data(); | 77 | 112 | UInt8* __restrict c_pos = c.data(); | 78 | 112 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 241 | while (a_pos < a_end) { | 81 | 129 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 129 | ++a_pos; | 83 | 129 | ++b_pos; | 84 | 129 | ++c_pos; | 85 | 129 | } | 86 | 112 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 216 | PaddedPODArray<UInt8>& c) { | 74 | 216 | size_t size = a.size(); | 75 | 216 | const A* __restrict a_pos = a.data(); | 76 | 216 | const B* __restrict b_pos = b.data(); | 77 | 216 | UInt8* __restrict c_pos = c.data(); | 78 | 216 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 606 | while (a_pos < a_end) { | 81 | 390 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 390 | ++a_pos; | 83 | 390 | ++b_pos; | 84 | 390 | ++c_pos; | 85 | 390 | } | 86 | 216 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 160 | PaddedPODArray<UInt8>& c) { | 74 | 160 | size_t size = a.size(); | 75 | 160 | const A* __restrict a_pos = a.data(); | 76 | 160 | const B* __restrict b_pos = b.data(); | 77 | 160 | UInt8* __restrict c_pos = c.data(); | 78 | 160 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 496 | while (a_pos < a_end) { | 81 | 336 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 336 | ++a_pos; | 83 | 336 | ++b_pos; | 84 | 336 | ++c_pos; | 85 | 336 | } | 86 | 160 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 899 | PaddedPODArray<UInt8>& c) { | 74 | 899 | size_t size = a.size(); | 75 | 899 | const A* __restrict a_pos = a.data(); | 76 | 899 | const B* __restrict b_pos = b.data(); | 77 | 899 | UInt8* __restrict c_pos = c.data(); | 78 | 899 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 18.9k | while (a_pos < a_end) { | 81 | 18.0k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.0k | ++a_pos; | 83 | 18.0k | ++b_pos; | 84 | 18.0k | ++c_pos; | 85 | 18.0k | } | 86 | 899 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 331 | PaddedPODArray<UInt8>& c) { | 74 | 331 | size_t size = a.size(); | 75 | 331 | const A* __restrict a_pos = a.data(); | 76 | 331 | const B* __restrict b_pos = b.data(); | 77 | 331 | UInt8* __restrict c_pos = c.data(); | 78 | 331 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 349k | while (a_pos < a_end) { | 81 | 349k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 349k | ++a_pos; | 83 | 349k | ++b_pos; | 84 | 349k | ++c_pos; | 85 | 349k | } | 86 | 331 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 133 | PaddedPODArray<UInt8>& c) { | 74 | 133 | size_t size = a.size(); | 75 | 133 | const A* __restrict a_pos = a.data(); | 76 | 133 | const B* __restrict b_pos = b.data(); | 77 | 133 | UInt8* __restrict c_pos = c.data(); | 78 | 133 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 440 | while (a_pos < a_end) { | 81 | 307 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 307 | ++a_pos; | 83 | 307 | ++b_pos; | 84 | 307 | ++c_pos; | 85 | 307 | } | 86 | 133 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 15 | PaddedPODArray<UInt8>& c) { | 74 | 15 | size_t size = a.size(); | 75 | 15 | const A* __restrict a_pos = a.data(); | 76 | 15 | const B* __restrict b_pos = b.data(); | 77 | 15 | UInt8* __restrict c_pos = c.data(); | 78 | 15 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 30 | while (a_pos < a_end) { | 81 | 15 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 15 | ++a_pos; | 83 | 15 | ++b_pos; | 84 | 15 | ++c_pos; | 85 | 15 | } | 86 | 15 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 110 | PaddedPODArray<UInt8>& c) { | 74 | 110 | size_t size = a.size(); | 75 | 110 | const A* __restrict a_pos = a.data(); | 76 | 110 | const B* __restrict b_pos = b.data(); | 77 | 110 | UInt8* __restrict c_pos = c.data(); | 78 | 110 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 868 | while (a_pos < a_end) { | 81 | 758 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 758 | ++a_pos; | 83 | 758 | ++b_pos; | 84 | 758 | ++c_pos; | 85 | 758 | } | 86 | 110 | } |
_ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 131 | PaddedPODArray<UInt8>& c) { | 74 | 131 | size_t size = a.size(); | 75 | 131 | const A* __restrict a_pos = a.data(); | 76 | 131 | const B* __restrict b_pos = b.data(); | 77 | 131 | UInt8* __restrict c_pos = c.data(); | 78 | 131 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 455 | while (a_pos < a_end) { | 81 | 324 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 324 | ++a_pos; | 83 | 324 | ++b_pos; | 84 | 324 | ++c_pos; | 85 | 324 | } | 86 | 131 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 140 | PaddedPODArray<UInt8>& c) { | 74 | 140 | size_t size = a.size(); | 75 | 140 | const A* __restrict a_pos = a.data(); | 76 | 140 | const B* __restrict b_pos = b.data(); | 77 | 140 | UInt8* __restrict c_pos = c.data(); | 78 | 140 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 495 | while (a_pos < a_end) { | 81 | 355 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 355 | ++a_pos; | 83 | 355 | ++b_pos; | 84 | 355 | ++c_pos; | 85 | 355 | } | 86 | 140 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 390 | PaddedPODArray<UInt8>& c) { | 74 | 390 | size_t size = a.size(); | 75 | 390 | const A* __restrict a_pos = a.data(); | 76 | 390 | const B* __restrict b_pos = b.data(); | 77 | 390 | UInt8* __restrict c_pos = c.data(); | 78 | 390 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5.97k | while (a_pos < a_end) { | 81 | 5.58k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.58k | ++a_pos; | 83 | 5.58k | ++b_pos; | 84 | 5.58k | ++c_pos; | 85 | 5.58k | } | 86 | 390 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 26 | PaddedPODArray<UInt8>& c) { | 74 | 26 | size_t size = a.size(); | 75 | 26 | const A* __restrict a_pos = a.data(); | 76 | 26 | const B* __restrict b_pos = b.data(); | 77 | 26 | UInt8* __restrict c_pos = c.data(); | 78 | 26 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 72 | while (a_pos < a_end) { | 81 | 46 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 46 | ++a_pos; | 83 | 46 | ++b_pos; | 84 | 46 | ++c_pos; | 85 | 46 | } | 86 | 26 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 10 | while (a_pos < a_end) { | 81 | 9 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 9 | ++a_pos; | 83 | 9 | ++b_pos; | 84 | 9 | ++c_pos; | 85 | 9 | } | 86 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE13vector_vectorERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1 | PaddedPODArray<UInt8>& c) { | 74 | 1 | size_t size = a.size(); | 75 | 1 | const A* __restrict a_pos = a.data(); | 76 | 1 | const B* __restrict b_pos = b.data(); | 77 | 1 | UInt8* __restrict c_pos = c.data(); | 78 | 1 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 5 | while (a_pos < a_end) { | 81 | 4 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 4 | ++a_pos; | 83 | 4 | ++b_pos; | 84 | 4 | ++c_pos; | 85 | 4 | } | 86 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 23 | PaddedPODArray<UInt8>& c) { | 74 | 23 | size_t size = a.size(); | 75 | 23 | const A* __restrict a_pos = a.data(); | 76 | 23 | const B* __restrict b_pos = b.data(); | 77 | 23 | UInt8* __restrict c_pos = c.data(); | 78 | 23 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 16.4k | while (a_pos < a_end) { | 81 | 16.4k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 16.4k | ++a_pos; | 83 | 16.4k | ++b_pos; | 84 | 16.4k | ++c_pos; | 85 | 16.4k | } | 86 | 23 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 75 | PaddedPODArray<UInt8>& c) { | 74 | 75 | size_t size = a.size(); | 75 | 75 | const A* __restrict a_pos = a.data(); | 76 | 75 | const B* __restrict b_pos = b.data(); | 77 | 75 | UInt8* __restrict c_pos = c.data(); | 78 | 75 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 201 | while (a_pos < a_end) { | 81 | 126 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 126 | ++a_pos; | 83 | 126 | ++b_pos; | 84 | 126 | ++c_pos; | 85 | 126 | } | 86 | 75 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 104 | PaddedPODArray<UInt8>& c) { | 74 | 104 | size_t size = a.size(); | 75 | 104 | const A* __restrict a_pos = a.data(); | 76 | 104 | const B* __restrict b_pos = b.data(); | 77 | 104 | UInt8* __restrict c_pos = c.data(); | 78 | 104 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 856 | while (a_pos < a_end) { | 81 | 752 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 752 | ++a_pos; | 83 | 752 | ++b_pos; | 84 | 752 | ++c_pos; | 85 | 752 | } | 86 | 104 | } |
_ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE13vector_vectorERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 20 | PaddedPODArray<UInt8>& c) { | 74 | 20 | size_t size = a.size(); | 75 | 20 | const A* __restrict a_pos = a.data(); | 76 | 20 | const B* __restrict b_pos = b.data(); | 77 | 20 | UInt8* __restrict c_pos = c.data(); | 78 | 20 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 59 | while (a_pos < a_end) { | 81 | 39 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 39 | ++a_pos; | 83 | 39 | ++b_pos; | 84 | 39 | ++c_pos; | 85 | 39 | } | 86 | 20 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE |
87 | | |
88 | | static void NO_INLINE vector_constant(const PaddedPODArray<A>& a, B b, |
89 | 58.7k | PaddedPODArray<UInt8>& c) { |
90 | 58.7k | size_t size = a.size(); |
91 | 58.7k | const A* __restrict a_pos = a.data(); |
92 | 58.7k | UInt8* __restrict c_pos = c.data(); |
93 | 58.7k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 36.5M | while (a_pos < a_end) { |
96 | 36.5M | *c_pos = Op::apply(*a_pos, b); |
97 | 36.5M | ++a_pos; |
98 | 36.5M | ++c_pos; |
99 | 36.5M | } |
100 | 58.7k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 32 | PaddedPODArray<UInt8>& c) { | 90 | 32 | size_t size = a.size(); | 91 | 32 | const A* __restrict a_pos = a.data(); | 92 | 32 | UInt8* __restrict c_pos = c.data(); | 93 | 32 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 179 | while (a_pos < a_end) { | 96 | 147 | *c_pos = Op::apply(*a_pos, b); | 97 | 147 | ++a_pos; | 98 | 147 | ++c_pos; | 99 | 147 | } | 100 | 32 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 482 | PaddedPODArray<UInt8>& c) { | 90 | 482 | size_t size = a.size(); | 91 | 482 | const A* __restrict a_pos = a.data(); | 92 | 482 | UInt8* __restrict c_pos = c.data(); | 93 | 482 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 204k | while (a_pos < a_end) { | 96 | 204k | *c_pos = Op::apply(*a_pos, b); | 97 | 204k | ++a_pos; | 98 | 204k | ++c_pos; | 99 | 204k | } | 100 | 482 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 187 | PaddedPODArray<UInt8>& c) { | 90 | 187 | size_t size = a.size(); | 91 | 187 | const A* __restrict a_pos = a.data(); | 92 | 187 | UInt8* __restrict c_pos = c.data(); | 93 | 187 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 125k | while (a_pos < a_end) { | 96 | 125k | *c_pos = Op::apply(*a_pos, b); | 97 | 125k | ++a_pos; | 98 | 125k | ++c_pos; | 99 | 125k | } | 100 | 187 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 89 | PaddedPODArray<UInt8>& c) { | 90 | 89 | size_t size = a.size(); | 91 | 89 | const A* __restrict a_pos = a.data(); | 92 | 89 | UInt8* __restrict c_pos = c.data(); | 93 | 89 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 184 | while (a_pos < a_end) { | 96 | 95 | *c_pos = Op::apply(*a_pos, b); | 97 | 95 | ++a_pos; | 98 | 95 | ++c_pos; | 99 | 95 | } | 100 | 89 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 20 | while (a_pos < a_end) { | 96 | 10 | *c_pos = Op::apply(*a_pos, b); | 97 | 10 | ++a_pos; | 98 | 10 | ++c_pos; | 99 | 10 | } | 100 | 10 | } |
_ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.86k | PaddedPODArray<UInt8>& c) { | 90 | 5.86k | size_t size = a.size(); | 91 | 5.86k | const A* __restrict a_pos = a.data(); | 92 | 5.86k | UInt8* __restrict c_pos = c.data(); | 93 | 5.86k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.08M | while (a_pos < a_end) { | 96 | 9.07M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.07M | ++a_pos; | 98 | 9.07M | ++c_pos; | 99 | 9.07M | } | 100 | 5.86k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 305 | PaddedPODArray<UInt8>& c) { | 90 | 305 | size_t size = a.size(); | 91 | 305 | const A* __restrict a_pos = a.data(); | 92 | 305 | UInt8* __restrict c_pos = c.data(); | 93 | 305 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 101k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 305 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.19k | PaddedPODArray<UInt8>& c) { | 90 | 2.19k | size_t size = a.size(); | 91 | 2.19k | const A* __restrict a_pos = a.data(); | 92 | 2.19k | UInt8* __restrict c_pos = c.data(); | 93 | 2.19k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 126k | while (a_pos < a_end) { | 96 | 124k | *c_pos = Op::apply(*a_pos, b); | 97 | 124k | ++a_pos; | 98 | 124k | ++c_pos; | 99 | 124k | } | 100 | 2.19k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7.04k | PaddedPODArray<UInt8>& c) { | 90 | 7.04k | size_t size = a.size(); | 91 | 7.04k | const A* __restrict a_pos = a.data(); | 92 | 7.04k | UInt8* __restrict c_pos = c.data(); | 93 | 7.04k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.63M | while (a_pos < a_end) { | 96 | 5.62M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.62M | ++a_pos; | 98 | 5.62M | ++c_pos; | 99 | 5.62M | } | 100 | 7.04k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 45 | PaddedPODArray<UInt8>& c) { | 90 | 45 | size_t size = a.size(); | 91 | 45 | const A* __restrict a_pos = a.data(); | 92 | 45 | UInt8* __restrict c_pos = c.data(); | 93 | 45 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 100k | while (a_pos < a_end) { | 96 | 100k | *c_pos = Op::apply(*a_pos, b); | 97 | 100k | ++a_pos; | 98 | 100k | ++c_pos; | 99 | 100k | } | 100 | 45 | } |
_ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 7 | PaddedPODArray<UInt8>& c) { | 90 | 7 | size_t size = a.size(); | 91 | 7 | const A* __restrict a_pos = a.data(); | 92 | 7 | UInt8* __restrict c_pos = c.data(); | 93 | 7 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 21 | while (a_pos < a_end) { | 96 | 14 | *c_pos = Op::apply(*a_pos, b); | 97 | 14 | ++a_pos; | 98 | 14 | ++c_pos; | 99 | 14 | } | 100 | 7 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 4 | *c_pos = Op::apply(*a_pos, b); | 97 | 4 | ++a_pos; | 98 | 4 | ++c_pos; | 99 | 4 | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.02k | PaddedPODArray<UInt8>& c) { | 90 | 2.02k | size_t size = a.size(); | 91 | 2.02k | const A* __restrict a_pos = a.data(); | 92 | 2.02k | UInt8* __restrict c_pos = c.data(); | 93 | 2.02k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 68.5k | while (a_pos < a_end) { | 96 | 66.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 66.5k | ++a_pos; | 98 | 66.5k | ++c_pos; | 99 | 66.5k | } | 100 | 2.02k | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 653 | PaddedPODArray<UInt8>& c) { | 90 | 653 | size_t size = a.size(); | 91 | 653 | const A* __restrict a_pos = a.data(); | 92 | 653 | UInt8* __restrict c_pos = c.data(); | 93 | 653 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 713k | while (a_pos < a_end) { | 96 | 712k | *c_pos = Op::apply(*a_pos, b); | 97 | 712k | ++a_pos; | 98 | 712k | ++c_pos; | 99 | 712k | } | 100 | 653 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 31 | PaddedPODArray<UInt8>& c) { | 90 | 31 | size_t size = a.size(); | 91 | 31 | const A* __restrict a_pos = a.data(); | 92 | 31 | UInt8* __restrict c_pos = c.data(); | 93 | 31 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 82 | while (a_pos < a_end) { | 96 | 51 | *c_pos = Op::apply(*a_pos, b); | 97 | 51 | ++a_pos; | 98 | 51 | ++c_pos; | 99 | 51 | } | 100 | 31 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 6 | *c_pos = Op::apply(*a_pos, b); | 97 | 6 | ++a_pos; | 98 | 6 | ++c_pos; | 99 | 6 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 78 | while (a_pos < a_end) { | 96 | 50 | *c_pos = Op::apply(*a_pos, b); | 97 | 50 | ++a_pos; | 98 | 50 | ++c_pos; | 99 | 50 | } | 100 | 28 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 276 | PaddedPODArray<UInt8>& c) { | 90 | 276 | size_t size = a.size(); | 91 | 276 | const A* __restrict a_pos = a.data(); | 92 | 276 | UInt8* __restrict c_pos = c.data(); | 93 | 276 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.99k | while (a_pos < a_end) { | 96 | 1.71k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.71k | ++a_pos; | 98 | 1.71k | ++c_pos; | 99 | 1.71k | } | 100 | 276 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 161 | PaddedPODArray<UInt8>& c) { | 90 | 161 | size_t size = a.size(); | 91 | 161 | const A* __restrict a_pos = a.data(); | 92 | 161 | UInt8* __restrict c_pos = c.data(); | 93 | 161 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.47k | while (a_pos < a_end) { | 96 | 5.31k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.31k | ++a_pos; | 98 | 5.31k | ++c_pos; | 99 | 5.31k | } | 100 | 161 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 28 | PaddedPODArray<UInt8>& c) { | 90 | 28 | size_t size = a.size(); | 91 | 28 | const A* __restrict a_pos = a.data(); | 92 | 28 | UInt8* __restrict c_pos = c.data(); | 93 | 28 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 70 | while (a_pos < a_end) { | 96 | 42 | *c_pos = Op::apply(*a_pos, b); | 97 | 42 | ++a_pos; | 98 | 42 | ++c_pos; | 99 | 42 | } | 100 | 28 | } |
_ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 40 | PaddedPODArray<UInt8>& c) { | 90 | 40 | size_t size = a.size(); | 91 | 40 | const A* __restrict a_pos = a.data(); | 92 | 40 | UInt8* __restrict c_pos = c.data(); | 93 | 40 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 282 | while (a_pos < a_end) { | 96 | 242 | *c_pos = Op::apply(*a_pos, b); | 97 | 242 | ++a_pos; | 98 | 242 | ++c_pos; | 99 | 242 | } | 100 | 40 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 41 | PaddedPODArray<UInt8>& c) { | 90 | 41 | size_t size = a.size(); | 91 | 41 | const A* __restrict a_pos = a.data(); | 92 | 41 | UInt8* __restrict c_pos = c.data(); | 93 | 41 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 149 | while (a_pos < a_end) { | 96 | 108 | *c_pos = Op::apply(*a_pos, b); | 97 | 108 | ++a_pos; | 98 | 108 | ++c_pos; | 99 | 108 | } | 100 | 41 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 344 | PaddedPODArray<UInt8>& c) { | 90 | 344 | size_t size = a.size(); | 91 | 344 | const A* __restrict a_pos = a.data(); | 92 | 344 | UInt8* __restrict c_pos = c.data(); | 93 | 344 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.34M | while (a_pos < a_end) { | 96 | 1.34M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.34M | ++a_pos; | 98 | 1.34M | ++c_pos; | 99 | 1.34M | } | 100 | 344 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 5 | *c_pos = Op::apply(*a_pos, b); | 97 | 5 | ++a_pos; | 98 | 5 | ++c_pos; | 99 | 5 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 59 | PaddedPODArray<UInt8>& c) { | 90 | 59 | size_t size = a.size(); | 91 | 59 | const A* __restrict a_pos = a.data(); | 92 | 59 | UInt8* __restrict c_pos = c.data(); | 93 | 59 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 263 | while (a_pos < a_end) { | 96 | 204 | *c_pos = Op::apply(*a_pos, b); | 97 | 204 | ++a_pos; | 98 | 204 | ++c_pos; | 99 | 204 | } | 100 | 59 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 37 | PaddedPODArray<UInt8>& c) { | 90 | 37 | size_t size = a.size(); | 91 | 37 | const A* __restrict a_pos = a.data(); | 92 | 37 | UInt8* __restrict c_pos = c.data(); | 93 | 37 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86 | while (a_pos < a_end) { | 96 | 49 | *c_pos = Op::apply(*a_pos, b); | 97 | 49 | ++a_pos; | 98 | 49 | ++c_pos; | 99 | 49 | } | 100 | 37 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 112 | while (a_pos < a_end) { | 96 | 66 | *c_pos = Op::apply(*a_pos, b); | 97 | 66 | ++a_pos; | 98 | 66 | ++c_pos; | 99 | 66 | } | 100 | 46 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 8 | while (a_pos < a_end) { | 96 | 7 | *c_pos = Op::apply(*a_pos, b); | 97 | 7 | ++a_pos; | 98 | 7 | ++c_pos; | 99 | 7 | } | 100 | 1 | } |
_ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.25k | PaddedPODArray<UInt8>& c) { | 90 | 1.25k | size_t size = a.size(); | 91 | 1.25k | const A* __restrict a_pos = a.data(); | 92 | 1.25k | UInt8* __restrict c_pos = c.data(); | 93 | 1.25k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 13.1k | while (a_pos < a_end) { | 96 | 11.9k | *c_pos = Op::apply(*a_pos, b); | 97 | 11.9k | ++a_pos; | 98 | 11.9k | ++c_pos; | 99 | 11.9k | } | 100 | 1.25k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.10k | PaddedPODArray<UInt8>& c) { | 90 | 2.10k | size_t size = a.size(); | 91 | 2.10k | const A* __restrict a_pos = a.data(); | 92 | 2.10k | UInt8* __restrict c_pos = c.data(); | 93 | 2.10k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.85k | while (a_pos < a_end) { | 96 | 3.75k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.75k | ++a_pos; | 98 | 3.75k | ++c_pos; | 99 | 3.75k | } | 100 | 2.10k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.96k | PaddedPODArray<UInt8>& c) { | 90 | 1.96k | size_t size = a.size(); | 91 | 1.96k | const A* __restrict a_pos = a.data(); | 92 | 1.96k | UInt8* __restrict c_pos = c.data(); | 93 | 1.96k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.27k | while (a_pos < a_end) { | 96 | 5.30k | *c_pos = Op::apply(*a_pos, b); | 97 | 5.30k | ++a_pos; | 98 | 5.30k | ++c_pos; | 99 | 5.30k | } | 100 | 1.96k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 230 | PaddedPODArray<UInt8>& c) { | 90 | 230 | size_t size = a.size(); | 91 | 230 | const A* __restrict a_pos = a.data(); | 92 | 230 | UInt8* __restrict c_pos = c.data(); | 93 | 230 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.21k | while (a_pos < a_end) { | 96 | 982 | *c_pos = Op::apply(*a_pos, b); | 97 | 982 | ++a_pos; | 98 | 982 | ++c_pos; | 99 | 982 | } | 100 | 230 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10.3k | PaddedPODArray<UInt8>& c) { | 90 | 10.3k | size_t size = a.size(); | 91 | 10.3k | const A* __restrict a_pos = a.data(); | 92 | 10.3k | UInt8* __restrict c_pos = c.data(); | 93 | 10.3k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.27M | while (a_pos < a_end) { | 96 | 5.26M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.26M | ++a_pos; | 98 | 5.26M | ++c_pos; | 99 | 5.26M | } | 100 | 10.3k | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 5.17k | PaddedPODArray<UInt8>& c) { | 90 | 5.17k | size_t size = a.size(); | 91 | 5.17k | const A* __restrict a_pos = a.data(); | 92 | 5.17k | UInt8* __restrict c_pos = c.data(); | 93 | 5.17k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.02M | while (a_pos < a_end) { | 96 | 1.02M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.02M | ++a_pos; | 98 | 1.02M | ++c_pos; | 99 | 1.02M | } | 100 | 5.17k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.06k | PaddedPODArray<UInt8>& c) { | 90 | 2.06k | size_t size = a.size(); | 91 | 2.06k | const A* __restrict a_pos = a.data(); | 92 | 2.06k | UInt8* __restrict c_pos = c.data(); | 93 | 2.06k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.6k | while (a_pos < a_end) { | 96 | 97.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.5k | ++a_pos; | 98 | 97.5k | ++c_pos; | 99 | 97.5k | } | 100 | 2.06k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.06k | PaddedPODArray<UInt8>& c) { | 90 | 1.06k | size_t size = a.size(); | 91 | 1.06k | const A* __restrict a_pos = a.data(); | 92 | 1.06k | UInt8* __restrict c_pos = c.data(); | 93 | 1.06k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 52.8k | while (a_pos < a_end) { | 96 | 51.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 51.7k | ++a_pos; | 98 | 51.7k | ++c_pos; | 99 | 51.7k | } | 100 | 1.06k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 290 | PaddedPODArray<UInt8>& c) { | 90 | 290 | size_t size = a.size(); | 91 | 290 | const A* __restrict a_pos = a.data(); | 92 | 290 | UInt8* __restrict c_pos = c.data(); | 93 | 290 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.92k | while (a_pos < a_end) { | 96 | 1.63k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.63k | ++a_pos; | 98 | 1.63k | ++c_pos; | 99 | 1.63k | } | 100 | 290 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 103 | PaddedPODArray<UInt8>& c) { | 90 | 103 | size_t size = a.size(); | 91 | 103 | const A* __restrict a_pos = a.data(); | 92 | 103 | UInt8* __restrict c_pos = c.data(); | 93 | 103 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 86.2k | while (a_pos < a_end) { | 96 | 86.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 86.1k | ++a_pos; | 98 | 86.1k | ++c_pos; | 99 | 86.1k | } | 100 | 103 | } |
_ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 3 | PaddedPODArray<UInt8>& c) { | 90 | 3 | size_t size = a.size(); | 91 | 3 | const A* __restrict a_pos = a.data(); | 92 | 3 | UInt8* __restrict c_pos = c.data(); | 93 | 3 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 31 | while (a_pos < a_end) { | 96 | 28 | *c_pos = Op::apply(*a_pos, b); | 97 | 28 | ++a_pos; | 98 | 28 | ++c_pos; | 99 | 28 | } | 100 | 3 | } |
_ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2 | PaddedPODArray<UInt8>& c) { | 90 | 2 | size_t size = a.size(); | 91 | 2 | const A* __restrict a_pos = a.data(); | 92 | 2 | UInt8* __restrict c_pos = c.data(); | 93 | 2 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 22 | while (a_pos < a_end) { | 96 | 20 | *c_pos = Op::apply(*a_pos, b); | 97 | 20 | ++a_pos; | 98 | 20 | ++c_pos; | 99 | 20 | } | 100 | 2 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 507 | PaddedPODArray<UInt8>& c) { | 90 | 507 | size_t size = a.size(); | 91 | 507 | const A* __restrict a_pos = a.data(); | 92 | 507 | UInt8* __restrict c_pos = c.data(); | 93 | 507 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.12k | while (a_pos < a_end) { | 96 | 3.61k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.61k | ++a_pos; | 98 | 3.61k | ++c_pos; | 99 | 3.61k | } | 100 | 507 | } |
_ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 347 | PaddedPODArray<UInt8>& c) { | 90 | 347 | size_t size = a.size(); | 91 | 347 | const A* __restrict a_pos = a.data(); | 92 | 347 | UInt8* __restrict c_pos = c.data(); | 93 | 347 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.02k | while (a_pos < a_end) { | 96 | 6.67k | *c_pos = Op::apply(*a_pos, b); | 97 | 6.67k | ++a_pos; | 98 | 6.67k | ++c_pos; | 99 | 6.67k | } | 100 | 347 | } |
_ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 427 | PaddedPODArray<UInt8>& c) { | 90 | 427 | size_t size = a.size(); | 91 | 427 | const A* __restrict a_pos = a.data(); | 92 | 427 | UInt8* __restrict c_pos = c.data(); | 93 | 427 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.40k | while (a_pos < a_end) { | 96 | 2.97k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.97k | ++a_pos; | 98 | 2.97k | ++c_pos; | 99 | 2.97k | } | 100 | 427 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 561 | PaddedPODArray<UInt8>& c) { | 90 | 561 | size_t size = a.size(); | 91 | 561 | const A* __restrict a_pos = a.data(); | 92 | 561 | UInt8* __restrict c_pos = c.data(); | 93 | 561 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.14k | while (a_pos < a_end) { | 96 | 8.58k | *c_pos = Op::apply(*a_pos, b); | 97 | 8.58k | ++a_pos; | 98 | 8.58k | ++c_pos; | 99 | 8.58k | } | 100 | 561 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 992 | PaddedPODArray<UInt8>& c) { | 90 | 992 | size_t size = a.size(); | 91 | 992 | const A* __restrict a_pos = a.data(); | 92 | 992 | UInt8* __restrict c_pos = c.data(); | 93 | 992 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 284k | while (a_pos < a_end) { | 96 | 283k | *c_pos = Op::apply(*a_pos, b); | 97 | 283k | ++a_pos; | 98 | 283k | ++c_pos; | 99 | 283k | } | 100 | 992 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 4 | PaddedPODArray<UInt8>& c) { | 90 | 4 | size_t size = a.size(); | 91 | 4 | const A* __restrict a_pos = a.data(); | 92 | 4 | UInt8* __restrict c_pos = c.data(); | 93 | 4 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 7.22k | while (a_pos < a_end) { | 96 | 7.22k | *c_pos = Op::apply(*a_pos, b); | 97 | 7.22k | ++a_pos; | 98 | 7.22k | ++c_pos; | 99 | 7.22k | } | 100 | 4 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 36 | PaddedPODArray<UInt8>& c) { | 90 | 36 | size_t size = a.size(); | 91 | 36 | const A* __restrict a_pos = a.data(); | 92 | 36 | UInt8* __restrict c_pos = c.data(); | 93 | 36 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 79.7k | while (a_pos < a_end) { | 96 | 79.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 79.7k | ++a_pos; | 98 | 79.7k | ++c_pos; | 99 | 79.7k | } | 100 | 36 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 449 | PaddedPODArray<UInt8>& c) { | 90 | 449 | size_t size = a.size(); | 91 | 449 | const A* __restrict a_pos = a.data(); | 92 | 449 | UInt8* __restrict c_pos = c.data(); | 93 | 449 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.47M | while (a_pos < a_end) { | 96 | 1.47M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.47M | ++a_pos; | 98 | 1.47M | ++c_pos; | 99 | 1.47M | } | 100 | 449 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 149 | PaddedPODArray<UInt8>& c) { | 90 | 149 | size_t size = a.size(); | 91 | 149 | const A* __restrict a_pos = a.data(); | 92 | 149 | UInt8* __restrict c_pos = c.data(); | 93 | 149 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 617k | while (a_pos < a_end) { | 96 | 617k | *c_pos = Op::apply(*a_pos, b); | 97 | 617k | ++a_pos; | 98 | 617k | ++c_pos; | 99 | 617k | } | 100 | 149 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 114 | PaddedPODArray<UInt8>& c) { | 90 | 114 | size_t size = a.size(); | 91 | 114 | const A* __restrict a_pos = a.data(); | 92 | 114 | UInt8* __restrict c_pos = c.data(); | 93 | 114 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 423 | while (a_pos < a_end) { | 96 | 309 | *c_pos = Op::apply(*a_pos, b); | 97 | 309 | ++a_pos; | 98 | 309 | ++c_pos; | 99 | 309 | } | 100 | 114 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 73 | PaddedPODArray<UInt8>& c) { | 90 | 73 | size_t size = a.size(); | 91 | 73 | const A* __restrict a_pos = a.data(); | 92 | 73 | UInt8* __restrict c_pos = c.data(); | 93 | 73 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 363 | while (a_pos < a_end) { | 96 | 290 | *c_pos = Op::apply(*a_pos, b); | 97 | 290 | ++a_pos; | 98 | 290 | ++c_pos; | 99 | 290 | } | 100 | 73 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 46 | PaddedPODArray<UInt8>& c) { | 90 | 46 | size_t size = a.size(); | 91 | 46 | const A* __restrict a_pos = a.data(); | 92 | 46 | UInt8* __restrict c_pos = c.data(); | 93 | 46 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 113 | while (a_pos < a_end) { | 96 | 67 | *c_pos = Op::apply(*a_pos, b); | 97 | 67 | ++a_pos; | 98 | 67 | ++c_pos; | 99 | 67 | } | 100 | 46 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 38 | PaddedPODArray<UInt8>& c) { | 90 | 38 | size_t size = a.size(); | 91 | 38 | const A* __restrict a_pos = a.data(); | 92 | 38 | UInt8* __restrict c_pos = c.data(); | 93 | 38 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 91 | while (a_pos < a_end) { | 96 | 53 | *c_pos = Op::apply(*a_pos, b); | 97 | 53 | ++a_pos; | 98 | 53 | ++c_pos; | 99 | 53 | } | 100 | 38 | } |
_ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 1 | PaddedPODArray<UInt8>& c) { | 90 | 1 | size_t size = a.size(); | 91 | 1 | const A* __restrict a_pos = a.data(); | 92 | 1 | UInt8* __restrict c_pos = c.data(); | 93 | 1 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3 | while (a_pos < a_end) { | 96 | 2 | *c_pos = Op::apply(*a_pos, b); | 97 | 2 | ++a_pos; | 98 | 2 | ++c_pos; | 99 | 2 | } | 100 | 1 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 48 | PaddedPODArray<UInt8>& c) { | 90 | 48 | size_t size = a.size(); | 91 | 48 | const A* __restrict a_pos = a.data(); | 92 | 48 | UInt8* __restrict c_pos = c.data(); | 93 | 48 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 85.6k | while (a_pos < a_end) { | 96 | 85.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 85.5k | ++a_pos; | 98 | 85.5k | ++c_pos; | 99 | 85.5k | } | 100 | 48 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 71 | PaddedPODArray<UInt8>& c) { | 90 | 71 | size_t size = a.size(); | 91 | 71 | const A* __restrict a_pos = a.data(); | 92 | 71 | UInt8* __restrict c_pos = c.data(); | 93 | 71 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 129k | while (a_pos < a_end) { | 96 | 129k | *c_pos = Op::apply(*a_pos, b); | 97 | 129k | ++a_pos; | 98 | 129k | ++c_pos; | 99 | 129k | } | 100 | 71 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 120 | PaddedPODArray<UInt8>& c) { | 90 | 120 | size_t size = a.size(); | 91 | 120 | const A* __restrict a_pos = a.data(); | 92 | 120 | UInt8* __restrict c_pos = c.data(); | 93 | 120 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 95.3k | while (a_pos < a_end) { | 96 | 95.2k | *c_pos = Op::apply(*a_pos, b); | 97 | 95.2k | ++a_pos; | 98 | 95.2k | ++c_pos; | 99 | 95.2k | } | 100 | 120 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 138 | PaddedPODArray<UInt8>& c) { | 90 | 138 | size_t size = a.size(); | 91 | 138 | const A* __restrict a_pos = a.data(); | 92 | 138 | UInt8* __restrict c_pos = c.data(); | 93 | 138 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 22.4k | while (a_pos < a_end) { | 96 | 22.3k | *c_pos = Op::apply(*a_pos, b); | 97 | 22.3k | ++a_pos; | 98 | 22.3k | ++c_pos; | 99 | 22.3k | } | 100 | 138 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 800 | PaddedPODArray<UInt8>& c) { | 90 | 800 | size_t size = a.size(); | 91 | 800 | const A* __restrict a_pos = a.data(); | 92 | 800 | UInt8* __restrict c_pos = c.data(); | 93 | 800 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.38M | while (a_pos < a_end) { | 96 | 2.38M | *c_pos = Op::apply(*a_pos, b); | 97 | 2.38M | ++a_pos; | 98 | 2.38M | ++c_pos; | 99 | 2.38M | } | 100 | 800 | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.57k | PaddedPODArray<UInt8>& c) { | 90 | 6.57k | size_t size = a.size(); | 91 | 6.57k | const A* __restrict a_pos = a.data(); | 92 | 6.57k | UInt8* __restrict c_pos = c.data(); | 93 | 6.57k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 6.35M | while (a_pos < a_end) { | 96 | 6.35M | *c_pos = Op::apply(*a_pos, b); | 97 | 6.35M | ++a_pos; | 98 | 6.35M | ++c_pos; | 99 | 6.35M | } | 100 | 6.57k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 832 | PaddedPODArray<UInt8>& c) { | 90 | 832 | size_t size = a.size(); | 91 | 832 | const A* __restrict a_pos = a.data(); | 92 | 832 | UInt8* __restrict c_pos = c.data(); | 93 | 832 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.22k | while (a_pos < a_end) { | 96 | 3.39k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.39k | ++a_pos; | 98 | 3.39k | ++c_pos; | 99 | 3.39k | } | 100 | 832 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 667 | PaddedPODArray<UInt8>& c) { | 90 | 667 | size_t size = a.size(); | 91 | 667 | const A* __restrict a_pos = a.data(); | 92 | 667 | UInt8* __restrict c_pos = c.data(); | 93 | 667 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.6k | while (a_pos < a_end) { | 96 | 45.9k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.9k | ++a_pos; | 98 | 45.9k | ++c_pos; | 99 | 45.9k | } | 100 | 667 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 29 | PaddedPODArray<UInt8>& c) { | 90 | 29 | size_t size = a.size(); | 91 | 29 | const A* __restrict a_pos = a.data(); | 92 | 29 | UInt8* __restrict c_pos = c.data(); | 93 | 29 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 122k | while (a_pos < a_end) { | 96 | 122k | *c_pos = Op::apply(*a_pos, b); | 97 | 122k | ++a_pos; | 98 | 122k | ++c_pos; | 99 | 122k | } | 100 | 29 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 38 | PaddedPODArray<UInt8>& c) { | 90 | 38 | size_t size = a.size(); | 91 | 38 | const A* __restrict a_pos = a.data(); | 92 | 38 | UInt8* __restrict c_pos = c.data(); | 93 | 38 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 80.5k | while (a_pos < a_end) { | 96 | 80.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 80.4k | ++a_pos; | 98 | 80.4k | ++c_pos; | 99 | 80.4k | } | 100 | 38 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15vector_constantERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 469 | PaddedPODArray<UInt8>& c) { | 90 | 469 | size_t size = a.size(); | 91 | 469 | const A* __restrict a_pos = a.data(); | 92 | 469 | UInt8* __restrict c_pos = c.data(); | 93 | 469 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 49.6k | while (a_pos < a_end) { | 96 | 49.1k | *c_pos = Op::apply(*a_pos, b); | 97 | 49.1k | ++a_pos; | 98 | 49.1k | ++c_pos; | 99 | 49.1k | } | 100 | 469 | } |
_ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15vector_constantERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEoRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 311 | PaddedPODArray<UInt8>& c) { | 90 | 311 | size_t size = a.size(); | 91 | 311 | const A* __restrict a_pos = a.data(); | 92 | 311 | UInt8* __restrict c_pos = c.data(); | 93 | 311 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.39k | while (a_pos < a_end) { | 96 | 3.08k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.08k | ++a_pos; | 98 | 3.08k | ++c_pos; | 99 | 3.08k | } | 100 | 311 | } |
_ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 10 | PaddedPODArray<UInt8>& c) { | 90 | 10 | size_t size = a.size(); | 91 | 10 | const A* __restrict a_pos = a.data(); | 92 | 10 | UInt8* __restrict c_pos = c.data(); | 93 | 10 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 28 | while (a_pos < a_end) { | 96 | 18 | *c_pos = Op::apply(*a_pos, b); | 97 | 18 | ++a_pos; | 98 | 18 | ++c_pos; | 99 | 18 | } | 100 | 10 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 109 | PaddedPODArray<UInt8>& c) { | 90 | 109 | size_t size = a.size(); | 91 | 109 | const A* __restrict a_pos = a.data(); | 92 | 109 | UInt8* __restrict c_pos = c.data(); | 93 | 109 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 355k | while (a_pos < a_end) { | 96 | 355k | *c_pos = Op::apply(*a_pos, b); | 97 | 355k | ++a_pos; | 98 | 355k | ++c_pos; | 99 | 355k | } | 100 | 109 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 94 | PaddedPODArray<UInt8>& c) { | 90 | 94 | size_t size = a.size(); | 91 | 94 | const A* __restrict a_pos = a.data(); | 92 | 94 | UInt8* __restrict c_pos = c.data(); | 93 | 94 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 275k | while (a_pos < a_end) { | 96 | 275k | *c_pos = Op::apply(*a_pos, b); | 97 | 275k | ++a_pos; | 98 | 275k | ++c_pos; | 99 | 275k | } | 100 | 94 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 6.92k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 6.92k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 6.92k | } Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 102 | 12 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 12 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 12 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_8EqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 252 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 252 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 252 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 36 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 134 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 134 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 134 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 1.02k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 1.02k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 1.02k | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 16 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 16 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 16 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_8EqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIooNS_8EqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 54 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 54 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 54 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_8EqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_11NotEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_11NotEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_11NotEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_11NotEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_11NotEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 82 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 82 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 82 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_11NotEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_11NotEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_9GreaterOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_9GreaterOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_9GreaterOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_9GreaterOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 210 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 210 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 210 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 216 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 216 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 216 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 3.69k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 3.69k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 3.69k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 522 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 522 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 522 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 57 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 57 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 57 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_9GreaterOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_9GreaterOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_9GreaterOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 6 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 6 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 6 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_6LessOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 216 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 216 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 216 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 191 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 191 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 191 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 67 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 67 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 67 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 88 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 88 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 88 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15constant_vectorEhRKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERS9_ _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 102 | 5 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 5 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 5 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15constant_vectorES3_RKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS8_IhLm4096ESB_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15constant_vectorES1_RKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15constant_vectorEaRKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 36 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 36 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 36 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE44EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_14LessOrEqualsOpILNS_13PrimitiveTypeE8EEEE15constant_vectorEfRKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15constant_vectorEdRKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE |
105 | | }; |
106 | | |
107 | | /// Generic version, implemented for columns of same type. |
108 | | template <typename Op> |
109 | | struct GenericComparisonImpl { |
110 | 24 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
111 | 75 | for (size_t i = 0, size = a.size(); i < size; ++i) { |
112 | 51 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); |
113 | 51 | } |
114 | 24 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 16 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 46 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 30 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 30 | } | 114 | 16 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 2 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 12 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 10 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 10 | } | 114 | 2 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 1 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 2 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 1 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 1 | } | 114 | 1 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 110 | 4 | static void vector_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 111 | 13 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 112 | 9 | c[i] = Op::apply(a.compare_at(i, i, b, 1), 0); | 113 | 9 | } | 114 | 4 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
115 | | |
116 | 116 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 116 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 267k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 267k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 267k | } |
121 | 116 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 19 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 19 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 60 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 41 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 41 | } | 121 | 19 | } |
_ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 8 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 8 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 16 | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 8 | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 8 | } | 121 | 8 | } |
_ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 30 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 30 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 93.2k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 93.2k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 93.2k | } | 121 | 30 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 43 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 43 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 174k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 173k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 173k | } | 121 | 43 | } |
|
122 | | |
123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); |
125 | 1 | } _ZN5doris21GenericComparisonImplINS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 123 | 1 | static void constant_vector(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 124 | 1 | GenericComparisonImpl<typename Op::SymmetricOp>::vector_constant(b, a, c); | 125 | 1 | } |
Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_11NotEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Unexecuted instantiation: _ZN5doris21GenericComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE |
126 | | }; |
127 | | |
128 | | template <typename Op> |
129 | | struct StringComparisonImpl { |
130 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
131 | | const ColumnString::Offsets& a_offsets, |
132 | | const ColumnString::Chars& b_data, |
133 | | const ColumnString::Offsets& b_offsets, |
134 | 438 | PaddedPODArray<UInt8>& c) { |
135 | 438 | size_t size = a_offsets.size(); |
136 | 438 | ColumnString::Offset prev_a_offset = 0; |
137 | 438 | ColumnString::Offset prev_b_offset = 0; |
138 | 438 | const auto* a_pos = a_data.data(); |
139 | 438 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.60k | for (size_t i = 0; i < size; ++i) { |
142 | 1.17k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.17k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.17k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.17k | 0); |
146 | | |
147 | 1.17k | prev_a_offset = a_offsets[i]; |
148 | 1.17k | prev_b_offset = b_offsets[i]; |
149 | 1.17k | } |
150 | 438 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 2 | PaddedPODArray<UInt8>& c) { | 135 | 2 | size_t size = a_offsets.size(); | 136 | 2 | ColumnString::Offset prev_a_offset = 0; | 137 | 2 | ColumnString::Offset prev_b_offset = 0; | 138 | 2 | const auto* a_pos = a_data.data(); | 139 | 2 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 49 | for (size_t i = 0; i < size; ++i) { | 142 | 47 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 47 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 47 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 47 | 0); | 146 | | | 147 | 47 | prev_a_offset = a_offsets[i]; | 148 | 47 | prev_b_offset = b_offsets[i]; | 149 | 47 | } | 150 | 2 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 31 | PaddedPODArray<UInt8>& c) { | 135 | 31 | size_t size = a_offsets.size(); | 136 | 31 | ColumnString::Offset prev_a_offset = 0; | 137 | 31 | ColumnString::Offset prev_b_offset = 0; | 138 | 31 | const auto* a_pos = a_data.data(); | 139 | 31 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 218 | for (size_t i = 0; i < size; ++i) { | 142 | 187 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 187 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 187 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 187 | 0); | 146 | | | 147 | 187 | prev_a_offset = a_offsets[i]; | 148 | 187 | prev_b_offset = b_offsets[i]; | 149 | 187 | } | 150 | 31 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ Line | Count | Source | 134 | 405 | PaddedPODArray<UInt8>& c) { | 135 | 405 | size_t size = a_offsets.size(); | 136 | 405 | ColumnString::Offset prev_a_offset = 0; | 137 | 405 | ColumnString::Offset prev_b_offset = 0; | 138 | 405 | const auto* a_pos = a_data.data(); | 139 | 405 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.34k | for (size_t i = 0; i < size; ++i) { | 142 | 937 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 937 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 937 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 937 | 0); | 146 | | | 147 | 937 | prev_a_offset = a_offsets[i]; | 148 | 937 | prev_b_offset = b_offsets[i]; | 149 | 937 | } | 150 | 405 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_SE_RS9_ |
151 | | |
152 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
153 | | const ColumnString::Offsets& a_offsets, |
154 | | const ColumnString::Chars& b_data, |
155 | | ColumnString::Offset b_size, |
156 | 1.56k | PaddedPODArray<UInt8>& c) { |
157 | 1.56k | size_t size = a_offsets.size(); |
158 | 1.56k | ColumnString::Offset prev_a_offset = 0; |
159 | 1.56k | const auto* a_pos = a_data.data(); |
160 | 1.56k | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.12M | for (size_t i = 0; i < size; ++i) { |
163 | 1.12M | c[i] = Op::apply( |
164 | 1.12M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.12M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.12M | 0); |
167 | | |
168 | 1.12M | prev_a_offset = a_offsets[i]; |
169 | 1.12M | } |
170 | 1.56k | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 239 | PaddedPODArray<UInt8>& c) { | 157 | 239 | size_t size = a_offsets.size(); | 158 | 239 | ColumnString::Offset prev_a_offset = 0; | 159 | 239 | const auto* a_pos = a_data.data(); | 160 | 239 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 355k | for (size_t i = 0; i < size; ++i) { | 163 | 355k | c[i] = Op::apply( | 164 | 355k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 355k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 355k | 0); | 167 | | | 168 | 355k | prev_a_offset = a_offsets[i]; | 169 | 355k | } | 170 | 239 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 165 | PaddedPODArray<UInt8>& c) { | 157 | 165 | size_t size = a_offsets.size(); | 158 | 165 | ColumnString::Offset prev_a_offset = 0; | 159 | 165 | const auto* a_pos = a_data.data(); | 160 | 165 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 105k | for (size_t i = 0; i < size; ++i) { | 163 | 105k | c[i] = Op::apply( | 164 | 105k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 105k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 105k | 0); | 167 | | | 168 | 105k | prev_a_offset = a_offsets[i]; | 169 | 105k | } | 170 | 165 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 885 | PaddedPODArray<UInt8>& c) { | 157 | 885 | size_t size = a_offsets.size(); | 158 | 885 | ColumnString::Offset prev_a_offset = 0; | 159 | 885 | const auto* a_pos = a_data.data(); | 160 | 885 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 276k | for (size_t i = 0; i < size; ++i) { | 163 | 276k | c[i] = Op::apply( | 164 | 276k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 276k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 276k | 0); | 167 | | | 168 | 276k | prev_a_offset = a_offsets[i]; | 169 | 276k | } | 170 | 885 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 275 | PaddedPODArray<UInt8>& c) { | 157 | 275 | size_t size = a_offsets.size(); | 158 | 275 | ColumnString::Offset prev_a_offset = 0; | 159 | 275 | const auto* a_pos = a_data.data(); | 160 | 275 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 385k | for (size_t i = 0; i < size; ++i) { | 163 | 385k | c[i] = Op::apply( | 164 | 385k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 385k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 385k | 0); | 167 | | | 168 | 385k | prev_a_offset = a_offsets[i]; | 169 | 385k | } | 170 | 275 | } |
|
171 | | |
172 | | static void constant_string_vector(const ColumnString::Chars& a_data, |
173 | | ColumnString::Offset a_size, |
174 | | const ColumnString::Chars& b_data, |
175 | | const ColumnString::Offsets& b_offsets, |
176 | 6 | PaddedPODArray<UInt8>& c) { |
177 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 6 | a_data, a_size, c); |
179 | 6 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_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 | 176 | 6 | PaddedPODArray<UInt8>& c) { | 177 | 6 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 6 | a_data, a_size, c); | 179 | 6 | } |
Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ |
180 | | }; |
181 | | |
182 | | template <bool positive> |
183 | | struct StringEqualsImpl { |
184 | | static void NO_INLINE string_vector_string_vector(const ColumnString::Chars& a_data, |
185 | | const ColumnString::Offsets& a_offsets, |
186 | | const ColumnString::Chars& b_data, |
187 | | const ColumnString::Offsets& b_offsets, |
188 | 563 | PaddedPODArray<UInt8>& c) { |
189 | 563 | size_t size = a_offsets.size(); |
190 | 563 | ColumnString::Offset prev_a_offset = 0; |
191 | 563 | ColumnString::Offset prev_b_offset = 0; |
192 | 563 | const auto* a_pos = a_data.data(); |
193 | 563 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 14.0k | for (size_t i = 0; i < size; ++i) { |
196 | 13.4k | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 13.4k | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 13.4k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 13.4k | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 13.4k | prev_a_offset = a_offsets[i]; |
203 | 13.4k | prev_b_offset = b_offsets[i]; |
204 | 13.4k | } |
205 | 563 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 545 | PaddedPODArray<UInt8>& c) { | 189 | 545 | size_t size = a_offsets.size(); | 190 | 545 | ColumnString::Offset prev_a_offset = 0; | 191 | 545 | ColumnString::Offset prev_b_offset = 0; | 192 | 545 | const auto* a_pos = a_data.data(); | 193 | 545 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 8.84k | for (size_t i = 0; i < size; ++i) { | 196 | 8.30k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 8.30k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 8.30k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 8.30k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 8.30k | prev_a_offset = a_offsets[i]; | 203 | 8.30k | prev_b_offset = b_offsets[i]; | 204 | 8.30k | } | 205 | 545 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 18 | PaddedPODArray<UInt8>& c) { | 189 | 18 | size_t size = a_offsets.size(); | 190 | 18 | ColumnString::Offset prev_a_offset = 0; | 191 | 18 | ColumnString::Offset prev_b_offset = 0; | 192 | 18 | const auto* a_pos = a_data.data(); | 193 | 18 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 5.17k | for (size_t i = 0; i < size; ++i) { | 196 | 5.15k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 5.15k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 5.15k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 5.15k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 5.15k | prev_a_offset = a_offsets[i]; | 203 | 5.15k | prev_b_offset = b_offsets[i]; | 204 | 5.15k | } | 205 | 18 | } |
|
206 | | |
207 | | static void NO_INLINE string_vector_constant(const ColumnString::Chars& a_data, |
208 | | const ColumnString::Offsets& a_offsets, |
209 | | const ColumnString::Chars& b_data, |
210 | | ColumnString::Offset b_size, |
211 | 21.5k | PaddedPODArray<UInt8>& c) { |
212 | 21.5k | size_t size = a_offsets.size(); |
213 | 21.5k | if (b_size == 0) { |
214 | 1 | auto* __restrict data = c.data(); |
215 | 1 | auto* __restrict offsets = a_offsets.data(); |
216 | | |
217 | 1 | ColumnString::Offset prev_a_offset = 0; |
218 | 4 | for (size_t i = 0; i < size; ++i) { |
219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); |
220 | 3 | prev_a_offset = offsets[i]; |
221 | 3 | } |
222 | 21.5k | } else { |
223 | 21.5k | ColumnString::Offset prev_a_offset = 0; |
224 | 21.5k | const auto* a_pos = a_data.data(); |
225 | 21.5k | const auto* b_pos = b_data.data(); |
226 | 9.65M | for (size_t i = 0; i < size; ++i) { |
227 | 9.63M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.63M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.63M | b_pos, b_size); |
230 | 9.63M | prev_a_offset = a_offsets[i]; |
231 | 9.63M | } |
232 | 21.5k | } |
233 | 21.5k | } _ZN5doris16StringEqualsImplILb1EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 21.4k | PaddedPODArray<UInt8>& c) { | 212 | 21.4k | size_t size = a_offsets.size(); | 213 | 21.4k | if (b_size == 0) { | 214 | 0 | auto* __restrict data = c.data(); | 215 | 0 | auto* __restrict offsets = a_offsets.data(); | 216 | |
| 217 | 0 | ColumnString::Offset prev_a_offset = 0; | 218 | 0 | for (size_t i = 0; i < size; ++i) { | 219 | 0 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 0 | prev_a_offset = offsets[i]; | 221 | 0 | } | 222 | 21.4k | } else { | 223 | 21.4k | ColumnString::Offset prev_a_offset = 0; | 224 | 21.4k | const auto* a_pos = a_data.data(); | 225 | 21.4k | const auto* b_pos = b_data.data(); | 226 | 9.59M | for (size_t i = 0; i < size; ++i) { | 227 | 9.57M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.57M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.57M | b_pos, b_size); | 230 | 9.57M | prev_a_offset = a_offsets[i]; | 231 | 9.57M | } | 232 | 21.4k | } | 233 | 21.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 103 | PaddedPODArray<UInt8>& c) { | 212 | 103 | size_t size = a_offsets.size(); | 213 | 103 | if (b_size == 0) { | 214 | 1 | auto* __restrict data = c.data(); | 215 | 1 | auto* __restrict offsets = a_offsets.data(); | 216 | | | 217 | 1 | ColumnString::Offset prev_a_offset = 0; | 218 | 4 | for (size_t i = 0; i < size; ++i) { | 219 | 3 | data[i] = positive ? (offsets[i] == prev_a_offset) : (offsets[i] != prev_a_offset); | 220 | 3 | prev_a_offset = offsets[i]; | 221 | 3 | } | 222 | 102 | } else { | 223 | 102 | ColumnString::Offset prev_a_offset = 0; | 224 | 102 | const auto* a_pos = a_data.data(); | 225 | 102 | const auto* b_pos = b_data.data(); | 226 | 60.8k | for (size_t i = 0; i < size; ++i) { | 227 | 60.7k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 60.7k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 60.7k | b_pos, b_size); | 230 | 60.7k | prev_a_offset = a_offsets[i]; | 231 | 60.7k | } | 232 | 102 | } | 233 | 103 | } |
|
234 | | |
235 | | static void NO_INLINE constant_string_vector(const ColumnString::Chars& a_data, |
236 | | ColumnString::Offset a_size, |
237 | | const ColumnString::Chars& b_data, |
238 | | const ColumnString::Offsets& b_offsets, |
239 | 19 | PaddedPODArray<UInt8>& c) { |
240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 19 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 19 | PaddedPODArray<UInt8>& c) { | 240 | 19 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 19 | } |
Unexecuted instantiation: _ZN5doris16StringEqualsImplILb0EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ |
242 | | }; |
243 | | |
244 | | template <PrimitiveType PT> |
245 | | struct StringComparisonImpl<EqualsOp<PT>> : StringEqualsImpl<true> {}; |
246 | | |
247 | | template <PrimitiveType PT> |
248 | | struct StringComparisonImpl<NotEqualsOp<PT>> : StringEqualsImpl<false> {}; |
249 | | |
250 | | struct NameEquals { |
251 | | static constexpr auto name = "eq"; |
252 | | }; |
253 | | struct NameNotEquals { |
254 | | static constexpr auto name = "ne"; |
255 | | }; |
256 | | struct NameLess { |
257 | | static constexpr auto name = "lt"; |
258 | | }; |
259 | | struct NameGreater { |
260 | | static constexpr auto name = "gt"; |
261 | | }; |
262 | | struct NameLessOrEquals { |
263 | | static constexpr auto name = "le"; |
264 | | }; |
265 | | struct NameGreaterOrEquals { |
266 | | static constexpr auto name = "ge"; |
267 | | }; |
268 | | |
269 | | namespace comparison_zonemap_detail { |
270 | | enum class Op { |
271 | | EQ, |
272 | | NE, |
273 | | LT, |
274 | | LE, |
275 | | GT, |
276 | | GE, |
277 | | }; |
278 | | |
279 | 19 | inline Op symmetric_op(Op op) { |
280 | 19 | switch (op) { |
281 | 0 | case Op::EQ: |
282 | 0 | case Op::NE: |
283 | 0 | return op; |
284 | 11 | case Op::LT: |
285 | 11 | return Op::GT; |
286 | 6 | case Op::LE: |
287 | 6 | return Op::GE; |
288 | 0 | case Op::GT: |
289 | 0 | return Op::LT; |
290 | 2 | case Op::GE: |
291 | 2 | return Op::LE; |
292 | 19 | } |
293 | 0 | __builtin_unreachable(); |
294 | 19 | } |
295 | | |
296 | | // Return true when `L <op> R` cannot be TRUE for any row, given that every non-null value of the |
297 | | // left operand lies in [lmin, lmax] and every non-null value of the right operand lies in |
298 | | // [rmin, rmax]. This only compares the four bounds: callers must already have rejected zone maps |
299 | | // whose bounds are unusable and columns that hold no non-null value at all. |
300 | | // |
301 | | // The slot-vs-literal path passes the literal as the degenerate range [literal, literal], which |
302 | | // reduces every branch below to the plain slot-vs-literal test it replaced. |
303 | | inline bool range_vs_range_no_match(const Field& lmin, const Field& lmax, const Field& rmin, |
304 | 4.09k | const Field& rmax, Op op) { |
305 | 4.09k | switch (op) { |
306 | 1.92k | case Op::EQ: |
307 | | // Disjoint ranges cannot share a value. |
308 | 1.92k | return lmin > rmax || rmin > lmax; |
309 | 169 | case Op::NE: |
310 | | // Only provable when both sides collapse to the same single value. |
311 | 169 | return lmin == lmax && rmin == rmax && lmin == rmin; |
312 | 700 | case Op::LT: |
313 | 700 | return lmin >= rmax; |
314 | 287 | case Op::LE: |
315 | 287 | return lmin > rmax; |
316 | 684 | case Op::GT: |
317 | 684 | return rmin >= lmax; |
318 | 331 | case Op::GE: |
319 | 331 | return rmin > lmax; |
320 | 4.09k | } |
321 | 0 | __builtin_unreachable(); |
322 | 4.09k | } |
323 | | |
324 | | inline ZoneMapFilterResult evaluate_slot_literal(const ZoneMapEvalContext& ctx, |
325 | | const expr_zonemap::SlotLiteral& slot_literal, |
326 | 4.18k | Op op) { |
327 | 4.18k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal.slot_index, |
328 | 4.18k | slot_literal.slot_type); |
329 | 4.18k | if (slot_type == nullptr) { |
330 | 293 | return unsupported_zonemap_filter(ctx); |
331 | 293 | } |
332 | 3.89k | auto zone_map_ptr = ctx.zone_map(slot_literal.slot_index); |
333 | 3.89k | if (zone_map_ptr == nullptr) { |
334 | 123 | return unsupported_zonemap_filter(ctx); |
335 | 123 | } |
336 | 3.76k | const auto& zone_map = *zone_map_ptr; |
337 | 3.76k | if (!zone_map.has_not_null) { |
338 | 79 | return ZoneMapFilterResult::kNoMatch; |
339 | 79 | } |
340 | 3.68k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
341 | 119 | return unsupported_zonemap_filter(ctx); |
342 | 119 | } |
343 | | |
344 | 3.56k | const auto effective_op = slot_literal.literal_on_left ? symmetric_op(op) : op; |
345 | 3.56k | const auto& literal = slot_literal.literal; |
346 | 3.56k | const bool literal_is_nan = literal.is_nan(); |
347 | 3.56k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
348 | 3.56k | (effective_op == Op::NE && !literal_is_nan) || |
349 | 3.56k | (effective_op == Op::GT && !literal_is_nan) || |
350 | 3.56k | effective_op == Op::GE; |
351 | 3.56k | if (ctx.floating_nan_count_unknown(slot_literal.slot_index) && hidden_nan_can_match) { |
352 | | // Parquet bounds omit NaNs, so only operators that cannot match a hidden NaN may prune. |
353 | 604 | return unsupported_zonemap_filter(ctx); |
354 | 604 | } |
355 | 2.96k | return range_vs_range_no_match(zone_map.min_value, zone_map.max_value, literal, literal, |
356 | 2.96k | effective_op) |
357 | 2.96k | ? ZoneMapFilterResult::kNoMatch |
358 | 2.96k | : ZoneMapFilterResult::kMayMatch; |
359 | 3.56k | } |
360 | | |
361 | | inline ZoneMapFilterResult evaluate_slot_slot(const ZoneMapEvalContext& ctx, |
362 | 1.19k | const expr_zonemap::SlotSlot& slot_slot, Op op) { |
363 | 1.19k | const auto left_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_slot.left_slot_index, |
364 | 1.19k | slot_slot.left_type); |
365 | 1.19k | const auto right_type = expr_zonemap::fetch_compatible_slot_type( |
366 | 1.19k | ctx, slot_slot.right_slot_index, slot_slot.right_type); |
367 | 1.19k | if (left_type == nullptr || right_type == nullptr) { |
368 | | // The context skips a slot entirely when the segment cannot apply predicates on it. |
369 | 1 | return unsupported_zonemap_filter(ctx); |
370 | 1 | } |
371 | 1.19k | const auto left_zone_map = ctx.zone_map(slot_slot.left_slot_index); |
372 | 1.19k | const auto right_zone_map = ctx.zone_map(slot_slot.right_slot_index); |
373 | 1.19k | if (left_zone_map == nullptr || right_zone_map == nullptr) { |
374 | | // A slot can be present with a data type but no zone map, so this is a separate check. |
375 | 9 | return unsupported_zonemap_filter(ctx); |
376 | 9 | } |
377 | | // A column holding no non-null value makes the comparison NULL on every row, which never |
378 | | // satisfies a WHERE conjunct. This must run before the range checks below: an all-null zone map |
379 | | // leaves min/max default-constructed as TYPE_NULL, which the range checks would fatal on. |
380 | 1.18k | if (!left_zone_map->has_not_null || !right_zone_map->has_not_null) { |
381 | 29 | return ZoneMapFilterResult::kNoMatch; |
382 | 29 | } |
383 | 1.15k | if (!expr_zonemap::range_stats_usable_for_zonemap(*left_zone_map, left_type) || |
384 | 1.15k | !expr_zonemap::range_stats_usable_for_zonemap(*right_zone_map, right_type)) { |
385 | 9 | return unsupported_zonemap_filter(ctx); |
386 | 9 | } |
387 | | // A native string zone-map max of exactly MAX_ZONE_MAP_INDEX_SIZE bytes was bumped upward, |
388 | | // and may also have been truncated (segments written before the carry fix may hold a bump |
389 | | // that wrapped on 0xff), so a bound of that length is not a reliable fence for a two-sided |
390 | | // proof. A shorter bound is the exact value; the bump never changes the length, so this also |
391 | | // rejects those wrapped bounds. |
392 | | // The test only decides whether to trust the bound as a fence. A Parquet-sourced string bound |
393 | | // shorter than the cap is not necessarily exact, but it is a spec-conservative min/max, which |
394 | | // is all a range proof needs; do not tighten this to assume exactness below the cap. |
395 | | // data_types_compatible pairs strings only with strings, so checking one side's type is enough |
396 | | // to know all four bounds are strings. |
397 | 1.14k | if (is_string_type(remove_nullable(left_type)->get_primitive_type())) { |
398 | 389 | auto is_untruncated = [](const Field& f) { |
399 | 389 | return f.get<TYPE_STRING>().size() < MAX_ZONE_MAP_INDEX_SIZE; |
400 | 389 | }; |
401 | 99 | if (!is_untruncated(left_zone_map->min_value) || |
402 | 99 | !is_untruncated(left_zone_map->max_value) || |
403 | 99 | !is_untruncated(right_zone_map->min_value) || |
404 | 99 | !is_untruncated(right_zone_map->max_value)) { |
405 | 3 | return unsupported_zonemap_filter(ctx); |
406 | 3 | } |
407 | 99 | } |
408 | | // Parquet bounds omit NaN without recording how many were skipped, so a zone map that looks |
409 | | // like a single point may still hide one, which would flip the NE rule from false to true. The |
410 | | // slot-vs-literal path can reason per operator because it knows whether the literal is NaN; |
411 | | // with two slots there is no literal, so bail out for every operator instead. |
412 | 1.14k | if (ctx.floating_nan_count_unknown(slot_slot.left_slot_index) || |
413 | 1.14k | ctx.floating_nan_count_unknown(slot_slot.right_slot_index)) { |
414 | 12 | return unsupported_zonemap_filter(ctx); |
415 | 12 | } |
416 | 1.12k | return range_vs_range_no_match(left_zone_map->min_value, left_zone_map->max_value, |
417 | 1.12k | right_zone_map->min_value, right_zone_map->max_value, op) |
418 | 1.12k | ? ZoneMapFilterResult::kNoMatch |
419 | 1.12k | : ZoneMapFilterResult::kMayMatch; |
420 | 1.14k | } |
421 | | |
422 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
423 | 5.37k | Op op) { |
424 | 5.37k | if (auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
425 | 5.37k | slot_literal.has_value()) { |
426 | 4.20k | return evaluate_slot_literal(ctx, *slot_literal, op); |
427 | 4.20k | } |
428 | 1.17k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
429 | | // can_evaluate_zonemap_filter accepts exactly the two shapes handled above, so reaching this |
430 | | // point means the capability gate and this evaluator went out of sync. |
431 | 1.17k | DORIS_CHECK(slot_slot.has_value()); |
432 | 1.17k | return evaluate_slot_slot(ctx, *slot_slot, op); |
433 | 5.37k | } |
434 | | |
435 | 38.5k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
436 | 38.5k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
437 | 38.5k | if (!slot_literal.has_value()) { |
438 | 21.1k | return false; |
439 | 21.1k | } |
440 | | |
441 | | // A NULL literal makes the comparison evaluate to NULL instead of a byte range predicate on |
442 | | // the slot. This zonemap evaluator only derives bounds from non-NULL literals, so reject this |
443 | | // shape here before evaluate_zonemap_filter is called. |
444 | 17.3k | if (slot_literal->literal.is_null()) { |
445 | 4 | return false; |
446 | 4 | } |
447 | | |
448 | 17.3k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
449 | 17.3k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
450 | 17.3k | if (!expr_zonemap::data_types_compatible(slot_literal->slot_type, slot_literal->literal_type)) { |
451 | | // The optimizer may generate a bare slot/literal comparison whose logical types differ |
452 | | // only by attributes such as DATETIMEV2 scale. Expr zonemap evaluates stored Field |
453 | | // values without running expression casts, so conservatively skip this optimization. |
454 | 1 | return false; |
455 | 1 | } |
456 | | |
457 | 17.3k | return true; |
458 | 17.3k | } |
459 | | |
460 | | // Accept a comparison whose both operands are slot references. Kept separate from can_evaluate on |
461 | | // purpose: can_evaluate also gates dictionary filtering and can_evaluate_equality, and both of |
462 | | // those dereference extract_slot_and_literal behind a DORIS_CHECK, so widening it would abort on a |
463 | | // slot-vs-slot expression. Only can_evaluate_zonemap_filter ORs this in. |
464 | 20.9k | inline bool can_evaluate_slot_slot(const VExprSPtrs& arguments) { |
465 | 20.9k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
466 | 20.9k | if (!slot_slot.has_value()) { |
467 | 17.7k | return false; |
468 | 17.7k | } |
469 | 3.22k | DORIS_CHECK(slot_slot->left_type != nullptr); |
470 | 3.22k | DORIS_CHECK(slot_slot->right_type != nullptr); |
471 | | // Reject types whose slot-slot bounds cannot be compared safely: |
472 | | // - VARBINARY: v1 Parquet produces a TYPE_STRING bound for it, which |
473 | | // range_stats_usable_for_zonemap aborts on instead of falling back. |
474 | | // - VARIANT: a segment types a path slot by its inferred leaf type (a typed `v.a` is INT), so |
475 | | // fetch_compatible_slot_type's check against the VARIANT expression type would fail. |
476 | | // - ARRAY/MAP/STRUCT, JSONB, aggregate states: Field orders every pair of them as equal. |
477 | | // A truncated string bound is rejected later, in evaluate_slot_slot, by its length. |
478 | 6.64k | const auto excluded = [](const DataTypePtr& type) { |
479 | 6.64k | const auto primitive_type = remove_nullable(type)->get_primitive_type(); |
480 | 6.65k | return is_varbinary(primitive_type) || primitive_type == TYPE_VARIANT || |
481 | 6.65k | primitive_type == TYPE_JSONB || is_complex_type(primitive_type) || |
482 | 6.64k | is_var_len_object(primitive_type); |
483 | 6.64k | }; |
484 | 3.31k | if (excluded(slot_slot->left_type) || excluded(slot_slot->right_type)) { |
485 | 15 | return false; |
486 | 15 | } |
487 | | // The two zone maps' Fields are compared directly and Field comparison throws on mismatched |
488 | | // non-string types, so reject incompatible column pairs here. A pair differing only by width or |
489 | | // decimal scale never reaches this point anyway, because the optimizer inserts a cast and a |
490 | | // cast is not a VSlotRef. |
491 | 3.21k | return expr_zonemap::data_types_compatible(slot_slot->left_type, slot_slot->right_type); |
492 | 3.22k | } |
493 | | |
494 | 0 | inline bool can_evaluate_equality(const VExprSPtrs& arguments, Op op) { |
495 | 0 | if (op != Op::EQ || !can_evaluate(arguments)) { |
496 | 0 | return false; |
497 | 0 | } |
498 | 0 | const auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
499 | 0 | DORIS_CHECK(slot_literal.has_value()); |
500 | 0 | // Bloom membership cannot disprove Doris NaN equality across different physical encodings. |
501 | 0 | return !slot_literal->literal.is_nan(); |
502 | 0 | } |
503 | | |
504 | 27 | inline bool dictionary_value_matches(const Field& value, const Field& literal, Op op) { |
505 | 27 | switch (op) { |
506 | 8 | case Op::EQ: |
507 | 8 | return value == literal; |
508 | 0 | case Op::NE: |
509 | 0 | return value != literal; |
510 | 5 | case Op::LT: |
511 | 5 | return value < literal; |
512 | 0 | case Op::LE: |
513 | 0 | return value <= literal; |
514 | 14 | case Op::GT: |
515 | 14 | return value > literal; |
516 | 0 | case Op::GE: |
517 | 0 | return value >= literal; |
518 | 27 | } |
519 | 0 | __builtin_unreachable(); |
520 | 27 | } |
521 | | |
522 | | inline ZoneMapFilterResult evaluate_dictionary(const DictionaryEvalContext& ctx, |
523 | 14 | const VExprSPtrs& arguments, Op op) { |
524 | 14 | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
525 | 14 | DORIS_CHECK(slot_literal.has_value()); |
526 | 14 | const auto* dictionary = ctx.slot(slot_literal->slot_index); |
527 | 14 | if (dictionary == nullptr || dictionary->data_type == nullptr) { |
528 | 0 | return ZoneMapFilterResult::kUnsupported; |
529 | 0 | } |
530 | 14 | DORIS_CHECK( |
531 | 14 | expr_zonemap::data_types_compatible(dictionary->data_type, slot_literal->slot_type)); |
532 | 14 | if (slot_literal->literal.is_null()) { |
533 | 0 | return ZoneMapFilterResult::kUnsupported; |
534 | 0 | } |
535 | 14 | const auto effective_op = slot_literal->literal_on_left ? symmetric_op(op) : op; |
536 | | // Compare typed Fields so dictionary filtering preserves the regular expression semantics for |
537 | | // strings, dates, decimals, floating-point edge cases, and every other supported logical type. |
538 | 14 | return std::ranges::any_of(dictionary->values, |
539 | 27 | [&](const Field& value) { |
540 | 27 | return dictionary_value_matches(value, slot_literal->literal, |
541 | 27 | effective_op); |
542 | 27 | }) |
543 | 14 | ? ZoneMapFilterResult::kMayMatch |
544 | 14 | : ZoneMapFilterResult::kNoMatch; |
545 | 14 | } |
546 | | |
547 | | inline ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
548 | 19 | const VExprSPtrs& arguments, Op op) { |
549 | 19 | DORIS_CHECK(op == Op::EQ); |
550 | 19 | auto slot_literal = expr_zonemap::extract_bloom_filter_slot_and_literal(arguments); |
551 | 19 | DORIS_CHECK(slot_literal.has_value()); |
552 | 19 | return expr_zonemap::eval_eq_bloom_filter(ctx, *slot_literal); |
553 | 19 | } |
554 | | |
555 | 44.6k | inline std::optional<Op> op_from_name(std::string_view name) { |
556 | 44.6k | if (name == NameEquals::name) { |
557 | 18.6k | return Op::EQ; |
558 | 18.6k | } |
559 | 25.9k | if (name == NameNotEquals::name) { |
560 | 2.06k | return Op::NE; |
561 | 2.06k | } |
562 | 23.9k | if (name == NameLess::name) { |
563 | 5.58k | return Op::LT; |
564 | 5.58k | } |
565 | 18.3k | if (name == NameLessOrEquals::name) { |
566 | 2.44k | return Op::LE; |
567 | 2.44k | } |
568 | 15.9k | if (name == NameGreater::name) { |
569 | 10.2k | return Op::GT; |
570 | 10.2k | } |
571 | 5.78k | if (name == NameGreaterOrEquals::name) { |
572 | 5.78k | return Op::GE; |
573 | 5.78k | } |
574 | 18.4E | return std::nullopt; |
575 | 5.68k | } |
576 | | } // namespace comparison_zonemap_detail |
577 | | |
578 | | template <template <PrimitiveType> class Op, typename Name> |
579 | | class FunctionComparison : public IFunction { |
580 | | public: |
581 | | static constexpr auto name = Name::name; |
582 | 304k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); }_ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE6createEv Line | Count | Source | 582 | 272k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE6createEv Line | Count | Source | 582 | 1.29k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 582 | 7.32k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 582 | 8.95k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 582 | 4.06k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 582 | 10.1k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
583 | | |
584 | 304k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 584 | 273k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 584 | 1.30k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 584 | 7.32k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 584 | 8.95k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 584 | 4.07k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 584 | 10.1k | FunctionComparison() = default; |
|
585 | | |
586 | 690k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 586 | 682k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_costEv Line | Count | Source | 586 | 612 | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_costEv Line | Count | Source | 586 | 2.35k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_costEv Line | Count | Source | 586 | 2.35k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 586 | 1.27k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 586 | 1.21k | double execute_cost() const override { return 0.5; } |
|
587 | | |
588 | | private: |
589 | | template <PrimitiveType PT> |
590 | | Status execute_num_type(Block& block, uint32_t result, const ColumnPtr& col_left_ptr, |
591 | 71.9k | const ColumnPtr& col_right_ptr) const { |
592 | 71.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
593 | 71.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
594 | | |
595 | 71.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
596 | 71.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
597 | | |
598 | 71.9k | DCHECK(!(left_is_const && right_is_const)); |
599 | | |
600 | 71.9k | if (!left_is_const && !right_is_const) { |
601 | 13.2k | auto col_res = ColumnUInt8::create(); |
602 | | |
603 | 13.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
604 | 13.2k | vec_res.resize(col_left->get_data().size()); |
605 | 13.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
606 | 13.2k | typename PrimitiveTypeTraits<PT>::CppType, |
607 | 13.2k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
608 | 13.2k | vec_res); |
609 | | |
610 | 13.2k | block.replace_by_position(result, std::move(col_res)); |
611 | 58.7k | } else if (!left_is_const && right_is_const) { |
612 | 51.8k | auto col_res = ColumnUInt8::create(); |
613 | | |
614 | 51.8k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
615 | 51.8k | vec_res.resize(col_left->size()); |
616 | 51.8k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
617 | 51.8k | typename PrimitiveTypeTraits<PT>::CppType, |
618 | 51.8k | Op<PT>>::vector_constant(col_left->get_data(), |
619 | 51.8k | col_right->get_element(0), vec_res); |
620 | | |
621 | 51.8k | block.replace_by_position(result, std::move(col_res)); |
622 | 51.8k | } else if (left_is_const && !right_is_const) { |
623 | 6.92k | auto col_res = ColumnUInt8::create(); |
624 | | |
625 | 6.92k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
626 | 6.92k | vec_res.resize(col_right->size()); |
627 | 6.92k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
628 | 6.92k | typename PrimitiveTypeTraits<PT>::CppType, |
629 | 6.92k | Op<PT>>::constant_vector(col_left->get_element(0), |
630 | 6.92k | col_right->get_data(), vec_res); |
631 | | |
632 | 6.92k | block.replace_by_position(result, std::move(col_res)); |
633 | 6.92k | } |
634 | 71.9k | return Status::OK(); |
635 | 71.9k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 104 | const ColumnPtr& col_right_ptr) const { | 592 | 104 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 104 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 104 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 104 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 104 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 104 | if (!left_is_const && !right_is_const) { | 601 | 72 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 72 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 72 | vec_res.resize(col_left->get_data().size()); | 605 | 72 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 72 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 72 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 72 | vec_res); | 609 | | | 610 | 72 | block.replace_by_position(result, std::move(col_res)); | 611 | 72 | } else if (!left_is_const && right_is_const) { | 612 | 32 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 32 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 32 | vec_res.resize(col_left->size()); | 616 | 32 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 32 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 32 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 32 | col_right->get_element(0), vec_res); | 620 | | | 621 | 32 | block.replace_by_position(result, std::move(col_res)); | 622 | 32 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 104 | return Status::OK(); | 635 | 104 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 728 | const ColumnPtr& col_right_ptr) const { | 592 | 728 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 728 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 728 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 728 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 728 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 728 | if (!left_is_const && !right_is_const) { | 601 | 246 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 246 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 246 | vec_res.resize(col_left->get_data().size()); | 605 | 246 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 246 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 246 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 246 | vec_res); | 609 | | | 610 | 246 | block.replace_by_position(result, std::move(col_res)); | 611 | 482 | } else if (!left_is_const && right_is_const) { | 612 | 482 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 482 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 482 | vec_res.resize(col_left->size()); | 616 | 482 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 482 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 482 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 482 | col_right->get_element(0), vec_res); | 620 | | | 621 | 482 | block.replace_by_position(result, std::move(col_res)); | 622 | 482 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 728 | return Status::OK(); | 635 | 728 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 443 | const ColumnPtr& col_right_ptr) const { | 592 | 443 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 443 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 443 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 443 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 443 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 443 | if (!left_is_const && !right_is_const) { | 601 | 256 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 256 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 256 | vec_res.resize(col_left->get_data().size()); | 605 | 256 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 256 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 256 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 256 | vec_res); | 609 | | | 610 | 256 | block.replace_by_position(result, std::move(col_res)); | 611 | 256 | } else if (!left_is_const && right_is_const) { | 612 | 186 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 186 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 186 | vec_res.resize(col_left->size()); | 616 | 186 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 186 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 186 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 186 | col_right->get_element(0), vec_res); | 620 | | | 621 | 186 | block.replace_by_position(result, std::move(col_res)); | 622 | 186 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 443 | return Status::OK(); | 635 | 443 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 234 | const ColumnPtr& col_right_ptr) const { | 592 | 234 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 234 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 234 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 234 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 234 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 234 | if (!left_is_const && !right_is_const) { | 601 | 145 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 145 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 145 | vec_res.resize(col_left->get_data().size()); | 605 | 145 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 145 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 145 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 145 | vec_res); | 609 | | | 610 | 145 | block.replace_by_position(result, std::move(col_res)); | 611 | 145 | } else if (!left_is_const && right_is_const) { | 612 | 77 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 77 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 77 | vec_res.resize(col_left->size()); | 616 | 77 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 77 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 77 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 77 | col_right->get_element(0), vec_res); | 620 | | | 621 | 77 | block.replace_by_position(result, std::move(col_res)); | 622 | 77 | } else if (left_is_const && !right_is_const) { | 623 | 12 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 12 | vec_res.resize(col_right->size()); | 627 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 12 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 12 | col_right->get_data(), vec_res); | 631 | | | 632 | 12 | block.replace_by_position(result, std::move(col_res)); | 633 | 12 | } | 634 | 234 | return Status::OK(); | 635 | 234 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 12 | const ColumnPtr& col_right_ptr) const { | 592 | 12 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 12 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 12 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 12 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 12 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 12 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 10 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 12 | return Status::OK(); | 635 | 12 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.08k | const ColumnPtr& col_right_ptr) const { | 592 | 6.08k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.08k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.08k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.08k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.08k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.08k | if (!left_is_const && !right_is_const) { | 601 | 217 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 217 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 217 | vec_res.resize(col_left->get_data().size()); | 605 | 217 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 217 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 217 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 217 | vec_res); | 609 | | | 610 | 217 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.86k | } else if (!left_is_const && right_is_const) { | 612 | 5.61k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.61k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.61k | vec_res.resize(col_left->size()); | 616 | 5.61k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.61k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.61k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.61k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.61k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.61k | } else if (left_is_const && !right_is_const) { | 623 | 252 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 252 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 252 | vec_res.resize(col_right->size()); | 627 | 252 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 252 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 252 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 252 | col_right->get_data(), vec_res); | 631 | | | 632 | 252 | block.replace_by_position(result, std::move(col_res)); | 633 | 252 | } | 634 | 6.08k | return Status::OK(); | 635 | 6.08k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 425 | const ColumnPtr& col_right_ptr) const { | 592 | 425 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 425 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 425 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 425 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 425 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 425 | if (!left_is_const && !right_is_const) { | 601 | 121 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 121 | vec_res.resize(col_left->get_data().size()); | 605 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 121 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 121 | vec_res); | 609 | | | 610 | 121 | block.replace_by_position(result, std::move(col_res)); | 611 | 304 | } else if (!left_is_const && right_is_const) { | 612 | 268 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 268 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 268 | vec_res.resize(col_left->size()); | 616 | 268 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 268 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 268 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 268 | col_right->get_element(0), vec_res); | 620 | | | 621 | 268 | block.replace_by_position(result, std::move(col_res)); | 622 | 268 | } else if (left_is_const && !right_is_const) { | 623 | 36 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 36 | vec_res.resize(col_right->size()); | 627 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 36 | col_right->get_data(), vec_res); | 631 | | | 632 | 36 | block.replace_by_position(result, std::move(col_res)); | 633 | 36 | } | 634 | 425 | return Status::OK(); | 635 | 425 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3.28k | const ColumnPtr& col_right_ptr) const { | 592 | 3.28k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3.28k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3.28k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3.28k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3.28k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3.28k | if (!left_is_const && !right_is_const) { | 601 | 1.08k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.08k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.08k | vec_res.resize(col_left->get_data().size()); | 605 | 1.08k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.08k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.08k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.08k | vec_res); | 609 | | | 610 | 1.08k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.19k | } else if (!left_is_const && right_is_const) { | 612 | 2.06k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.06k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.06k | vec_res.resize(col_left->size()); | 616 | 2.06k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.06k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.06k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.06k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.06k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.06k | } else if (left_is_const && !right_is_const) { | 623 | 134 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 134 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 134 | vec_res.resize(col_right->size()); | 627 | 134 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 134 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 134 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 134 | col_right->get_data(), vec_res); | 631 | | | 632 | 134 | block.replace_by_position(result, std::move(col_res)); | 633 | 134 | } | 634 | 3.28k | return Status::OK(); | 635 | 3.28k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 7.25k | const ColumnPtr& col_right_ptr) const { | 592 | 7.25k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 7.25k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 7.25k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 7.25k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 7.25k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 7.25k | if (!left_is_const && !right_is_const) { | 601 | 211 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 211 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 211 | vec_res.resize(col_left->get_data().size()); | 605 | 211 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 211 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 211 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 211 | vec_res); | 609 | | | 610 | 211 | block.replace_by_position(result, std::move(col_res)); | 611 | 7.04k | } else if (!left_is_const && right_is_const) { | 612 | 6.01k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.01k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.01k | vec_res.resize(col_left->size()); | 616 | 6.01k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.01k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.01k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.01k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.01k | block.replace_by_position(result, std::move(col_res)); | 622 | 6.01k | } else if (left_is_const && !right_is_const) { | 623 | 1.02k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 1.02k | vec_res.resize(col_right->size()); | 627 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 1.02k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 1.02k | col_right->get_data(), vec_res); | 631 | | | 632 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 633 | 1.02k | } | 634 | 7.25k | return Status::OK(); | 635 | 7.25k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 121 | const ColumnPtr& col_right_ptr) const { | 592 | 121 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 121 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 121 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 121 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 121 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 121 | if (!left_is_const && !right_is_const) { | 601 | 76 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 76 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 76 | vec_res.resize(col_left->get_data().size()); | 605 | 76 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 76 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 76 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 76 | vec_res); | 609 | | | 610 | 76 | block.replace_by_position(result, std::move(col_res)); | 611 | 76 | } else if (!left_is_const && right_is_const) { | 612 | 29 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 29 | vec_res.resize(col_left->size()); | 616 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 29 | col_right->get_element(0), vec_res); | 620 | | | 621 | 29 | block.replace_by_position(result, std::move(col_res)); | 622 | 29 | } else if (left_is_const && !right_is_const) { | 623 | 16 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 16 | vec_res.resize(col_right->size()); | 627 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 16 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 16 | col_right->get_data(), vec_res); | 631 | | | 632 | 16 | block.replace_by_position(result, std::move(col_res)); | 633 | 16 | } | 634 | 121 | return Status::OK(); | 635 | 121 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 22 | const ColumnPtr& col_right_ptr) const { | 592 | 22 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 22 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 22 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 22 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 22 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 22 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 7 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 7 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 7 | vec_res.resize(col_left->size()); | 616 | 7 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 7 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 7 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 7 | col_right->get_element(0), vec_res); | 620 | | | 621 | 7 | block.replace_by_position(result, std::move(col_res)); | 622 | 7 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 22 | return Status::OK(); | 635 | 22 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 27 | const ColumnPtr& col_right_ptr) const { | 592 | 27 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 27 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 27 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 27 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 27 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 27 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 23 | } else if (!left_is_const && right_is_const) { | 612 | 4 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4 | vec_res.resize(col_left->size()); | 616 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4 | col_right->get_element(0), vec_res); | 620 | | | 621 | 4 | block.replace_by_position(result, std::move(col_res)); | 622 | 4 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 27 | return Status::OK(); | 635 | 27 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.80k | const ColumnPtr& col_right_ptr) const { | 592 | 2.80k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.80k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.80k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.80k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.80k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.80k | if (!left_is_const && !right_is_const) { | 601 | 788 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 788 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 788 | vec_res.resize(col_left->get_data().size()); | 605 | 788 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 788 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 788 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 788 | vec_res); | 609 | | | 610 | 788 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.01k | } else if (!left_is_const && right_is_const) { | 612 | 1.96k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.96k | vec_res.resize(col_left->size()); | 616 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.96k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.96k | } else if (left_is_const && !right_is_const) { | 623 | 54 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 54 | vec_res.resize(col_right->size()); | 627 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 54 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 54 | col_right->get_data(), vec_res); | 631 | | | 632 | 54 | block.replace_by_position(result, std::move(col_res)); | 633 | 54 | } | 634 | 2.80k | return Status::OK(); | 635 | 2.80k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 96 | const ColumnPtr& col_right_ptr) const { | 592 | 96 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 96 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 96 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 96 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 96 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 96 | if (!left_is_const && !right_is_const) { | 601 | 96 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 96 | vec_res.resize(col_left->get_data().size()); | 605 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 96 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 96 | vec_res); | 609 | | | 610 | 96 | block.replace_by_position(result, std::move(col_res)); | 611 | 96 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 96 | return Status::OK(); | 635 | 96 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 766 | const ColumnPtr& col_right_ptr) const { | 592 | 766 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 766 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 766 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 766 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 766 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 766 | if (!left_is_const && !right_is_const) { | 601 | 113 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 113 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 113 | vec_res.resize(col_left->get_data().size()); | 605 | 113 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 113 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 113 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 113 | vec_res); | 609 | | | 610 | 113 | block.replace_by_position(result, std::move(col_res)); | 611 | 653 | } else if (!left_is_const && right_is_const) { | 612 | 653 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 653 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 653 | vec_res.resize(col_left->size()); | 616 | 653 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 653 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 653 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 653 | col_right->get_element(0), vec_res); | 620 | | | 621 | 653 | block.replace_by_position(result, std::move(col_res)); | 622 | 653 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 766 | return Status::OK(); | 635 | 766 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 52 | const ColumnPtr& col_right_ptr) const { | 592 | 52 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 52 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 52 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 52 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 52 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 52 | if (!left_is_const && !right_is_const) { | 601 | 52 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 52 | vec_res.resize(col_left->get_data().size()); | 605 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 52 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 52 | vec_res); | 609 | | | 610 | 52 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 52 | return Status::OK(); | 635 | 52 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 70 | const ColumnPtr& col_right_ptr) const { | 592 | 70 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 70 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 70 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 70 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 70 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 70 | if (!left_is_const && !right_is_const) { | 601 | 39 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 39 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 39 | vec_res.resize(col_left->get_data().size()); | 605 | 39 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 39 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 39 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 39 | vec_res); | 609 | | | 610 | 39 | block.replace_by_position(result, std::move(col_res)); | 611 | 39 | } else if (!left_is_const && right_is_const) { | 612 | 31 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 31 | vec_res.resize(col_left->size()); | 616 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 31 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 31 | col_right->get_element(0), vec_res); | 620 | | | 621 | 31 | block.replace_by_position(result, std::move(col_res)); | 622 | 31 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 70 | return Status::OK(); | 635 | 70 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 11 | const ColumnPtr& col_right_ptr) const { | 592 | 11 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 11 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 11 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 11 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 11 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 11 | if (!left_is_const && !right_is_const) { | 601 | 9 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 9 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 9 | vec_res.resize(col_left->get_data().size()); | 605 | 9 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 9 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 9 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 9 | vec_res); | 609 | | | 610 | 9 | block.replace_by_position(result, std::move(col_res)); | 611 | 9 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 11 | return Status::OK(); | 635 | 11 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 80 | const ColumnPtr& col_right_ptr) const { | 592 | 80 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 80 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 80 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 80 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 80 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 80 | if (!left_is_const && !right_is_const) { | 601 | 52 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 52 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 52 | vec_res.resize(col_left->get_data().size()); | 605 | 52 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 52 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 52 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 52 | vec_res); | 609 | | | 610 | 52 | block.replace_by_position(result, std::move(col_res)); | 611 | 52 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 80 | return Status::OK(); | 635 | 80 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.80k | const ColumnPtr& col_right_ptr) const { | 592 | 1.80k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.80k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.80k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.80k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.80k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.80k | if (!left_is_const && !right_is_const) { | 601 | 1.52k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.52k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.52k | vec_res.resize(col_left->get_data().size()); | 605 | 1.52k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.52k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.52k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.52k | vec_res); | 609 | | | 610 | 1.52k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.52k | } else if (!left_is_const && right_is_const) { | 612 | 276 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 276 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 276 | vec_res.resize(col_left->size()); | 616 | 276 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 276 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 276 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 276 | col_right->get_element(0), vec_res); | 620 | | | 621 | 276 | block.replace_by_position(result, std::move(col_res)); | 622 | 276 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.80k | return Status::OK(); | 635 | 1.80k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 499 | const ColumnPtr& col_right_ptr) const { | 592 | 499 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 499 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 499 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 499 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 499 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 499 | if (!left_is_const && !right_is_const) { | 601 | 338 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 338 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 338 | vec_res.resize(col_left->get_data().size()); | 605 | 338 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 338 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 338 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 338 | vec_res); | 609 | | | 610 | 338 | block.replace_by_position(result, std::move(col_res)); | 611 | 338 | } else if (!left_is_const && right_is_const) { | 612 | 79 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 79 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 79 | vec_res.resize(col_left->size()); | 616 | 79 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 79 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 79 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 79 | col_right->get_element(0), vec_res); | 620 | | | 621 | 79 | block.replace_by_position(result, std::move(col_res)); | 622 | 82 | } else if (left_is_const && !right_is_const) { | 623 | 82 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 82 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 82 | vec_res.resize(col_right->size()); | 627 | 82 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 82 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 82 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 82 | col_right->get_data(), vec_res); | 631 | | | 632 | 82 | block.replace_by_position(result, std::move(col_res)); | 633 | 82 | } | 634 | 499 | return Status::OK(); | 635 | 499 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 48 | const ColumnPtr& col_right_ptr) const { | 592 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 48 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 48 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 28 | } else if (!left_is_const && right_is_const) { | 612 | 28 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 28 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 28 | vec_res.resize(col_left->size()); | 616 | 28 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 28 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 28 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 28 | col_right->get_element(0), vec_res); | 620 | | | 621 | 28 | block.replace_by_position(result, std::move(col_res)); | 622 | 28 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 48 | return Status::OK(); | 635 | 48 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 63 | const ColumnPtr& col_right_ptr) const { | 592 | 63 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 63 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 63 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 63 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 63 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 63 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 40 | } else if (!left_is_const && right_is_const) { | 612 | 40 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 40 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 40 | vec_res.resize(col_left->size()); | 616 | 40 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 40 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 40 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 40 | col_right->get_element(0), vec_res); | 620 | | | 621 | 40 | block.replace_by_position(result, std::move(col_res)); | 622 | 40 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 63 | return Status::OK(); | 635 | 63 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.26k | const ColumnPtr& col_right_ptr) const { | 592 | 1.26k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.26k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.26k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.26k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.26k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.26k | if (!left_is_const && !right_is_const) { | 601 | 1.22k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.22k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.22k | vec_res.resize(col_left->get_data().size()); | 605 | 1.22k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.22k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.22k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.22k | vec_res); | 609 | | | 610 | 1.22k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.22k | } else if (!left_is_const && right_is_const) { | 612 | 41 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 41 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 41 | vec_res.resize(col_left->size()); | 616 | 41 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 41 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 41 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 41 | col_right->get_element(0), vec_res); | 620 | | | 621 | 41 | block.replace_by_position(result, std::move(col_res)); | 622 | 41 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.26k | return Status::OK(); | 635 | 1.26k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3 | const ColumnPtr& col_right_ptr) const { | 592 | 3 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 3 | return Status::OK(); | 635 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 72 | const ColumnPtr& col_right_ptr) const { | 592 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 72 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 72 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 37 | } else if (!left_is_const && right_is_const) { | 612 | 37 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 37 | vec_res.resize(col_left->size()); | 616 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 37 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 37 | col_right->get_element(0), vec_res); | 620 | | | 621 | 37 | block.replace_by_position(result, std::move(col_res)); | 622 | 37 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 72 | return Status::OK(); | 635 | 72 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.31k | const ColumnPtr& col_right_ptr) const { | 592 | 1.31k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.31k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.31k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.31k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.31k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.31k | if (!left_is_const && !right_is_const) { | 601 | 64 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 64 | vec_res.resize(col_left->get_data().size()); | 605 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 64 | vec_res); | 609 | | | 610 | 64 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.25k | } else if (!left_is_const && right_is_const) { | 612 | 1.04k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.04k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.04k | vec_res.resize(col_left->size()); | 616 | 1.04k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.04k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.04k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.04k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.04k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.04k | } else if (left_is_const && !right_is_const) { | 623 | 210 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 210 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 210 | vec_res.resize(col_right->size()); | 627 | 210 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 210 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 210 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 210 | col_right->get_data(), vec_res); | 631 | | | 632 | 210 | block.replace_by_position(result, std::move(col_res)); | 633 | 210 | } | 634 | 1.31k | return Status::OK(); | 635 | 1.31k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.29k | const ColumnPtr& col_right_ptr) const { | 592 | 2.29k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.29k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.29k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.29k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.29k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.29k | if (!left_is_const && !right_is_const) { | 601 | 112 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 112 | vec_res.resize(col_left->get_data().size()); | 605 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 112 | vec_res); | 609 | | | 610 | 112 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.18k | } else if (!left_is_const && right_is_const) { | 612 | 1.96k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.96k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.96k | vec_res.resize(col_left->size()); | 616 | 1.96k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.96k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.96k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.96k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.96k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.96k | } else if (left_is_const && !right_is_const) { | 623 | 216 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 216 | vec_res.resize(col_right->size()); | 627 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 216 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 216 | col_right->get_data(), vec_res); | 631 | | | 632 | 216 | block.replace_by_position(result, std::move(col_res)); | 633 | 216 | } | 634 | 2.29k | return Status::OK(); | 635 | 2.29k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 13.9k | const ColumnPtr& col_right_ptr) const { | 592 | 13.9k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 13.9k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 13.9k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 13.9k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 13.9k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 13.9k | if (!left_is_const && !right_is_const) { | 601 | 64 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 64 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 64 | vec_res.resize(col_left->get_data().size()); | 605 | 64 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 64 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 64 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 64 | vec_res); | 609 | | | 610 | 64 | block.replace_by_position(result, std::move(col_res)); | 611 | 13.8k | } else if (!left_is_const && right_is_const) { | 612 | 10.2k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10.2k | vec_res.resize(col_left->size()); | 616 | 10.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10.2k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10.2k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10.2k | col_right->get_element(0), vec_res); | 620 | | | 621 | 10.2k | block.replace_by_position(result, std::move(col_res)); | 622 | 10.2k | } else if (left_is_const && !right_is_const) { | 623 | 3.69k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 3.69k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 3.69k | vec_res.resize(col_right->size()); | 627 | 3.69k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 3.69k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 3.69k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 3.69k | col_right->get_data(), vec_res); | 631 | | | 632 | 3.69k | block.replace_by_position(result, std::move(col_res)); | 633 | 3.69k | } | 634 | 13.9k | return Status::OK(); | 635 | 13.9k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.85k | const ColumnPtr& col_right_ptr) const { | 592 | 2.85k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.85k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.85k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.85k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.85k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.85k | if (!left_is_const && !right_is_const) { | 601 | 330 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 330 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 330 | vec_res.resize(col_left->get_data().size()); | 605 | 330 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 330 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 330 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 330 | vec_res); | 609 | | | 610 | 330 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.52k | } else if (!left_is_const && right_is_const) { | 612 | 2.00k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.00k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.00k | vec_res.resize(col_left->size()); | 616 | 2.00k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.00k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.00k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.00k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.00k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.00k | } else if (left_is_const && !right_is_const) { | 623 | 522 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 522 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 522 | vec_res.resize(col_right->size()); | 627 | 522 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 522 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 522 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 522 | col_right->get_data(), vec_res); | 631 | | | 632 | 522 | block.replace_by_position(result, std::move(col_res)); | 633 | 522 | } | 634 | 2.85k | return Status::OK(); | 635 | 2.85k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 261 | const ColumnPtr& col_right_ptr) const { | 592 | 261 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 261 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 261 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 261 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 261 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 261 | if (!left_is_const && !right_is_const) { | 601 | 2 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 2 | vec_res.resize(col_left->get_data().size()); | 605 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 2 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 2 | vec_res); | 609 | | | 610 | 2 | block.replace_by_position(result, std::move(col_res)); | 611 | 259 | } else if (!left_is_const && right_is_const) { | 612 | 202 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 202 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 202 | vec_res.resize(col_left->size()); | 616 | 202 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 202 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 202 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 202 | col_right->get_element(0), vec_res); | 620 | | | 621 | 202 | block.replace_by_position(result, std::move(col_res)); | 622 | 202 | } else if (left_is_const && !right_is_const) { | 623 | 57 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 57 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 57 | vec_res.resize(col_right->size()); | 627 | 57 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 57 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 57 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 57 | col_right->get_data(), vec_res); | 631 | | | 632 | 57 | block.replace_by_position(result, std::move(col_res)); | 633 | 57 | } | 634 | 261 | return Status::OK(); | 635 | 261 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 4 | const ColumnPtr& col_right_ptr) const { | 592 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 4 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 4 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 3 | } else if (!left_is_const && right_is_const) { | 612 | 3 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 3 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 3 | vec_res.resize(col_left->size()); | 616 | 3 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 3 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 3 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 3 | col_right->get_element(0), vec_res); | 620 | | | 621 | 3 | block.replace_by_position(result, std::move(col_res)); | 622 | 3 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 4 | return Status::OK(); | 635 | 4 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 611 | const ColumnPtr& col_right_ptr) const { | 592 | 611 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 611 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 611 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 611 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 611 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 611 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 507 | } else if (!left_is_const && right_is_const) { | 612 | 507 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 507 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 507 | vec_res.resize(col_left->size()); | 616 | 507 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 507 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 507 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 507 | col_right->get_element(0), vec_res); | 620 | | | 621 | 507 | block.replace_by_position(result, std::move(col_res)); | 622 | 507 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 611 | return Status::OK(); | 635 | 611 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 445 | const ColumnPtr& col_right_ptr) const { | 592 | 445 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 445 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 445 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 445 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 445 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 445 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 426 | } else if (!left_is_const && right_is_const) { | 612 | 426 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 426 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 426 | vec_res.resize(col_left->size()); | 616 | 426 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 426 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 426 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 426 | col_right->get_element(0), vec_res); | 620 | | | 621 | 426 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 445 | return Status::OK(); | 635 | 445 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 594 | const ColumnPtr& col_right_ptr) const { | 592 | 594 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 594 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 594 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 594 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 594 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 595 | if (!left_is_const && !right_is_const) { | 601 | 35 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 35 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 35 | vec_res.resize(col_left->get_data().size()); | 605 | 35 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 35 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 35 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 35 | vec_res); | 609 | | | 610 | 35 | block.replace_by_position(result, std::move(col_res)); | 611 | 560 | } else if (!left_is_const && right_is_const) { | 612 | 560 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 560 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 560 | vec_res.resize(col_left->size()); | 616 | 560 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 560 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 560 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 560 | col_right->get_element(0), vec_res); | 620 | | | 621 | 560 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 594 | return Status::OK(); | 635 | 594 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 4 | const ColumnPtr& col_right_ptr) const { | 592 | 4 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 4 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 4 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 4 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 4 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 4 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 4 | } else if (!left_is_const && right_is_const) { | 612 | 4 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4 | vec_res.resize(col_left->size()); | 616 | 4 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4 | col_right->get_element(0), vec_res); | 620 | | | 621 | 4 | block.replace_by_position(result, std::move(col_res)); | 622 | 4 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 4 | return Status::OK(); | 635 | 4 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 451 | const ColumnPtr& col_right_ptr) const { | 592 | 451 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 451 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 451 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 451 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 451 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 451 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 450 | } else if (!left_is_const && right_is_const) { | 612 | 444 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 444 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 444 | vec_res.resize(col_left->size()); | 616 | 444 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 444 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 444 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 444 | col_right->get_element(0), vec_res); | 620 | | | 621 | 444 | block.replace_by_position(result, std::move(col_res)); | 622 | 444 | } else if (left_is_const && !right_is_const) { | 623 | 6 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 6 | vec_res.resize(col_right->size()); | 627 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 6 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 6 | col_right->get_data(), vec_res); | 631 | | | 632 | 6 | block.replace_by_position(result, std::move(col_res)); | 633 | 6 | } | 634 | 451 | return Status::OK(); | 635 | 451 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 120 | const ColumnPtr& col_right_ptr) const { | 592 | 120 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 120 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 120 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 120 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 120 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 120 | if (!left_is_const && !right_is_const) { | 601 | 6 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 6 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 6 | vec_res.resize(col_left->get_data().size()); | 605 | 6 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 6 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 6 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 6 | vec_res); | 609 | | | 610 | 6 | block.replace_by_position(result, std::move(col_res)); | 611 | 114 | } else if (!left_is_const && right_is_const) { | 612 | 114 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 114 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 114 | vec_res.resize(col_left->size()); | 616 | 114 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 114 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 114 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 114 | col_right->get_element(0), vec_res); | 620 | | | 621 | 114 | block.replace_by_position(result, std::move(col_res)); | 622 | 114 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 120 | return Status::OK(); | 635 | 120 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 406 | const ColumnPtr& col_right_ptr) const { | 592 | 406 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 406 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 406 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 406 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 406 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 406 | if (!left_is_const && !right_is_const) { | 601 | 360 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 360 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 360 | vec_res.resize(col_left->get_data().size()); | 605 | 360 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 360 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 360 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 360 | vec_res); | 609 | | | 610 | 360 | block.replace_by_position(result, std::move(col_res)); | 611 | 360 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 406 | return Status::OK(); | 635 | 406 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 1 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1 | vec_res.resize(col_left->size()); | 616 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1 | col_right->get_element(0), vec_res); | 620 | | | 621 | 1 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 48 | const ColumnPtr& col_right_ptr) const { | 592 | 48 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 48 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 48 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 48 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 48 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 48 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 48 | } else if (!left_is_const && right_is_const) { | 612 | 48 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 48 | vec_res.resize(col_left->size()); | 616 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 48 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 48 | col_right->get_element(0), vec_res); | 620 | | | 621 | 48 | block.replace_by_position(result, std::move(col_res)); | 622 | 48 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 48 | return Status::OK(); | 635 | 48 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 120 | const ColumnPtr& col_right_ptr) const { | 592 | 120 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 120 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 120 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 120 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 120 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 120 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 120 | } else if (!left_is_const && right_is_const) { | 612 | 120 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 120 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 120 | vec_res.resize(col_left->size()); | 616 | 120 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 120 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 120 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 120 | col_right->get_element(0), vec_res); | 620 | | | 621 | 120 | block.replace_by_position(result, std::move(col_res)); | 622 | 120 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 120 | return Status::OK(); | 635 | 120 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 816 | const ColumnPtr& col_right_ptr) const { | 592 | 816 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 816 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 816 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 816 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 816 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 816 | if (!left_is_const && !right_is_const) { | 601 | 16 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 16 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 16 | vec_res.resize(col_left->get_data().size()); | 605 | 16 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 16 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 16 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 16 | vec_res); | 609 | | | 610 | 16 | block.replace_by_position(result, std::move(col_res)); | 611 | 800 | } else if (!left_is_const && right_is_const) { | 612 | 800 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 800 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 800 | vec_res.resize(col_left->size()); | 616 | 800 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 800 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 800 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 800 | col_right->get_element(0), vec_res); | 620 | | | 621 | 800 | block.replace_by_position(result, std::move(col_res)); | 622 | 800 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 816 | return Status::OK(); | 635 | 816 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 819 | const ColumnPtr& col_right_ptr) const { | 592 | 819 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 819 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 819 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 819 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 819 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 819 | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 796 | } else if (!left_is_const && right_is_const) { | 612 | 796 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 796 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 796 | vec_res.resize(col_left->size()); | 616 | 796 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 796 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 796 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 796 | col_right->get_element(0), vec_res); | 620 | | | 621 | 796 | block.replace_by_position(result, std::move(col_res)); | 622 | 796 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 819 | return Status::OK(); | 635 | 819 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 29 | const ColumnPtr& col_right_ptr) const { | 592 | 29 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 29 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 29 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 29 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 29 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 29 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 29 | } else if (!left_is_const && right_is_const) { | 612 | 29 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 29 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 29 | vec_res.resize(col_left->size()); | 616 | 29 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 29 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 29 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 29 | col_right->get_element(0), vec_res); | 620 | | | 621 | 29 | block.replace_by_position(result, std::move(col_res)); | 622 | 29 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 29 | return Status::OK(); | 635 | 29 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 577 | const ColumnPtr& col_right_ptr) const { | 592 | 577 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 577 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 577 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 577 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 577 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 577 | if (!left_is_const && !right_is_const) { | 601 | 108 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 108 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 108 | vec_res.resize(col_left->get_data().size()); | 605 | 108 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 108 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 108 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 108 | vec_res); | 609 | | | 610 | 108 | block.replace_by_position(result, std::move(col_res)); | 611 | 469 | } else if (!left_is_const && right_is_const) { | 612 | 469 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 469 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 469 | vec_res.resize(col_left->size()); | 616 | 469 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 469 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 469 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 469 | col_right->get_element(0), vec_res); | 620 | | | 621 | 469 | block.replace_by_position(result, std::move(col_res)); | 622 | 469 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 577 | return Status::OK(); | 635 | 577 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 30 | const ColumnPtr& col_right_ptr) const { | 592 | 30 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 30 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 30 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 30 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 30 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 30 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 10 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10 | vec_res.resize(col_left->size()); | 616 | 10 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10 | col_right->get_element(0), vec_res); | 620 | | | 621 | 10 | block.replace_by_position(result, std::move(col_res)); | 622 | 10 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 30 | return Status::OK(); | 635 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 131 | const ColumnPtr& col_right_ptr) const { | 592 | 131 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 131 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 131 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 131 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 131 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 131 | if (!left_is_const && !right_is_const) { | 601 | 22 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 22 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 22 | vec_res.resize(col_left->get_data().size()); | 605 | 22 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 22 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 22 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 22 | vec_res); | 609 | | | 610 | 22 | block.replace_by_position(result, std::move(col_res)); | 611 | 109 | } else if (!left_is_const && right_is_const) { | 612 | 109 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 109 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 109 | vec_res.resize(col_left->size()); | 616 | 109 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 109 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 109 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 109 | col_right->get_element(0), vec_res); | 620 | | | 621 | 109 | block.replace_by_position(result, std::move(col_res)); | 622 | 109 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 131 | return Status::OK(); | 635 | 131 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 90 | const ColumnPtr& col_right_ptr) const { | 592 | 90 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 90 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 90 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 90 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 90 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 90 | if (!left_is_const && !right_is_const) { | 601 | 90 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 90 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 90 | vec_res.resize(col_left->get_data().size()); | 605 | 90 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 90 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 90 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 90 | vec_res); | 609 | | | 610 | 90 | block.replace_by_position(result, std::move(col_res)); | 611 | 90 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 90 | return Status::OK(); | 635 | 90 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.27k | const ColumnPtr& col_right_ptr) const { | 592 | 2.27k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.27k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.27k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.27k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.27k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.27k | if (!left_is_const && !right_is_const) { | 601 | 1.93k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.93k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.93k | vec_res.resize(col_left->get_data().size()); | 605 | 1.93k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.93k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.93k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.93k | vec_res); | 609 | | | 610 | 1.93k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.93k | } else if (!left_is_const && right_is_const) { | 612 | 344 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 344 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 344 | vec_res.resize(col_left->size()); | 616 | 344 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 344 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 344 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 344 | col_right->get_element(0), vec_res); | 620 | | | 621 | 344 | block.replace_by_position(result, std::move(col_res)); | 622 | 344 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2.27k | return Status::OK(); | 635 | 2.27k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 292 | const ColumnPtr& col_right_ptr) const { | 592 | 292 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 292 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 292 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 292 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 292 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 293 | if (!left_is_const && !right_is_const) { | 601 | 234 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 234 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 234 | vec_res.resize(col_left->get_data().size()); | 605 | 234 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 234 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 234 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 234 | vec_res); | 609 | | | 610 | 234 | block.replace_by_position(result, std::move(col_res)); | 611 | 234 | } else if (!left_is_const && right_is_const) { | 612 | 59 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 59 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 59 | vec_res.resize(col_left->size()); | 616 | 59 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 59 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 59 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 59 | col_right->get_element(0), vec_res); | 620 | | | 621 | 59 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 292 | return Status::OK(); | 635 | 292 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 158 | const ColumnPtr& col_right_ptr) const { | 592 | 158 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 158 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 158 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 158 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 158 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 158 | if (!left_is_const && !right_is_const) { | 601 | 112 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 112 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 112 | vec_res.resize(col_left->get_data().size()); | 605 | 112 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 112 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 112 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 112 | vec_res); | 609 | | | 610 | 112 | block.replace_by_position(result, std::move(col_res)); | 611 | 112 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 46 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 158 | return Status::OK(); | 635 | 158 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2 | const ColumnPtr& col_right_ptr) const { | 592 | 2 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 1 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1 | vec_res.resize(col_left->size()); | 616 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1 | col_right->get_element(0), vec_res); | 620 | | | 621 | 1 | block.replace_by_position(result, std::move(col_res)); | 622 | 1 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 2 | return Status::OK(); | 635 | 2 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.32k | const ColumnPtr& col_right_ptr) const { | 592 | 2.32k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.32k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.32k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.32k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.32k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.32k | if (!left_is_const && !right_is_const) { | 601 | 216 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 216 | vec_res.resize(col_left->get_data().size()); | 605 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 216 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 216 | vec_res); | 609 | | | 610 | 216 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.10k | } else if (!left_is_const && right_is_const) { | 612 | 1.89k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.89k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.89k | vec_res.resize(col_left->size()); | 616 | 1.89k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.89k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.89k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.89k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.89k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.89k | } else if (left_is_const && !right_is_const) { | 623 | 216 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 216 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 216 | vec_res.resize(col_right->size()); | 627 | 216 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 216 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 216 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 216 | col_right->get_data(), vec_res); | 631 | | | 632 | 216 | block.replace_by_position(result, std::move(col_res)); | 633 | 216 | } | 634 | 2.32k | return Status::OK(); | 635 | 2.32k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 174 | const ColumnPtr& col_right_ptr) const { | 592 | 174 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 174 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 174 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 174 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 174 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 174 | if (!left_is_const && !right_is_const) { | 601 | 160 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 160 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 160 | vec_res.resize(col_left->get_data().size()); | 605 | 160 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 160 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 160 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 160 | vec_res); | 609 | | | 610 | 160 | block.replace_by_position(result, std::move(col_res)); | 611 | 160 | } else if (!left_is_const && right_is_const) { | 612 | 14 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 14 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 14 | vec_res.resize(col_left->size()); | 616 | 14 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 14 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 14 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 14 | col_right->get_element(0), vec_res); | 620 | | | 621 | 14 | block.replace_by_position(result, std::move(col_res)); | 622 | 14 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 174 | return Status::OK(); | 635 | 174 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.57k | const ColumnPtr& col_right_ptr) const { | 592 | 2.57k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.57k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.57k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.57k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.57k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.57k | if (!left_is_const && !right_is_const) { | 601 | 899 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 899 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 899 | vec_res.resize(col_left->get_data().size()); | 605 | 899 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 899 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 899 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 899 | vec_res); | 609 | | | 610 | 899 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.67k | } else if (!left_is_const && right_is_const) { | 612 | 1.48k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.48k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.48k | vec_res.resize(col_left->size()); | 616 | 1.48k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.48k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.48k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.48k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.48k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.48k | } else if (left_is_const && !right_is_const) { | 623 | 191 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 191 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 191 | vec_res.resize(col_right->size()); | 627 | 191 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 191 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 191 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 191 | col_right->get_data(), vec_res); | 631 | | | 632 | 191 | block.replace_by_position(result, std::move(col_res)); | 633 | 191 | } | 634 | 2.57k | return Status::OK(); | 635 | 2.57k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 941 | const ColumnPtr& col_right_ptr) const { | 592 | 941 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 941 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 941 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 941 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 941 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 941 | if (!left_is_const && !right_is_const) { | 601 | 331 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 331 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 331 | vec_res.resize(col_left->get_data().size()); | 605 | 331 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 331 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 331 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 331 | vec_res); | 609 | | | 610 | 331 | block.replace_by_position(result, std::move(col_res)); | 611 | 610 | } else if (!left_is_const && right_is_const) { | 612 | 543 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 543 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 543 | vec_res.resize(col_left->size()); | 616 | 543 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 543 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 543 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 543 | col_right->get_element(0), vec_res); | 620 | | | 621 | 543 | block.replace_by_position(result, std::move(col_res)); | 622 | 543 | } else if (left_is_const && !right_is_const) { | 623 | 67 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 67 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 67 | vec_res.resize(col_right->size()); | 627 | 67 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 67 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 67 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 67 | col_right->get_data(), vec_res); | 631 | | | 632 | 67 | block.replace_by_position(result, std::move(col_res)); | 633 | 67 | } | 634 | 941 | return Status::OK(); | 635 | 941 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 267 | const ColumnPtr& col_right_ptr) const { | 592 | 267 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 267 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 267 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 267 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 267 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 267 | if (!left_is_const && !right_is_const) { | 601 | 133 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 133 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 133 | vec_res.resize(col_left->get_data().size()); | 605 | 133 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 133 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 133 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 133 | vec_res); | 609 | | | 610 | 133 | block.replace_by_position(result, std::move(col_res)); | 611 | 134 | } else if (!left_is_const && right_is_const) { | 612 | 46 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 46 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 46 | vec_res.resize(col_left->size()); | 616 | 46 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 46 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 46 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 46 | col_right->get_element(0), vec_res); | 620 | | | 621 | 46 | block.replace_by_position(result, std::move(col_res)); | 622 | 88 | } else if (left_is_const && !right_is_const) { | 623 | 88 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 88 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 88 | vec_res.resize(col_right->size()); | 627 | 88 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 88 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 88 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 88 | col_right->get_data(), vec_res); | 631 | | | 632 | 88 | block.replace_by_position(result, std::move(col_res)); | 633 | 88 | } | 634 | 267 | return Status::OK(); | 635 | 267 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 17 | const ColumnPtr& col_right_ptr) const { | 592 | 17 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 17 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 17 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 17 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 17 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 17 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 2 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2 | vec_res.resize(col_left->size()); | 616 | 2 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2 | col_right->get_element(0), vec_res); | 620 | | | 621 | 2 | block.replace_by_position(result, std::move(col_res)); | 622 | 2 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 17 | return Status::OK(); | 635 | 17 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 15 | const ColumnPtr& col_right_ptr) const { | 592 | 15 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 15 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 15 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 15 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 15 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 15 | if (!left_is_const && !right_is_const) { | 601 | 15 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 15 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 15 | vec_res.resize(col_left->get_data().size()); | 605 | 15 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 15 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 15 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 15 | vec_res); | 609 | | | 610 | 15 | block.replace_by_position(result, std::move(col_res)); | 611 | 15 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 15 | return Status::OK(); | 635 | 15 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 457 | const ColumnPtr& col_right_ptr) const { | 592 | 457 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 457 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 457 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 457 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 457 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 457 | if (!left_is_const && !right_is_const) { | 601 | 110 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 110 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 110 | vec_res.resize(col_left->get_data().size()); | 605 | 110 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 110 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 110 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 110 | vec_res); | 609 | | | 610 | 110 | block.replace_by_position(result, std::move(col_res)); | 611 | 347 | } else if (!left_is_const && right_is_const) { | 612 | 347 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 347 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 347 | vec_res.resize(col_left->size()); | 616 | 347 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 347 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 347 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 347 | col_right->get_element(0), vec_res); | 620 | | | 621 | 347 | block.replace_by_position(result, std::move(col_res)); | 622 | 347 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 457 | return Status::OK(); | 635 | 457 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 131 | const ColumnPtr& col_right_ptr) const { | 592 | 131 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 131 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 131 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 131 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 131 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 131 | if (!left_is_const && !right_is_const) { | 601 | 131 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 131 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 131 | vec_res.resize(col_left->get_data().size()); | 605 | 131 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 131 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 131 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 131 | vec_res); | 609 | | | 610 | 131 | block.replace_by_position(result, std::move(col_res)); | 611 | 131 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 131 | return Status::OK(); | 635 | 131 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.13k | const ColumnPtr& col_right_ptr) const { | 592 | 1.13k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.13k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.13k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.13k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.13k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.13k | if (!left_is_const && !right_is_const) { | 601 | 139 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 139 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 139 | vec_res.resize(col_left->get_data().size()); | 605 | 139 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 139 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 139 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 139 | vec_res); | 609 | | | 610 | 139 | block.replace_by_position(result, std::move(col_res)); | 611 | 992 | } else if (!left_is_const && right_is_const) { | 612 | 992 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 992 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 992 | vec_res.resize(col_left->size()); | 616 | 992 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 992 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 992 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 992 | col_right->get_element(0), vec_res); | 620 | | | 621 | 992 | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1.13k | return Status::OK(); | 635 | 1.13k | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 36 | const ColumnPtr& col_right_ptr) const { | 592 | 36 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 36 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 36 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 36 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 36 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 36 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 36 | } else if (!left_is_const && right_is_const) { | 612 | 36 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 36 | vec_res.resize(col_left->size()); | 616 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 36 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 36 | col_right->get_element(0), vec_res); | 620 | | | 621 | 36 | block.replace_by_position(result, std::move(col_res)); | 622 | 36 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 36 | return Status::OK(); | 635 | 36 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 536 | const ColumnPtr& col_right_ptr) const { | 592 | 536 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 536 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 536 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 536 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 536 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 536 | if (!left_is_const && !right_is_const) { | 601 | 390 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 390 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 390 | vec_res.resize(col_left->get_data().size()); | 605 | 390 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 390 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 390 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 390 | vec_res); | 609 | | | 610 | 390 | block.replace_by_position(result, std::move(col_res)); | 611 | 390 | } else if (!left_is_const && right_is_const) { | 612 | 143 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 143 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 143 | vec_res.resize(col_left->size()); | 616 | 143 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 143 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 143 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 143 | col_right->get_element(0), vec_res); | 620 | | | 621 | 143 | block.replace_by_position(result, std::move(col_res)); | 622 | 143 | } else if (left_is_const && !right_is_const) { | 623 | 5 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 5 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 5 | vec_res.resize(col_right->size()); | 627 | 5 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 5 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 5 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 5 | col_right->get_data(), vec_res); | 631 | | | 632 | 5 | block.replace_by_position(result, std::move(col_res)); | 633 | 5 | } | 634 | 536 | return Status::OK(); | 635 | 536 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 73 | const ColumnPtr& col_right_ptr) const { | 592 | 73 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 73 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 73 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 73 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 73 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 73 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 73 | } else if (!left_is_const && right_is_const) { | 612 | 73 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 73 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 73 | vec_res.resize(col_left->size()); | 616 | 73 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 73 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 73 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 73 | col_right->get_element(0), vec_res); | 620 | | | 621 | 73 | block.replace_by_position(result, std::move(col_res)); | 622 | 73 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 73 | return Status::OK(); | 635 | 73 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 64 | const ColumnPtr& col_right_ptr) const { | 592 | 64 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 64 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 64 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 64 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 64 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 64 | if (!left_is_const && !right_is_const) { | 601 | 26 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 26 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 26 | vec_res.resize(col_left->get_data().size()); | 605 | 26 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 26 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 26 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 26 | vec_res); | 609 | | | 610 | 26 | block.replace_by_position(result, std::move(col_res)); | 611 | 38 | } else if (!left_is_const && right_is_const) { | 612 | 38 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 38 | vec_res.resize(col_left->size()); | 616 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 38 | col_right->get_element(0), vec_res); | 620 | | | 621 | 38 | block.replace_by_position(result, std::move(col_res)); | 622 | 38 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 64 | return Status::OK(); | 635 | 64 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE42EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1 | const ColumnPtr& col_right_ptr) const { | 592 | 1 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 1 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 1 | return Status::OK(); | 635 | 1 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 72 | const ColumnPtr& col_right_ptr) const { | 592 | 72 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 72 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 72 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 72 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 72 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 72 | if (!left_is_const && !right_is_const) { | 601 | 1 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1 | vec_res.resize(col_left->get_data().size()); | 605 | 1 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1 | vec_res); | 609 | | | 610 | 1 | block.replace_by_position(result, std::move(col_res)); | 611 | 71 | } else if (!left_is_const && right_is_const) { | 612 | 71 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 71 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 71 | vec_res.resize(col_left->size()); | 616 | 71 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 71 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 71 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 71 | col_right->get_element(0), vec_res); | 620 | | | 621 | 71 | block.replace_by_position(result, std::move(col_res)); | 622 | 71 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 72 | return Status::OK(); | 635 | 72 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 138 | const ColumnPtr& col_right_ptr) const { | 592 | 138 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 138 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 138 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 138 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 138 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 138 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 138 | } else if (!left_is_const && right_is_const) { | 612 | 138 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 138 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 138 | vec_res.resize(col_left->size()); | 616 | 138 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 138 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 138 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 138 | col_right->get_element(0), vec_res); | 620 | | | 621 | 138 | block.replace_by_position(result, std::move(col_res)); | 622 | 138 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 138 | return Status::OK(); | 635 | 138 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.57k | const ColumnPtr& col_right_ptr) const { | 592 | 6.57k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.57k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.57k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.57k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.57k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.58k | if (!left_is_const && !right_is_const) { | 601 | 23 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 23 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 23 | vec_res.resize(col_left->get_data().size()); | 605 | 23 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 23 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 23 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 23 | vec_res); | 609 | | | 610 | 23 | block.replace_by_position(result, std::move(col_res)); | 611 | 6.55k | } else if (!left_is_const && right_is_const) { | 612 | 6.55k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.55k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.55k | vec_res.resize(col_left->size()); | 616 | 6.55k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.55k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.55k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.55k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.55k | block.replace_by_position(result, std::move(col_res)); | 622 | 18.4E | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 6.57k | return Status::OK(); | 635 | 6.57k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 778 | const ColumnPtr& col_right_ptr) const { | 592 | 778 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 778 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 778 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 778 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 778 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 778 | if (!left_is_const && !right_is_const) { | 601 | 75 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 75 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 75 | vec_res.resize(col_left->get_data().size()); | 605 | 75 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 75 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 75 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 75 | vec_res); | 609 | | | 610 | 75 | block.replace_by_position(result, std::move(col_res)); | 611 | 703 | } else if (!left_is_const && right_is_const) { | 612 | 667 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 667 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 667 | vec_res.resize(col_left->size()); | 616 | 667 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 667 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 667 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 667 | col_right->get_element(0), vec_res); | 620 | | | 621 | 667 | block.replace_by_position(result, std::move(col_res)); | 622 | 667 | } else if (left_is_const && !right_is_const) { | 623 | 36 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 36 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 36 | vec_res.resize(col_right->size()); | 627 | 36 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 36 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 36 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 36 | col_right->get_data(), vec_res); | 631 | | | 632 | 36 | block.replace_by_position(result, std::move(col_res)); | 633 | 36 | } | 634 | 778 | return Status::OK(); | 635 | 778 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 38 | const ColumnPtr& col_right_ptr) const { | 592 | 38 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 38 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 38 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 38 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 38 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 38 | if (!left_is_const && !right_is_const) { | 601 | 0 | auto col_res = ColumnUInt8::create(); | 602 | |
| 603 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 0 | vec_res.resize(col_left->get_data().size()); | 605 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 0 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 0 | vec_res); | 609 | |
| 610 | 0 | block.replace_by_position(result, std::move(col_res)); | 611 | 38 | } else if (!left_is_const && right_is_const) { | 612 | 38 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 38 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 38 | vec_res.resize(col_left->size()); | 616 | 38 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 38 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 38 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 38 | col_right->get_element(0), vec_res); | 620 | | | 621 | 38 | block.replace_by_position(result, std::move(col_res)); | 622 | 38 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 38 | return Status::OK(); | 635 | 38 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE36EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE37EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE44EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 415 | const ColumnPtr& col_right_ptr) const { | 592 | 415 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 415 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 415 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 415 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 415 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 415 | if (!left_is_const && !right_is_const) { | 601 | 104 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 104 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 104 | vec_res.resize(col_left->get_data().size()); | 605 | 104 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 104 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 104 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 104 | vec_res); | 609 | | | 610 | 104 | block.replace_by_position(result, std::move(col_res)); | 611 | 311 | } else if (!left_is_const && right_is_const) { | 612 | 311 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 311 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 311 | vec_res.resize(col_left->size()); | 616 | 311 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 311 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 311 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 311 | col_right->get_element(0), vec_res); | 620 | | | 621 | 311 | block.replace_by_position(result, std::move(col_res)); | 622 | 311 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 415 | return Status::OK(); | 635 | 415 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE8EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 20 | const ColumnPtr& col_right_ptr) const { | 592 | 20 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 20 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 20 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 20 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 20 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 20 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 20 | } else if (!left_is_const && right_is_const) { | 612 | 0 | auto col_res = ColumnUInt8::create(); | 613 | |
| 614 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 0 | vec_res.resize(col_left->size()); | 616 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 0 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 0 | col_right->get_element(0), vec_res); | 620 | |
| 621 | 0 | block.replace_by_position(result, std::move(col_res)); | 622 | 0 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 20 | return Status::OK(); | 635 | 20 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 114 | const ColumnPtr& col_right_ptr) const { | 592 | 114 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 114 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 114 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 114 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 114 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 114 | if (!left_is_const && !right_is_const) { | 601 | 20 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 20 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 20 | vec_res.resize(col_left->get_data().size()); | 605 | 20 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 20 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 20 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 20 | vec_res); | 609 | | | 610 | 20 | block.replace_by_position(result, std::move(col_res)); | 611 | 94 | } else if (!left_is_const && right_is_const) { | 612 | 94 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 94 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 94 | vec_res.resize(col_left->size()); | 616 | 94 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 94 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 94 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 94 | col_right->get_element(0), vec_res); | 620 | | | 621 | 94 | block.replace_by_position(result, std::move(col_res)); | 622 | 94 | } else if (left_is_const && !right_is_const) { | 623 | 0 | auto col_res = ColumnUInt8::create(); | 624 | |
| 625 | 0 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 0 | vec_res.resize(col_right->size()); | 627 | 0 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 0 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 0 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 0 | col_right->get_data(), vec_res); | 631 | |
| 632 | 0 | block.replace_by_position(result, std::move(col_res)); | 633 | 0 | } | 634 | 114 | return Status::OK(); | 635 | 114 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE27EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ |
636 | | |
637 | | Status execute_decimal(Block& block, uint32_t result, const ColumnWithTypeAndName& col_left, |
638 | 3.29k | const ColumnWithTypeAndName& col_right) const { |
639 | 3.29k | auto call = [&](const auto& type) -> bool { |
640 | 3.29k | using DispatchType = std::decay_t<decltype(type)>; |
641 | 3.29k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
642 | 3.29k | block, result, col_left, col_right); |
643 | 3.29k | return true; |
644 | 3.29k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 139 | auto call = [&](const auto& type) -> bool { | 640 | 139 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 139 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 139 | block, result, col_left, col_right); | 643 | 139 | return true; | 644 | 139 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 130 | auto call = [&](const auto& type) -> bool { | 640 | 130 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 130 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 130 | block, result, col_left, col_right); | 643 | 130 | return true; | 644 | 130 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 881 | auto call = [&](const auto& type) -> bool { | 640 | 881 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 881 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 881 | block, result, col_left, col_right); | 643 | 881 | return true; | 644 | 881 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 14 | auto call = [&](const auto& type) -> bool { | 640 | 14 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 14 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 14 | block, result, col_left, col_right); | 643 | 14 | return true; | 644 | 14 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 69 | auto call = [&](const auto& type) -> bool { | 640 | 69 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 69 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 69 | block, result, col_left, col_right); | 643 | 69 | return true; | 644 | 69 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 28 | auto call = [&](const auto& type) -> bool { | 640 | 28 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 28 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 28 | block, result, col_left, col_right); | 643 | 28 | return true; | 644 | 28 | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 30 | auto call = [&](const auto& type) -> bool { | 640 | 30 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 30 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 30 | block, result, col_left, col_right); | 643 | 30 | return true; | 644 | 30 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 8 | auto call = [&](const auto& type) -> bool { | 640 | 8 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 8 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 8 | block, result, col_left, col_right); | 643 | 8 | return true; | 644 | 8 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 67 | auto call = [&](const auto& type) -> bool { | 640 | 67 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 67 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 67 | block, result, col_left, col_right); | 643 | 67 | return true; | 644 | 67 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 655 | auto call = [&](const auto& type) -> bool { | 640 | 655 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 655 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 655 | block, result, col_left, col_right); | 643 | 655 | return true; | 644 | 655 | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 2 | auto call = [&](const auto& type) -> bool { | 640 | 2 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 2 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 2 | block, result, col_left, col_right); | 643 | 2 | return true; | 644 | 2 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 4 | auto call = [&](const auto& type) -> bool { | 640 | 4 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 4 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 4 | block, result, col_left, col_right); | 643 | 4 | return true; | 644 | 4 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 68 | auto call = [&](const auto& type) -> bool { | 640 | 68 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 68 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 68 | block, result, col_left, col_right); | 643 | 68 | return true; | 644 | 68 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 69 | auto call = [&](const auto& type) -> bool { | 640 | 69 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 69 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 69 | block, result, col_left, col_right); | 643 | 69 | return true; | 644 | 69 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 11 | auto call = [&](const auto& type) -> bool { | 640 | 11 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 11 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 11 | block, result, col_left, col_right); | 643 | 11 | return true; | 644 | 11 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 171 | auto call = [&](const auto& type) -> bool { | 640 | 171 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 171 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 171 | block, result, col_left, col_right); | 643 | 171 | return true; | 644 | 171 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 181 | auto call = [&](const auto& type) -> bool { | 640 | 181 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 181 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 181 | block, result, col_left, col_right); | 643 | 181 | return true; | 644 | 181 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 599 | auto call = [&](const auto& type) -> bool { | 640 | 599 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 599 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 599 | block, result, col_left, col_right); | 643 | 599 | return true; | 644 | 599 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 1 | auto call = [&](const auto& type) -> bool { | 640 | 1 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1 | block, result, col_left, col_right); | 643 | 1 | return true; | 644 | 1 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 7 | auto call = [&](const auto& type) -> bool { | 640 | 7 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 7 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 7 | block, result, col_left, col_right); | 643 | 7 | return true; | 644 | 7 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 73 | auto call = [&](const auto& type) -> bool { | 640 | 73 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 73 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 73 | block, result, col_left, col_right); | 643 | 73 | return true; | 644 | 73 | }; |
Unexecuted instantiation: _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE20EEEEEbSB_ _ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE30EEEEEbSB_ Line | Count | Source | 639 | 81 | auto call = [&](const auto& type) -> bool { | 640 | 81 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 81 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 81 | block, result, col_left, col_right); | 643 | 81 | return true; | 644 | 81 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 6 | auto call = [&](const auto& type) -> bool { | 640 | 6 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 6 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 6 | block, result, col_left, col_right); | 643 | 6 | return true; | 644 | 6 | }; |
|
645 | | |
646 | 3.29k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { |
647 | 0 | return Status::RuntimeError( |
648 | 0 | "type of left column {} is not equal to type of right column {}", |
649 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
650 | 0 | } |
651 | | |
652 | 3.29k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { |
653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), |
654 | 0 | col_left.type->get_name(), col_right.type->get_name()); |
655 | 0 | } |
656 | 3.29k | return Status::OK(); |
657 | 3.29k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.16k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.16k | auto call = [&](const auto& type) -> bool { | 640 | 1.16k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.16k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.16k | block, result, col_left, col_right); | 643 | 1.16k | return true; | 644 | 1.16k | }; | 645 | | | 646 | 1.16k | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 1.16k | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 1.16k | return Status::OK(); | 657 | 1.16k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 127 | const ColumnWithTypeAndName& col_right) const { | 639 | 127 | auto call = [&](const auto& type) -> bool { | 640 | 127 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 127 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 127 | block, result, col_left, col_right); | 643 | 127 | return true; | 644 | 127 | }; | 645 | | | 646 | 127 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 127 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 127 | return Status::OK(); | 657 | 127 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 732 | const ColumnWithTypeAndName& col_right) const { | 639 | 732 | auto call = [&](const auto& type) -> bool { | 640 | 732 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 732 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 732 | block, result, col_left, col_right); | 643 | 732 | return true; | 644 | 732 | }; | 645 | | | 646 | 732 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 732 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 732 | return Status::OK(); | 657 | 732 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 152 | const ColumnWithTypeAndName& col_right) const { | 639 | 152 | auto call = [&](const auto& type) -> bool { | 640 | 152 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 152 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 152 | block, result, col_left, col_right); | 643 | 152 | return true; | 644 | 152 | }; | 645 | | | 646 | 152 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 152 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 152 | return Status::OK(); | 657 | 152 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 952 | const ColumnWithTypeAndName& col_right) const { | 639 | 952 | auto call = [&](const auto& type) -> bool { | 640 | 952 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 952 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 952 | block, result, col_left, col_right); | 643 | 952 | return true; | 644 | 952 | }; | 645 | | | 646 | 952 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 952 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 952 | return Status::OK(); | 657 | 952 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 167 | const ColumnWithTypeAndName& col_right) const { | 639 | 167 | auto call = [&](const auto& type) -> bool { | 640 | 167 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 167 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 167 | block, result, col_left, col_right); | 643 | 167 | return true; | 644 | 167 | }; | 645 | | | 646 | 167 | if (col_left.type->get_primitive_type() != col_right.type->get_primitive_type()) { | 647 | 0 | return Status::RuntimeError( | 648 | 0 | "type of left column {} is not equal to type of right column {}", | 649 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 650 | 0 | } | 651 | | | 652 | 167 | if (!dispatch_switch_decimal(col_right.type->get_primitive_type(), call)) { | 653 | 0 | return Status::RuntimeError("Wrong call for {} with {} and {}", get_name(), | 654 | 0 | col_left.type->get_name(), col_right.type->get_name()); | 655 | 0 | } | 656 | 167 | return Status::OK(); | 657 | 167 | } |
|
658 | | |
659 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
660 | 24.1k | const IColumn* c1) const { |
661 | 24.1k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
662 | 24.1k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
663 | 24.1k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
664 | 24.1k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
665 | 24.1k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { |
666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
667 | 0 | c0->get_name(), c1->get_name(), name); |
668 | 0 | } |
669 | 24.1k | DCHECK(!(c0_const && c1_const)); |
670 | 24.1k | const ColumnString::Chars* c0_const_chars = nullptr; |
671 | 24.1k | const ColumnString::Chars* c1_const_chars = nullptr; |
672 | 24.1k | ColumnString::Offset c0_const_size = 0; |
673 | 24.1k | ColumnString::Offset c1_const_size = 0; |
674 | | |
675 | 24.1k | if (c0_const) { |
676 | 25 | const ColumnString* c0_const_string = |
677 | 25 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
678 | | |
679 | 25 | if (c0_const_string) { |
680 | 25 | c0_const_chars = &c0_const_string->get_chars(); |
681 | 25 | c0_const_size = c0_const_string->get_offsets()[0]; |
682 | 25 | } else { |
683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
684 | 0 | c0->get_name(), name); |
685 | 0 | } |
686 | 25 | } |
687 | | |
688 | 24.1k | if (c1_const) { |
689 | 23.0k | const ColumnString* c1_const_string = |
690 | 23.0k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
691 | | |
692 | 23.0k | if (c1_const_string) { |
693 | 23.0k | c1_const_chars = &c1_const_string->get_chars(); |
694 | 23.0k | c1_const_size = c1_const_string->get_offsets()[0]; |
695 | 18.4E | } else { |
696 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
697 | 18.4E | c1->get_name(), name); |
698 | 18.4E | } |
699 | 23.0k | } |
700 | | |
701 | 24.1k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
702 | | |
703 | 24.1k | auto c_res = ColumnUInt8::create(); |
704 | 24.1k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
705 | 24.1k | vec_res.resize(c0->size()); |
706 | | |
707 | 24.1k | if (c0_string && c1_string) { |
708 | 1.00k | StringImpl::string_vector_string_vector( |
709 | 1.00k | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
710 | 1.00k | c1_string->get_offsets(), vec_res); |
711 | 23.1k | } else if (c0_string && c1_const) { |
712 | 23.0k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
713 | 23.0k | *c1_const_chars, c1_const_size, vec_res); |
714 | 23.0k | } else if (c0_const && c1_string) { |
715 | 25 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
716 | 25 | c1_string->get_chars(), c1_string->get_offsets(), |
717 | 25 | vec_res); |
718 | 25 | } else { |
719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
720 | 0 | c0->get_name(), c1->get_name(), name); |
721 | 0 | } |
722 | 24.1k | block.replace_by_position(result, std::move(c_res)); |
723 | 24.1k | return Status::OK(); |
724 | 24.1k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 21.9k | const IColumn* c1) const { | 661 | 21.9k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 21.9k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 21.9k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 21.9k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 21.9k | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 21.9k | DCHECK(!(c0_const && c1_const)); | 670 | 21.9k | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 21.9k | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 21.9k | ColumnString::Offset c0_const_size = 0; | 673 | 21.9k | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 21.9k | if (c0_const) { | 676 | 19 | const ColumnString* c0_const_string = | 677 | 19 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 19 | if (c0_const_string) { | 680 | 19 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 19 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 19 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 19 | } | 687 | | | 688 | 21.9k | if (c1_const) { | 689 | 21.4k | const ColumnString* c1_const_string = | 690 | 21.4k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 21.4k | if (c1_const_string) { | 693 | 21.4k | c1_const_chars = &c1_const_string->get_chars(); | 694 | 21.4k | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 18.4E | } else { | 696 | 18.4E | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 18.4E | c1->get_name(), name); | 698 | 18.4E | } | 699 | 21.4k | } | 700 | | | 701 | 21.9k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 21.9k | auto c_res = ColumnUInt8::create(); | 704 | 21.9k | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 21.9k | vec_res.resize(c0->size()); | 706 | | | 707 | 21.9k | if (c0_string && c1_string) { | 708 | 545 | StringImpl::string_vector_string_vector( | 709 | 545 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 545 | c1_string->get_offsets(), vec_res); | 711 | 21.4k | } else if (c0_string && c1_const) { | 712 | 21.4k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 21.4k | *c1_const_chars, c1_const_size, vec_res); | 714 | 21.4k | } else if (c0_const && c1_string) { | 715 | 19 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 19 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 19 | vec_res); | 718 | 19 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 21.9k | block.replace_by_position(result, std::move(c_res)); | 723 | 21.9k | return Status::OK(); | 724 | 21.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 121 | const IColumn* c1) const { | 661 | 121 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 121 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 121 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 121 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 121 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 121 | DCHECK(!(c0_const && c1_const)); | 670 | 121 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 121 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 121 | ColumnString::Offset c0_const_size = 0; | 673 | 121 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 121 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 121 | if (c1_const) { | 689 | 103 | const ColumnString* c1_const_string = | 690 | 103 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 103 | if (c1_const_string) { | 693 | 103 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 103 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 103 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 103 | } | 700 | | | 701 | 121 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 121 | auto c_res = ColumnUInt8::create(); | 704 | 121 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 121 | vec_res.resize(c0->size()); | 706 | | | 707 | 121 | if (c0_string && c1_string) { | 708 | 18 | StringImpl::string_vector_string_vector( | 709 | 18 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 18 | c1_string->get_offsets(), vec_res); | 711 | 103 | } else if (c0_string && c1_const) { | 712 | 103 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 103 | *c1_const_chars, c1_const_size, vec_res); | 714 | 103 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 121 | block.replace_by_position(result, std::move(c_res)); | 723 | 121 | return Status::OK(); | 724 | 121 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 235 | const IColumn* c1) const { | 661 | 235 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 235 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 235 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 235 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 235 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 235 | DCHECK(!(c0_const && c1_const)); | 670 | 235 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 235 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 235 | ColumnString::Offset c0_const_size = 0; | 673 | 235 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 235 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 235 | if (c1_const) { | 689 | 233 | const ColumnString* c1_const_string = | 690 | 233 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 233 | if (c1_const_string) { | 693 | 233 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 233 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 233 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 233 | } | 700 | | | 701 | 235 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 235 | auto c_res = ColumnUInt8::create(); | 704 | 235 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 235 | vec_res.resize(c0->size()); | 706 | | | 707 | 235 | if (c0_string && c1_string) { | 708 | 2 | StringImpl::string_vector_string_vector( | 709 | 2 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 2 | c1_string->get_offsets(), vec_res); | 711 | 233 | } else if (c0_string && c1_const) { | 712 | 233 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 233 | *c1_const_chars, c1_const_size, vec_res); | 714 | 233 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 235 | block.replace_by_position(result, std::move(c_res)); | 723 | 235 | return Status::OK(); | 724 | 235 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 916 | const IColumn* c1) const { | 661 | 916 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 916 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 916 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 916 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 916 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 916 | DCHECK(!(c0_const && c1_const)); | 670 | 916 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 916 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 916 | ColumnString::Offset c0_const_size = 0; | 673 | 916 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 916 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 916 | if (c1_const) { | 689 | 885 | const ColumnString* c1_const_string = | 690 | 885 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 885 | if (c1_const_string) { | 693 | 885 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 885 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 885 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 885 | } | 700 | | | 701 | 916 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 916 | auto c_res = ColumnUInt8::create(); | 704 | 916 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 916 | vec_res.resize(c0->size()); | 706 | | | 707 | 916 | if (c0_string && c1_string) { | 708 | 31 | StringImpl::string_vector_string_vector( | 709 | 31 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 31 | c1_string->get_offsets(), vec_res); | 711 | 885 | } else if (c0_string && c1_const) { | 712 | 885 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 885 | *c1_const_chars, c1_const_size, vec_res); | 714 | 885 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 916 | block.replace_by_position(result, std::move(c_res)); | 723 | 916 | return Status::OK(); | 724 | 916 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 576 | const IColumn* c1) const { | 661 | 576 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 576 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 576 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 576 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 576 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 576 | DCHECK(!(c0_const && c1_const)); | 670 | 576 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 576 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 576 | ColumnString::Offset c0_const_size = 0; | 673 | 576 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 576 | if (c0_const) { | 676 | 6 | const ColumnString* c0_const_string = | 677 | 6 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 6 | if (c0_const_string) { | 680 | 6 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 6 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 6 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 6 | } | 687 | | | 688 | 576 | if (c1_const) { | 689 | 165 | const ColumnString* c1_const_string = | 690 | 165 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 165 | if (c1_const_string) { | 693 | 165 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 165 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 165 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 165 | } | 700 | | | 701 | 576 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 576 | auto c_res = ColumnUInt8::create(); | 704 | 576 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 576 | vec_res.resize(c0->size()); | 706 | | | 707 | 576 | if (c0_string && c1_string) { | 708 | 405 | StringImpl::string_vector_string_vector( | 709 | 405 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 405 | c1_string->get_offsets(), vec_res); | 711 | 405 | } else if (c0_string && c1_const) { | 712 | 165 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 165 | *c1_const_chars, c1_const_size, vec_res); | 714 | 165 | } else if (c0_const && c1_string) { | 715 | 6 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 6 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 6 | vec_res); | 718 | 6 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 576 | block.replace_by_position(result, std::move(c_res)); | 723 | 576 | return Status::OK(); | 724 | 576 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 275 | const IColumn* c1) const { | 661 | 275 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 275 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 275 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 275 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 275 | if (!((c0_string || c0_const) && (c1_string || c1_const))) { | 666 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 667 | 0 | c0->get_name(), c1->get_name(), name); | 668 | 0 | } | 669 | 275 | DCHECK(!(c0_const && c1_const)); | 670 | 275 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 275 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 275 | ColumnString::Offset c0_const_size = 0; | 673 | 275 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 275 | if (c0_const) { | 676 | 0 | const ColumnString* c0_const_string = | 677 | 0 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | |
| 679 | 0 | if (c0_const_string) { | 680 | 0 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 0 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 0 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 0 | } | 687 | | | 688 | 275 | if (c1_const) { | 689 | 275 | const ColumnString* c1_const_string = | 690 | 275 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 275 | if (c1_const_string) { | 693 | 275 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 275 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 275 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 275 | } | 700 | | | 701 | 275 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 275 | auto c_res = ColumnUInt8::create(); | 704 | 275 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 275 | vec_res.resize(c0->size()); | 706 | | | 707 | 275 | if (c0_string && c1_string) { | 708 | 0 | StringImpl::string_vector_string_vector( | 709 | 0 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 0 | c1_string->get_offsets(), vec_res); | 711 | 275 | } else if (c0_string && c1_const) { | 712 | 275 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 275 | *c1_const_chars, c1_const_size, vec_res); | 714 | 275 | } else if (c0_const && c1_string) { | 715 | 0 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 0 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 0 | vec_res); | 718 | 0 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 275 | block.replace_by_position(result, std::move(c_res)); | 723 | 275 | return Status::OK(); | 724 | 275 | } |
|
725 | | |
726 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
727 | 140 | const IColumn* c1) const { |
728 | 140 | bool c0_const = is_column_const(*c0); |
729 | 140 | bool c1_const = is_column_const(*c1); |
730 | | |
731 | 140 | DCHECK(!(c0_const && c1_const)); |
732 | | |
733 | 140 | auto c_res = ColumnUInt8::create(); |
734 | 140 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
735 | 140 | vec_res.resize(c0->size()); |
736 | | |
737 | 140 | if (c0_const) { |
738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
739 | 139 | } else if (c1_const) { |
740 | 115 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
741 | 115 | } else { |
742 | 24 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
743 | 24 | } |
744 | | |
745 | 140 | block.replace_by_position(result, std::move(c_res)); |
746 | 140 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 35 | const IColumn* c1) const { | 728 | 35 | bool c0_const = is_column_const(*c0); | 729 | 35 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 35 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 35 | auto c_res = ColumnUInt8::create(); | 734 | 35 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 35 | vec_res.resize(c0->size()); | 736 | | | 737 | 35 | if (c0_const) { | 738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 34 | } else if (c1_const) { | 740 | 18 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 18 | } else { | 742 | 16 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 16 | } | 744 | | | 745 | 35 | block.replace_by_position(result, std::move(c_res)); | 746 | 35 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 10 | const IColumn* c1) const { | 728 | 10 | bool c0_const = is_column_const(*c0); | 729 | 10 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 10 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 10 | auto c_res = ColumnUInt8::create(); | 734 | 10 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 10 | vec_res.resize(c0->size()); | 736 | | | 737 | 10 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 10 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 2 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 2 | } | 744 | | | 745 | 10 | block.replace_by_position(result, std::move(c_res)); | 746 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 9 | const IColumn* c1) const { | 728 | 9 | bool c0_const = is_column_const(*c0); | 729 | 9 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 9 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 9 | auto c_res = ColumnUInt8::create(); | 734 | 9 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 9 | vec_res.resize(c0->size()); | 736 | | | 737 | 9 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 9 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 9 | block.replace_by_position(result, std::move(c_res)); | 746 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 44 | const IColumn* c1) const { | 728 | 44 | bool c0_const = is_column_const(*c0); | 729 | 44 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 44 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 44 | auto c_res = ColumnUInt8::create(); | 734 | 44 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 44 | vec_res.resize(c0->size()); | 736 | | | 737 | 44 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 44 | } else if (c1_const) { | 740 | 43 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 43 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 44 | block.replace_by_position(result, std::move(c_res)); | 746 | 44 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 12 | const IColumn* c1) const { | 728 | 12 | bool c0_const = is_column_const(*c0); | 729 | 12 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 12 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 12 | auto c_res = ColumnUInt8::create(); | 734 | 12 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 12 | vec_res.resize(c0->size()); | 736 | | | 737 | 12 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 12 | } else if (c1_const) { | 740 | 8 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 8 | } else { | 742 | 4 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 4 | } | 744 | | | 745 | 12 | block.replace_by_position(result, std::move(c_res)); | 746 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE31execute_generic_identical_typesERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 727 | 30 | const IColumn* c1) const { | 728 | 30 | bool c0_const = is_column_const(*c0); | 729 | 30 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 30 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 30 | auto c_res = ColumnUInt8::create(); | 734 | 30 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 30 | vec_res.resize(c0->size()); | 736 | | | 737 | 30 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 30 | } else if (c1_const) { | 740 | 30 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 30 | } else { | 742 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 0 | } | 744 | | | 745 | 30 | block.replace_by_position(result, std::move(c_res)); | 746 | 30 | } |
|
747 | | |
748 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
749 | 140 | const ColumnWithTypeAndName& c1) const { |
750 | 140 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
751 | 140 | return Status::OK(); |
752 | 140 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 35 | const ColumnWithTypeAndName& c1) const { | 750 | 35 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 35 | return Status::OK(); | 752 | 35 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 10 | const ColumnWithTypeAndName& c1) const { | 750 | 10 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 10 | return Status::OK(); | 752 | 10 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 9 | const ColumnWithTypeAndName& c1) const { | 750 | 9 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 9 | return Status::OK(); | 752 | 9 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 44 | const ColumnWithTypeAndName& c1) const { | 750 | 44 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 44 | return Status::OK(); | 752 | 44 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 12 | const ColumnWithTypeAndName& c1) const { | 750 | 12 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 12 | return Status::OK(); | 752 | 12 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_genericERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 749 | 30 | const ColumnWithTypeAndName& c1) const { | 750 | 30 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 30 | return Status::OK(); | 752 | 30 | } |
|
753 | | |
754 | | public: |
755 | 260 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 83 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 41 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 43 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 71 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 11 | String get_name() const override { return name; } |
|
756 | | |
757 | 304k | size_t get_number_of_arguments() const override { return 2; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 272k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 1.28k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.31k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 8.92k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 757 | 4.05k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 10.1k | size_t get_number_of_arguments() const override { return 2; } |
|
758 | | |
759 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
760 | 5.34k | const VExprSPtrs& arguments) const override { |
761 | 5.34k | auto op = comparison_zonemap_detail::op_from_name(name); |
762 | 5.34k | DORIS_CHECK(op.has_value()); |
763 | 5.34k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
764 | 5.34k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 2.16k | const VExprSPtrs& arguments) const override { | 761 | 2.16k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 2.16k | DORIS_CHECK(op.has_value()); | 763 | 2.16k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 2.16k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 280 | const VExprSPtrs& arguments) const override { | 761 | 280 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 280 | DORIS_CHECK(op.has_value()); | 763 | 280 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 280 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 1.25k | const VExprSPtrs& arguments) const override { | 761 | 1.25k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 1.25k | DORIS_CHECK(op.has_value()); | 763 | 1.25k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 1.25k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 528 | const VExprSPtrs& arguments) const override { | 761 | 528 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 528 | DORIS_CHECK(op.has_value()); | 763 | 528 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 528 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 822 | const VExprSPtrs& arguments) const override { | 761 | 822 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 822 | DORIS_CHECK(op.has_value()); | 763 | 822 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 822 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 297 | const VExprSPtrs& arguments) const override { | 761 | 297 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 297 | DORIS_CHECK(op.has_value()); | 763 | 297 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 297 | } |
|
765 | | |
766 | 37.3k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
767 | 37.3k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 37.3k | return comparison_zonemap_detail::can_evaluate(arguments) || |
771 | 37.3k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); |
772 | 37.3k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 15.9k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 15.9k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 15.9k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 15.9k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 15.9k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.67k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.67k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.67k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.67k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.67k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 8.23k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 8.23k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 8.23k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 8.23k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 8.23k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.83k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.83k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.83k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.83k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.83k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.54k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.54k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.54k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.54k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.54k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 2.10k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 2.10k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 2.10k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 2.10k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 2.10k | } |
|
773 | | |
774 | | ZoneMapFilterResult evaluate_dictionary_filter(const DictionaryEvalContext& ctx, |
775 | 14 | const VExprSPtrs& arguments) const override { |
776 | 14 | auto op = comparison_zonemap_detail::op_from_name(name); |
777 | 14 | DORIS_CHECK(op.has_value()); |
778 | 14 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); |
779 | 14 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 4 | const VExprSPtrs& arguments) const override { | 776 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 4 | DORIS_CHECK(op.has_value()); | 778 | 4 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 4 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 3 | const VExprSPtrs& arguments) const override { | 776 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 3 | DORIS_CHECK(op.has_value()); | 778 | 3 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 3 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 775 | 7 | const VExprSPtrs& arguments) const override { | 776 | 7 | auto op = comparison_zonemap_detail::op_from_name(name); | 777 | 7 | DORIS_CHECK(op.has_value()); | 778 | 7 | return comparison_zonemap_detail::evaluate_dictionary(ctx, arguments, *op); | 779 | 7 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE26evaluate_dictionary_filterERKNS_12expr_zonemap21DictionaryEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
780 | | |
781 | 1.37k | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
782 | 1.37k | auto op = comparison_zonemap_detail::op_from_name(name); |
783 | 1.37k | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
784 | 1.37k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 366 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 366 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 366 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 366 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 75 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 75 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 75 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 75 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 496 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 496 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 496 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 496 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 295 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 295 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 295 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 295 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 137 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 137 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 137 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 137 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 9 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 9 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 9 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 9 | } |
|
785 | | |
786 | | ZoneMapFilterResult evaluate_bloom_filter(const BloomFilterEvalContext& ctx, |
787 | 19 | const VExprSPtrs& arguments) const override { |
788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); |
789 | 19 | DORIS_CHECK(op.has_value()); |
790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); |
791 | 19 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Line | Count | Source | 787 | 19 | const VExprSPtrs& arguments) const override { | 788 | 19 | auto op = comparison_zonemap_detail::op_from_name(name); | 789 | 19 | DORIS_CHECK(op.has_value()); | 790 | 19 | return comparison_zonemap_detail::evaluate_bloom_filter(ctx, arguments, *op); | 791 | 19 | } |
Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE Unexecuted instantiation: _ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE21evaluate_bloom_filterERKNS_12expr_zonemap22BloomFilterEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISB_EE |
792 | | |
793 | 588 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
794 | 588 | auto op = comparison_zonemap_detail::op_from_name(name); |
795 | 588 | return op == comparison_zonemap_detail::Op::EQ && |
796 | 588 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
797 | 588 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 173 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 173 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 173 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 173 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 173 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 37 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 37 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 37 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 37 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 37 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 204 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 204 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 204 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 204 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 204 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 112 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 112 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 112 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 112 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 112 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 58 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 58 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 58 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 58 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 58 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 4 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 4 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 4 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 4 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 4 | } |
|
798 | | |
799 | | /// Get result types by argument types. If the function does not apply to these arguments, throw an exception. |
800 | 304k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { |
801 | 304k | return std::make_shared<DataTypeUInt8>(); |
802 | 304k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 272k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 272k | return std::make_shared<DataTypeUInt8>(); | 802 | 272k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 1.28k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 1.28k | return std::make_shared<DataTypeUInt8>(); | 802 | 1.28k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.31k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.31k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.31k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 8.92k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 8.92k | return std::make_shared<DataTypeUInt8>(); | 802 | 8.92k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 4.05k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 4.05k | return std::make_shared<DataTypeUInt8>(); | 802 | 4.05k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 10.1k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 10.1k | return std::make_shared<DataTypeUInt8>(); | 802 | 10.1k | } |
|
803 | | |
804 | | Status evaluate_inverted_index( |
805 | | const ColumnsWithTypeAndName& arguments, |
806 | | const std::vector<IndexFieldNameAndTypePair>& data_type_with_names, |
807 | | std::vector<segment_v2::IndexIterator*> iterators, uint32_t num_rows, |
808 | | const InvertedIndexAnalyzerCtx* analyzer_ctx, |
809 | 1.30k | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { |
810 | 1.30k | DCHECK(arguments.size() == 1); |
811 | 1.30k | DCHECK(data_type_with_names.size() == 1); |
812 | 1.30k | DCHECK(iterators.size() == 1); |
813 | 1.30k | auto* iter = iterators[0]; |
814 | 1.30k | auto data_type_with_name = data_type_with_names[0]; |
815 | 1.30k | if (iter == nullptr) { |
816 | 0 | return Status::OK(); |
817 | 0 | } |
818 | 1.30k | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { |
819 | 304 | return Status::OK(); |
820 | 304 | } |
821 | 1.00k | segment_v2::InvertedIndexQueryType query_type; |
822 | 1.00k | std::string_view name_view(name); |
823 | 1.00k | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { |
824 | 692 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
825 | 692 | } else if (name_view == NameLess::name) { |
826 | 71 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
827 | 238 | } else if (name_view == NameLessOrEquals::name) { |
828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
829 | 157 | } else if (name_view == NameGreater::name) { |
830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
831 | 92 | } else if (name_view == NameGreaterOrEquals::name) { |
832 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; |
833 | 18.4E | } else { |
834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); |
835 | 18.4E | } |
836 | | |
837 | 1.00k | if (segment_v2::is_range_query(query_type) && |
838 | 1.00k | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { |
839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors |
840 | 133 | return Status::OK(); |
841 | 133 | } |
842 | 870 | Field param_value; |
843 | 870 | arguments[0].column->get(0, param_value); |
844 | 870 | if (param_value.is_null()) { |
845 | 2 | return Status::OK(); |
846 | 2 | } |
847 | 868 | segment_v2::InvertedIndexParam param; |
848 | 868 | param.column_name = data_type_with_name.first; |
849 | 868 | param.column_type = data_type_with_name.second; |
850 | 868 | param.query_value = param_value; |
851 | 868 | param.query_type = query_type; |
852 | 868 | param.num_rows = num_rows; |
853 | 868 | param.roaring = std::make_shared<roaring::Roaring>(); |
854 | 868 | param.analyzer_ctx = analyzer_ctx; |
855 | 868 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
856 | 727 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
857 | 727 | if (iter->has_null()) { |
858 | 725 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
859 | 725 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
860 | 725 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
861 | 725 | } |
862 | 727 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
863 | 727 | bitmap_result = result; |
864 | 727 | bitmap_result.mask_out_null(); |
865 | | |
866 | 727 | if (name_view == NameNotEquals::name) { |
867 | 58 | roaring::Roaring full_result; |
868 | 58 | full_result.addRange(0, num_rows); |
869 | 58 | bitmap_result.op_not(&full_result); |
870 | 58 | } |
871 | | |
872 | 727 | return Status::OK(); |
873 | 727 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 660 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 660 | DCHECK(arguments.size() == 1); | 811 | 660 | DCHECK(data_type_with_names.size() == 1); | 812 | 660 | DCHECK(iterators.size() == 1); | 813 | 660 | auto* iter = iterators[0]; | 814 | 660 | auto data_type_with_name = data_type_with_names[0]; | 815 | 660 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 660 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 33 | return Status::OK(); | 820 | 33 | } | 821 | 627 | segment_v2::InvertedIndexQueryType query_type; | 822 | 627 | std::string_view name_view(name); | 823 | 627 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 627 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 627 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 0 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 0 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 627 | if (segment_v2::is_range_query(query_type) && | 838 | 627 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 627 | Field param_value; | 843 | 627 | arguments[0].column->get(0, param_value); | 844 | 627 | if (param_value.is_null()) { | 845 | 2 | return Status::OK(); | 846 | 2 | } | 847 | 625 | segment_v2::InvertedIndexParam param; | 848 | 625 | param.column_name = data_type_with_name.first; | 849 | 625 | param.column_type = data_type_with_name.second; | 850 | 625 | param.query_value = param_value; | 851 | 625 | param.query_type = query_type; | 852 | 625 | param.num_rows = num_rows; | 853 | 625 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 625 | param.analyzer_ctx = analyzer_ctx; | 855 | 625 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 589 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 589 | if (iter->has_null()) { | 858 | 589 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 589 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 589 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 589 | } | 862 | 589 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 589 | bitmap_result = result; | 864 | 589 | bitmap_result.mask_out_null(); | 865 | | | 866 | 589 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 589 | return Status::OK(); | 873 | 589 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 74 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 74 | DCHECK(arguments.size() == 1); | 811 | 74 | DCHECK(data_type_with_names.size() == 1); | 812 | 74 | DCHECK(iterators.size() == 1); | 813 | 74 | auto* iter = iterators[0]; | 814 | 74 | auto data_type_with_name = data_type_with_names[0]; | 815 | 74 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 74 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 10 | return Status::OK(); | 820 | 10 | } | 821 | 64 | segment_v2::InvertedIndexQueryType query_type; | 822 | 64 | std::string_view name_view(name); | 823 | 65 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 65 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 18.4E | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 18.4E | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 65 | if (segment_v2::is_range_query(query_type) && | 838 | 65 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 0 | return Status::OK(); | 841 | 0 | } | 842 | 65 | Field param_value; | 843 | 65 | arguments[0].column->get(0, param_value); | 844 | 65 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 65 | segment_v2::InvertedIndexParam param; | 848 | 65 | param.column_name = data_type_with_name.first; | 849 | 65 | param.column_type = data_type_with_name.second; | 850 | 65 | param.query_value = param_value; | 851 | 65 | param.query_type = query_type; | 852 | 65 | param.num_rows = num_rows; | 853 | 65 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 65 | param.analyzer_ctx = analyzer_ctx; | 855 | 65 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 58 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 58 | if (iter->has_null()) { | 858 | 57 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 57 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 57 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 57 | } | 862 | 58 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 58 | bitmap_result = result; | 864 | 58 | bitmap_result.mask_out_null(); | 865 | | | 866 | 58 | if (name_view == NameNotEquals::name) { | 867 | 58 | roaring::Roaring full_result; | 868 | 58 | full_result.addRange(0, num_rows); | 869 | 58 | bitmap_result.op_not(&full_result); | 870 | 58 | } | 871 | | | 872 | 58 | return Status::OK(); | 873 | 58 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 105 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 105 | DCHECK(arguments.size() == 1); | 811 | 105 | DCHECK(data_type_with_names.size() == 1); | 812 | 105 | DCHECK(iterators.size() == 1); | 813 | 105 | auto* iter = iterators[0]; | 814 | 105 | auto data_type_with_name = data_type_with_names[0]; | 815 | 105 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 105 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 38 | return Status::OK(); | 820 | 38 | } | 821 | 67 | segment_v2::InvertedIndexQueryType query_type; | 822 | 67 | std::string_view name_view(name); | 823 | 67 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 67 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 67 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 67 | } else if (name_view == NameGreater::name) { | 830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 67 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 67 | if (segment_v2::is_range_query(query_type) && | 838 | 67 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 17 | return Status::OK(); | 841 | 17 | } | 842 | 50 | Field param_value; | 843 | 50 | arguments[0].column->get(0, param_value); | 844 | 50 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 50 | segment_v2::InvertedIndexParam param; | 848 | 50 | param.column_name = data_type_with_name.first; | 849 | 50 | param.column_type = data_type_with_name.second; | 850 | 50 | param.query_value = param_value; | 851 | 50 | param.query_type = query_type; | 852 | 50 | param.num_rows = num_rows; | 853 | 50 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 50 | param.analyzer_ctx = analyzer_ctx; | 855 | 50 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 31 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 31 | if (iter->has_null()) { | 858 | 31 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 31 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 31 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 31 | } | 862 | 31 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 31 | bitmap_result = result; | 864 | 31 | bitmap_result.mask_out_null(); | 865 | | | 866 | 31 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 31 | return Status::OK(); | 873 | 31 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 178 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 178 | DCHECK(arguments.size() == 1); | 811 | 178 | DCHECK(data_type_with_names.size() == 1); | 812 | 178 | DCHECK(iterators.size() == 1); | 813 | 178 | auto* iter = iterators[0]; | 814 | 178 | auto data_type_with_name = data_type_with_names[0]; | 815 | 178 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 178 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 86 | return Status::OK(); | 820 | 86 | } | 821 | 92 | segment_v2::InvertedIndexQueryType query_type; | 822 | 92 | std::string_view name_view(name); | 823 | 92 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 92 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 92 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 92 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 92 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 92 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 92 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 92 | if (segment_v2::is_range_query(query_type) && | 838 | 92 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 47 | return Status::OK(); | 841 | 47 | } | 842 | 45 | Field param_value; | 843 | 45 | arguments[0].column->get(0, param_value); | 844 | 45 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 45 | segment_v2::InvertedIndexParam param; | 848 | 45 | param.column_name = data_type_with_name.first; | 849 | 45 | param.column_type = data_type_with_name.second; | 850 | 45 | param.query_value = param_value; | 851 | 45 | param.query_type = query_type; | 852 | 45 | param.num_rows = num_rows; | 853 | 45 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 45 | param.analyzer_ctx = analyzer_ctx; | 855 | 45 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 4 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 4 | if (iter->has_null()) { | 858 | 4 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 4 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 4 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 4 | } | 862 | 4 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 4 | bitmap_result = result; | 864 | 4 | bitmap_result.mask_out_null(); | 865 | | | 866 | 4 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 4 | return Status::OK(); | 873 | 4 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 113 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 113 | DCHECK(arguments.size() == 1); | 811 | 113 | DCHECK(data_type_with_names.size() == 1); | 812 | 113 | DCHECK(iterators.size() == 1); | 813 | 113 | auto* iter = iterators[0]; | 814 | 113 | auto data_type_with_name = data_type_with_names[0]; | 815 | 113 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 113 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 43 | return Status::OK(); | 820 | 43 | } | 821 | 70 | segment_v2::InvertedIndexQueryType query_type; | 822 | 70 | std::string_view name_view(name); | 823 | 71 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 71 | } else if (name_view == NameLess::name) { | 826 | 71 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 18.4E | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 18.4E | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 18.4E | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 18.4E | } else { | 834 | 18.4E | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 18.4E | } | 836 | | | 837 | 71 | if (segment_v2::is_range_query(query_type) && | 838 | 71 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 18 | return Status::OK(); | 841 | 18 | } | 842 | 53 | Field param_value; | 843 | 53 | arguments[0].column->get(0, param_value); | 844 | 53 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 53 | segment_v2::InvertedIndexParam param; | 848 | 53 | param.column_name = data_type_with_name.first; | 849 | 53 | param.column_type = data_type_with_name.second; | 850 | 53 | param.query_value = param_value; | 851 | 53 | param.query_type = query_type; | 852 | 53 | param.num_rows = num_rows; | 853 | 53 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 53 | param.analyzer_ctx = analyzer_ctx; | 855 | 53 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 36 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 36 | if (iter->has_null()) { | 858 | 35 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 35 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 35 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 35 | } | 862 | 36 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 36 | bitmap_result = result; | 864 | 36 | bitmap_result.mask_out_null(); | 865 | | | 866 | 36 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 36 | return Status::OK(); | 873 | 36 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 175 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 175 | DCHECK(arguments.size() == 1); | 811 | 175 | DCHECK(data_type_with_names.size() == 1); | 812 | 175 | DCHECK(iterators.size() == 1); | 813 | 175 | auto* iter = iterators[0]; | 814 | 175 | auto data_type_with_name = data_type_with_names[0]; | 815 | 175 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 175 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 94 | return Status::OK(); | 820 | 94 | } | 821 | 81 | segment_v2::InvertedIndexQueryType query_type; | 822 | 81 | std::string_view name_view(name); | 823 | 81 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 81 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 81 | } else if (name_view == NameLessOrEquals::name) { | 828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 81 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 0 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 0 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 81 | if (segment_v2::is_range_query(query_type) && | 838 | 81 | iter->get_reader(segment_v2::InvertedIndexReaderType::STRING_TYPE)) { | 839 | | // untokenized strings exceed ignore_above, they are written as null, causing range query errors | 840 | 51 | return Status::OK(); | 841 | 51 | } | 842 | 30 | Field param_value; | 843 | 30 | arguments[0].column->get(0, param_value); | 844 | 30 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 30 | segment_v2::InvertedIndexParam param; | 848 | 30 | param.column_name = data_type_with_name.first; | 849 | 30 | param.column_type = data_type_with_name.second; | 850 | 30 | param.query_value = param_value; | 851 | 30 | param.query_type = query_type; | 852 | 30 | param.num_rows = num_rows; | 853 | 30 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 30 | param.analyzer_ctx = analyzer_ctx; | 855 | 30 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 9 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 9 | if (iter->has_null()) { | 858 | 9 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 9 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 9 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 9 | } | 862 | 9 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 9 | bitmap_result = result; | 864 | 9 | bitmap_result.mask_out_null(); | 865 | | | 866 | 9 | if (name_view == NameNotEquals::name) { | 867 | 0 | roaring::Roaring full_result; | 868 | 0 | full_result.addRange(0, num_rows); | 869 | 0 | bitmap_result.op_not(&full_result); | 870 | 0 | } | 871 | | | 872 | 9 | return Status::OK(); | 873 | 9 | } |
|
874 | | |
875 | | // NOLINTNEXTLINE(readability-function-size) |
876 | | Status execute_impl(FunctionContext* context, Block& block, const ColumnNumbers& arguments, |
877 | 99.6k | uint32_t result, size_t input_rows_count) const override { |
878 | 99.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
879 | 99.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
880 | | |
881 | 99.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
882 | 99.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
883 | 99.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
884 | 99.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
885 | | |
886 | 99.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
887 | 99.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; |
888 | | |
889 | | /// The case when arguments are the same (tautological comparison). Return constant. |
890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) |
891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). |
892 | 99.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
893 | 99.6k | col_left_untyped == col_right_untyped) { |
894 | | /// Always true: =, <=, >= |
895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. |
896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || |
897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || |
898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { |
899 | 6 | block.get_by_position(result).column = |
900 | 6 | DataTypeUInt8() |
901 | 6 | .create_column_const(input_rows_count, |
902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) |
903 | 6 | ->convert_to_full_column_if_const(); |
904 | 6 | return Status::OK(); |
905 | 6 | } else { |
906 | 0 | block.get_by_position(result).column = |
907 | 0 | DataTypeUInt8() |
908 | 0 | .create_column_const(input_rows_count, |
909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) |
910 | 0 | ->convert_to_full_column_if_const(); |
911 | 0 | return Status::OK(); |
912 | 0 | } |
913 | 6 | } |
914 | | |
915 | 166k | auto can_compare = [](PrimitiveType t) -> bool { |
916 | 166k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
917 | 166k | is_timestamp_ns_type(t) || is_timestamptz_type(t); |
918 | 166k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 65.2k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 65.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 65.2k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 65.2k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 5.42k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 5.42k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 5.42k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 5.42k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 47.7k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 47.7k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 47.7k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 47.7k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 7.70k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 7.70k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 7.70k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 7.70k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 22.8k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 22.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 22.8k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 22.8k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 17.8k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 17.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 17.8k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 17.8k | }; |
|
919 | | |
920 | 99.6k | if (can_compare(left_type->get_primitive_type()) && |
921 | 99.6k | can_compare(right_type->get_primitive_type())) { |
922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference |
923 | 67.2k | if (!left_type->equals_ignore_precision(*right_type)) { |
924 | 70 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", |
925 | 70 | get_name(), left_type->get_name(), |
926 | 70 | right_type->get_name()); |
927 | 70 | } |
928 | 67.2k | } |
929 | | |
930 | 99.5k | auto compare_type = left_type->get_primitive_type(); |
931 | 99.5k | switch (compare_type) { |
932 | 234 | case TYPE_BOOLEAN: |
933 | 234 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
934 | 5.33k | case TYPE_DATEV2: |
935 | 5.33k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
936 | 932 | case TYPE_DATETIMEV2: |
937 | 932 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
938 | 945 | case TYPE_TIMESTAMP_NS: |
939 | 945 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
940 | 18 | case TYPE_TIMESTAMPTZ: |
941 | 18 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
942 | 9.92k | case TYPE_TINYINT: |
943 | 9.92k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
944 | 3.15k | case TYPE_SMALLINT: |
945 | 3.15k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
946 | 29.0k | case TYPE_INT: |
947 | 29.0k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
948 | 13.1k | case TYPE_BIGINT: |
949 | 13.1k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
950 | 715 | case TYPE_LARGEINT: |
951 | 715 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); |
952 | 44 | case TYPE_IPV4: |
953 | 44 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); |
954 | 44 | case TYPE_IPV6: |
955 | 44 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); |
956 | 4.86k | case TYPE_UUID: |
957 | 4.86k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); |
958 | 770 | case TYPE_FLOAT: |
959 | 770 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
960 | 2.79k | case TYPE_DOUBLE: |
961 | 2.79k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); |
962 | 52 | case TYPE_TIMEV2: |
963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); |
964 | 0 | case TYPE_DECIMALV2: |
965 | 329 | case TYPE_DECIMAL32: |
966 | 916 | case TYPE_DECIMAL64: |
967 | 3.22k | case TYPE_DECIMAL128I: |
968 | 3.29k | case TYPE_DECIMAL256: |
969 | 3.29k | return execute_decimal(block, result, col_with_type_and_name_left, |
970 | 3.29k | col_with_type_and_name_right); |
971 | 1.13k | case TYPE_CHAR: |
972 | 9.39k | case TYPE_VARCHAR: |
973 | 24.1k | case TYPE_STRING: |
974 | 24.1k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
975 | 140 | default: |
976 | 140 | return execute_generic(block, result, col_with_type_and_name_left, |
977 | 140 | col_with_type_and_name_right); |
978 | 99.5k | } |
979 | 0 | return Status::OK(); |
980 | 99.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 45.6k | uint32_t result, size_t input_rows_count) const override { | 878 | 45.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 45.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 45.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 45.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 45.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 45.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 45.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 45.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 45.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 45.6k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 6 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 6 | block.get_by_position(result).column = | 900 | 6 | DataTypeUInt8() | 901 | 6 | .create_column_const(input_rows_count, | 902 | 6 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 6 | ->convert_to_full_column_if_const(); | 904 | 6 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 6 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 45.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 45.6k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 45.6k | }; | 919 | | | 920 | 45.6k | if (can_compare(left_type->get_primitive_type()) && | 921 | 45.6k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 19.6k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 20 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 20 | get_name(), left_type->get_name(), | 926 | 20 | right_type->get_name()); | 927 | 20 | } | 928 | 19.6k | } | 929 | | | 930 | 45.6k | auto compare_type = left_type->get_primitive_type(); | 931 | 45.6k | switch (compare_type) { | 932 | 104 | case TYPE_BOOLEAN: | 933 | 104 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 728 | case TYPE_DATEV2: | 935 | 728 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 443 | case TYPE_DATETIMEV2: | 937 | 443 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 234 | case TYPE_TIMESTAMP_NS: | 939 | 234 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 12 | case TYPE_TIMESTAMPTZ: | 941 | 12 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 6.08k | case TYPE_TINYINT: | 943 | 6.08k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 425 | case TYPE_SMALLINT: | 945 | 425 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 3.28k | case TYPE_INT: | 947 | 3.28k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 7.25k | case TYPE_BIGINT: | 949 | 7.25k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 121 | case TYPE_LARGEINT: | 951 | 121 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 22 | case TYPE_IPV4: | 953 | 22 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 27 | case TYPE_IPV6: | 955 | 27 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 2.80k | case TYPE_UUID: | 957 | 2.80k | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 96 | case TYPE_FLOAT: | 959 | 96 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 766 | case TYPE_DOUBLE: | 961 | 766 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 52 | case TYPE_TIMEV2: | 963 | 52 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 139 | case TYPE_DECIMAL32: | 966 | 269 | case TYPE_DECIMAL64: | 967 | 1.15k | case TYPE_DECIMAL128I: | 968 | 1.16k | case TYPE_DECIMAL256: | 969 | 1.16k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.16k | col_with_type_and_name_right); | 971 | 877 | case TYPE_CHAR: | 972 | 7.78k | case TYPE_VARCHAR: | 973 | 21.9k | case TYPE_STRING: | 974 | 21.9k | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 35 | default: | 976 | 35 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 35 | col_with_type_and_name_right); | 978 | 45.6k | } | 979 | 0 | return Status::OK(); | 980 | 45.6k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 2.84k | uint32_t result, size_t input_rows_count) const override { | 878 | 2.84k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 2.84k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 2.84k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 2.84k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 2.84k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 2.84k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 2.84k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 2.84k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 2.84k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 2.84k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 2.84k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 2.84k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 2.84k | }; | 919 | | | 920 | 2.84k | if (can_compare(left_type->get_primitive_type()) && | 921 | 2.84k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 2.58k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 2.58k | } | 929 | | | 930 | 2.83k | auto compare_type = left_type->get_primitive_type(); | 931 | 2.83k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 70 | case TYPE_DATEV2: | 935 | 70 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 0 | case TYPE_DATETIMEV2: | 937 | 0 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 11 | case TYPE_TIMESTAMP_NS: | 939 | 11 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 0 | case TYPE_TIMESTAMPTZ: | 941 | 0 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 80 | case TYPE_TINYINT: | 943 | 80 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 0 | case TYPE_SMALLINT: | 945 | 0 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 1.80k | case TYPE_INT: | 947 | 1.80k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 499 | case TYPE_BIGINT: | 949 | 499 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 0 | case TYPE_LARGEINT: | 951 | 0 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 0 | case TYPE_UUID: | 957 | 0 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 48 | case TYPE_FLOAT: | 959 | 48 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 63 | case TYPE_DOUBLE: | 961 | 63 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 0 | case TYPE_DECIMAL32: | 966 | 68 | case TYPE_DECIMAL64: | 967 | 96 | case TYPE_DECIMAL128I: | 968 | 126 | case TYPE_DECIMAL256: | 969 | 126 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 126 | col_with_type_and_name_right); | 971 | 1 | case TYPE_CHAR: | 972 | 55 | case TYPE_VARCHAR: | 973 | 121 | case TYPE_STRING: | 974 | 121 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 10 | default: | 976 | 10 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 10 | col_with_type_and_name_right); | 978 | 2.83k | } | 979 | 0 | return Status::OK(); | 980 | 2.83k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 24.6k | uint32_t result, size_t input_rows_count) const override { | 878 | 24.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 24.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 24.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 24.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 24.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 24.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 24.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 24.6k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 24.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 24.6k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 24.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 24.6k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 24.6k | }; | 919 | | | 920 | 24.6k | if (can_compare(left_type->get_primitive_type()) && | 921 | 24.6k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 23.0k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 23.0k | } | 929 | | | 930 | 24.6k | auto compare_type = left_type->get_primitive_type(); | 931 | 24.6k | switch (compare_type) { | 932 | 0 | case TYPE_BOOLEAN: | 933 | 0 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 1.26k | case TYPE_DATEV2: | 935 | 1.26k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 3 | case TYPE_DATETIMEV2: | 937 | 3 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 72 | case TYPE_TIMESTAMP_NS: | 939 | 72 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 1 | case TYPE_TIMESTAMPTZ: | 941 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 1.31k | case TYPE_TINYINT: | 943 | 1.31k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 2.29k | case TYPE_SMALLINT: | 945 | 2.29k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 13.9k | case TYPE_INT: | 947 | 13.9k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 2.85k | case TYPE_BIGINT: | 949 | 2.85k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 260 | case TYPE_LARGEINT: | 951 | 260 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 4 | case TYPE_IPV4: | 953 | 4 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 611 | case TYPE_UUID: | 957 | 611 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 445 | case TYPE_FLOAT: | 959 | 445 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 594 | case TYPE_DOUBLE: | 961 | 594 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 8 | case TYPE_DECIMAL32: | 966 | 75 | case TYPE_DECIMAL64: | 967 | 730 | case TYPE_DECIMAL128I: | 968 | 732 | case TYPE_DECIMAL256: | 969 | 732 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 732 | col_with_type_and_name_right); | 971 | 14 | case TYPE_CHAR: | 972 | 114 | case TYPE_VARCHAR: | 973 | 235 | case TYPE_STRING: | 974 | 235 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 9 | default: | 976 | 9 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 9 | col_with_type_and_name_right); | 978 | 24.6k | } | 979 | 0 | return Status::OK(); | 980 | 24.6k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 4.67k | uint32_t result, size_t input_rows_count) const override { | 878 | 4.67k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 4.67k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 4.67k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 4.67k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 4.67k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 4.67k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 4.67k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 4.67k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 4.67k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 4.67k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 4.67k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.67k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.67k | }; | 919 | | | 920 | 4.67k | if (can_compare(left_type->get_primitive_type()) && | 921 | 4.67k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 3.03k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 3.03k | } | 929 | | | 930 | 4.66k | auto compare_type = left_type->get_primitive_type(); | 931 | 4.66k | switch (compare_type) { | 932 | 4 | case TYPE_BOOLEAN: | 933 | 4 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 451 | case TYPE_DATEV2: | 935 | 451 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 120 | case TYPE_DATETIMEV2: | 937 | 120 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 406 | case TYPE_TIMESTAMP_NS: | 939 | 406 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 48 | case TYPE_TINYINT: | 943 | 48 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 120 | case TYPE_SMALLINT: | 945 | 120 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 816 | case TYPE_INT: | 947 | 816 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 819 | case TYPE_BIGINT: | 949 | 819 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 29 | case TYPE_LARGEINT: | 951 | 29 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 1 | case TYPE_IPV4: | 953 | 1 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 1 | case TYPE_IPV6: | 955 | 1 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 577 | case TYPE_UUID: | 957 | 577 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 30 | case TYPE_FLOAT: | 959 | 30 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 131 | case TYPE_DOUBLE: | 961 | 131 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 4 | case TYPE_DECIMAL32: | 966 | 72 | case TYPE_DECIMAL64: | 967 | 141 | case TYPE_DECIMAL128I: | 968 | 152 | case TYPE_DECIMAL256: | 969 | 152 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 152 | col_with_type_and_name_right); | 971 | 21 | case TYPE_CHAR: | 972 | 868 | case TYPE_VARCHAR: | 973 | 916 | case TYPE_STRING: | 974 | 916 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 44 | default: | 976 | 44 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 44 | col_with_type_and_name_right); | 978 | 4.66k | } | 979 | 0 | return Status::OK(); | 980 | 4.66k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 12.3k | uint32_t result, size_t input_rows_count) const override { | 878 | 12.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 12.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 12.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 12.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 12.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 12.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 12.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 12.3k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 12.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 12.3k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | | block.get_by_position(result).column = | 900 | | DataTypeUInt8() | 901 | | .create_column_const(input_rows_count, | 902 | | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | | ->convert_to_full_column_if_const(); | 904 | | return Status::OK(); | 905 | 0 | } else { | 906 | 0 | block.get_by_position(result).column = | 907 | 0 | DataTypeUInt8() | 908 | 0 | .create_column_const(input_rows_count, | 909 | 0 | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | 0 | ->convert_to_full_column_if_const(); | 911 | 0 | return Status::OK(); | 912 | 0 | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 12.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 12.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 12.3k | }; | 919 | | | 920 | 12.3k | if (can_compare(left_type->get_primitive_type()) && | 921 | 12.3k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 10.4k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 10.4k | } | 929 | | | 930 | 12.3k | auto compare_type = left_type->get_primitive_type(); | 931 | 12.3k | switch (compare_type) { | 932 | 90 | case TYPE_BOOLEAN: | 933 | 90 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 2.27k | case TYPE_DATEV2: | 935 | 2.27k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 293 | case TYPE_DATETIMEV2: | 937 | 293 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 158 | case TYPE_TIMESTAMP_NS: | 939 | 158 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 2 | case TYPE_TIMESTAMPTZ: | 941 | 2 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 2.32k | case TYPE_TINYINT: | 943 | 2.32k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 174 | case TYPE_SMALLINT: | 945 | 174 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 2.57k | case TYPE_INT: | 947 | 2.57k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 941 | case TYPE_BIGINT: | 949 | 941 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 267 | case TYPE_LARGEINT: | 951 | 267 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 17 | case TYPE_IPV4: | 953 | 17 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 15 | case TYPE_IPV6: | 955 | 15 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 457 | case TYPE_UUID: | 957 | 457 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 131 | case TYPE_FLOAT: | 959 | 131 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 1.13k | case TYPE_DOUBLE: | 961 | 1.13k | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 171 | case TYPE_DECIMAL32: | 966 | 352 | case TYPE_DECIMAL64: | 967 | 951 | case TYPE_DECIMAL128I: | 968 | 952 | case TYPE_DECIMAL256: | 969 | 952 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 952 | col_with_type_and_name_right); | 971 | 177 | case TYPE_CHAR: | 972 | 377 | case TYPE_VARCHAR: | 973 | 576 | case TYPE_STRING: | 974 | 576 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 12 | default: | 976 | 12 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 12 | col_with_type_and_name_right); | 978 | 12.3k | } | 979 | 0 | return Status::OK(); | 980 | 12.3k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 9.34k | uint32_t result, size_t input_rows_count) const override { | 878 | 9.34k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 9.34k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 9.34k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 9.34k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 9.34k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 9.34k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 9.34k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 9.34k | const DataTypePtr& right_type = col_with_type_and_name_right.type; | 888 | | | 889 | | /// The case when arguments are the same (tautological comparison). Return constant. | 890 | | /// NOTE: Nullable types are special case. (BTW, this function use default implementation for Nullable, so Nullable types cannot be here. Check just in case.) | 891 | | /// NOTE: We consider NaN comparison to be implementation specific (and in our implementation NaNs are sometimes equal sometimes not). | 892 | 9.34k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 9.34k | col_left_untyped == col_right_untyped) { | 894 | | /// Always true: =, <=, >= | 895 | | // TODO: Return const column in the future. But seems so far to do. We need a unified approach for passing const column. | 896 | | if constexpr (std::is_same_v<Op<TYPE_INT>, EqualsOp<TYPE_INT>> || | 897 | | std::is_same_v<Op<TYPE_INT>, LessOrEqualsOp<TYPE_INT>> || | 898 | 0 | std::is_same_v<Op<TYPE_INT>, GreaterOrEqualsOp<TYPE_INT>>) { | 899 | 0 | block.get_by_position(result).column = | 900 | 0 | DataTypeUInt8() | 901 | 0 | .create_column_const(input_rows_count, | 902 | 0 | Field::create_field<TYPE_BOOLEAN>(1)) | 903 | 0 | ->convert_to_full_column_if_const(); | 904 | 0 | return Status::OK(); | 905 | | } else { | 906 | | block.get_by_position(result).column = | 907 | | DataTypeUInt8() | 908 | | .create_column_const(input_rows_count, | 909 | | Field::create_field<TYPE_BOOLEAN>(0)) | 910 | | ->convert_to_full_column_if_const(); | 911 | | return Status::OK(); | 912 | | } | 913 | 0 | } | 914 | | | 915 | 0 | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 9.34k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 9.34k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 9.34k | }; | 919 | | | 920 | 9.34k | if (can_compare(left_type->get_primitive_type()) && | 921 | 9.34k | can_compare(right_type->get_primitive_type())) { | 922 | | // check left type equals right type TODO: remove this after FE is aware of scales difference | 923 | 8.49k | if (!left_type->equals_ignore_precision(*right_type)) { | 924 | 10 | return Status::RuntimeError("not same type in function {} , left : {} , right : {}", | 925 | 10 | get_name(), left_type->get_name(), | 926 | 10 | right_type->get_name()); | 927 | 10 | } | 928 | 8.49k | } | 929 | | | 930 | 9.33k | auto compare_type = left_type->get_primitive_type(); | 931 | 9.33k | switch (compare_type) { | 932 | 36 | case TYPE_BOOLEAN: | 933 | 36 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 538 | case TYPE_DATEV2: | 935 | 538 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 73 | case TYPE_DATETIMEV2: | 937 | 73 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 64 | case TYPE_TIMESTAMP_NS: | 939 | 64 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); | 940 | 1 | case TYPE_TIMESTAMPTZ: | 941 | 1 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); | 942 | 72 | case TYPE_TINYINT: | 943 | 72 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 138 | case TYPE_SMALLINT: | 945 | 138 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 6.57k | case TYPE_INT: | 947 | 6.57k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 778 | case TYPE_BIGINT: | 949 | 778 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 38 | case TYPE_LARGEINT: | 951 | 38 | return execute_num_type<TYPE_LARGEINT>(block, result, col_left_ptr, col_right_ptr); | 952 | 0 | case TYPE_IPV4: | 953 | 0 | return execute_num_type<TYPE_IPV4>(block, result, col_left_ptr, col_right_ptr); | 954 | 0 | case TYPE_IPV6: | 955 | 0 | return execute_num_type<TYPE_IPV6>(block, result, col_left_ptr, col_right_ptr); | 956 | 415 | case TYPE_UUID: | 957 | 415 | return execute_num_type<TYPE_UUID>(block, result, col_left_ptr, col_right_ptr); | 958 | 20 | case TYPE_FLOAT: | 959 | 20 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 114 | case TYPE_DOUBLE: | 961 | 114 | return execute_num_type<TYPE_DOUBLE>(block, result, col_left_ptr, col_right_ptr); | 962 | 0 | case TYPE_TIMEV2: | 963 | 0 | return execute_num_type<TYPE_TIMEV2>(block, result, col_left_ptr, col_right_ptr); | 964 | 0 | case TYPE_DECIMALV2: | 965 | 7 | case TYPE_DECIMAL32: | 966 | 80 | case TYPE_DECIMAL64: | 967 | 161 | case TYPE_DECIMAL128I: | 968 | 167 | case TYPE_DECIMAL256: | 969 | 167 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 167 | col_with_type_and_name_right); | 971 | 42 | case TYPE_CHAR: | 972 | 195 | case TYPE_VARCHAR: | 973 | 275 | case TYPE_STRING: | 974 | 275 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 30 | default: | 976 | 30 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 30 | col_with_type_and_name_right); | 978 | 9.33k | } | 979 | 0 | return Status::OK(); | 980 | 9.33k | } |
|
981 | | }; |
982 | | |
983 | | } // namespace doris |