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 | 12.2k | PaddedPODArray<UInt8>& c) { |
74 | 12.2k | size_t size = a.size(); |
75 | 12.2k | const A* __restrict a_pos = a.data(); |
76 | 12.2k | const B* __restrict b_pos = b.data(); |
77 | 12.2k | UInt8* __restrict c_pos = c.data(); |
78 | 12.2k | const A* __restrict a_end = a_pos + size; |
79 | | |
80 | 7.23M | while (a_pos < a_end) { |
81 | 7.21M | *c_pos = Op::apply(*a_pos, *b_pos); |
82 | 7.21M | ++a_pos; |
83 | 7.21M | ++b_pos; |
84 | 7.21M | ++c_pos; |
85 | 7.21M | } |
86 | 12.2k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 66 | PaddedPODArray<UInt8>& c) { | 74 | 66 | size_t size = a.size(); | 75 | 66 | const A* __restrict a_pos = a.data(); | 76 | 66 | const B* __restrict b_pos = b.data(); | 77 | 66 | UInt8* __restrict c_pos = c.data(); | 78 | 66 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 136 | while (a_pos < a_end) { | 81 | 70 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 70 | ++a_pos; | 83 | 70 | ++b_pos; | 84 | 70 | ++c_pos; | 85 | 70 | } | 86 | 66 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 249 | PaddedPODArray<UInt8>& c) { | 74 | 249 | size_t size = a.size(); | 75 | 249 | const A* __restrict a_pos = a.data(); | 76 | 249 | const B* __restrict b_pos = b.data(); | 77 | 249 | UInt8* __restrict c_pos = c.data(); | 78 | 249 | 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 | 249 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 253 | PaddedPODArray<UInt8>& c) { | 74 | 253 | size_t size = a.size(); | 75 | 253 | const A* __restrict a_pos = a.data(); | 76 | 253 | const B* __restrict b_pos = b.data(); | 77 | 253 | UInt8* __restrict c_pos = c.data(); | 78 | 253 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 522 | 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 | 253 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_8EqualsOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 144 | PaddedPODArray<UInt8>& c) { | 74 | 144 | size_t size = a.size(); | 75 | 144 | const A* __restrict a_pos = a.data(); | 76 | 144 | const B* __restrict b_pos = b.data(); | 77 | 144 | UInt8* __restrict c_pos = c.data(); | 78 | 144 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 361 | while (a_pos < a_end) { | 81 | 217 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 217 | ++a_pos; | 83 | 217 | ++b_pos; | 84 | 217 | ++c_pos; | 85 | 217 | } | 86 | 144 | } |
_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 | 223 | PaddedPODArray<UInt8>& c) { | 74 | 223 | size_t size = a.size(); | 75 | 223 | const A* __restrict a_pos = a.data(); | 76 | 223 | const B* __restrict b_pos = b.data(); | 77 | 223 | UInt8* __restrict c_pos = c.data(); | 78 | 223 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 583 | while (a_pos < a_end) { | 81 | 360 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 360 | ++a_pos; | 83 | 360 | ++b_pos; | 84 | 360 | ++c_pos; | 85 | 360 | } | 86 | 223 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 116 | PaddedPODArray<UInt8>& c) { | 74 | 116 | size_t size = a.size(); | 75 | 116 | const A* __restrict a_pos = a.data(); | 76 | 116 | const B* __restrict b_pos = b.data(); | 77 | 116 | UInt8* __restrict c_pos = c.data(); | 78 | 116 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 232 | while (a_pos < a_end) { | 81 | 116 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 116 | ++a_pos; | 83 | 116 | ++b_pos; | 84 | 116 | ++c_pos; | 85 | 116 | } | 86 | 116 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 1.04k | PaddedPODArray<UInt8>& c) { | 74 | 1.04k | size_t size = a.size(); | 75 | 1.04k | const A* __restrict a_pos = a.data(); | 76 | 1.04k | const B* __restrict b_pos = b.data(); | 77 | 1.04k | UInt8* __restrict c_pos = c.data(); | 78 | 1.04k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 19.7k | while (a_pos < a_end) { | 81 | 18.6k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 18.6k | ++a_pos; | 83 | 18.6k | ++b_pos; | 84 | 18.6k | ++c_pos; | 85 | 18.6k | } | 86 | 1.04k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 207 | PaddedPODArray<UInt8>& c) { | 74 | 207 | size_t size = a.size(); | 75 | 207 | const A* __restrict a_pos = a.data(); | 76 | 207 | const B* __restrict b_pos = b.data(); | 77 | 207 | UInt8* __restrict c_pos = c.data(); | 78 | 207 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 1.72k | while (a_pos < a_end) { | 81 | 1.51k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 1.51k | ++a_pos; | 83 | 1.51k | ++b_pos; | 84 | 1.51k | ++c_pos; | 85 | 1.51k | } | 86 | 207 | } |
_ZN5doris17NumComparisonImplInnNS_8EqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 144 | while (a_pos < a_end) { | 81 | 72 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 72 | ++a_pos; | 83 | 72 | ++b_pos; | 84 | 72 | ++c_pos; | 85 | 72 | } | 86 | 72 | } |
_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 | 93 | PaddedPODArray<UInt8>& c) { | 74 | 93 | size_t size = a.size(); | 75 | 93 | const A* __restrict a_pos = a.data(); | 76 | 93 | const B* __restrict b_pos = b.data(); | 77 | 93 | UInt8* __restrict c_pos = c.data(); | 78 | 93 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 205 | while (a_pos < a_end) { | 81 | 112 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 112 | ++a_pos; | 83 | 112 | ++b_pos; | 84 | 112 | ++c_pos; | 85 | 112 | } | 86 | 93 | } |
_ZN5doris17NumComparisonImplIddNS_8EqualsOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 116 | PaddedPODArray<UInt8>& c) { | 74 | 116 | size_t size = a.size(); | 75 | 116 | const A* __restrict a_pos = a.data(); | 76 | 116 | const B* __restrict b_pos = b.data(); | 77 | 116 | UInt8* __restrict c_pos = c.data(); | 78 | 116 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 303 | while (a_pos < a_end) { | 81 | 187 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 187 | ++a_pos; | 83 | 187 | ++b_pos; | 84 | 187 | ++c_pos; | 85 | 187 | } | 86 | 116 | } |
_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 | 54 | PaddedPODArray<UInt8>& c) { | 74 | 54 | size_t size = a.size(); | 75 | 54 | const A* __restrict a_pos = a.data(); | 76 | 54 | const B* __restrict b_pos = b.data(); | 77 | 54 | UInt8* __restrict c_pos = c.data(); | 78 | 54 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 243 | while (a_pos < a_end) { | 81 | 189 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 189 | ++a_pos; | 83 | 189 | ++b_pos; | 84 | 189 | ++c_pos; | 85 | 189 | } | 86 | 54 | } |
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.02k | PaddedPODArray<UInt8>& c) { | 74 | 1.02k | size_t size = a.size(); | 75 | 1.02k | const A* __restrict a_pos = a.data(); | 76 | 1.02k | const B* __restrict b_pos = b.data(); | 77 | 1.02k | UInt8* __restrict c_pos = c.data(); | 78 | 1.02k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 314k | 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.02k | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 344 | PaddedPODArray<UInt8>& c) { | 74 | 344 | size_t size = a.size(); | 75 | 344 | const A* __restrict a_pos = a.data(); | 76 | 344 | const B* __restrict b_pos = b.data(); | 77 | 344 | UInt8* __restrict c_pos = c.data(); | 78 | 344 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.53k | while (a_pos < a_end) { | 81 | 6.18k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 6.18k | ++a_pos; | 83 | 6.18k | ++b_pos; | 84 | 6.18k | ++c_pos; | 85 | 6.18k | } | 86 | 344 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_11NotEqualsOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_11NotEqualsOpILNS_13PrimitiveTypeE36EEEE13vector_vectorERKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_11NotEqualsOpILNS_13PrimitiveTypeE37EEEE13vector_vectorERKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE 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.02k | PaddedPODArray<UInt8>& c) { | 74 | 1.02k | size_t size = a.size(); | 75 | 1.02k | const A* __restrict a_pos = a.data(); | 76 | 1.02k | const B* __restrict b_pos = b.data(); | 77 | 1.02k | UInt8* __restrict c_pos = c.data(); | 78 | 1.02k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.65M | while (a_pos < a_end) { | 81 | 2.65M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.65M | ++a_pos; | 83 | 2.65M | ++b_pos; | 84 | 2.65M | ++c_pos; | 85 | 2.65M | } | 86 | 1.02k | } |
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 | 68 | PaddedPODArray<UInt8>& c) { | 74 | 68 | size_t size = a.size(); | 75 | 68 | const A* __restrict a_pos = a.data(); | 76 | 68 | const B* __restrict b_pos = b.data(); | 77 | 68 | UInt8* __restrict c_pos = c.data(); | 78 | 68 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 8.57k | while (a_pos < a_end) { | 81 | 8.50k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 8.50k | ++a_pos; | 83 | 8.50k | ++b_pos; | 84 | 8.50k | ++c_pos; | 85 | 8.50k | } | 86 | 68 | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 333 | PaddedPODArray<UInt8>& c) { | 74 | 333 | size_t size = a.size(); | 75 | 333 | const A* __restrict a_pos = a.data(); | 76 | 333 | const B* __restrict b_pos = b.data(); | 77 | 333 | UInt8* __restrict c_pos = c.data(); | 78 | 333 | 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 | 333 | } |
_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 | 31 | PaddedPODArray<UInt8>& c) { | 74 | 31 | size_t size = a.size(); | 75 | 31 | const A* __restrict a_pos = a.data(); | 76 | 31 | const B* __restrict b_pos = b.data(); | 77 | 31 | UInt8* __restrict c_pos = c.data(); | 78 | 31 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 120 | 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 | 31 | } |
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 | 70 | while (a_pos < a_end) { | 81 | 64 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 64 | ++a_pos; | 83 | 64 | ++b_pos; | 84 | 64 | ++c_pos; | 85 | 64 | } | 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 | 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 | 4.14k | 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 | 15 | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 24 | PaddedPODArray<UInt8>& c) { | 74 | 24 | size_t size = a.size(); | 75 | 24 | const A* __restrict a_pos = a.data(); | 76 | 24 | const B* __restrict b_pos = b.data(); | 77 | 24 | UInt8* __restrict c_pos = c.data(); | 78 | 24 | 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 | 24 | } |
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 | 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 | 67 | while (a_pos < a_end) { | 81 | 44 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 44 | ++a_pos; | 83 | 44 | ++b_pos; | 84 | 44 | ++c_pos; | 85 | 44 | } | 86 | 23 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIhhNS_6LessOpILNS_13PrimitiveTypeE2EEEE13vector_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RS9_ Line | Count | Source | 73 | 85 | PaddedPODArray<UInt8>& c) { | 74 | 85 | size_t size = a.size(); | 75 | 85 | const A* __restrict a_pos = a.data(); | 76 | 85 | const B* __restrict b_pos = b.data(); | 77 | 85 | UInt8* __restrict c_pos = c.data(); | 78 | 85 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 344 | while (a_pos < a_end) { | 81 | 259 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 259 | ++a_pos; | 83 | 259 | ++b_pos; | 84 | 259 | ++c_pos; | 85 | 259 | } | 86 | 85 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE25EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 1.68k | PaddedPODArray<UInt8>& c) { | 74 | 1.68k | size_t size = a.size(); | 75 | 1.68k | const A* __restrict a_pos = a.data(); | 76 | 1.68k | const B* __restrict b_pos = b.data(); | 77 | 1.68k | UInt8* __restrict c_pos = c.data(); | 78 | 1.68k | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 2.96M | while (a_pos < a_end) { | 81 | 2.95M | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 2.95M | ++a_pos; | 83 | 2.95M | ++b_pos; | 84 | 2.95M | ++c_pos; | 85 | 2.95M | } | 86 | 1.68k | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_6LessOpILNS_13PrimitiveTypeE26EEEE13vector_vectorERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESE_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 73 | 237 | PaddedPODArray<UInt8>& c) { | 74 | 237 | size_t size = a.size(); | 75 | 237 | const A* __restrict a_pos = a.data(); | 76 | 237 | const B* __restrict b_pos = b.data(); | 77 | 237 | UInt8* __restrict c_pos = c.data(); | 78 | 237 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 822 | while (a_pos < a_end) { | 81 | 585 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 585 | ++a_pos; | 83 | 585 | ++b_pos; | 84 | 585 | ++c_pos; | 85 | 585 | } | 86 | 237 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_6LessOpILNS_13PrimitiveTypeE43EEEE13vector_vectorERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESC_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 73 | 115 | PaddedPODArray<UInt8>& c) { | 74 | 115 | size_t size = a.size(); | 75 | 115 | const A* __restrict a_pos = a.data(); | 76 | 115 | const B* __restrict b_pos = b.data(); | 77 | 115 | UInt8* __restrict c_pos = c.data(); | 78 | 115 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 247 | while (a_pos < a_end) { | 81 | 132 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 132 | ++a_pos; | 83 | 132 | ++b_pos; | 84 | 132 | ++c_pos; | 85 | 132 | } | 86 | 115 | } |
_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 | 224 | PaddedPODArray<UInt8>& c) { | 74 | 224 | size_t size = a.size(); | 75 | 224 | const A* __restrict a_pos = a.data(); | 76 | 224 | const B* __restrict b_pos = b.data(); | 77 | 224 | UInt8* __restrict c_pos = c.data(); | 78 | 224 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 622 | while (a_pos < a_end) { | 81 | 398 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 398 | ++a_pos; | 83 | 398 | ++b_pos; | 84 | 398 | ++c_pos; | 85 | 398 | } | 86 | 224 | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE13vector_vectorERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 152 | PaddedPODArray<UInt8>& c) { | 74 | 152 | size_t size = a.size(); | 75 | 152 | const A* __restrict a_pos = a.data(); | 76 | 152 | const B* __restrict b_pos = b.data(); | 77 | 152 | UInt8* __restrict c_pos = c.data(); | 78 | 152 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 480 | while (a_pos < a_end) { | 81 | 328 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 328 | ++a_pos; | 83 | 328 | ++b_pos; | 84 | 328 | ++c_pos; | 85 | 328 | } | 86 | 152 | } |
_ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE13vector_vectorERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 914 | PaddedPODArray<UInt8>& c) { | 74 | 914 | size_t size = a.size(); | 75 | 914 | const A* __restrict a_pos = a.data(); | 76 | 914 | const B* __restrict b_pos = b.data(); | 77 | 914 | UInt8* __restrict c_pos = c.data(); | 78 | 914 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 18.9k | while (a_pos < a_end) { | 81 | 17.9k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 17.9k | ++a_pos; | 83 | 17.9k | ++b_pos; | 84 | 17.9k | ++c_pos; | 85 | 17.9k | } | 86 | 914 | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 335 | PaddedPODArray<UInt8>& c) { | 74 | 335 | size_t size = a.size(); | 75 | 335 | const A* __restrict a_pos = a.data(); | 76 | 335 | const B* __restrict b_pos = b.data(); | 77 | 335 | UInt8* __restrict c_pos = c.data(); | 78 | 335 | 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 | 335 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE13vector_vectorERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 132 | PaddedPODArray<UInt8>& c) { | 74 | 132 | size_t size = a.size(); | 75 | 132 | const A* __restrict a_pos = a.data(); | 76 | 132 | const B* __restrict b_pos = b.data(); | 77 | 132 | UInt8* __restrict c_pos = c.data(); | 78 | 132 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 438 | while (a_pos < a_end) { | 81 | 306 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 306 | ++a_pos; | 83 | 306 | ++b_pos; | 84 | 306 | ++c_pos; | 85 | 306 | } | 86 | 132 | } |
_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 | 128 | PaddedPODArray<UInt8>& c) { | 74 | 128 | size_t size = a.size(); | 75 | 128 | const A* __restrict a_pos = a.data(); | 76 | 128 | const B* __restrict b_pos = b.data(); | 77 | 128 | UInt8* __restrict c_pos = c.data(); | 78 | 128 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 449 | while (a_pos < a_end) { | 81 | 321 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 321 | ++a_pos; | 83 | 321 | ++b_pos; | 84 | 321 | ++c_pos; | 85 | 321 | } | 86 | 128 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE13vector_vectorERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 142 | PaddedPODArray<UInt8>& c) { | 74 | 142 | size_t size = a.size(); | 75 | 142 | const A* __restrict a_pos = a.data(); | 76 | 142 | const B* __restrict b_pos = b.data(); | 77 | 142 | UInt8* __restrict c_pos = c.data(); | 78 | 142 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 501 | while (a_pos < a_end) { | 81 | 359 | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 359 | ++a_pos; | 83 | 359 | ++b_pos; | 84 | 359 | ++c_pos; | 85 | 359 | } | 86 | 142 | } |
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 | 386 | PaddedPODArray<UInt8>& c) { | 74 | 386 | size_t size = a.size(); | 75 | 386 | const A* __restrict a_pos = a.data(); | 76 | 386 | const B* __restrict b_pos = b.data(); | 77 | 386 | UInt8* __restrict c_pos = c.data(); | 78 | 386 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 6.01k | while (a_pos < a_end) { | 81 | 5.63k | *c_pos = Op::apply(*a_pos, *b_pos); | 82 | 5.63k | ++a_pos; | 83 | 5.63k | ++b_pos; | 84 | 5.63k | ++c_pos; | 85 | 5.63k | } | 86 | 386 | } |
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 | 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 | 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 | 22 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE13vector_vectorERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEESB_RNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 73 | 37 | PaddedPODArray<UInt8>& c) { | 74 | 37 | size_t size = a.size(); | 75 | 37 | const A* __restrict a_pos = a.data(); | 76 | 37 | const B* __restrict b_pos = b.data(); | 77 | 37 | UInt8* __restrict c_pos = c.data(); | 78 | 37 | const A* __restrict a_end = a_pos + size; | 79 | | | 80 | 82 | 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 | 37 | } |
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 | 56.2k | PaddedPODArray<UInt8>& c) { |
90 | 56.2k | size_t size = a.size(); |
91 | 56.2k | const A* __restrict a_pos = a.data(); |
92 | 56.2k | UInt8* __restrict c_pos = c.data(); |
93 | 56.2k | const A* __restrict a_end = a_pos + size; |
94 | | |
95 | 34.8M | while (a_pos < a_end) { |
96 | 34.8M | *c_pos = Op::apply(*a_pos, b); |
97 | 34.8M | ++a_pos; |
98 | 34.8M | ++c_pos; |
99 | 34.8M | } |
100 | 56.2k | } _ZN5doris17NumComparisonImplIhhNS_8EqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 30 | PaddedPODArray<UInt8>& c) { | 90 | 30 | size_t size = a.size(); | 91 | 30 | const A* __restrict a_pos = a.data(); | 92 | 30 | UInt8* __restrict c_pos = c.data(); | 93 | 30 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 182 | while (a_pos < a_end) { | 96 | 152 | *c_pos = Op::apply(*a_pos, b); | 97 | 152 | ++a_pos; | 98 | 152 | ++c_pos; | 99 | 152 | } | 100 | 30 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_8EqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 452 | PaddedPODArray<UInt8>& c) { | 90 | 452 | size_t size = a.size(); | 91 | 452 | const A* __restrict a_pos = a.data(); | 92 | 452 | UInt8* __restrict c_pos = c.data(); | 93 | 452 | 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 | 452 | } |
_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.26k | PaddedPODArray<UInt8>& c) { | 90 | 5.26k | size_t size = a.size(); | 91 | 5.26k | const A* __restrict a_pos = a.data(); | 92 | 5.26k | UInt8* __restrict c_pos = c.data(); | 93 | 5.26k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.12M | while (a_pos < a_end) { | 96 | 9.12M | *c_pos = Op::apply(*a_pos, b); | 97 | 9.12M | ++a_pos; | 98 | 9.12M | ++c_pos; | 99 | 9.12M | } | 100 | 5.26k | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 275 | PaddedPODArray<UInt8>& c) { | 90 | 275 | size_t size = a.size(); | 91 | 275 | const A* __restrict a_pos = a.data(); | 92 | 275 | UInt8* __restrict c_pos = c.data(); | 93 | 275 | 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 | 275 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 2.25k | PaddedPODArray<UInt8>& c) { | 90 | 2.25k | size_t size = a.size(); | 91 | 2.25k | const A* __restrict a_pos = a.data(); | 92 | 2.25k | UInt8* __restrict c_pos = c.data(); | 93 | 2.25k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 186k | while (a_pos < a_end) { | 96 | 184k | *c_pos = Op::apply(*a_pos, b); | 97 | 184k | ++a_pos; | 98 | 184k | ++c_pos; | 99 | 184k | } | 100 | 2.25k | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.22k | PaddedPODArray<UInt8>& c) { | 90 | 6.22k | size_t size = a.size(); | 91 | 6.22k | const A* __restrict a_pos = a.data(); | 92 | 6.22k | UInt8* __restrict c_pos = c.data(); | 93 | 6.22k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.79M | while (a_pos < a_end) { | 96 | 4.78M | *c_pos = Op::apply(*a_pos, b); | 97 | 4.78M | ++a_pos; | 98 | 4.78M | ++c_pos; | 99 | 4.78M | } | 100 | 6.22k | } |
_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 | 779 | PaddedPODArray<UInt8>& c) { | 90 | 779 | size_t size = a.size(); | 91 | 779 | const A* __restrict a_pos = a.data(); | 92 | 779 | UInt8* __restrict c_pos = c.data(); | 93 | 779 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 719k | while (a_pos < a_end) { | 96 | 718k | *c_pos = Op::apply(*a_pos, b); | 97 | 718k | ++a_pos; | 98 | 718k | ++c_pos; | 99 | 718k | } | 100 | 779 | } |
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 | 282 | PaddedPODArray<UInt8>& c) { | 90 | 282 | size_t size = a.size(); | 91 | 282 | const A* __restrict a_pos = a.data(); | 92 | 282 | UInt8* __restrict c_pos = c.data(); | 93 | 282 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.01k | while (a_pos < a_end) { | 96 | 1.73k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.73k | ++a_pos; | 98 | 1.73k | ++c_pos; | 99 | 1.73k | } | 100 | 282 | } |
_ZN5doris17NumComparisonImplIllNS_11NotEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 153 | PaddedPODArray<UInt8>& c) { | 90 | 153 | size_t size = a.size(); | 91 | 153 | const A* __restrict a_pos = a.data(); | 92 | 153 | UInt8* __restrict c_pos = c.data(); | 93 | 153 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.46k | 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 | 153 | } |
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 | 350 | PaddedPODArray<UInt8>& c) { | 90 | 350 | size_t size = a.size(); | 91 | 350 | const A* __restrict a_pos = a.data(); | 92 | 350 | UInt8* __restrict c_pos = c.data(); | 93 | 350 | 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 | 350 | } |
_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.34k | PaddedPODArray<UInt8>& c) { | 90 | 1.34k | size_t size = a.size(); | 91 | 1.34k | const A* __restrict a_pos = a.data(); | 92 | 1.34k | UInt8* __restrict c_pos = c.data(); | 93 | 1.34k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 14.3k | while (a_pos < a_end) { | 96 | 13.0k | *c_pos = Op::apply(*a_pos, b); | 97 | 13.0k | ++a_pos; | 98 | 13.0k | ++c_pos; | 99 | 13.0k | } | 100 | 1.34k | } |
_ZN5doris17NumComparisonImplIaaNS_6LessOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.30k | PaddedPODArray<UInt8>& c) { | 90 | 1.30k | size_t size = a.size(); | 91 | 1.30k | const A* __restrict a_pos = a.data(); | 92 | 1.30k | UInt8* __restrict c_pos = c.data(); | 93 | 1.30k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.42k | while (a_pos < a_end) { | 96 | 3.11k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.11k | ++a_pos; | 98 | 3.11k | ++c_pos; | 99 | 3.11k | } | 100 | 1.30k | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.47k | PaddedPODArray<UInt8>& c) { | 90 | 1.47k | size_t size = a.size(); | 91 | 1.47k | const A* __restrict a_pos = a.data(); | 92 | 1.47k | UInt8* __restrict c_pos = c.data(); | 93 | 1.47k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 6.14k | while (a_pos < a_end) { | 96 | 4.66k | *c_pos = Op::apply(*a_pos, b); | 97 | 4.66k | ++a_pos; | 98 | 4.66k | ++c_pos; | 99 | 4.66k | } | 100 | 1.47k | } |
_ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 391 | PaddedPODArray<UInt8>& c) { | 90 | 391 | size_t size = a.size(); | 91 | 391 | const A* __restrict a_pos = a.data(); | 92 | 391 | UInt8* __restrict c_pos = c.data(); | 93 | 391 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 2.46k | while (a_pos < a_end) { | 96 | 2.07k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.07k | ++a_pos; | 98 | 2.07k | ++c_pos; | 99 | 2.07k | } | 100 | 391 | } |
_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.22k | PaddedPODArray<UInt8>& c) { | 90 | 5.22k | size_t size = a.size(); | 91 | 5.22k | const A* __restrict a_pos = a.data(); | 92 | 5.22k | UInt8* __restrict c_pos = c.data(); | 93 | 5.22k | 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.22k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.82k | PaddedPODArray<UInt8>& c) { | 90 | 1.82k | size_t size = a.size(); | 91 | 1.82k | const A* __restrict a_pos = a.data(); | 92 | 1.82k | UInt8* __restrict c_pos = c.data(); | 93 | 1.82k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 99.3k | while (a_pos < a_end) { | 96 | 97.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 97.4k | ++a_pos; | 98 | 97.4k | ++c_pos; | 99 | 97.4k | } | 100 | 1.82k | } |
_ZN5doris17NumComparisonImplIllNS_6LessOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.04k | PaddedPODArray<UInt8>& c) { | 90 | 1.04k | size_t size = a.size(); | 91 | 1.04k | const A* __restrict a_pos = a.data(); | 92 | 1.04k | UInt8* __restrict c_pos = c.data(); | 93 | 1.04k | 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.04k | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 297 | PaddedPODArray<UInt8>& c) { | 90 | 297 | size_t size = a.size(); | 91 | 297 | const A* __restrict a_pos = a.data(); | 92 | 297 | UInt8* __restrict c_pos = c.data(); | 93 | 297 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.93k | while (a_pos < a_end) { | 96 | 1.64k | *c_pos = Op::apply(*a_pos, b); | 97 | 1.64k | ++a_pos; | 98 | 1.64k | ++c_pos; | 99 | 1.64k | } | 100 | 297 | } |
_ZN5doris17NumComparisonImplInnNS_6LessOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_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 | 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 | 109 | } |
_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 | 401 | PaddedPODArray<UInt8>& c) { | 90 | 401 | size_t size = a.size(); | 91 | 401 | const A* __restrict a_pos = a.data(); | 92 | 401 | UInt8* __restrict c_pos = c.data(); | 93 | 401 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 3.18k | while (a_pos < a_end) { | 96 | 2.78k | *c_pos = Op::apply(*a_pos, b); | 97 | 2.78k | ++a_pos; | 98 | 2.78k | ++c_pos; | 99 | 2.78k | } | 100 | 401 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIffNS_6LessOpILNS_13PrimitiveTypeE8EEEE15vector_constantERKNS_8PODArrayIfLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEfRNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIddNS_9GreaterOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 569 | PaddedPODArray<UInt8>& c) { | 90 | 569 | size_t size = a.size(); | 91 | 569 | const A* __restrict a_pos = a.data(); | 92 | 569 | UInt8* __restrict c_pos = c.data(); | 93 | 569 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 9.02k | while (a_pos < a_end) { | 96 | 8.46k | *c_pos = Op::apply(*a_pos, b); | 97 | 8.46k | ++a_pos; | 98 | 8.46k | ++c_pos; | 99 | 8.46k | } | 100 | 569 | } |
_ZN5doris17NumComparisonImplIddNS_6LessOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.03k | PaddedPODArray<UInt8>& c) { | 90 | 1.03k | size_t size = a.size(); | 91 | 1.03k | const A* __restrict a_pos = a.data(); | 92 | 1.03k | UInt8* __restrict c_pos = c.data(); | 93 | 1.03k | 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 | 1.03k | } |
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 | 25 | PaddedPODArray<UInt8>& c) { | 90 | 25 | size_t size = a.size(); | 91 | 25 | const A* __restrict a_pos = a.data(); | 92 | 25 | UInt8* __restrict c_pos = c.data(); | 93 | 25 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 103k | while (a_pos < a_end) { | 96 | 103k | *c_pos = Op::apply(*a_pos, b); | 97 | 103k | ++a_pos; | 98 | 103k | ++c_pos; | 99 | 103k | } | 100 | 25 | } |
_ZN5doris17NumComparisonImplIhhNS_14LessOrEqualsOpILNS_13PrimitiveTypeE2EEEE15vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEhRS9_ Line | Count | Source | 89 | 27 | PaddedPODArray<UInt8>& c) { | 90 | 27 | size_t size = a.size(); | 91 | 27 | const A* __restrict a_pos = a.data(); | 92 | 27 | UInt8* __restrict c_pos = c.data(); | 93 | 27 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 124k | while (a_pos < a_end) { | 96 | 123k | *c_pos = Op::apply(*a_pos, b); | 97 | 123k | ++a_pos; | 98 | 123k | ++c_pos; | 99 | 123k | } | 100 | 27 | } |
_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.49M | while (a_pos < a_end) { | 96 | 1.49M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.49M | ++a_pos; | 98 | 1.49M | ++c_pos; | 99 | 1.49M | } | 100 | 449 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_15DateV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE25EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 127 | PaddedPODArray<UInt8>& c) { | 90 | 127 | size_t size = a.size(); | 91 | 127 | const A* __restrict a_pos = a.data(); | 92 | 127 | UInt8* __restrict c_pos = c.data(); | 93 | 127 | 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 | 127 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 118 | PaddedPODArray<UInt8>& c) { | 90 | 118 | size_t size = a.size(); | 91 | 118 | const A* __restrict a_pos = a.data(); | 92 | 118 | UInt8* __restrict c_pos = c.data(); | 93 | 118 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 433 | while (a_pos < a_end) { | 96 | 315 | *c_pos = Op::apply(*a_pos, b); | 97 | 315 | ++a_pos; | 98 | 315 | ++c_pos; | 99 | 315 | } | 100 | 118 | } |
_ZN5doris17NumComparisonImplINS_11DateV2ValueINS_19DateTimeV2ValueTypeEEES3_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE26EEEE15vector_constantERKNS_8PODArrayIS3_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES3_RNS8_IhLm4096ESB_Lm16ELm15EEE Line | Count | Source | 89 | 60 | PaddedPODArray<UInt8>& c) { | 90 | 60 | size_t size = a.size(); | 91 | 60 | const A* __restrict a_pos = a.data(); | 92 | 60 | UInt8* __restrict c_pos = c.data(); | 93 | 60 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 203 | while (a_pos < a_end) { | 96 | 143 | *c_pos = Op::apply(*a_pos, b); | 97 | 143 | ++a_pos; | 98 | 143 | ++c_pos; | 99 | 143 | } | 100 | 60 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Line | Count | Source | 89 | 49 | PaddedPODArray<UInt8>& c) { | 90 | 49 | size_t size = a.size(); | 91 | 49 | const A* __restrict a_pos = a.data(); | 92 | 49 | UInt8* __restrict c_pos = c.data(); | 93 | 49 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 122 | while (a_pos < a_end) { | 96 | 73 | *c_pos = Op::apply(*a_pos, b); | 97 | 73 | ++a_pos; | 98 | 73 | ++c_pos; | 99 | 73 | } | 100 | 49 | } |
_ZN5doris17NumComparisonImplINS_16TimeStampNsValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE43EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_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 | 100 | while (a_pos < a_end) { | 96 | 59 | *c_pos = Op::apply(*a_pos, b); | 97 | 59 | ++a_pos; | 98 | 59 | ++c_pos; | 99 | 59 | } | 100 | 41 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplINS_16TimestampTzValueES1_NS_14LessOrEqualsOpILNS_13PrimitiveTypeE42EEEE15vector_constantERKNS_8PODArrayIS1_Lm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEES1_RNS6_IhLm4096ES9_Lm16ELm15EEE _ZN5doris17NumComparisonImplIaaNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 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 | 155k | while (a_pos < a_end) { | 96 | 155k | *c_pos = Op::apply(*a_pos, b); | 97 | 155k | ++a_pos; | 98 | 155k | ++c_pos; | 99 | 155k | } | 100 | 73 | } |
_ZN5doris17NumComparisonImplIaaNS_14LessOrEqualsOpILNS_13PrimitiveTypeE3EEEE15vector_constantERKNS_8PODArrayIaLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEaRNS5_IhLm4096ES8_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 | 92.5k | while (a_pos < a_end) { | 96 | 92.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 92.4k | ++a_pos; | 98 | 92.4k | ++c_pos; | 99 | 92.4k | } | 100 | 89 | } |
_ZN5doris17NumComparisonImplIssNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 70 | PaddedPODArray<UInt8>& c) { | 90 | 70 | size_t size = a.size(); | 91 | 70 | const A* __restrict a_pos = a.data(); | 92 | 70 | UInt8* __restrict c_pos = c.data(); | 93 | 70 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 89.6k | while (a_pos < a_end) { | 96 | 89.5k | *c_pos = Op::apply(*a_pos, b); | 97 | 89.5k | ++a_pos; | 98 | 89.5k | ++c_pos; | 99 | 89.5k | } | 100 | 70 | } |
_ZN5doris17NumComparisonImplIssNS_14LessOrEqualsOpILNS_13PrimitiveTypeE4EEEE15vector_constantERKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEsRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 97 | PaddedPODArray<UInt8>& c) { | 90 | 97 | size_t size = a.size(); | 91 | 97 | const A* __restrict a_pos = a.data(); | 92 | 97 | UInt8* __restrict c_pos = c.data(); | 93 | 97 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 77.8k | while (a_pos < a_end) { | 96 | 77.7k | *c_pos = Op::apply(*a_pos, b); | 97 | 77.7k | ++a_pos; | 98 | 77.7k | ++c_pos; | 99 | 77.7k | } | 100 | 97 | } |
_ZN5doris17NumComparisonImplIiiNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 1.33k | PaddedPODArray<UInt8>& c) { | 90 | 1.33k | size_t size = a.size(); | 91 | 1.33k | const A* __restrict a_pos = a.data(); | 92 | 1.33k | UInt8* __restrict c_pos = c.data(); | 93 | 1.33k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 1.80M | while (a_pos < a_end) { | 96 | 1.80M | *c_pos = Op::apply(*a_pos, b); | 97 | 1.80M | ++a_pos; | 98 | 1.80M | ++c_pos; | 99 | 1.80M | } | 100 | 1.33k | } |
_ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEiRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 6.32k | PaddedPODArray<UInt8>& c) { | 90 | 6.32k | size_t size = a.size(); | 91 | 6.32k | const A* __restrict a_pos = a.data(); | 92 | 6.32k | UInt8* __restrict c_pos = c.data(); | 93 | 6.32k | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 5.75M | while (a_pos < a_end) { | 96 | 5.75M | *c_pos = Op::apply(*a_pos, b); | 97 | 5.75M | ++a_pos; | 98 | 5.75M | ++c_pos; | 99 | 5.75M | } | 100 | 6.32k | } |
_ZN5doris17NumComparisonImplIllNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 790 | PaddedPODArray<UInt8>& c) { | 90 | 790 | size_t size = a.size(); | 91 | 790 | const A* __restrict a_pos = a.data(); | 92 | 790 | UInt8* __restrict c_pos = c.data(); | 93 | 790 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 4.07k | while (a_pos < a_end) { | 96 | 3.28k | *c_pos = Op::apply(*a_pos, b); | 97 | 3.28k | ++a_pos; | 98 | 3.28k | ++c_pos; | 99 | 3.28k | } | 100 | 790 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15vector_constantERKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEElRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 570 | PaddedPODArray<UInt8>& c) { | 90 | 570 | size_t size = a.size(); | 91 | 570 | const A* __restrict a_pos = a.data(); | 92 | 570 | UInt8* __restrict c_pos = c.data(); | 93 | 570 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 46.0k | while (a_pos < a_end) { | 96 | 45.4k | *c_pos = Op::apply(*a_pos, b); | 97 | 45.4k | ++a_pos; | 98 | 45.4k | ++c_pos; | 99 | 45.4k | } | 100 | 570 | } |
_ZN5doris17NumComparisonImplInnNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 12 | PaddedPODArray<UInt8>& c) { | 90 | 12 | size_t size = a.size(); | 91 | 12 | const A* __restrict a_pos = a.data(); | 92 | 12 | UInt8* __restrict c_pos = c.data(); | 93 | 12 | const A* __restrict a_end = a_pos + size; | 94 | | | 95 | 41.0k | while (a_pos < a_end) { | 96 | 41.0k | *c_pos = Op::apply(*a_pos, b); | 97 | 41.0k | ++a_pos; | 98 | 41.0k | ++c_pos; | 99 | 41.0k | } | 100 | 12 | } |
_ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15vector_constantERKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEnRNS5_IhLm4096ES8_Lm16ELm15EEE 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 | 120k | while (a_pos < a_end) { | 96 | 120k | *c_pos = Op::apply(*a_pos, b); | 97 | 120k | ++a_pos; | 98 | 120k | ++c_pos; | 99 | 120k | } | 100 | 36 | } |
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 | 467 | PaddedPODArray<UInt8>& c) { | 90 | 467 | size_t size = a.size(); | 91 | 467 | const A* __restrict a_pos = a.data(); | 92 | 467 | UInt8* __restrict c_pos = c.data(); | 93 | 467 | 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 | 467 | } |
_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 | 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 | 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 | 120 | } |
_ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE9EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 89 | 91 | PaddedPODArray<UInt8>& c) { | 90 | 91 | size_t size = a.size(); | 91 | 91 | const A* __restrict a_pos = a.data(); | 92 | 91 | UInt8* __restrict c_pos = c.data(); | 93 | 91 | 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 | 91 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIddNS_14LessOrEqualsOpILNS_13PrimitiveTypeE27EEEE15vector_constantERKNS_8PODArrayIdLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEdRNS5_IhLm4096ES8_Lm16ELm15EEE |
101 | | |
102 | 7.68k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { |
103 | 7.68k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); |
104 | 7.68k | } 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 | 474 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 474 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 474 | } |
_ZN5doris17NumComparisonImplIssNS_8EqualsOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 30 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 30 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 30 | } |
_ZN5doris17NumComparisonImplIiiNS_8EqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 97 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 97 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 97 | } |
_ZN5doris17NumComparisonImplIllNS_8EqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 567 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 567 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 567 | } |
_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 | 255 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 255 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 255 | } |
_ZN5doris17NumComparisonImplIssNS_9GreaterOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 377 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 377 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 377 | } |
_ZN5doris17NumComparisonImplIiiNS_9GreaterOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 3.70k | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 3.70k | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 3.70k | } |
_ZN5doris17NumComparisonImplIllNS_9GreaterOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 515 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 515 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 515 | } |
_ZN5doris17NumComparisonImplInnNS_9GreaterOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
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 | 441 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 441 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 441 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIssNS_6LessOpILNS_13PrimitiveTypeE4EEEE15constant_vectorEsRKNS_8PODArrayIsLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE _ZN5doris17NumComparisonImplIiiNS_6LessOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 193 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 193 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 193 | } |
_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 | 96 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 96 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 96 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_6LessOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_6LessOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _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 _ZN5doris17NumComparisonImplIiiNS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE15constant_vectorEiRKNS_8PODArrayIiLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 593 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 593 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 593 | } |
_ZN5doris17NumComparisonImplIllNS_14LessOrEqualsOpILNS_13PrimitiveTypeE6EEEE15constant_vectorElRKNS_8PODArrayIlLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Line | Count | Source | 102 | 48 | static void constant_vector(A a, const PaddedPODArray<B>& b, PaddedPODArray<UInt8>& c) { | 103 | 48 | NumComparisonImpl<B, A, typename Op::SymmetricOp>::vector_constant(b, a, c); | 104 | 48 | } |
Unexecuted instantiation: _ZN5doris17NumComparisonImplInnNS_14LessOrEqualsOpILNS_13PrimitiveTypeE7EEEE15constant_vectorEnRKNS_8PODArrayInLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIjjNS_14LessOrEqualsOpILNS_13PrimitiveTypeE36EEEE15constant_vectorEjRKNS_8PODArrayIjLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _ZN5doris17NumComparisonImplIooNS_14LessOrEqualsOpILNS_13PrimitiveTypeE37EEEE15constant_vectorEoRKNS_8PODArrayIoLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERNS5_IhLm4096ES8_Lm16ELm15EEE Unexecuted instantiation: _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 | 150 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { |
117 | 150 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); |
118 | 500k | for (size_t i = 0, size = a.size(); i < size; ++i) { |
119 | 500k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); |
120 | 500k | } |
121 | 150 | } _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 | 70 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 70 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 339k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 339k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 339k | } | 121 | 70 | } |
_ZN5doris21GenericComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE15vector_constantERKNS_7IColumnES7_RNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEE Line | Count | Source | 116 | 37 | static void vector_constant(const IColumn& a, const IColumn& b, PaddedPODArray<UInt8>& c) { | 117 | 37 | const auto& col_right = assert_cast<const ColumnConst&>(b).get_data_column(); | 118 | 161k | for (size_t i = 0, size = a.size(); i < size; ++i) { | 119 | 161k | c[i] = Op::apply(a.compare_at(i, 0, col_right, 1), 0); | 120 | 161k | } | 121 | 37 | } |
|
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 | 418 | PaddedPODArray<UInt8>& c) { |
135 | 418 | size_t size = a_offsets.size(); |
136 | 418 | ColumnString::Offset prev_a_offset = 0; |
137 | 418 | ColumnString::Offset prev_b_offset = 0; |
138 | 418 | const auto* a_pos = a_data.data(); |
139 | 418 | const auto* b_pos = b_data.data(); |
140 | | |
141 | 1.56k | for (size_t i = 0; i < size; ++i) { |
142 | 1.15k | c[i] = Op::apply(memcmp_small_allow_overflow15( |
143 | 1.15k | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, |
144 | 1.15k | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), |
145 | 1.15k | 0); |
146 | | |
147 | 1.15k | prev_a_offset = a_offsets[i]; |
148 | 1.15k | prev_b_offset = b_offsets[i]; |
149 | 1.15k | } |
150 | 418 | } _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 | 385 | PaddedPODArray<UInt8>& c) { | 135 | 385 | size_t size = a_offsets.size(); | 136 | 385 | ColumnString::Offset prev_a_offset = 0; | 137 | 385 | ColumnString::Offset prev_b_offset = 0; | 138 | 385 | const auto* a_pos = a_data.data(); | 139 | 385 | const auto* b_pos = b_data.data(); | 140 | | | 141 | 1.30k | for (size_t i = 0; i < size; ++i) { | 142 | 917 | c[i] = Op::apply(memcmp_small_allow_overflow15( | 143 | 917 | a_pos + prev_a_offset, a_offsets[i] - prev_a_offset, | 144 | 917 | b_pos + prev_b_offset, b_offsets[i] - prev_b_offset), | 145 | 917 | 0); | 146 | | | 147 | 917 | prev_a_offset = a_offsets[i]; | 148 | 917 | prev_b_offset = b_offsets[i]; | 149 | 917 | } | 150 | 385 | } |
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 | 812 | PaddedPODArray<UInt8>& c) { |
157 | 812 | size_t size = a_offsets.size(); |
158 | 812 | ColumnString::Offset prev_a_offset = 0; |
159 | 812 | const auto* a_pos = a_data.data(); |
160 | 812 | const auto* b_pos = b_data.data(); |
161 | | |
162 | 1.29M | for (size_t i = 0; i < size; ++i) { |
163 | 1.29M | c[i] = Op::apply( |
164 | 1.29M | memcmp_small_allow_overflow15(a_pos + prev_a_offset, |
165 | 1.29M | a_offsets[i] - prev_a_offset, b_pos, b_size), |
166 | 1.29M | 0); |
167 | | |
168 | 1.29M | prev_a_offset = a_offsets[i]; |
169 | 1.29M | } |
170 | 812 | } _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 223 | PaddedPODArray<UInt8>& c) { | 157 | 223 | size_t size = a_offsets.size(); | 158 | 223 | ColumnString::Offset prev_a_offset = 0; | 159 | 223 | const auto* a_pos = a_data.data(); | 160 | 223 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 356k | 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 | 223 | } |
_ZN5doris20StringComparisonImplINS_6LessOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 121 | PaddedPODArray<UInt8>& c) { | 157 | 121 | size_t size = a_offsets.size(); | 158 | 121 | ColumnString::Offset prev_a_offset = 0; | 159 | 121 | const auto* a_pos = a_data.data(); | 160 | 121 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 104k | for (size_t i = 0; i < size; ++i) { | 163 | 104k | c[i] = Op::apply( | 164 | 104k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 104k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 104k | 0); | 167 | | | 168 | 104k | prev_a_offset = a_offsets[i]; | 169 | 104k | } | 170 | 121 | } |
_ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 186 | PaddedPODArray<UInt8>& c) { | 157 | 186 | size_t size = a_offsets.size(); | 158 | 186 | ColumnString::Offset prev_a_offset = 0; | 159 | 186 | const auto* a_pos = a_data.data(); | 160 | 186 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 502k | for (size_t i = 0; i < size; ++i) { | 163 | 502k | c[i] = Op::apply( | 164 | 502k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 502k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 502k | 0); | 167 | | | 168 | 502k | prev_a_offset = a_offsets[i]; | 169 | 502k | } | 170 | 186 | } |
_ZN5doris20StringComparisonImplINS_14LessOrEqualsOpILNS_13PrimitiveTypeE5EEEE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS5_IjLm4096ES8_Lm16ELm15EEESB_jRS9_ Line | Count | Source | 156 | 282 | PaddedPODArray<UInt8>& c) { | 157 | 282 | size_t size = a_offsets.size(); | 158 | 282 | ColumnString::Offset prev_a_offset = 0; | 159 | 282 | const auto* a_pos = a_data.data(); | 160 | 282 | const auto* b_pos = b_data.data(); | 161 | | | 162 | 330k | for (size_t i = 0; i < size; ++i) { | 163 | 330k | c[i] = Op::apply( | 164 | 330k | memcmp_small_allow_overflow15(a_pos + prev_a_offset, | 165 | 330k | a_offsets[i] - prev_a_offset, b_pos, b_size), | 166 | 330k | 0); | 167 | | | 168 | 330k | prev_a_offset = a_offsets[i]; | 169 | 330k | } | 170 | 282 | } |
|
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 | 66 | PaddedPODArray<UInt8>& c) { |
177 | 66 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, |
178 | 66 | a_data, a_size, c); |
179 | 66 | } Unexecuted instantiation: _ZN5doris20StringComparisonImplINS_9GreaterOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ _ZN5doris20StringComparisonImplINS_17GreaterOrEqualsOpILNS_13PrimitiveTypeE5EEEE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjSB_RKNS5_IjLm4096ES8_Lm16ELm15EEERS9_ Line | Count | Source | 176 | 60 | PaddedPODArray<UInt8>& c) { | 177 | 60 | StringComparisonImpl<typename Op::SymmetricOp>::string_vector_constant(b_data, b_offsets, | 178 | 60 | a_data, a_size, c); | 179 | 60 | } |
_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 | 496 | PaddedPODArray<UInt8>& c) { |
189 | 496 | size_t size = a_offsets.size(); |
190 | 496 | ColumnString::Offset prev_a_offset = 0; |
191 | 496 | ColumnString::Offset prev_b_offset = 0; |
192 | 496 | const auto* a_pos = a_data.data(); |
193 | 496 | const auto* b_pos = b_data.data(); |
194 | | |
195 | 13.7k | for (size_t i = 0; i < size; ++i) { |
196 | 13.2k | auto a_size = a_offsets[i] - prev_a_offset; |
197 | 13.2k | auto b_size = b_offsets[i] - prev_b_offset; |
198 | | |
199 | 13.2k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
200 | 13.2k | b_pos + prev_b_offset, b_size); |
201 | | |
202 | 13.2k | prev_a_offset = a_offsets[i]; |
203 | 13.2k | prev_b_offset = b_offsets[i]; |
204 | 13.2k | } |
205 | 496 | } _ZN5doris16StringEqualsImplILb1EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 481 | PaddedPODArray<UInt8>& c) { | 189 | 481 | size_t size = a_offsets.size(); | 190 | 481 | ColumnString::Offset prev_a_offset = 0; | 191 | 481 | ColumnString::Offset prev_b_offset = 0; | 192 | 481 | const auto* a_pos = a_data.data(); | 193 | 481 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 8.61k | for (size_t i = 0; i < size; ++i) { | 196 | 8.13k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 8.13k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 8.13k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 8.13k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 8.13k | prev_a_offset = a_offsets[i]; | 203 | 8.13k | prev_b_offset = b_offsets[i]; | 204 | 8.13k | } | 205 | 481 | } |
_ZN5doris16StringEqualsImplILb0EE27string_vector_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_SB_RS6_ Line | Count | Source | 188 | 15 | PaddedPODArray<UInt8>& c) { | 189 | 15 | size_t size = a_offsets.size(); | 190 | 15 | ColumnString::Offset prev_a_offset = 0; | 191 | 15 | ColumnString::Offset prev_b_offset = 0; | 192 | 15 | const auto* a_pos = a_data.data(); | 193 | 15 | const auto* b_pos = b_data.data(); | 194 | | | 195 | 5.15k | for (size_t i = 0; i < size; ++i) { | 196 | 5.14k | auto a_size = a_offsets[i] - prev_a_offset; | 197 | 5.14k | auto b_size = b_offsets[i] - prev_b_offset; | 198 | | | 199 | 5.14k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 200 | 5.14k | b_pos + prev_b_offset, b_size); | 201 | | | 202 | 5.14k | prev_a_offset = a_offsets[i]; | 203 | 5.14k | prev_b_offset = b_offsets[i]; | 204 | 5.14k | } | 205 | 15 | } |
|
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.68M | for (size_t i = 0; i < size; ++i) { |
227 | 9.66M | auto a_size = a_offsets[i] - prev_a_offset; |
228 | 9.66M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, |
229 | 9.66M | b_pos, b_size); |
230 | 9.66M | prev_a_offset = a_offsets[i]; |
231 | 9.66M | } |
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.62M | for (size_t i = 0; i < size; ++i) { | 227 | 9.60M | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 9.60M | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 9.60M | b_pos, b_size); | 230 | 9.60M | prev_a_offset = a_offsets[i]; | 231 | 9.60M | } | 232 | 21.4k | } | 233 | 21.4k | } |
_ZN5doris16StringEqualsImplILb0EE22string_vector_constantERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEERKNS2_IjLm4096ES5_Lm16ELm15EEES8_jRS6_ Line | Count | Source | 211 | 123 | PaddedPODArray<UInt8>& c) { | 212 | 123 | size_t size = a_offsets.size(); | 213 | 123 | 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 | 122 | } else { | 223 | 122 | ColumnString::Offset prev_a_offset = 0; | 224 | 122 | const auto* a_pos = a_data.data(); | 225 | 122 | const auto* b_pos = b_data.data(); | 226 | 59.3k | for (size_t i = 0; i < size; ++i) { | 227 | 59.2k | auto a_size = a_offsets[i] - prev_a_offset; | 228 | 59.2k | c[i] = positive == memequal_small_allow_overflow15(a_pos + prev_a_offset, a_size, | 229 | 59.2k | b_pos, b_size); | 230 | 59.2k | prev_a_offset = a_offsets[i]; | 231 | 59.2k | } | 232 | 122 | } | 233 | 123 | } |
|
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 | 16 | PaddedPODArray<UInt8>& c) { |
240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); |
241 | 16 | } _ZN5doris16StringEqualsImplILb1EE22constant_string_vectorERKNS_8PODArrayIhLm4096ENS_9AllocatorILb0ELb0ELb0ENS_22DefaultMemoryAllocatorELb1EEELm16ELm15EEEjS8_RKNS2_IjLm4096ES5_Lm16ELm15EEERS6_ Line | Count | Source | 239 | 16 | PaddedPODArray<UInt8>& c) { | 240 | 16 | string_vector_constant(b_data, b_offsets, a_data, a_size, c); | 241 | 16 | } |
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 | 3.53k | const Field& rmax, Op op) { |
305 | 3.53k | switch (op) { |
306 | 1.87k | case Op::EQ: |
307 | | // Disjoint ranges cannot share a value. |
308 | 1.87k | return lmin > rmax || rmin > lmax; |
309 | 175 | case Op::NE: |
310 | | // Only provable when both sides collapse to the same single value. |
311 | 175 | return lmin == lmax && rmin == rmax && lmin == rmin; |
312 | 510 | case Op::LT: |
313 | 510 | return lmin >= rmax; |
314 | 282 | case Op::LE: |
315 | 282 | return lmin > rmax; |
316 | 365 | case Op::GT: |
317 | 365 | return rmin >= lmax; |
318 | 314 | case Op::GE: |
319 | 314 | return rmin > lmax; |
320 | 3.53k | } |
321 | 0 | __builtin_unreachable(); |
322 | 3.53k | } |
323 | | |
324 | | inline ZoneMapFilterResult evaluate_slot_literal(const ZoneMapEvalContext& ctx, |
325 | | const expr_zonemap::SlotLiteral& slot_literal, |
326 | 3.37k | Op op) { |
327 | 3.37k | auto slot_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_literal.slot_index, |
328 | 3.37k | slot_literal.slot_type); |
329 | 3.37k | if (slot_type == nullptr) { |
330 | 293 | return unsupported_zonemap_filter(ctx); |
331 | 293 | } |
332 | 3.08k | auto zone_map_ptr = ctx.zone_map(slot_literal.slot_index); |
333 | 3.08k | if (zone_map_ptr == nullptr) { |
334 | 46 | return unsupported_zonemap_filter(ctx); |
335 | 46 | } |
336 | 3.03k | const auto& zone_map = *zone_map_ptr; |
337 | 3.03k | if (!zone_map.has_not_null) { |
338 | 48 | return ZoneMapFilterResult::kNoMatch; |
339 | 48 | } |
340 | 2.98k | if (!expr_zonemap::range_stats_usable_for_zonemap(zone_map, slot_type)) { |
341 | 105 | return unsupported_zonemap_filter(ctx); |
342 | 105 | } |
343 | | |
344 | 2.88k | const auto effective_op = slot_literal.literal_on_left ? symmetric_op(op) : op; |
345 | 2.88k | const auto& literal = slot_literal.literal; |
346 | 2.88k | const bool literal_is_nan = literal.is_nan(); |
347 | 2.88k | const bool hidden_nan_can_match = (effective_op == Op::EQ && literal_is_nan) || |
348 | 2.88k | (effective_op == Op::NE && !literal_is_nan) || |
349 | 2.88k | (effective_op == Op::GT && !literal_is_nan) || |
350 | 2.88k | effective_op == Op::GE; |
351 | 2.88k | 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 | 52 | return unsupported_zonemap_filter(ctx); |
354 | 52 | } |
355 | 2.83k | return range_vs_range_no_match(zone_map.min_value, zone_map.max_value, literal, literal, |
356 | 2.83k | effective_op) |
357 | 2.83k | ? ZoneMapFilterResult::kNoMatch |
358 | 2.83k | : ZoneMapFilterResult::kMayMatch; |
359 | 2.88k | } |
360 | | |
361 | | inline ZoneMapFilterResult evaluate_slot_slot(const ZoneMapEvalContext& ctx, |
362 | 750 | const expr_zonemap::SlotSlot& slot_slot, Op op) { |
363 | 750 | const auto left_type = expr_zonemap::fetch_compatible_slot_type(ctx, slot_slot.left_slot_index, |
364 | 750 | slot_slot.left_type); |
365 | 750 | const auto right_type = expr_zonemap::fetch_compatible_slot_type( |
366 | 750 | ctx, slot_slot.right_slot_index, slot_slot.right_type); |
367 | 755 | 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 | 749 | const auto left_zone_map = ctx.zone_map(slot_slot.left_slot_index); |
372 | 749 | const auto right_zone_map = ctx.zone_map(slot_slot.right_slot_index); |
373 | 749 | 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 | 740 | if (!left_zone_map->has_not_null || !right_zone_map->has_not_null) { |
381 | 24 | return ZoneMapFilterResult::kNoMatch; |
382 | 24 | } |
383 | 716 | if (!expr_zonemap::range_stats_usable_for_zonemap(*left_zone_map, left_type) || |
384 | 716 | !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 | 707 | if (is_string_type(remove_nullable(left_type)->get_primitive_type())) { |
398 | 392 | auto is_untruncated = [](const Field& f) { |
399 | 392 | return f.get<TYPE_STRING>().size() < MAX_ZONE_MAP_INDEX_SIZE; |
400 | 392 | }; |
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 | 704 | if (ctx.floating_nan_count_unknown(slot_slot.left_slot_index) || |
413 | 704 | ctx.floating_nan_count_unknown(slot_slot.right_slot_index)) { |
414 | 12 | return unsupported_zonemap_filter(ctx); |
415 | 12 | } |
416 | 692 | return range_vs_range_no_match(left_zone_map->min_value, left_zone_map->max_value, |
417 | 692 | right_zone_map->min_value, right_zone_map->max_value, op) |
418 | 692 | ? ZoneMapFilterResult::kNoMatch |
419 | 692 | : ZoneMapFilterResult::kMayMatch; |
420 | 704 | } |
421 | | |
422 | | inline ZoneMapFilterResult evaluate(const ZoneMapEvalContext& ctx, const VExprSPtrs& arguments, |
423 | 4.10k | Op op) { |
424 | 4.10k | if (auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
425 | 4.10k | slot_literal.has_value()) { |
426 | 3.38k | return evaluate_slot_literal(ctx, *slot_literal, op); |
427 | 3.38k | } |
428 | 716 | 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 | 716 | DORIS_CHECK(slot_slot.has_value()); |
432 | 716 | return evaluate_slot_slot(ctx, *slot_slot, op); |
433 | 4.10k | } |
434 | | |
435 | 33.5k | inline bool can_evaluate(const VExprSPtrs& arguments) { |
436 | 33.5k | auto slot_literal = expr_zonemap::extract_slot_and_literal(arguments); |
437 | 33.5k | if (!slot_literal.has_value()) { |
438 | 19.0k | return false; |
439 | 19.0k | } |
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 | 14.4k | if (slot_literal->literal.is_null()) { |
445 | 4 | return false; |
446 | 4 | } |
447 | | |
448 | 14.4k | DORIS_CHECK(slot_literal->slot_type != nullptr); |
449 | 14.4k | DORIS_CHECK(slot_literal->literal_type != nullptr); |
450 | 14.4k | 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 | 14.4k | return true; |
458 | 14.4k | } |
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 | 18.7k | inline bool can_evaluate_slot_slot(const VExprSPtrs& arguments) { |
465 | 18.7k | auto slot_slot = expr_zonemap::extract_slot_and_slot(arguments); |
466 | 18.7k | if (!slot_slot.has_value()) { |
467 | 16.8k | return false; |
468 | 16.8k | } |
469 | 1.90k | DORIS_CHECK(slot_slot->left_type != nullptr); |
470 | 1.90k | 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 | 4.02k | const auto excluded = [](const DataTypePtr& type) { |
479 | 4.02k | const auto primitive_type = remove_nullable(type)->get_primitive_type(); |
480 | 4.06k | return is_varbinary(primitive_type) || primitive_type == TYPE_VARIANT || |
481 | 4.06k | primitive_type == TYPE_JSONB || is_complex_type(primitive_type) || |
482 | 4.04k | is_var_len_object(primitive_type); |
483 | 4.02k | }; |
484 | 2.01k | 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 | 1.88k | return expr_zonemap::data_types_compatible(slot_slot->left_type, slot_slot->right_type); |
492 | 1.90k | } |
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 | 38.1k | inline std::optional<Op> op_from_name(std::string_view name) { |
556 | 38.1k | if (name == NameEquals::name) { |
557 | 18.4k | return Op::EQ; |
558 | 18.4k | } |
559 | 19.6k | if (name == NameNotEquals::name) { |
560 | 1.69k | return Op::NE; |
561 | 1.69k | } |
562 | 17.9k | if (name == NameLess::name) { |
563 | 4.86k | return Op::LT; |
564 | 4.86k | } |
565 | 13.1k | if (name == NameLessOrEquals::name) { |
566 | 1.92k | return Op::LE; |
567 | 1.92k | } |
568 | 11.1k | if (name == NameGreater::name) { |
569 | 6.47k | return Op::GT; |
570 | 6.47k | } |
571 | 4.90k | if (name == NameGreaterOrEquals::name) { |
572 | 4.90k | return Op::GE; |
573 | 4.90k | } |
574 | 18.4E | return std::nullopt; |
575 | 4.72k | } |
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 | 305k | 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.28k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE6createEv Line | Count | Source | 582 | 7.25k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE6createEv Line | Count | Source | 582 | 9.43k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE6createEv Line | Count | Source | 582 | 4.08k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE6createEv Line | Count | Source | 582 | 10.9k | static FunctionPtr create() { return std::make_shared<FunctionComparison>(); } |
|
583 | | |
584 | 305k | FunctionComparison() = default; _ZN5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEEC2Ev Line | Count | Source | 584 | 272k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEEC2Ev Line | Count | Source | 584 | 1.29k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEEC2Ev Line | Count | Source | 584 | 7.25k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEEC2Ev Line | Count | Source | 584 | 9.43k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_6LessOpENS_8NameLessEEC2Ev Line | Count | Source | 584 | 4.09k | FunctionComparison() = default; |
_ZN5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEEC2Ev Line | Count | Source | 584 | 10.8k | FunctionComparison() = default; |
|
585 | | |
586 | 687k | double execute_cost() const override { return 0.5; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_costEv Line | Count | Source | 586 | 680k | 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.17k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_costEv Line | Count | Source | 586 | 1.28k | double execute_cost() const override { return 0.5; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_costEv Line | Count | Source | 586 | 1.03k | 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 | 68.4k | const ColumnPtr& col_right_ptr) const { |
592 | 68.4k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); |
593 | 68.4k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); |
594 | | |
595 | 68.4k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); |
596 | 68.4k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); |
597 | | |
598 | 68.4k | DCHECK(!(left_is_const && right_is_const)); |
599 | | |
600 | 68.4k | if (!left_is_const && !right_is_const) { |
601 | 12.2k | auto col_res = ColumnUInt8::create(); |
602 | | |
603 | 12.2k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
604 | 12.2k | vec_res.resize(col_left->get_data().size()); |
605 | 12.2k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
606 | 12.2k | typename PrimitiveTypeTraits<PT>::CppType, |
607 | 12.2k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), |
608 | 12.2k | vec_res); |
609 | | |
610 | 12.2k | block.replace_by_position(result, std::move(col_res)); |
611 | 56.2k | } else if (!left_is_const && right_is_const) { |
612 | 48.6k | auto col_res = ColumnUInt8::create(); |
613 | | |
614 | 48.6k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
615 | 48.6k | vec_res.resize(col_left->size()); |
616 | 48.6k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
617 | 48.6k | typename PrimitiveTypeTraits<PT>::CppType, |
618 | 48.6k | Op<PT>>::vector_constant(col_left->get_data(), |
619 | 48.6k | col_right->get_element(0), vec_res); |
620 | | |
621 | 48.6k | block.replace_by_position(result, std::move(col_res)); |
622 | 48.6k | } else if (left_is_const && !right_is_const) { |
623 | 7.68k | auto col_res = ColumnUInt8::create(); |
624 | | |
625 | 7.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); |
626 | 7.68k | vec_res.resize(col_right->size()); |
627 | 7.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, |
628 | 7.68k | typename PrimitiveTypeTraits<PT>::CppType, |
629 | 7.68k | Op<PT>>::constant_vector(col_left->get_element(0), |
630 | 7.68k | col_right->get_data(), vec_res); |
631 | | |
632 | 7.68k | block.replace_by_position(result, std::move(col_res)); |
633 | 7.68k | } |
634 | 68.4k | return Status::OK(); |
635 | 68.4k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE2EEENS_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 | 66 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 66 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 66 | vec_res.resize(col_left->get_data().size()); | 605 | 66 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 66 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 66 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 66 | vec_res); | 609 | | | 610 | 66 | block.replace_by_position(result, std::move(col_res)); | 611 | 66 | } else if (!left_is_const && right_is_const) { | 612 | 30 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 30 | vec_res.resize(col_left->size()); | 616 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 30 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 30 | col_right->get_element(0), vec_res); | 620 | | | 621 | 30 | block.replace_by_position(result, std::move(col_res)); | 622 | 30 | } 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_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 698 | const ColumnPtr& col_right_ptr) const { | 592 | 698 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 698 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 698 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 698 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 698 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 698 | if (!left_is_const && !right_is_const) { | 601 | 249 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 249 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 249 | vec_res.resize(col_left->get_data().size()); | 605 | 249 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 249 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 249 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 249 | vec_res); | 609 | | | 610 | 249 | block.replace_by_position(result, std::move(col_res)); | 611 | 449 | } else if (!left_is_const && right_is_const) { | 612 | 449 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 449 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 449 | vec_res.resize(col_left->size()); | 616 | 449 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 449 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 449 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 449 | col_right->get_element(0), vec_res); | 620 | | | 621 | 449 | block.replace_by_position(result, std::move(col_res)); | 622 | 449 | } 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 | 698 | return Status::OK(); | 635 | 698 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 440 | const ColumnPtr& col_right_ptr) const { | 592 | 440 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 440 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 440 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 440 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 440 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 440 | if (!left_is_const && !right_is_const) { | 601 | 253 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 253 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 253 | vec_res.resize(col_left->get_data().size()); | 605 | 253 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 253 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 253 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 253 | vec_res); | 609 | | | 610 | 253 | block.replace_by_position(result, std::move(col_res)); | 611 | 253 | } else if (!left_is_const && right_is_const) { | 612 | 187 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 187 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 187 | vec_res.resize(col_left->size()); | 616 | 187 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 187 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 187 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 187 | col_right->get_element(0), vec_res); | 620 | | | 621 | 187 | block.replace_by_position(result, std::move(col_res)); | 622 | 187 | } 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 | 440 | return Status::OK(); | 635 | 440 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 233 | const ColumnPtr& col_right_ptr) const { | 592 | 233 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 233 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 233 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 233 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 233 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 233 | if (!left_is_const && !right_is_const) { | 601 | 144 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 144 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 144 | vec_res.resize(col_left->get_data().size()); | 605 | 144 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 144 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 144 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 144 | vec_res); | 609 | | | 610 | 144 | block.replace_by_position(result, std::move(col_res)); | 611 | 144 | } 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 | 233 | return Status::OK(); | 635 | 233 | } |
_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 | 5.48k | const ColumnPtr& col_right_ptr) const { | 592 | 5.48k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 5.48k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 5.48k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 5.48k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 5.48k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 5.48k | if (!left_is_const && !right_is_const) { | 601 | 223 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 223 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 223 | vec_res.resize(col_left->get_data().size()); | 605 | 223 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 223 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 223 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 223 | vec_res); | 609 | | | 610 | 223 | block.replace_by_position(result, std::move(col_res)); | 611 | 5.26k | } else if (!left_is_const && right_is_const) { | 612 | 4.79k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 4.79k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 4.79k | vec_res.resize(col_left->size()); | 616 | 4.79k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 4.79k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 4.79k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 4.79k | col_right->get_element(0), vec_res); | 620 | | | 621 | 4.79k | block.replace_by_position(result, std::move(col_res)); | 622 | 4.79k | } else if (left_is_const && !right_is_const) { | 623 | 474 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 474 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 474 | vec_res.resize(col_right->size()); | 627 | 474 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 474 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 474 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 474 | col_right->get_data(), vec_res); | 631 | | | 632 | 474 | block.replace_by_position(result, std::move(col_res)); | 633 | 474 | } | 634 | 5.48k | return Status::OK(); | 635 | 5.48k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 391 | const ColumnPtr& col_right_ptr) const { | 592 | 391 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 391 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 391 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 391 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 391 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 391 | if (!left_is_const && !right_is_const) { | 601 | 116 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 116 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 116 | vec_res.resize(col_left->get_data().size()); | 605 | 116 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 116 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 116 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 116 | vec_res); | 609 | | | 610 | 116 | block.replace_by_position(result, std::move(col_res)); | 611 | 275 | } else if (!left_is_const && right_is_const) { | 612 | 245 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 245 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 245 | vec_res.resize(col_left->size()); | 616 | 245 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 245 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 245 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 245 | col_right->get_element(0), vec_res); | 620 | | | 621 | 245 | block.replace_by_position(result, std::move(col_res)); | 622 | 245 | } else if (left_is_const && !right_is_const) { | 623 | 30 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 30 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 30 | vec_res.resize(col_right->size()); | 627 | 30 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 30 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 30 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 30 | col_right->get_data(), vec_res); | 631 | | | 632 | 30 | block.replace_by_position(result, std::move(col_res)); | 633 | 30 | } | 634 | 391 | return Status::OK(); | 635 | 391 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 3.29k | const ColumnPtr& col_right_ptr) const { | 592 | 3.29k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 3.29k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 3.29k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 3.29k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 3.29k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 3.29k | if (!left_is_const && !right_is_const) { | 601 | 1.04k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.04k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.04k | vec_res.resize(col_left->get_data().size()); | 605 | 1.04k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.04k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.04k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.04k | vec_res); | 609 | | | 610 | 1.04k | block.replace_by_position(result, std::move(col_res)); | 611 | 2.25k | } else if (!left_is_const && right_is_const) { | 612 | 2.16k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 2.16k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 2.16k | vec_res.resize(col_left->size()); | 616 | 2.16k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 2.16k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 2.16k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 2.16k | col_right->get_element(0), vec_res); | 620 | | | 621 | 2.16k | block.replace_by_position(result, std::move(col_res)); | 622 | 2.16k | } else if (left_is_const && !right_is_const) { | 623 | 97 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 97 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 97 | vec_res.resize(col_right->size()); | 627 | 97 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 97 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 97 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 97 | col_right->get_data(), vec_res); | 631 | | | 632 | 97 | block.replace_by_position(result, std::move(col_res)); | 633 | 97 | } | 634 | 3.29k | return Status::OK(); | 635 | 3.29k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.42k | const ColumnPtr& col_right_ptr) const { | 592 | 6.42k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.42k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.42k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.42k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.42k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.42k | if (!left_is_const && !right_is_const) { | 601 | 207 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 207 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 207 | vec_res.resize(col_left->get_data().size()); | 605 | 207 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 207 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 207 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 207 | vec_res); | 609 | | | 610 | 207 | block.replace_by_position(result, std::move(col_res)); | 611 | 6.22k | } else if (!left_is_const && right_is_const) { | 612 | 5.65k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 5.65k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 5.65k | vec_res.resize(col_left->size()); | 616 | 5.65k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 5.65k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 5.65k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 5.65k | col_right->get_element(0), vec_res); | 620 | | | 621 | 5.65k | block.replace_by_position(result, std::move(col_res)); | 622 | 5.65k | } else if (left_is_const && !right_is_const) { | 623 | 567 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 567 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 567 | vec_res.resize(col_right->size()); | 627 | 567 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 567 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 567 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 567 | col_right->get_data(), vec_res); | 631 | | | 632 | 567 | block.replace_by_position(result, std::move(col_res)); | 633 | 567 | } | 634 | 6.42k | return Status::OK(); | 635 | 6.42k | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 117 | const ColumnPtr& col_right_ptr) const { | 592 | 117 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 117 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 117 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 117 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 117 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 117 | 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 | 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 | 117 | return Status::OK(); | 635 | 117 | } |
_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.02k | } 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 | 93 | const ColumnPtr& col_right_ptr) const { | 592 | 93 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 93 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 93 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 93 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 93 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 93 | if (!left_is_const && !right_is_const) { | 601 | 93 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 93 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 93 | vec_res.resize(col_left->get_data().size()); | 605 | 93 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 93 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 93 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 93 | vec_res); | 609 | | | 610 | 93 | block.replace_by_position(result, std::move(col_res)); | 611 | 93 | } 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 | 93 | return Status::OK(); | 635 | 93 | } |
_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 893 | const ColumnPtr& col_right_ptr) const { | 592 | 893 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 893 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 893 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 893 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 893 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 895 | if (!left_is_const && !right_is_const) { | 601 | 116 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 116 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 116 | vec_res.resize(col_left->get_data().size()); | 605 | 116 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 116 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 116 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 116 | vec_res); | 609 | | | 610 | 116 | block.replace_by_position(result, std::move(col_res)); | 611 | 779 | } else if (!left_is_const && right_is_const) { | 612 | 779 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 779 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 779 | vec_res.resize(col_left->size()); | 616 | 779 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 779 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 779 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 779 | col_right->get_element(0), vec_res); | 620 | | | 621 | 779 | 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 | 893 | return Status::OK(); | 635 | 893 | } |
_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 | 82 | const ColumnPtr& col_right_ptr) const { | 592 | 82 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 82 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 82 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 82 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 82 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 82 | if (!left_is_const && !right_is_const) { | 601 | 54 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 54 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 54 | vec_res.resize(col_left->get_data().size()); | 605 | 54 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 54 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 54 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 54 | vec_res); | 609 | | | 610 | 54 | block.replace_by_position(result, std::move(col_res)); | 611 | 54 | } 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 | 82 | return Status::OK(); | 635 | 82 | } |
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.30k | const ColumnPtr& col_right_ptr) const { | 592 | 1.30k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.30k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.30k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.30k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.30k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.30k | if (!left_is_const && !right_is_const) { | 601 | 1.02k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.02k | vec_res.resize(col_left->get_data().size()); | 605 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.02k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.02k | vec_res); | 609 | | | 610 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.02k | } else if (!left_is_const && right_is_const) { | 612 | 282 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 282 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 282 | vec_res.resize(col_left->size()); | 616 | 282 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 282 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 282 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 282 | col_right->get_element(0), vec_res); | 620 | | | 621 | 282 | 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.30k | return Status::OK(); | 635 | 1.30k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 497 | const ColumnPtr& col_right_ptr) const { | 592 | 497 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 497 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 497 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 497 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 497 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 497 | if (!left_is_const && !right_is_const) { | 601 | 344 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 344 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 344 | vec_res.resize(col_left->get_data().size()); | 605 | 344 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 344 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 344 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 344 | vec_res); | 609 | | | 610 | 344 | block.replace_by_position(result, std::move(col_res)); | 611 | 344 | } 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 | 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 | 497 | return Status::OK(); | 635 | 497 | } |
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.07k | const ColumnPtr& col_right_ptr) const { | 592 | 1.07k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.07k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.07k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.07k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.07k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.07k | if (!left_is_const && !right_is_const) { | 601 | 1.02k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.02k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.02k | vec_res.resize(col_left->get_data().size()); | 605 | 1.02k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.02k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.02k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.02k | vec_res); | 609 | | | 610 | 1.02k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.02k | } 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.07k | return Status::OK(); | 635 | 1.07k | } |
_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 | 71 | const ColumnPtr& col_right_ptr) const { | 592 | 71 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 71 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 71 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 71 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 71 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 71 | 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 | 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 | 71 | return Status::OK(); | 635 | 71 | } |
_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.22k | const ColumnPtr& col_right_ptr) const { | 592 | 1.22k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.22k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.22k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.22k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.22k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.22k | 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.15k | } else if (!left_is_const && right_is_const) { | 612 | 902 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 902 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 902 | vec_res.resize(col_left->size()); | 616 | 902 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 902 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 902 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 902 | col_right->get_element(0), vec_res); | 620 | | | 621 | 902 | block.replace_by_position(result, std::move(col_res)); | 622 | 902 | } else if (left_is_const && !right_is_const) { | 623 | 255 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 255 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 255 | vec_res.resize(col_right->size()); | 627 | 255 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 255 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 255 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 255 | col_right->get_data(), vec_res); | 631 | | | 632 | 255 | block.replace_by_position(result, std::move(col_res)); | 633 | 255 | } | 634 | 1.22k | return Status::OK(); | 635 | 1.22k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.96k | const ColumnPtr& col_right_ptr) const { | 592 | 1.96k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.96k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.96k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.96k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.96k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.96k | 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 | 1.85k | } else if (!left_is_const && right_is_const) { | 612 | 1.47k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.47k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.47k | vec_res.resize(col_left->size()); | 616 | 1.47k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.47k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.47k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.47k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.47k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.47k | } else if (left_is_const && !right_is_const) { | 623 | 377 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 377 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 377 | vec_res.resize(col_right->size()); | 627 | 377 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 377 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 377 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 377 | col_right->get_data(), vec_res); | 631 | | | 632 | 377 | block.replace_by_position(result, std::move(col_res)); | 633 | 377 | } | 634 | 1.96k | return Status::OK(); | 635 | 1.96k | } |
_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 | 68 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 68 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 68 | vec_res.resize(col_left->get_data().size()); | 605 | 68 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 68 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 68 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 68 | vec_res); | 609 | | | 610 | 68 | block.replace_by_position(result, std::move(col_res)); | 611 | 13.8k | } else if (!left_is_const && right_is_const) { | 612 | 10.1k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 10.1k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 10.1k | vec_res.resize(col_left->size()); | 616 | 10.1k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 10.1k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 10.1k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 10.1k | col_right->get_element(0), vec_res); | 620 | | | 621 | 10.1k | block.replace_by_position(result, std::move(col_res)); | 622 | 10.1k | } else if (left_is_const && !right_is_const) { | 623 | 3.70k | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 3.70k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 3.70k | vec_res.resize(col_right->size()); | 627 | 3.70k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 3.70k | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 3.70k | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 3.70k | col_right->get_data(), vec_res); | 631 | | | 632 | 3.70k | block.replace_by_position(result, std::move(col_res)); | 633 | 3.70k | } | 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.60k | const ColumnPtr& col_right_ptr) const { | 592 | 2.60k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.60k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.60k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.60k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.60k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.60k | if (!left_is_const && !right_is_const) { | 601 | 332 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 332 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 332 | vec_res.resize(col_left->get_data().size()); | 605 | 332 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 332 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 332 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 332 | vec_res); | 609 | | | 610 | 332 | block.replace_by_position(result, std::move(col_res)); | 611 | 2.27k | } else if (!left_is_const && right_is_const) { | 612 | 1.75k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.75k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.75k | vec_res.resize(col_left->size()); | 616 | 1.75k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.75k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.75k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.75k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.75k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.75k | } else if (left_is_const && !right_is_const) { | 623 | 515 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 515 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 515 | vec_res.resize(col_right->size()); | 627 | 515 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 515 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 515 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 515 | col_right->get_data(), vec_res); | 631 | | | 632 | 515 | block.replace_by_position(result, std::move(col_res)); | 633 | 515 | } | 634 | 2.60k | return Status::OK(); | 635 | 2.60k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 251 | const ColumnPtr& col_right_ptr) const { | 592 | 251 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 251 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 251 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 251 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 251 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 251 | 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 | 249 | } else if (!left_is_const && right_is_const) { | 612 | 201 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 201 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 201 | vec_res.resize(col_left->size()); | 616 | 201 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 201 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 201 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 201 | col_right->get_element(0), vec_res); | 620 | | | 621 | 201 | block.replace_by_position(result, std::move(col_res)); | 622 | 201 | } else if (left_is_const && !right_is_const) { | 623 | 48 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 48 | vec_res.resize(col_right->size()); | 627 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 48 | col_right->get_data(), vec_res); | 631 | | | 632 | 48 | block.replace_by_position(result, std::move(col_res)); | 633 | 48 | } | 634 | 251 | return Status::OK(); | 635 | 251 | } |
_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 | 421 | const ColumnPtr& col_right_ptr) const { | 592 | 421 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 421 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 421 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 421 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 421 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 421 | 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 | 401 | } else if (!left_is_const && right_is_const) { | 612 | 401 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 401 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 401 | vec_res.resize(col_left->size()); | 616 | 401 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 401 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 401 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 401 | col_right->get_element(0), vec_res); | 620 | | | 621 | 401 | block.replace_by_position(result, std::move(col_res)); | 622 | 401 | } 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 | 421 | return Status::OK(); | 635 | 421 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 600 | const ColumnPtr& col_right_ptr) const { | 592 | 600 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 600 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 600 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 600 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 600 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 600 | if (!left_is_const && !right_is_const) { | 601 | 31 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 31 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 31 | vec_res.resize(col_left->get_data().size()); | 605 | 31 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 31 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 31 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 31 | vec_res); | 609 | | | 610 | 31 | block.replace_by_position(result, std::move(col_res)); | 611 | 569 | } else if (!left_is_const && right_is_const) { | 612 | 569 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 569 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 569 | vec_res.resize(col_left->size()); | 616 | 569 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 569 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 569 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 569 | col_right->get_element(0), vec_res); | 620 | | | 621 | 569 | block.replace_by_position(result, std::move(col_res)); | 622 | 569 | } 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 | 600 | return Status::OK(); | 635 | 600 | } |
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 | 25 | const ColumnPtr& col_right_ptr) const { | 592 | 25 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 25 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 25 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 25 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 25 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 25 | 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 | 25 | } else if (!left_is_const && right_is_const) { | 612 | 25 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 25 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 25 | vec_res.resize(col_left->size()); | 616 | 25 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 25 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 25 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 25 | col_right->get_element(0), vec_res); | 620 | | | 621 | 25 | block.replace_by_position(result, std::move(col_res)); | 622 | 25 | } 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 | 25 | return Status::OK(); | 635 | 25 | } |
_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 | 124 | const ColumnPtr& col_right_ptr) const { | 592 | 124 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 124 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 124 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 124 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 124 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 124 | 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 | 118 | } else if (!left_is_const && right_is_const) { | 612 | 118 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 118 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 118 | vec_res.resize(col_left->size()); | 616 | 118 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 118 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 118 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 118 | col_right->get_element(0), vec_res); | 620 | | | 621 | 118 | block.replace_by_position(result, std::move(col_res)); | 622 | 118 | } 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 | 124 | return Status::OK(); | 635 | 124 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 408 | const ColumnPtr& col_right_ptr) const { | 592 | 408 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 408 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 408 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 408 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 408 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 409 | 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 | 49 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 49 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 49 | vec_res.resize(col_left->size()); | 616 | 49 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 49 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 49 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 49 | col_right->get_element(0), vec_res); | 620 | | | 621 | 49 | 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 | 408 | return Status::OK(); | 635 | 408 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE3EEENS_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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_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 | 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 | 70 | } else if (!left_is_const && right_is_const) { | 612 | 70 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 70 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 70 | vec_res.resize(col_left->size()); | 616 | 70 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 70 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 70 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 70 | col_right->get_element(0), vec_res); | 620 | | | 621 | 70 | block.replace_by_position(result, std::move(col_res)); | 622 | 70 | } 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 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 752 | const ColumnPtr& col_right_ptr) const { | 592 | 752 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 752 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 752 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 752 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 752 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 752 | 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 | 737 | } else if (!left_is_const && right_is_const) { | 612 | 737 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 737 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 737 | vec_res.resize(col_left->size()); | 616 | 737 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 737 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 737 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 737 | col_right->get_element(0), vec_res); | 620 | | | 621 | 737 | block.replace_by_position(result, std::move(col_res)); | 622 | 737 | } 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 | 752 | return Status::OK(); | 635 | 752 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 765 | const ColumnPtr& col_right_ptr) const { | 592 | 765 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 765 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 765 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 765 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 765 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 766 | if (!left_is_const && !right_is_const) { | 601 | 24 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 24 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 24 | vec_res.resize(col_left->get_data().size()); | 605 | 24 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 24 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 24 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 24 | vec_res); | 609 | | | 610 | 24 | block.replace_by_position(result, std::move(col_res)); | 611 | 742 | } else if (!left_is_const && right_is_const) { | 612 | 742 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 742 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 742 | vec_res.resize(col_left->size()); | 616 | 742 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 742 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 742 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 742 | col_right->get_element(0), vec_res); | 620 | | | 621 | 742 | 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 | 765 | return Status::OK(); | 635 | 765 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_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 | 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 | 12 | } else if (!left_is_const && right_is_const) { | 612 | 12 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 12 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 12 | vec_res.resize(col_left->size()); | 616 | 12 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 12 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 12 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 12 | col_right->get_element(0), vec_res); | 620 | | | 621 | 12 | block.replace_by_position(result, std::move(col_res)); | 622 | 12 | } 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_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 | 575 | const ColumnPtr& col_right_ptr) const { | 592 | 575 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 575 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 575 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 575 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 575 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 575 | 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 | 467 | } else if (!left_is_const && right_is_const) { | 612 | 467 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 467 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 467 | vec_res.resize(col_left->size()); | 616 | 467 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 467 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 467 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 467 | col_right->get_element(0), vec_res); | 620 | | | 621 | 467 | block.replace_by_position(result, std::move(col_res)); | 622 | 467 | } 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 | 575 | return Status::OK(); | 635 | 575 | } |
_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 | 143 | const ColumnPtr& col_right_ptr) const { | 592 | 143 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 143 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 143 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 143 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 143 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 143 | 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 | 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 | 143 | return Status::OK(); | 635 | 143 | } |
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 | 85 | const ColumnPtr& col_right_ptr) const { | 592 | 85 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 85 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 85 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 85 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 85 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 85 | if (!left_is_const && !right_is_const) { | 601 | 85 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 85 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 85 | vec_res.resize(col_left->get_data().size()); | 605 | 85 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 85 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 85 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 85 | vec_res); | 609 | | | 610 | 85 | block.replace_by_position(result, std::move(col_res)); | 611 | 85 | } 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 | 85 | return Status::OK(); | 635 | 85 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.03k | const ColumnPtr& col_right_ptr) const { | 592 | 2.03k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.03k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.03k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.03k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.03k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.03k | if (!left_is_const && !right_is_const) { | 601 | 1.68k | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 1.68k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 1.68k | vec_res.resize(col_left->get_data().size()); | 605 | 1.68k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 1.68k | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 1.68k | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 1.68k | vec_res); | 609 | | | 610 | 1.68k | block.replace_by_position(result, std::move(col_res)); | 611 | 1.68k | } else if (!left_is_const && right_is_const) { | 612 | 350 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 350 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 350 | vec_res.resize(col_left->size()); | 616 | 350 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 350 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 350 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 350 | col_right->get_element(0), vec_res); | 620 | | | 621 | 350 | block.replace_by_position(result, std::move(col_res)); | 622 | 350 | } 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.03k | return Status::OK(); | 635 | 2.03k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 296 | const ColumnPtr& col_right_ptr) const { | 592 | 296 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 296 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 296 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 296 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 296 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 296 | if (!left_is_const && !right_is_const) { | 601 | 237 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 237 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 237 | vec_res.resize(col_left->get_data().size()); | 605 | 237 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 237 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 237 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 237 | vec_res); | 609 | | | 610 | 237 | block.replace_by_position(result, std::move(col_res)); | 611 | 237 | } 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 | 59 | } 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 | 296 | return Status::OK(); | 635 | 296 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 161 | const ColumnPtr& col_right_ptr) const { | 592 | 161 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 161 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 161 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 161 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 161 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 161 | if (!left_is_const && !right_is_const) { | 601 | 115 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 115 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 115 | vec_res.resize(col_left->get_data().size()); | 605 | 115 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 115 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 115 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 115 | vec_res); | 609 | | | 610 | 115 | block.replace_by_position(result, std::move(col_res)); | 611 | 115 | } 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 | 161 | return Status::OK(); | 635 | 161 | } |
_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 | 1.71k | const ColumnPtr& col_right_ptr) const { | 592 | 1.71k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.71k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.71k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.71k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.71k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.71k | if (!left_is_const && !right_is_const) { | 601 | 224 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 224 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 224 | vec_res.resize(col_left->get_data().size()); | 605 | 224 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 224 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 224 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 224 | vec_res); | 609 | | | 610 | 224 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.49k | } else if (!left_is_const && right_is_const) { | 612 | 1.05k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.05k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.05k | vec_res.resize(col_left->size()); | 616 | 1.05k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.05k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.05k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.05k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.05k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.05k | } else if (left_is_const && !right_is_const) { | 623 | 441 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 441 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 441 | vec_res.resize(col_right->size()); | 627 | 441 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 441 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 441 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 441 | col_right->get_data(), vec_res); | 631 | | | 632 | 441 | block.replace_by_position(result, std::move(col_res)); | 633 | 441 | } | 634 | 1.71k | return Status::OK(); | 635 | 1.71k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 165 | const ColumnPtr& col_right_ptr) const { | 592 | 165 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 165 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 165 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 165 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 165 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 165 | if (!left_is_const && !right_is_const) { | 601 | 151 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 151 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 151 | vec_res.resize(col_left->get_data().size()); | 605 | 151 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 151 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 151 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 151 | vec_res); | 609 | | | 610 | 151 | block.replace_by_position(result, std::move(col_res)); | 611 | 151 | } 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 | 165 | return Status::OK(); | 635 | 165 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 2.62k | const ColumnPtr& col_right_ptr) const { | 592 | 2.62k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 2.62k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 2.62k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 2.62k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 2.62k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 2.62k | if (!left_is_const && !right_is_const) { | 601 | 914 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 914 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 914 | vec_res.resize(col_left->get_data().size()); | 605 | 914 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 914 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 914 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 914 | vec_res); | 609 | | | 610 | 914 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.70k | } else if (!left_is_const && right_is_const) { | 612 | 1.51k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.51k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.51k | vec_res.resize(col_left->size()); | 616 | 1.51k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.51k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.51k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.51k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.51k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.51k | } else if (left_is_const && !right_is_const) { | 623 | 193 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 193 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 193 | vec_res.resize(col_right->size()); | 627 | 193 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 193 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 193 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 193 | col_right->get_data(), vec_res); | 631 | | | 632 | 193 | block.replace_by_position(result, std::move(col_res)); | 633 | 193 | } | 634 | 2.62k | return Status::OK(); | 635 | 2.62k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 933 | const ColumnPtr& col_right_ptr) const { | 592 | 933 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 933 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 933 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 933 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 933 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 933 | if (!left_is_const && !right_is_const) { | 601 | 335 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 335 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 335 | vec_res.resize(col_left->get_data().size()); | 605 | 335 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 335 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 335 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 335 | vec_res); | 609 | | | 610 | 335 | block.replace_by_position(result, std::move(col_res)); | 611 | 598 | } else if (!left_is_const && right_is_const) { | 612 | 531 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 531 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 531 | vec_res.resize(col_left->size()); | 616 | 531 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 531 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 531 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 531 | col_right->get_element(0), vec_res); | 620 | | | 621 | 531 | block.replace_by_position(result, std::move(col_res)); | 622 | 531 | } 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 | 933 | return Status::OK(); | 635 | 933 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 289 | const ColumnPtr& col_right_ptr) const { | 592 | 289 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 289 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 289 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 289 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 289 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 289 | if (!left_is_const && !right_is_const) { | 601 | 132 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 132 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 132 | vec_res.resize(col_left->get_data().size()); | 605 | 132 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 132 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 132 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 132 | vec_res); | 609 | | | 610 | 132 | block.replace_by_position(result, std::move(col_res)); | 611 | 157 | } else if (!left_is_const && right_is_const) { | 612 | 61 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 61 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 61 | vec_res.resize(col_left->size()); | 616 | 61 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 61 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 61 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 61 | col_right->get_element(0), vec_res); | 620 | | | 621 | 61 | block.replace_by_position(result, std::move(col_res)); | 622 | 96 | } else if (left_is_const && !right_is_const) { | 623 | 96 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 96 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 96 | vec_res.resize(col_right->size()); | 627 | 96 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 96 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 96 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 96 | col_right->get_data(), vec_res); | 631 | | | 632 | 96 | block.replace_by_position(result, std::move(col_res)); | 633 | 96 | } | 634 | 289 | return Status::OK(); | 635 | 289 | } |
_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 | 128 | const ColumnPtr& col_right_ptr) const { | 592 | 128 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 128 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 128 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 128 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 128 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 128 | if (!left_is_const && !right_is_const) { | 601 | 128 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 128 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 128 | vec_res.resize(col_left->get_data().size()); | 605 | 128 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 128 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 128 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 128 | vec_res); | 609 | | | 610 | 128 | block.replace_by_position(result, std::move(col_res)); | 611 | 128 | } 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 | 128 | return Status::OK(); | 635 | 128 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE16execute_num_typeILNS_13PrimitiveTypeE9EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 1.18k | const ColumnPtr& col_right_ptr) const { | 592 | 1.18k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 1.18k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 1.18k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 1.18k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 1.18k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 1.18k | if (!left_is_const && !right_is_const) { | 601 | 141 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 141 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 141 | vec_res.resize(col_left->get_data().size()); | 605 | 141 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 141 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 141 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 141 | vec_res); | 609 | | | 610 | 141 | block.replace_by_position(result, std::move(col_res)); | 611 | 1.03k | } else if (!left_is_const && right_is_const) { | 612 | 1.03k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 1.03k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 1.03k | vec_res.resize(col_left->size()); | 616 | 1.03k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 1.03k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 1.03k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 1.03k | col_right->get_element(0), vec_res); | 620 | | | 621 | 1.03k | block.replace_by_position(result, std::move(col_res)); | 622 | 1.03k | } 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.18k | return Status::OK(); | 635 | 1.18k | } |
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 | 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 | 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 | 27 | } else if (!left_is_const && right_is_const) { | 612 | 27 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 27 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 27 | vec_res.resize(col_left->size()); | 616 | 27 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 27 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 27 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 27 | col_right->get_element(0), vec_res); | 620 | | | 621 | 27 | block.replace_by_position(result, std::move(col_res)); | 622 | 27 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE25EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 508 | const ColumnPtr& col_right_ptr) const { | 592 | 508 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 508 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 508 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 508 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 508 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 508 | if (!left_is_const && !right_is_const) { | 601 | 383 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 383 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 383 | vec_res.resize(col_left->get_data().size()); | 605 | 383 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 383 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 383 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 383 | vec_res); | 609 | | | 610 | 383 | block.replace_by_position(result, std::move(col_res)); | 611 | 383 | } else if (!left_is_const && right_is_const) { | 612 | 121 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 121 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 121 | vec_res.resize(col_left->size()); | 616 | 121 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 121 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 121 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 121 | col_right->get_element(0), vec_res); | 620 | | | 621 | 121 | block.replace_by_position(result, std::move(col_res)); | 622 | 121 | } 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 | 508 | return Status::OK(); | 635 | 508 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE26EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 60 | const ColumnPtr& col_right_ptr) const { | 592 | 60 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 60 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 60 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 60 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 60 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 60 | 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 | 60 | } else if (!left_is_const && right_is_const) { | 612 | 60 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 60 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 60 | vec_res.resize(col_left->size()); | 616 | 60 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 60 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 60 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 60 | col_right->get_element(0), vec_res); | 620 | | | 621 | 60 | block.replace_by_position(result, std::move(col_res)); | 622 | 60 | } 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 | 60 | return Status::OK(); | 635 | 60 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE43EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 67 | const ColumnPtr& col_right_ptr) const { | 592 | 67 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 67 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 67 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 67 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 67 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 67 | 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 | 41 | } 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 | 67 | return Status::OK(); | 635 | 67 | } |
_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 | 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 | 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 | 89 | } else if (!left_is_const && right_is_const) { | 612 | 89 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 89 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 89 | vec_res.resize(col_left->size()); | 616 | 89 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 89 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 89 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 89 | col_right->get_element(0), vec_res); | 620 | | | 621 | 89 | block.replace_by_position(result, std::move(col_res)); | 622 | 89 | } 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE4EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 97 | const ColumnPtr& col_right_ptr) const { | 592 | 97 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 97 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 97 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 97 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 97 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 97 | 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 | 97 | } else if (!left_is_const && right_is_const) { | 612 | 97 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 97 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 97 | vec_res.resize(col_left->size()); | 616 | 97 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 97 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 97 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 97 | col_right->get_element(0), vec_res); | 620 | | | 621 | 97 | block.replace_by_position(result, std::move(col_res)); | 622 | 97 | } 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 | 97 | return Status::OK(); | 635 | 97 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE5EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 6.92k | const ColumnPtr& col_right_ptr) const { | 592 | 6.92k | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 6.92k | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 6.92k | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 6.92k | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 6.92k | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 6.92k | 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 | 6.90k | } else if (!left_is_const && right_is_const) { | 612 | 6.32k | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 6.32k | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 6.32k | vec_res.resize(col_left->size()); | 616 | 6.32k | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 6.32k | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 6.32k | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 6.32k | col_right->get_element(0), vec_res); | 620 | | | 621 | 6.32k | block.replace_by_position(result, std::move(col_res)); | 622 | 6.32k | } else if (left_is_const && !right_is_const) { | 623 | 593 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 593 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 593 | vec_res.resize(col_right->size()); | 627 | 593 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 593 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 593 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 593 | col_right->get_data(), vec_res); | 631 | | | 632 | 593 | block.replace_by_position(result, std::move(col_res)); | 633 | 593 | } | 634 | 6.92k | return Status::OK(); | 635 | 6.92k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE6EEENS_6StatusERNS_5BlockEjRKNS_3COWINS_7IColumnEE13immutable_ptrISA_EESF_ Line | Count | Source | 591 | 654 | const ColumnPtr& col_right_ptr) const { | 592 | 654 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 654 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 654 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 654 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 654 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 654 | if (!left_is_const && !right_is_const) { | 601 | 37 | auto col_res = ColumnUInt8::create(); | 602 | | | 603 | 37 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 604 | 37 | vec_res.resize(col_left->get_data().size()); | 605 | 37 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 606 | 37 | typename PrimitiveTypeTraits<PT>::CppType, | 607 | 37 | Op<PT>>::vector_vector(col_left->get_data(), col_right->get_data(), | 608 | 37 | vec_res); | 609 | | | 610 | 37 | block.replace_by_position(result, std::move(col_res)); | 611 | 617 | } else if (!left_is_const && right_is_const) { | 612 | 569 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 569 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 569 | vec_res.resize(col_left->size()); | 616 | 569 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 569 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 569 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 569 | col_right->get_element(0), vec_res); | 620 | | | 621 | 569 | block.replace_by_position(result, std::move(col_res)); | 622 | 569 | } else if (left_is_const && !right_is_const) { | 623 | 48 | auto col_res = ColumnUInt8::create(); | 624 | | | 625 | 48 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 626 | 48 | vec_res.resize(col_right->size()); | 627 | 48 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 628 | 48 | typename PrimitiveTypeTraits<PT>::CppType, | 629 | 48 | Op<PT>>::constant_vector(col_left->get_element(0), | 630 | 48 | col_right->get_data(), vec_res); | 631 | | | 632 | 48 | block.replace_by_position(result, std::move(col_res)); | 633 | 48 | } | 634 | 654 | return Status::OK(); | 635 | 654 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE16execute_num_typeILNS_13PrimitiveTypeE7EEENS_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 | } |
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 | 111 | const ColumnPtr& col_right_ptr) const { | 592 | 111 | auto [col_left_untype, left_is_const] = unpack_if_const(col_left_ptr); | 593 | 111 | auto [col_right_untyped, right_is_const] = unpack_if_const(col_right_ptr); | 594 | | | 595 | 111 | const auto* col_left = assert_cast<const ColumnVector<PT>*>(col_left_untype.get()); | 596 | 111 | const auto* col_right = assert_cast<const ColumnVector<PT>*>(col_right_untyped.get()); | 597 | | | 598 | 111 | DCHECK(!(left_is_const && right_is_const)); | 599 | | | 600 | 111 | 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 | 91 | } else if (!left_is_const && right_is_const) { | 612 | 91 | auto col_res = ColumnUInt8::create(); | 613 | | | 614 | 91 | ColumnUInt8::Container& vec_res = col_res->get_data(); | 615 | 91 | vec_res.resize(col_left->size()); | 616 | 91 | NumComparisonImpl<typename PrimitiveTypeTraits<PT>::CppType, | 617 | 91 | typename PrimitiveTypeTraits<PT>::CppType, | 618 | 91 | Op<PT>>::vector_constant(col_left->get_data(), | 619 | 91 | col_right->get_element(0), vec_res); | 620 | | | 621 | 91 | block.replace_by_position(result, std::move(col_res)); | 622 | 91 | } 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 | 111 | return Status::OK(); | 635 | 111 | } |
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.54k | const ColumnWithTypeAndName& col_right) const { |
639 | 3.54k | auto call = [&](const auto& type) -> bool { |
640 | 3.54k | using DispatchType = std::decay_t<decltype(type)>; |
641 | 3.54k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( |
642 | 3.54k | block, result, col_left, col_right); |
643 | 3.54k | return true; |
644 | 3.54k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 137 | auto call = [&](const auto& type) -> bool { | 640 | 137 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 137 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 137 | block, result, col_left, col_right); | 643 | 137 | return true; | 644 | 137 | }; |
_ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 133 | auto call = [&](const auto& type) -> bool { | 640 | 133 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 133 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 133 | block, result, col_left, col_right); | 643 | 133 | return true; | 644 | 133 | }; |
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 | 945 | auto call = [&](const auto& type) -> bool { | 640 | 945 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 945 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 945 | block, result, col_left, col_right); | 643 | 945 | return true; | 644 | 945 | }; |
_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 | 70 | auto call = [&](const auto& type) -> bool { | 640 | 70 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 70 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 70 | block, result, col_left, col_right); | 643 | 70 | return true; | 644 | 70 | }; |
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 | 730 | auto call = [&](const auto& type) -> bool { | 640 | 730 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 730 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 730 | block, result, col_left, col_right); | 643 | 730 | return true; | 644 | 730 | }; |
_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 | 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_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 71 | auto call = [&](const auto& type) -> bool { | 640 | 71 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 71 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 71 | block, result, col_left, col_right); | 643 | 71 | return true; | 644 | 71 | }; |
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 | 100 | auto call = [&](const auto& type) -> bool { | 640 | 100 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 100 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 100 | block, result, col_left, col_right); | 643 | 100 | return true; | 644 | 100 | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 17 | auto call = [&](const auto& type) -> bool { | 640 | 17 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 17 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 17 | block, result, col_left, col_right); | 643 | 17 | return true; | 644 | 17 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE28EEEEEbSB_ Line | Count | Source | 639 | 173 | auto call = [&](const auto& type) -> bool { | 640 | 173 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 173 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 173 | block, result, col_left, col_right); | 643 | 173 | return true; | 644 | 173 | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 189 | auto call = [&](const auto& type) -> bool { | 640 | 189 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 189 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 189 | block, result, col_left, col_right); | 643 | 189 | return true; | 644 | 189 | }; |
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 | 645 | auto call = [&](const auto& type) -> bool { | 640 | 645 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 645 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 645 | block, result, col_left, col_right); | 643 | 645 | return true; | 644 | 645 | }; |
_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 | 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_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE29EEEEEbSB_ Line | Count | Source | 639 | 85 | auto call = [&](const auto& type) -> bool { | 640 | 85 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 85 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 85 | block, result, col_left, col_right); | 643 | 85 | return true; | 644 | 85 | }; |
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 | 82 | auto call = [&](const auto& type) -> bool { | 640 | 82 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 82 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 82 | block, result, col_left, col_right); | 643 | 82 | return true; | 644 | 82 | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ENKUlRKT_E_clINS_16DispatchDataTypeILNS_13PrimitiveTypeE35EEEEEbSB_ Line | Count | Source | 639 | 12 | auto call = [&](const auto& type) -> bool { | 640 | 12 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 12 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 12 | block, result, col_left, col_right); | 643 | 12 | return true; | 644 | 12 | }; |
|
645 | | |
646 | 3.54k | 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.54k | 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.54k | return Status::OK(); |
657 | 3.54k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.22k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.22k | auto call = [&](const auto& type) -> bool { | 640 | 1.22k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.22k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.22k | block, result, col_left, col_right); | 643 | 1.22k | return true; | 644 | 1.22k | }; | 645 | | | 646 | 1.22k | 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.22k | 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.22k | return Status::OK(); | 657 | 1.22k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 128 | const ColumnWithTypeAndName& col_right) const { | 639 | 128 | auto call = [&](const auto& type) -> bool { | 640 | 128 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 128 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 128 | block, result, col_left, col_right); | 643 | 128 | return true; | 644 | 128 | }; | 645 | | | 646 | 128 | 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 | 128 | 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 | 128 | return Status::OK(); | 657 | 128 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 807 | const ColumnWithTypeAndName& col_right) const { | 639 | 807 | auto call = [&](const auto& type) -> bool { | 640 | 807 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 807 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 807 | block, result, col_left, col_right); | 643 | 807 | return true; | 644 | 807 | }; | 645 | | | 646 | 807 | 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 | 807 | 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 | 807 | return Status::OK(); | 657 | 807 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 189 | const ColumnWithTypeAndName& col_right) const { | 639 | 189 | auto call = [&](const auto& type) -> bool { | 640 | 189 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 189 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 189 | block, result, col_left, col_right); | 643 | 189 | return true; | 644 | 189 | }; | 645 | | | 646 | 189 | 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 | 189 | 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 | 189 | return Status::OK(); | 657 | 189 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 1.00k | const ColumnWithTypeAndName& col_right) const { | 639 | 1.00k | auto call = [&](const auto& type) -> bool { | 640 | 1.00k | using DispatchType = std::decay_t<decltype(type)>; | 641 | 1.00k | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 1.00k | block, result, col_left, col_right); | 643 | 1.00k | return true; | 644 | 1.00k | }; | 645 | | | 646 | 1.00k | 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.00k | 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.00k | return Status::OK(); | 657 | 1.00k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE15execute_decimalERNS_5BlockEjRKNS_21ColumnWithTypeAndNameES8_ Line | Count | Source | 638 | 183 | const ColumnWithTypeAndName& col_right) const { | 639 | 183 | auto call = [&](const auto& type) -> bool { | 640 | 183 | using DispatchType = std::decay_t<decltype(type)>; | 641 | 183 | DecimalComparison<DispatchType::PType, DispatchType::PType, Op, false>( | 642 | 183 | block, result, col_left, col_right); | 643 | 183 | return true; | 644 | 183 | }; | 645 | | | 646 | 183 | 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 | 183 | 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 | 183 | return Status::OK(); | 657 | 183 | } |
|
658 | | |
659 | | Status execute_string(Block& block, uint32_t result, const IColumn* c0, |
660 | 23.2k | const IColumn* c1) const { |
661 | 23.2k | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); |
662 | 23.2k | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); |
663 | 23.2k | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); |
664 | 23.2k | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); |
665 | 23.2k | 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 | 23.2k | DCHECK(!(c0_const && c1_const)); |
670 | 23.2k | const ColumnString::Chars* c0_const_chars = nullptr; |
671 | 23.2k | const ColumnString::Chars* c1_const_chars = nullptr; |
672 | 23.2k | ColumnString::Offset c0_const_size = 0; |
673 | 23.2k | ColumnString::Offset c1_const_size = 0; |
674 | | |
675 | 23.2k | if (c0_const) { |
676 | 82 | const ColumnString* c0_const_string = |
677 | 82 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); |
678 | | |
679 | 82 | if (c0_const_string) { |
680 | 82 | c0_const_chars = &c0_const_string->get_chars(); |
681 | 82 | c0_const_size = c0_const_string->get_offsets()[0]; |
682 | 82 | } else { |
683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", |
684 | 0 | c0->get_name(), name); |
685 | 0 | } |
686 | 82 | } |
687 | | |
688 | 23.2k | if (c1_const) { |
689 | 22.2k | const ColumnString* c1_const_string = |
690 | 22.2k | check_and_get_column<ColumnString>(&c1_const->get_data_column()); |
691 | | |
692 | 22.2k | if (c1_const_string) { |
693 | 22.2k | c1_const_chars = &c1_const_string->get_chars(); |
694 | 22.2k | 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 | 22.2k | } |
700 | | |
701 | 23.2k | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; |
702 | | |
703 | 23.2k | auto c_res = ColumnUInt8::create(); |
704 | 23.2k | ColumnUInt8::Container& vec_res = c_res->get_data(); |
705 | 23.2k | vec_res.resize(c0->size()); |
706 | | |
707 | 23.2k | if (c0_string && c1_string) { |
708 | 914 | StringImpl::string_vector_string_vector( |
709 | 914 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), |
710 | 914 | c1_string->get_offsets(), vec_res); |
711 | 22.3k | } else if (c0_string && c1_const) { |
712 | 22.2k | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), |
713 | 22.2k | *c1_const_chars, c1_const_size, vec_res); |
714 | 22.2k | } else if (c0_const && c1_string) { |
715 | 82 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, |
716 | 82 | c1_string->get_chars(), c1_string->get_offsets(), |
717 | 82 | vec_res); |
718 | 18.4E | } else { |
719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", |
720 | 18.4E | c0->get_name(), c1->get_name(), name); |
721 | 18.4E | } |
722 | 23.2k | block.replace_by_position(result, std::move(c_res)); |
723 | 23.2k | return Status::OK(); |
724 | 23.2k | } _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 | 16 | const ColumnString* c0_const_string = | 677 | 16 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 16 | if (c0_const_string) { | 680 | 16 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 16 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 16 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 16 | } | 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 | 481 | StringImpl::string_vector_string_vector( | 709 | 481 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 481 | 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 | 16 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 16 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 16 | vec_res); | 718 | 18.4E | } else { | 719 | 18.4E | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 18.4E | c0->get_name(), c1->get_name(), name); | 721 | 18.4E | } | 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 | 138 | const IColumn* c1) const { | 661 | 138 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 138 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 138 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 138 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 138 | 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 | 138 | DCHECK(!(c0_const && c1_const)); | 670 | 138 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 138 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 138 | ColumnString::Offset c0_const_size = 0; | 673 | 138 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 138 | 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 | 138 | if (c1_const) { | 689 | 123 | const ColumnString* c1_const_string = | 690 | 123 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 123 | if (c1_const_string) { | 693 | 123 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 123 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 123 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 123 | } | 700 | | | 701 | 138 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 138 | auto c_res = ColumnUInt8::create(); | 704 | 138 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 138 | vec_res.resize(c0->size()); | 706 | | | 707 | 138 | if (c0_string && c1_string) { | 708 | 15 | StringImpl::string_vector_string_vector( | 709 | 15 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 15 | c1_string->get_offsets(), vec_res); | 711 | 123 | } else if (c0_string && c1_const) { | 712 | 123 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 123 | *c1_const_chars, c1_const_size, vec_res); | 714 | 123 | } 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 | 138 | block.replace_by_position(result, std::move(c_res)); | 723 | 138 | return Status::OK(); | 724 | 138 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 219 | const IColumn* c1) const { | 661 | 219 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 219 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 219 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 219 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 219 | 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 | 219 | DCHECK(!(c0_const && c1_const)); | 670 | 219 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 219 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 219 | ColumnString::Offset c0_const_size = 0; | 673 | 219 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 219 | 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 | 219 | if (c1_const) { | 689 | 217 | const ColumnString* c1_const_string = | 690 | 217 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 217 | if (c1_const_string) { | 693 | 217 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 217 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 217 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 217 | } | 700 | | | 701 | 219 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 219 | auto c_res = ColumnUInt8::create(); | 704 | 219 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 219 | vec_res.resize(c0->size()); | 706 | | | 707 | 219 | 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 | 217 | } else if (c0_string && c1_const) { | 712 | 217 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 217 | *c1_const_chars, c1_const_size, vec_res); | 714 | 217 | } 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 | 219 | block.replace_by_position(result, std::move(c_res)); | 723 | 219 | return Status::OK(); | 724 | 219 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 277 | const IColumn* c1) const { | 661 | 277 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 277 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 277 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 277 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 277 | 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 | 277 | DCHECK(!(c0_const && c1_const)); | 670 | 277 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 277 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 277 | ColumnString::Offset c0_const_size = 0; | 673 | 277 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 277 | if (c0_const) { | 676 | 60 | const ColumnString* c0_const_string = | 677 | 60 | check_and_get_column<ColumnString>(&c0_const->get_data_column()); | 678 | | | 679 | 60 | if (c0_const_string) { | 680 | 60 | c0_const_chars = &c0_const_string->get_chars(); | 681 | 60 | c0_const_size = c0_const_string->get_offsets()[0]; | 682 | 60 | } else { | 683 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 684 | 0 | c0->get_name(), name); | 685 | 0 | } | 686 | 60 | } | 687 | | | 688 | 277 | if (c1_const) { | 689 | 186 | const ColumnString* c1_const_string = | 690 | 186 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 186 | if (c1_const_string) { | 693 | 186 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 186 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 186 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 186 | } | 700 | | | 701 | 277 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 277 | auto c_res = ColumnUInt8::create(); | 704 | 277 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 277 | vec_res.resize(c0->size()); | 706 | | | 707 | 277 | 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 | 246 | } else if (c0_string && c1_const) { | 712 | 186 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 186 | *c1_const_chars, c1_const_size, vec_res); | 714 | 186 | } else if (c0_const && c1_string) { | 715 | 60 | StringImpl::constant_string_vector(*c0_const_chars, c0_const_size, | 716 | 60 | c1_string->get_chars(), c1_string->get_offsets(), | 717 | 60 | vec_res); | 718 | 60 | } else { | 719 | 0 | return Status::NotSupported("Illegal columns {}, {} of argument of function {}", | 720 | 0 | c0->get_name(), c1->get_name(), name); | 721 | 0 | } | 722 | 277 | block.replace_by_position(result, std::move(c_res)); | 723 | 277 | return Status::OK(); | 724 | 277 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 512 | const IColumn* c1) const { | 661 | 512 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 512 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 512 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 512 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 512 | 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 | 512 | DCHECK(!(c0_const && c1_const)); | 670 | 512 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 512 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 512 | ColumnString::Offset c0_const_size = 0; | 673 | 512 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 512 | 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 | 512 | if (c1_const) { | 689 | 121 | const ColumnString* c1_const_string = | 690 | 121 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 121 | if (c1_const_string) { | 693 | 121 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 121 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 121 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 121 | } | 700 | | | 701 | 512 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 512 | auto c_res = ColumnUInt8::create(); | 704 | 512 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 512 | vec_res.resize(c0->size()); | 706 | | | 707 | 512 | if (c0_string && c1_string) { | 708 | 385 | StringImpl::string_vector_string_vector( | 709 | 385 | c0_string->get_chars(), c0_string->get_offsets(), c1_string->get_chars(), | 710 | 385 | c1_string->get_offsets(), vec_res); | 711 | 385 | } else if (c0_string && c1_const) { | 712 | 121 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 121 | *c1_const_chars, c1_const_size, vec_res); | 714 | 121 | } 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 | 512 | block.replace_by_position(result, std::move(c_res)); | 723 | 512 | return Status::OK(); | 724 | 512 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE14execute_stringERNS_5BlockEjPKNS_7IColumnES8_ Line | Count | Source | 660 | 222 | const IColumn* c1) const { | 661 | 222 | const ColumnString* c0_string = check_and_get_column<ColumnString>(c0); | 662 | 222 | const ColumnString* c1_string = check_and_get_column<ColumnString>(c1); | 663 | 222 | const ColumnConst* c0_const = check_and_get_column_const_string_or_fixedstring(c0); | 664 | 222 | const ColumnConst* c1_const = check_and_get_column_const_string_or_fixedstring(c1); | 665 | 222 | 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 | 222 | DCHECK(!(c0_const && c1_const)); | 670 | 222 | const ColumnString::Chars* c0_const_chars = nullptr; | 671 | 222 | const ColumnString::Chars* c1_const_chars = nullptr; | 672 | 222 | ColumnString::Offset c0_const_size = 0; | 673 | 222 | ColumnString::Offset c1_const_size = 0; | 674 | | | 675 | 222 | 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 | 222 | if (c1_const) { | 689 | 222 | const ColumnString* c1_const_string = | 690 | 222 | check_and_get_column<ColumnString>(&c1_const->get_data_column()); | 691 | | | 692 | 222 | if (c1_const_string) { | 693 | 222 | c1_const_chars = &c1_const_string->get_chars(); | 694 | 222 | c1_const_size = c1_const_string->get_offsets()[0]; | 695 | 222 | } else { | 696 | 0 | return Status::NotSupported("Illegal columns {}, of argument of function {}", | 697 | 0 | c1->get_name(), name); | 698 | 0 | } | 699 | 222 | } | 700 | | | 701 | 222 | using StringImpl = StringComparisonImpl<Op<TYPE_INT>>; | 702 | | | 703 | 222 | auto c_res = ColumnUInt8::create(); | 704 | 222 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 705 | 222 | vec_res.resize(c0->size()); | 706 | | | 707 | 222 | 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 | 222 | } else if (c0_string && c1_const) { | 712 | 222 | StringImpl::string_vector_constant(c0_string->get_chars(), c0_string->get_offsets(), | 713 | 222 | *c1_const_chars, c1_const_size, vec_res); | 714 | 222 | } 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 | 222 | block.replace_by_position(result, std::move(c_res)); | 723 | 222 | return Status::OK(); | 724 | 222 | } |
|
725 | | |
726 | | void execute_generic_identical_types(Block& block, uint32_t result, const IColumn* c0, |
727 | 174 | const IColumn* c1) const { |
728 | 174 | bool c0_const = is_column_const(*c0); |
729 | 174 | bool c1_const = is_column_const(*c1); |
730 | | |
731 | 174 | DCHECK(!(c0_const && c1_const)); |
732 | | |
733 | 174 | auto c_res = ColumnUInt8::create(); |
734 | 174 | ColumnUInt8::Container& vec_res = c_res->get_data(); |
735 | 174 | vec_res.resize(c0->size()); |
736 | | |
737 | 174 | if (c0_const) { |
738 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); |
739 | 173 | } else if (c1_const) { |
740 | 149 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); |
741 | 149 | } else { |
742 | 24 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); |
743 | 24 | } |
744 | | |
745 | 174 | block.replace_by_position(result, std::move(c_res)); |
746 | 174 | } _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 | 38 | const IColumn* c1) const { | 728 | 38 | bool c0_const = is_column_const(*c0); | 729 | 38 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 38 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 38 | auto c_res = ColumnUInt8::create(); | 734 | 38 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 38 | vec_res.resize(c0->size()); | 736 | | | 737 | 38 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 38 | } else if (c1_const) { | 740 | 37 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 37 | } else { | 742 | 1 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 1 | } | 744 | | | 745 | 38 | block.replace_by_position(result, std::move(c_res)); | 746 | 38 | } |
_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 | 70 | const IColumn* c1) const { | 728 | 70 | bool c0_const = is_column_const(*c0); | 729 | 70 | bool c1_const = is_column_const(*c1); | 730 | | | 731 | 70 | DCHECK(!(c0_const && c1_const)); | 732 | | | 733 | 70 | auto c_res = ColumnUInt8::create(); | 734 | 70 | ColumnUInt8::Container& vec_res = c_res->get_data(); | 735 | 70 | vec_res.resize(c0->size()); | 736 | | | 737 | 70 | if (c0_const) { | 738 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::constant_vector(*c0, *c1, vec_res); | 739 | 70 | } else if (c1_const) { | 740 | 70 | GenericComparisonImpl<Op<TYPE_INT>>::vector_constant(*c0, *c1, vec_res); | 741 | 70 | } else { | 742 | 0 | GenericComparisonImpl<Op<TYPE_INT>>::vector_vector(*c0, *c1, vec_res); | 743 | 0 | } | 744 | | | 745 | 70 | block.replace_by_position(result, std::move(c_res)); | 746 | 70 | } |
|
747 | | |
748 | | Status execute_generic(Block& block, uint32_t result, const ColumnWithTypeAndName& c0, |
749 | 174 | const ColumnWithTypeAndName& c1) const { |
750 | 174 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); |
751 | 174 | return Status::OK(); |
752 | 174 | } _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 | 38 | const ColumnWithTypeAndName& c1) const { | 750 | 38 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 38 | return Status::OK(); | 752 | 38 | } |
_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 | 70 | const ColumnWithTypeAndName& c1) const { | 750 | 70 | execute_generic_identical_types(block, result, c0.column.get(), c1.column.get()); | 751 | 70 | return Status::OK(); | 752 | 70 | } |
|
753 | | |
754 | | public: |
755 | 259 | String get_name() const override { return name; }_ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE8get_nameB5cxx11Ev Line | Count | Source | 755 | 81 | 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 | 72 | 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 | 271k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 1.27k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23get_number_of_argumentsEv Line | Count | Source | 757 | 7.24k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 9.41k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23get_number_of_argumentsEv Line | Count | Source | 757 | 4.07k | size_t get_number_of_arguments() const override { return 2; } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23get_number_of_argumentsEv Line | Count | Source | 757 | 10.8k | size_t get_number_of_arguments() const override { return 2; } |
|
758 | | |
759 | | ZoneMapFilterResult evaluate_zonemap_filter(const ZoneMapEvalContext& ctx, |
760 | 4.06k | const VExprSPtrs& arguments) const override { |
761 | 4.06k | auto op = comparison_zonemap_detail::op_from_name(name); |
762 | 4.06k | DORIS_CHECK(op.has_value()); |
763 | 4.06k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); |
764 | 4.06k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 2.10k | const VExprSPtrs& arguments) const override { | 761 | 2.10k | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 2.10k | DORIS_CHECK(op.has_value()); | 763 | 2.10k | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 2.10k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 224 | const VExprSPtrs& arguments) const override { | 761 | 224 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 224 | DORIS_CHECK(op.has_value()); | 763 | 224 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 224 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 397 | const VExprSPtrs& arguments) const override { | 761 | 397 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 397 | DORIS_CHECK(op.has_value()); | 763 | 397 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 397 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 436 | const VExprSPtrs& arguments) const override { | 761 | 436 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 436 | DORIS_CHECK(op.has_value()); | 763 | 436 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 436 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 624 | const VExprSPtrs& arguments) const override { | 761 | 624 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 624 | DORIS_CHECK(op.has_value()); | 763 | 624 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 624 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_zonemap_filterERKNS_18ZoneMapEvalContextERKSt6vectorISt10shared_ptrINS_5VExprEESaISA_EE Line | Count | Source | 760 | 282 | const VExprSPtrs& arguments) const override { | 761 | 282 | auto op = comparison_zonemap_detail::op_from_name(name); | 762 | 282 | DORIS_CHECK(op.has_value()); | 763 | 282 | return comparison_zonemap_detail::evaluate(ctx, arguments, *op); | 764 | 282 | } |
|
765 | | |
766 | 32.8k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { |
767 | 32.8k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { |
768 | 0 | return false; |
769 | 0 | } |
770 | 32.8k | return comparison_zonemap_detail::can_evaluate(arguments) || |
771 | 32.8k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); |
772 | 32.8k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 15.7k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 15.7k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 15.7k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 15.7k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 15.7k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.45k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.45k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.45k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.45k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.45k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 5.89k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 5.89k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 5.89k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 5.89k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 5.89k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.13k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.13k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.13k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.13k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.13k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 4.02k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 4.02k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 4.02k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 4.02k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 4.02k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE27can_evaluate_zonemap_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 766 | 1.60k | bool can_evaluate_zonemap_filter(const VExprSPtrs& arguments) const override { | 767 | 1.60k | if (!comparison_zonemap_detail::op_from_name(name).has_value()) { | 768 | 0 | return false; | 769 | 0 | } | 770 | 1.60k | return comparison_zonemap_detail::can_evaluate(arguments) || | 771 | 1.60k | comparison_zonemap_detail::can_evaluate_slot_slot(arguments); | 772 | 1.60k | } |
|
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 | 838 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { |
782 | 838 | auto op = comparison_zonemap_detail::op_from_name(name); |
783 | 838 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); |
784 | 838 | } _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 | 3 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 3 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 3 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 3 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 100 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 100 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 100 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 100 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE30can_evaluate_dictionary_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 781 | 223 | bool can_evaluate_dictionary_filter(const VExprSPtrs& arguments) const override { | 782 | 223 | auto op = comparison_zonemap_detail::op_from_name(name); | 783 | 223 | return op.has_value() && comparison_zonemap_detail::can_evaluate(arguments); | 784 | 223 | } |
_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 | 342 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { |
794 | 342 | auto op = comparison_zonemap_detail::op_from_name(name); |
795 | 342 | return op == comparison_zonemap_detail::Op::EQ && |
796 | 342 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); |
797 | 342 | } _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 | 1 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 1 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 1 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 1 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 1 | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 30 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 30 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 30 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 30 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 30 | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE25can_evaluate_bloom_filterERKSt6vectorISt10shared_ptrINS_5VExprEESaIS7_EE Line | Count | Source | 793 | 76 | bool can_evaluate_bloom_filter(const VExprSPtrs& arguments) const override { | 794 | 76 | auto op = comparison_zonemap_detail::op_from_name(name); | 795 | 76 | return op == comparison_zonemap_detail::Op::EQ && | 796 | 76 | expr_zonemap::can_evaluate_bloom_filter_equality(arguments); | 797 | 76 | } |
_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 | 271k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 271k | return std::make_shared<DataTypeUInt8>(); | 802 | 271k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 1.27k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 1.27k | return std::make_shared<DataTypeUInt8>(); | 802 | 1.27k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 7.24k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 7.24k | return std::make_shared<DataTypeUInt8>(); | 802 | 7.24k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 9.42k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 9.42k | return std::make_shared<DataTypeUInt8>(); | 802 | 9.42k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 4.06k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 4.06k | return std::make_shared<DataTypeUInt8>(); | 802 | 4.06k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE20get_return_type_implERKSt6vectorISt10shared_ptrIKNS_9IDataTypeEESaIS8_EE Line | Count | Source | 800 | 10.8k | DataTypePtr get_return_type_impl(const DataTypes& arguments) const override { | 801 | 10.8k | return std::make_shared<DataTypeUInt8>(); | 802 | 10.8k | } |
|
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 | 698 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; |
825 | 698 | } else if (name_view == NameLess::name) { |
826 | 71 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; |
827 | 233 | } else if (name_view == NameLessOrEquals::name) { |
828 | 81 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; |
829 | 152 | } else if (name_view == NameGreater::name) { |
830 | 67 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; |
831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { |
832 | 93 | 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.01k | if (segment_v2::is_range_query(query_type) && |
838 | 1.01k | 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 | 877 | Field param_value; |
843 | 877 | arguments[0].column->get(0, param_value); |
844 | 877 | if (param_value.is_null()) { |
845 | 2 | return Status::OK(); |
846 | 2 | } |
847 | 875 | segment_v2::InvertedIndexParam param; |
848 | 875 | param.column_name = data_type_with_name.first; |
849 | 875 | param.column_type = data_type_with_name.second; |
850 | 875 | param.query_value = param_value; |
851 | 875 | param.query_type = query_type; |
852 | 875 | param.num_rows = num_rows; |
853 | 875 | param.roaring = std::make_shared<roaring::Roaring>(); |
854 | 875 | param.analyzer_ctx = analyzer_ctx; |
855 | 875 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); |
856 | 730 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); |
857 | 730 | if (iter->has_null()) { |
858 | 727 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; |
859 | 727 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); |
860 | 727 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); |
861 | 727 | } |
862 | 730 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); |
863 | 730 | bitmap_result = result; |
864 | 730 | bitmap_result.mask_out_null(); |
865 | | |
866 | 730 | if (name_view == NameNotEquals::name) { |
867 | 57 | roaring::Roaring full_result; |
868 | 57 | full_result.addRange(0, num_rows); |
869 | 57 | bitmap_result.op_not(&full_result); |
870 | 57 | } |
871 | | |
872 | 730 | return Status::OK(); |
873 | 730 | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 666 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 666 | DCHECK(arguments.size() == 1); | 811 | 666 | DCHECK(data_type_with_names.size() == 1); | 812 | 666 | DCHECK(iterators.size() == 1); | 813 | 666 | auto* iter = iterators[0]; | 814 | 666 | auto data_type_with_name = data_type_with_names[0]; | 815 | 666 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 666 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 33 | return Status::OK(); | 820 | 33 | } | 821 | 633 | segment_v2::InvertedIndexQueryType query_type; | 822 | 633 | std::string_view name_view(name); | 823 | 633 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 633 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 633 | } 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 | 633 | if (segment_v2::is_range_query(query_type) && | 838 | 633 | 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 | 633 | Field param_value; | 843 | 633 | arguments[0].column->get(0, param_value); | 844 | 633 | if (param_value.is_null()) { | 845 | 2 | return Status::OK(); | 846 | 2 | } | 847 | 631 | segment_v2::InvertedIndexParam param; | 848 | 631 | param.column_name = data_type_with_name.first; | 849 | 631 | param.column_type = data_type_with_name.second; | 850 | 631 | param.query_value = param_value; | 851 | 631 | param.query_type = query_type; | 852 | 631 | param.num_rows = num_rows; | 853 | 631 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 631 | param.analyzer_ctx = analyzer_ctx; | 855 | 631 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 592 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 592 | 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 | 592 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 592 | bitmap_result = result; | 864 | 592 | bitmap_result.mask_out_null(); | 865 | | | 866 | 592 | 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 | 592 | return Status::OK(); | 873 | 592 | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 73 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 73 | DCHECK(arguments.size() == 1); | 811 | 73 | DCHECK(data_type_with_names.size() == 1); | 812 | 73 | DCHECK(iterators.size() == 1); | 813 | 73 | auto* iter = iterators[0]; | 814 | 73 | auto data_type_with_name = data_type_with_names[0]; | 815 | 73 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 73 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 10 | return Status::OK(); | 820 | 10 | } | 821 | 63 | segment_v2::InvertedIndexQueryType query_type; | 822 | 63 | 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 | 58 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 58 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 58 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 58 | } | 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 | 57 | roaring::Roaring full_result; | 868 | 57 | full_result.addRange(0, num_rows); | 869 | 57 | bitmap_result.op_not(&full_result); | 870 | 57 | } | 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 | 104 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 104 | DCHECK(arguments.size() == 1); | 811 | 104 | DCHECK(data_type_with_names.size() == 1); | 812 | 104 | DCHECK(iterators.size() == 1); | 813 | 104 | auto* iter = iterators[0]; | 814 | 104 | auto data_type_with_name = data_type_with_names[0]; | 815 | 104 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 104 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 39 | return Status::OK(); | 820 | 39 | } | 821 | 65 | segment_v2::InvertedIndexQueryType query_type; | 822 | 65 | 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 | 65 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 65 | } 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 | 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 | 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 | 179 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 179 | DCHECK(arguments.size() == 1); | 811 | 179 | DCHECK(data_type_with_names.size() == 1); | 812 | 179 | DCHECK(iterators.size() == 1); | 813 | 179 | auto* iter = iterators[0]; | 814 | 179 | auto data_type_with_name = data_type_with_names[0]; | 815 | 179 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 179 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 86 | return Status::OK(); | 820 | 86 | } | 821 | 93 | segment_v2::InvertedIndexQueryType query_type; | 822 | 93 | std::string_view name_view(name); | 823 | 93 | if (name_view == NameEquals::name || name_view == NameNotEquals::name) { | 824 | 0 | query_type = segment_v2::InvertedIndexQueryType::EQUAL_QUERY; | 825 | 93 | } else if (name_view == NameLess::name) { | 826 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_THAN_QUERY; | 827 | 93 | } else if (name_view == NameLessOrEquals::name) { | 828 | 0 | query_type = segment_v2::InvertedIndexQueryType::LESS_EQUAL_QUERY; | 829 | 93 | } else if (name_view == NameGreater::name) { | 830 | 0 | query_type = segment_v2::InvertedIndexQueryType::GREATER_THAN_QUERY; | 831 | 93 | } else if (name_view == NameGreaterOrEquals::name) { | 832 | 93 | query_type = segment_v2::InvertedIndexQueryType::GREATER_EQUAL_QUERY; | 833 | 93 | } else { | 834 | 0 | return Status::InvalidArgument("invalid comparison op type {}", Name::name); | 835 | 0 | } | 836 | | | 837 | 93 | if (segment_v2::is_range_query(query_type) && | 838 | 93 | 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 | 46 | Field param_value; | 843 | 46 | arguments[0].column->get(0, param_value); | 844 | 46 | if (param_value.is_null()) { | 845 | 0 | return Status::OK(); | 846 | 0 | } | 847 | 46 | segment_v2::InvertedIndexParam param; | 848 | 46 | param.column_name = data_type_with_name.first; | 849 | 46 | param.column_type = data_type_with_name.second; | 850 | 46 | param.query_value = param_value; | 851 | 46 | param.query_type = query_type; | 852 | 46 | param.num_rows = num_rows; | 853 | 46 | param.roaring = std::make_shared<roaring::Roaring>(); | 854 | 46 | param.analyzer_ctx = analyzer_ctx; | 855 | 46 | RETURN_IF_ERROR(iter->read_from_index(segment_v2::IndexParam {¶m})); | 856 | 5 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 5 | if (iter->has_null()) { | 858 | 5 | segment_v2::InvertedIndexQueryCacheHandle null_bitmap_cache_handle; | 859 | 5 | RETURN_IF_ERROR(iter->read_null_bitmap(&null_bitmap_cache_handle)); | 860 | 5 | null_bitmap = null_bitmap_cache_handle.get_bitmap(); | 861 | 5 | } | 862 | 5 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 5 | bitmap_result = result; | 864 | 5 | bitmap_result.mask_out_null(); | 865 | | | 866 | 5 | 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 | 5 | return Status::OK(); | 873 | 5 | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 111 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 111 | DCHECK(arguments.size() == 1); | 811 | 111 | DCHECK(data_type_with_names.size() == 1); | 812 | 111 | DCHECK(iterators.size() == 1); | 813 | 111 | auto* iter = iterators[0]; | 814 | 111 | auto data_type_with_name = data_type_with_names[0]; | 815 | 111 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 111 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 43 | return Status::OK(); | 820 | 43 | } | 821 | 68 | segment_v2::InvertedIndexQueryType query_type; | 822 | 68 | 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 | 35 | std::shared_ptr<roaring::Roaring> null_bitmap = std::make_shared<roaring::Roaring>(); | 857 | 35 | 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 | 35 | segment_v2::InvertedIndexResultBitmap result(param.roaring, null_bitmap); | 863 | 35 | bitmap_result = result; | 864 | 35 | bitmap_result.mask_out_null(); | 865 | | | 866 | 35 | 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 | 35 | return Status::OK(); | 873 | 35 | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE23evaluate_inverted_indexERKSt6vectorINS_21ColumnWithTypeAndNameESaIS5_EERKS4_ISt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt10shared_ptrIKNS_9IDataTypeEEESaISL_EES4_IPNS_10segment_v213IndexIteratorESaISS_EEjPKNS_24InvertedIndexAnalyzerCtxERNSQ_25InvertedIndexResultBitmapE Line | Count | Source | 809 | 173 | segment_v2::InvertedIndexResultBitmap& bitmap_result) const override { | 810 | 173 | DCHECK(arguments.size() == 1); | 811 | 173 | DCHECK(data_type_with_names.size() == 1); | 812 | 173 | DCHECK(iterators.size() == 1); | 813 | 173 | auto* iter = iterators[0]; | 814 | 173 | auto data_type_with_name = data_type_with_names[0]; | 815 | 173 | if (iter == nullptr) { | 816 | 0 | return Status::OK(); | 817 | 0 | } | 818 | 173 | if (!segment_v2::IndexReaderHelper::has_string_or_bkd_index(iter)) { | 819 | 93 | return Status::OK(); | 820 | 93 | } | 821 | 80 | segment_v2::InvertedIndexQueryType query_type; | 822 | 80 | 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 | 80 | } 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 | 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 | 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 | 95.5k | uint32_t result, size_t input_rows_count) const override { |
878 | 95.5k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); |
879 | 95.5k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); |
880 | | |
881 | 95.5k | const auto& col_left_ptr = col_with_type_and_name_left.column; |
882 | 95.5k | const auto& col_right_ptr = col_with_type_and_name_right.column; |
883 | 95.5k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); |
884 | 95.5k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); |
885 | | |
886 | 95.5k | const DataTypePtr& left_type = col_with_type_and_name_left.type; |
887 | 95.5k | 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 | 95.5k | if (left_type->equals(*right_type) && !left_type->is_nullable() && |
893 | 95.5k | 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 | 159k | auto can_compare = [](PrimitiveType t) -> bool { |
916 | 159k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || |
917 | 159k | is_timestamp_ns_type(t) || is_timestamptz_type(t); |
918 | 159k | }; _ZZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 62.5k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 62.5k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 62.5k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 62.5k | }; |
_ZZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 4.44k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 4.44k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 4.44k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 4.44k | }; |
_ZZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 45.9k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 45.9k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 45.9k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 45.9k | }; |
_ZZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 6.85k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 6.85k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 6.85k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 6.85k | }; |
_ZZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 21.2k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 21.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 21.2k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 21.2k | }; |
_ZZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjmENKUlNS_13PrimitiveTypeEE_clESD_ Line | Count | Source | 915 | 18.2k | auto can_compare = [](PrimitiveType t) -> bool { | 916 | 18.2k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 18.2k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 18.2k | }; |
|
919 | | |
920 | 95.5k | if (can_compare(left_type->get_primitive_type()) && |
921 | 95.5k | 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 | 63.7k | 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 | 63.7k | } |
929 | | |
930 | 95.5k | auto compare_type = left_type->get_primitive_type(); |
931 | 95.5k | switch (compare_type) { |
932 | 233 | case TYPE_BOOLEAN: |
933 | 233 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); |
934 | 4.82k | case TYPE_DATEV2: |
935 | 4.82k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); |
936 | 923 | case TYPE_DATETIMEV2: |
937 | 923 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); |
938 | 952 | case TYPE_TIMESTAMP_NS: |
939 | 952 | return execute_num_type<TYPE_TIMESTAMP_NS>(block, result, col_left_ptr, col_right_ptr); |
940 | 17 | case TYPE_TIMESTAMPTZ: |
941 | 17 | return execute_num_type<TYPE_TIMESTAMPTZ>(block, result, col_left_ptr, col_right_ptr); |
942 | 8.67k | case TYPE_TINYINT: |
943 | 8.67k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); |
944 | 2.68k | case TYPE_SMALLINT: |
945 | 2.68k | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); |
946 | 28.8k | case TYPE_INT: |
947 | 28.8k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); |
948 | 11.8k | case TYPE_BIGINT: |
949 | 11.8k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); |
950 | 705 | case TYPE_LARGEINT: |
951 | 705 | 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 | 740 | case TYPE_FLOAT: |
959 | 740 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); |
960 | 2.99k | case TYPE_DOUBLE: |
961 | 2.99k | 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 | 323 | case TYPE_DECIMAL32: |
966 | 938 | case TYPE_DECIMAL64: |
967 | 3.46k | case TYPE_DECIMAL128I: |
968 | 3.54k | case TYPE_DECIMAL256: |
969 | 3.54k | return execute_decimal(block, result, col_with_type_and_name_left, |
970 | 3.54k | col_with_type_and_name_right); |
971 | 1.17k | case TYPE_CHAR: |
972 | 8.62k | case TYPE_VARCHAR: |
973 | 23.2k | case TYPE_STRING: |
974 | 23.2k | return execute_string(block, result, col_left_untyped, col_right_untyped); |
975 | 174 | default: |
976 | 174 | return execute_generic(block, result, col_with_type_and_name_left, |
977 | 174 | col_with_type_and_name_right); |
978 | 95.5k | } |
979 | 0 | return Status::OK(); |
980 | 95.5k | } _ZNK5doris18FunctionComparisonINS_8EqualsOpENS_10NameEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 44.3k | uint32_t result, size_t input_rows_count) const override { | 878 | 44.3k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 44.3k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 44.3k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 44.3k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 44.3k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 44.3k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 44.3k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 44.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 | 44.3k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 44.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 | 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 | 44.3k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 44.3k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 44.3k | }; | 919 | | | 920 | 44.3k | if (can_compare(left_type->get_primitive_type()) && | 921 | 44.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 | 18.2k | 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 | 18.2k | } | 929 | | | 930 | 44.2k | auto compare_type = left_type->get_primitive_type(); | 931 | 44.2k | switch (compare_type) { | 932 | 96 | case TYPE_BOOLEAN: | 933 | 96 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 696 | case TYPE_DATEV2: | 935 | 696 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 440 | case TYPE_DATETIMEV2: | 937 | 440 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 233 | case TYPE_TIMESTAMP_NS: | 939 | 233 | 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 | 5.48k | case TYPE_TINYINT: | 943 | 5.48k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 391 | case TYPE_SMALLINT: | 945 | 391 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 3.29k | case TYPE_INT: | 947 | 3.29k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 6.42k | case TYPE_BIGINT: | 949 | 6.42k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 117 | case TYPE_LARGEINT: | 951 | 117 | 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 | 93 | case TYPE_FLOAT: | 959 | 93 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 894 | case TYPE_DOUBLE: | 961 | 894 | 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 | 137 | case TYPE_DECIMAL32: | 966 | 270 | case TYPE_DECIMAL64: | 967 | 1.21k | case TYPE_DECIMAL128I: | 968 | 1.22k | case TYPE_DECIMAL256: | 969 | 1.22k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.22k | col_with_type_and_name_right); | 971 | 935 | case TYPE_CHAR: | 972 | 7.74k | 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 | 44.2k | } | 979 | 0 | return Status::OK(); | 980 | 44.2k | } |
_ZNK5doris18FunctionComparisonINS_11NotEqualsOpENS_13NameNotEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 2.35k | uint32_t result, size_t input_rows_count) const override { | 878 | 2.35k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 2.35k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 2.35k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 2.35k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 2.35k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 2.35k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 2.35k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 2.35k | 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.35k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 2.35k | 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.35k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 2.35k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 2.35k | }; | 919 | | | 920 | 2.35k | if (can_compare(left_type->get_primitive_type()) && | 921 | 2.35k | 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.08k | 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.08k | } | 929 | | | 930 | 2.34k | auto compare_type = left_type->get_primitive_type(); | 931 | 2.34k | 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 | 82 | case TYPE_TINYINT: | 943 | 82 | 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.30k | case TYPE_INT: | 947 | 1.30k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 497 | case TYPE_BIGINT: | 949 | 497 | 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 | 70 | case TYPE_DECIMAL64: | 967 | 98 | case TYPE_DECIMAL128I: | 968 | 128 | case TYPE_DECIMAL256: | 969 | 128 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 128 | col_with_type_and_name_right); | 971 | 1 | case TYPE_CHAR: | 972 | 56 | case TYPE_VARCHAR: | 973 | 138 | case TYPE_STRING: | 974 | 138 | 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.34k | } | 979 | 0 | return Status::OK(); | 980 | 2.34k | } |
_ZNK5doris18FunctionComparisonINS_9GreaterOpENS_11NameGreaterEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 23.8k | uint32_t result, size_t input_rows_count) const override { | 878 | 23.8k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 23.8k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 23.8k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 23.8k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 23.8k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 23.8k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 23.8k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 23.8k | 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 | 23.8k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 23.8k | 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 | 23.8k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 23.8k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 23.8k | }; | 919 | | | 920 | 23.8k | if (can_compare(left_type->get_primitive_type()) && | 921 | 23.8k | 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 | 22.1k | 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 | 22.1k | } | 929 | | | 930 | 23.8k | auto compare_type = left_type->get_primitive_type(); | 931 | 23.8k | 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.07k | case TYPE_DATEV2: | 935 | 1.07k | 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 | 71 | case TYPE_TIMESTAMP_NS: | 939 | 71 | 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.22k | case TYPE_TINYINT: | 943 | 1.22k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 1.96k | case TYPE_SMALLINT: | 945 | 1.96k | 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.60k | case TYPE_BIGINT: | 949 | 2.60k | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 251 | case TYPE_LARGEINT: | 951 | 251 | 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 | 421 | case TYPE_FLOAT: | 959 | 421 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 600 | case TYPE_DOUBLE: | 961 | 600 | 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 | 805 | case TYPE_DECIMAL128I: | 968 | 807 | case TYPE_DECIMAL256: | 969 | 807 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 807 | col_with_type_and_name_right); | 971 | 14 | case TYPE_CHAR: | 972 | 102 | case TYPE_VARCHAR: | 973 | 219 | case TYPE_STRING: | 974 | 219 | 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 | 23.8k | } | 979 | 0 | return Status::OK(); | 980 | 23.8k | } |
_ZNK5doris18FunctionComparisonINS_17GreaterOrEqualsOpENS_19NameGreaterOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 3.94k | uint32_t result, size_t input_rows_count) const override { | 878 | 3.94k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 3.94k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 3.94k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 3.94k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 3.94k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 3.94k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 3.94k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 3.94k | 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 | 3.94k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 3.94k | 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 | 3.94k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 3.94k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 3.94k | }; | 919 | | | 920 | 3.94k | if (can_compare(left_type->get_primitive_type()) && | 921 | 3.94k | 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.90k | 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.90k | } | 929 | | | 930 | 3.93k | auto compare_type = left_type->get_primitive_type(); | 931 | 3.93k | switch (compare_type) { | 932 | 25 | case TYPE_BOOLEAN: | 933 | 25 | 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 | 124 | case TYPE_DATETIMEV2: | 937 | 124 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 409 | case TYPE_TIMESTAMP_NS: | 939 | 409 | 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 | 73 | case TYPE_TINYINT: | 943 | 73 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 70 | case TYPE_SMALLINT: | 945 | 70 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 752 | case TYPE_INT: | 947 | 752 | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 765 | case TYPE_BIGINT: | 949 | 765 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 12 | case TYPE_LARGEINT: | 951 | 12 | 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 | 575 | case TYPE_UUID: | 957 | 575 | 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 | 143 | case TYPE_DOUBLE: | 961 | 143 | 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 | 1 | case TYPE_DECIMAL32: | 966 | 72 | case TYPE_DECIMAL64: | 967 | 172 | case TYPE_DECIMAL128I: | 968 | 189 | case TYPE_DECIMAL256: | 969 | 189 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 189 | col_with_type_and_name_right); | 971 | 30 | case TYPE_CHAR: | 972 | 218 | case TYPE_VARCHAR: | 973 | 277 | case TYPE_STRING: | 974 | 277 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 38 | default: | 976 | 38 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 38 | col_with_type_and_name_right); | 978 | 3.93k | } | 979 | 0 | return Status::OK(); | 980 | 3.93k | } |
_ZNK5doris18FunctionComparisonINS_6LessOpENS_8NameLessEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 11.6k | uint32_t result, size_t input_rows_count) const override { | 878 | 11.6k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 11.6k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 11.6k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 11.6k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 11.6k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 11.6k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 11.6k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 11.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 | 11.6k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 11.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 | 11.6k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 11.6k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 11.6k | }; | 919 | | | 920 | 11.6k | if (can_compare(left_type->get_primitive_type()) && | 921 | 11.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 | 9.65k | 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 | 9.65k | } | 929 | | | 930 | 11.6k | auto compare_type = left_type->get_primitive_type(); | 931 | 11.6k | switch (compare_type) { | 932 | 85 | case TYPE_BOOLEAN: | 933 | 85 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 2.03k | case TYPE_DATEV2: | 935 | 2.03k | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 296 | case TYPE_DATETIMEV2: | 937 | 296 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 161 | case TYPE_TIMESTAMP_NS: | 939 | 161 | 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 | 1.71k | case TYPE_TINYINT: | 943 | 1.71k | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 165 | case TYPE_SMALLINT: | 945 | 165 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 2.62k | case TYPE_INT: | 947 | 2.62k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 933 | case TYPE_BIGINT: | 949 | 933 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 289 | case TYPE_LARGEINT: | 951 | 289 | 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 | 128 | case TYPE_FLOAT: | 959 | 128 | return execute_num_type<TYPE_FLOAT>(block, result, col_left_ptr, col_right_ptr); | 960 | 1.18k | case TYPE_DOUBLE: | 961 | 1.18k | 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 | 173 | case TYPE_DECIMAL32: | 966 | 362 | case TYPE_DECIMAL64: | 967 | 1.00k | case TYPE_DECIMAL128I: | 968 | 1.00k | case TYPE_DECIMAL256: | 969 | 1.00k | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 1.00k | col_with_type_and_name_right); | 971 | 168 | case TYPE_CHAR: | 972 | 357 | case TYPE_VARCHAR: | 973 | 512 | case TYPE_STRING: | 974 | 512 | 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 | 11.6k | } | 979 | 0 | return Status::OK(); | 980 | 11.6k | } |
_ZNK5doris18FunctionComparisonINS_14LessOrEqualsOpENS_16NameLessOrEqualsEE12execute_implEPNS_15FunctionContextERNS_5BlockERKSt6vectorIjSaIjEEjm Line | Count | Source | 877 | 9.50k | uint32_t result, size_t input_rows_count) const override { | 878 | 9.50k | const auto& col_with_type_and_name_left = block.get_by_position(arguments[0]); | 879 | 9.50k | const auto& col_with_type_and_name_right = block.get_by_position(arguments[1]); | 880 | | | 881 | 9.50k | const auto& col_left_ptr = col_with_type_and_name_left.column; | 882 | 9.50k | const auto& col_right_ptr = col_with_type_and_name_right.column; | 883 | 9.50k | const IColumn* col_left_untyped = col_with_type_and_name_left.column.get(); | 884 | 9.50k | const IColumn* col_right_untyped = col_with_type_and_name_right.column.get(); | 885 | | | 886 | 9.50k | const DataTypePtr& left_type = col_with_type_and_name_left.type; | 887 | 9.50k | 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.50k | if (left_type->equals(*right_type) && !left_type->is_nullable() && | 893 | 9.50k | 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.50k | return is_int_or_bool(t) || is_float_or_double(t) || is_ip(t) || is_date_type(t) || | 917 | 9.50k | is_timestamp_ns_type(t) || is_timestamptz_type(t); | 918 | 9.50k | }; | 919 | | | 920 | 9.50k | if (can_compare(left_type->get_primitive_type()) && | 921 | 9.50k | 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.69k | 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.69k | } | 929 | | | 930 | 9.49k | auto compare_type = left_type->get_primitive_type(); | 931 | 9.49k | switch (compare_type) { | 932 | 27 | case TYPE_BOOLEAN: | 933 | 27 | return execute_num_type<TYPE_BOOLEAN>(block, result, col_left_ptr, col_right_ptr); | 934 | 512 | case TYPE_DATEV2: | 935 | 512 | return execute_num_type<TYPE_DATEV2>(block, result, col_left_ptr, col_right_ptr); | 936 | 60 | case TYPE_DATETIMEV2: | 937 | 60 | return execute_num_type<TYPE_DATETIMEV2>(block, result, col_left_ptr, col_right_ptr); | 938 | 67 | case TYPE_TIMESTAMP_NS: | 939 | 67 | 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 | 90 | case TYPE_TINYINT: | 943 | 90 | return execute_num_type<TYPE_TINYINT>(block, result, col_left_ptr, col_right_ptr); | 944 | 97 | case TYPE_SMALLINT: | 945 | 97 | return execute_num_type<TYPE_SMALLINT>(block, result, col_left_ptr, col_right_ptr); | 946 | 6.93k | case TYPE_INT: | 947 | 6.93k | return execute_num_type<TYPE_INT>(block, result, col_left_ptr, col_right_ptr); | 948 | 654 | case TYPE_BIGINT: | 949 | 654 | return execute_num_type<TYPE_BIGINT>(block, result, col_left_ptr, col_right_ptr); | 950 | 36 | case TYPE_LARGEINT: | 951 | 36 | 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 | 111 | case TYPE_DOUBLE: | 961 | 111 | 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 | 89 | case TYPE_DECIMAL64: | 967 | 171 | case TYPE_DECIMAL128I: | 968 | 183 | case TYPE_DECIMAL256: | 969 | 183 | return execute_decimal(block, result, col_with_type_and_name_left, | 970 | 183 | col_with_type_and_name_right); | 971 | 31 | case TYPE_CHAR: | 972 | 149 | case TYPE_VARCHAR: | 973 | 222 | case TYPE_STRING: | 974 | 222 | return execute_string(block, result, col_left_untyped, col_right_untyped); | 975 | 70 | default: | 976 | 70 | return execute_generic(block, result, col_with_type_and_name_left, | 977 | 70 | col_with_type_and_name_right); | 978 | 9.49k | } | 979 | 0 | return Status::OK(); | 980 | 9.49k | } |
|
981 | | }; |
982 | | |
983 | | } // namespace doris |